/* ===================================
   DESIGN TOKENS & VARIABLES
   =================================== */

:root {
    --bg-primary: #050816;
    --bg-secondary: #101827;
    --accent-primary: #00D9FF;
    --accent-secondary: #3B82F6;
    --glow: #00F5FF;
    --text-primary: #F8FAFC;
    --text-muted: #94A3B8;
    --border-color: #1E293B;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --radius: 18px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* ===================================
   RESET & BASE STYLES
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* ===================================
   UTILITIES
   =================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--text-primary);
    white-space: nowrap;
}

.header-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
}

/* ===================================
   LOADING SCREEN
   =================================== */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeOut 0.8s ease-out 2s forwards;
}

.loading-content {
    text-align: center;
}

.pcb-animation {
    margin-bottom: 2rem;
    animation: float 2s ease-in-out infinite;
}

.pcb-animation svg {
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.4));
}

.trace {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawTrace 1.5s ease-in-out forwards;
}

.node {
    opacity: 0;
    animation: nodeGlow 1.5s ease-in-out forwards;
}

.node:nth-child(1) { animation-delay: 0.2s; }
.node:nth-child(2) { animation-delay: 0.4s; }
.node:nth-child(3) { animation-delay: 0.6s; }
.node:nth-child(4) { animation-delay: 0.8s; }
.node:nth-child(5) { animation-delay: 1s; }

.loading-text {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent-primary);
    letter-spacing: 2px;
    animation: pulse 1.5s ease-in-out infinite;
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes drawTrace {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes nodeGlow {
    0% {
        opacity: 0;
        filter: drop-shadow(0 0 0px currentColor);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
        filter: drop-shadow(0 0 10px currentColor);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fillBar {
    from {
        width: 0%;
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 217, 255, 0.6);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
    }
}

/* ===================================
   NAVBAR
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 8, 22, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(30, 41, 59, 0.3);
    z-index: 1000;
    animation: slideIn 0.5s ease-out;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 70%;
}

.nav-link-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.nav-link-primary::after {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 2rem 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.grid-background {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.05;
}

.particle-canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

#animationCanvas {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: slideInLeft 0.8s ease-out;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 3s ease-in-out infinite;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-focus {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0;
}

.focus-tag {
    padding: 0.6rem 1.2rem;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid var(--accent-primary);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--accent-primary);
    transition: var(--transition);
}

.focus-tag:hover {
    background: rgba(0, 217, 255, 0.2);
    transform: translateY(-2px);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid var(--accent-primary);
    border-radius: 50%;
    color: var(--accent-primary);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 217, 255, 0.3);
}

.hero-illustration {
    animation: slideInRight 0.8s ease-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.engineer-illustration {
    filter: drop-shadow(0 0 30px rgba(0, 217, 255, 0.15));
    animation: float 3s ease-in-out infinite;
}

.oscilloscope {
    animation: pulse 2s ease-in-out infinite;
}

.pcb-board {
    animation: pulse 2.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(0, 217, 255, 0.05);
}

.btn-small {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ===================================
   ABOUT SECTION
   =================================== */

.about {
    padding: 120px 0;
    background: var(--bg-primary);
    position: relative;
    z-index: 10;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
}

.about-profile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.profile-image {
    display: flex;
    justify-content: center;
    animation: slideInLeft 0.8s ease-out;
}

.profile-image svg {
    filter: drop-shadow(0 0 30px rgba(0, 217, 255, 0.2));
}

.about-text {
    animation: slideInRight 0.8s ease-out;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.interests {
    margin: 2rem 0;
}

.interests h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.interests-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    list-style: none;
}

.interests-list li {
    padding: 0.75rem 0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.interests-list li::before {
    content: '▸';
    color: var(--accent-primary);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===================================
   PROJECTS SECTION
   =================================== */

.projects {
    padding: 120px 0;
    background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.02));
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: linear-gradient(135deg, rgba(16, 24, 39, 0.8), rgba(16, 24, 39, 0.4));
    border: 1px solid rgba(0, 217, 255, 0.1);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    animation: slideIn 0.6s ease-out;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 217, 255, 0.2);
    background: linear-gradient(135deg, rgba(16, 24, 39, 0.95), rgba(16, 24, 39, 0.5));
}

.project-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05), rgba(59, 130, 246, 0.05));
    overflow: hidden;
}

.project-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    padding: 0.4rem 0.8rem;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-family: var(--font-mono);
}

.project-buttons {
    display: flex;
    gap: 1rem;
}

/* ===================================
   SKILLS SECTION
   =================================== */

.skills {
    padding: 120px 0;
    background: var(--bg-primary);
}

.skills-content {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.expertise-card {
    background: linear-gradient(135deg, rgba(16, 24, 39, 0.8), rgba(16, 24, 39, 0.4));
    border: 1px solid rgba(0, 217, 255, 0.15);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.expertise-card:hover::before {
    opacity: 1;
}

.expertise-card:hover {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(16, 24, 39, 1), rgba(16, 24, 39, 0.6));
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 217, 255, 0.15), inset 0 1px 0 rgba(0, 217, 255, 0.1);
}

.expertise-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.expertise-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
}

.expertise-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.tools-section {
    animation: slideInUp 0.8s ease-out;
}

.tools-section h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.tool-card {
    background: linear-gradient(135deg, rgba(16, 24, 39, 0.7), rgba(16, 24, 39, 0.3));
    border: 1px solid rgba(0, 217, 255, 0.15);
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tool-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 217, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition);
    border-radius: 12px;
    pointer-events: none;
}

.tool-card:hover::after {
    opacity: 1;
}

.tool-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 217, 255, 0.2);
    background: linear-gradient(135deg, rgba(16, 24, 39, 0.9), rgba(16, 24, 39, 0.5));
}

.tool-name {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.tool-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* ===================================
   FOCUS SECTION
   =================================== */

.focus {
    padding: 120px 0;
    background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.02));
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.focus-card {
    background: linear-gradient(135deg, rgba(16, 24, 39, 0.7), rgba(16, 24, 39, 0.3));
    border: 1px solid rgba(0, 217, 255, 0.1);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
    animation: slideIn 0.6s ease-out;
}

.focus-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 217, 255, 0.15);
    background: linear-gradient(135deg, rgba(16, 24, 39, 0.9), rgba(16, 24, 39, 0.4));
}

.focus-card h4 {
    font-size: 1.25rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.focus-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===================================
   EXPERIENCE SECTION
   =================================== */

.experience {
    padding: 120px 0;
    background: linear-gradient(180deg, transparent, rgba(0, 217, 255, 0.02));
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-primary), transparent);
}

.timeline-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    animation: slideIn 0.6s ease-out;
}

.timeline-marker {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
    position: relative;
    top: 0;
}

.timeline-content {
    background: linear-gradient(135deg, rgba(16, 24, 39, 0.6), rgba(16, 24, 39, 0.2));
    border: 1px solid rgba(0, 217, 255, 0.1);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--accent-primary);
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0, 217, 255, 0.1);
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.company {
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.responsibilities {
    list-style: none;
}

.responsibilities li {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.responsibilities li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* ===================================
   CERTIFICATIONS SECTION
   =================================== */

.certifications {
    padding: 120px 0;
    background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.02));
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.cert-card {
    background: linear-gradient(135deg, rgba(16, 24, 39, 0.8), rgba(16, 24, 39, 0.4));
    border: 1px solid rgba(0, 217, 255, 0.1);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    animation: slideIn 0.6s ease-out;
    backdrop-filter: blur(10px);
}

.cert-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 217, 255, 0.2);
}

.cert-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cert-card h4 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.cert-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cert-date {
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ===================================
   GITHUB SECTION
   =================================== */

.github {
    padding: 120px 0;
    background: linear-gradient(180deg, transparent, rgba(0, 217, 255, 0.02));
}

.github-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.github-profile {
    background: linear-gradient(135deg, rgba(16, 24, 39, 0.8), rgba(16, 24, 39, 0.4));
    border: 1px solid rgba(0, 217, 255, 0.1);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    animation: slideInLeft 0.6s ease-out;
}

.github-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.github-header h3 {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.github-profile p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.repos-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: slideInRight 0.6s ease-out;
}

.repo-item {
    background: linear-gradient(135deg, rgba(16, 24, 39, 0.6), rgba(16, 24, 39, 0.2));
    border: 1px solid rgba(0, 217, 255, 0.1);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.repo-item:hover {
    border-color: var(--accent-primary);
    transform: translateX(8px);
    box-shadow: 0 10px 25px rgba(0, 217, 255, 0.1);
}

.repo-item h4 {
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.repo-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.repo-stats {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    font-size: 0.85rem;
    color: var(--accent-primary);
}

/* ===================================
   RESUME SECTION
   =================================== */

.resume {
    padding: 120px 0;
    background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.02));
}

.resume-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.resume-preview {
    animation: slideInLeft 0.6s ease-out;
}

.resume-document {
    background: linear-gradient(135deg, rgba(16, 24, 39, 0.8), rgba(16, 24, 39, 0.4));
    border: 1px solid rgba(0, 217, 255, 0.1);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.resume-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
}

.resume-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.resume-header p {
    color: var(--accent-primary);
    font-size: 0.95rem;
}

.resume-line {
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
    margin-bottom: 1.5rem;
}

.resume-section {
    margin-bottom: 1.5rem;
}

.resume-section h4 {
    color: var(--accent-primary);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.resume-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.resume-section strong {
    color: var(--text-primary);
}

.resume-action {
    animation: slideInRight 0.6s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.resume-action h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.resume-action p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ===================================
   CONTACT SECTION
   =================================== */

.contact {
    padding: 120px 0;
    background: linear-gradient(180deg, transparent, rgba(0, 217, 255, 0.02));
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    animation: slideInLeft 0.6s ease-out;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card {
    background: linear-gradient(135deg, rgba(16, 24, 39, 0.6), rgba(16, 24, 39, 0.2));
    border: 1px solid rgba(0, 217, 255, 0.1);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--accent-primary);
    transform: translateX(8px);
    box-shadow: 0 10px 25px rgba(0, 217, 255, 0.1);
}

.contact-icon {
    font-size: 2rem;
}

.contact-details h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.contact-form {
    animation: slideInRight 0.6s ease-out;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    background: rgba(16, 24, 39, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.1);
    border-radius: var(--radius);
    padding: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
    background: rgba(16, 24, 39, 0.8);
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: linear-gradient(180deg, rgba(16, 24, 39, 0.5), rgba(5, 8, 22, 0.9));
    border-top: 1px solid rgba(0, 217, 255, 0.1);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    text-align: center;
}

.footer-links a {
    color: var(--accent-primary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-socials {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
}

.footer-socials a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-socials a:hover {
    color: var(--accent-primary);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(5, 8, 22, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-illustration {
        max-width: 200px;
        margin: 0 auto;
    }

    .engineer-illustration {
        width: 200px;
        height: auto;
    }

    .about-profile {
        grid-template-columns: 1fr;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .github-content {
        grid-template-columns: 1fr;
    }

    .resume-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        grid-template-columns: 50px 1fr;
        gap: 1rem;
    }

    .timeline-marker {
        width: 50px;
        height: 50px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .header-line {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 100px 1rem 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .interests-list {
        grid-template-columns: 1fr;
    }

    .focus-grid {
        grid-template-columns: 1fr;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
    }

    .project-buttons {
        flex-direction: column;
    }

    .project-buttons .btn {
        width: 100%;
    }

    .resume-document {
        padding: 1.5rem;
    }

    .nav-container {
        padding: 1rem;
    }
}

/* ===================================
   ACCESSIBILITY & PRINT
   =================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .navbar,
    .hero-buttons,
    .contact-form,
    .footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    section {
        page-break-inside: avoid;
    }
}

/* ===================================
   SCROLL REVEAL ANIMATIONS
   =================================== */

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: slideIn 0.6s ease-out forwards;
}
