/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Poppins:wght@300;400;600;700&family=Inter:wght@300;400;500&family=Roboto:wght@300;400&family=IBM+Plex+Mono:wght@400&display=swap');

:root {
    /* Palette */
    --bg-color: #0A0F1F;
    /* Dark Navy */
    --text-primary: #F7F7F7;
    /* White */
    --text-secondary: #a0a0b0;
    --accent-blue: #00A8E8;
    /* Electric Blue */
    --accent-green: #3FFFAE;
    /* Neon Green */

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-card-hover: rgba(255, 255, 255, 0.07);
    --card-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);

    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    /* Offset for fixed header */
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', 'Roboto', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    font-weight: 700;
}

code,
.tech-tag {
    font-family: 'IBM Plex Mono', monospace;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    align-self: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-blue);
    margin: 10px auto 0;
    border-radius: 2px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 168, 232, 0.15);
    border-color: var(--accent-blue);
    background: var(--glass-card-hover);
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-right: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: transparent;
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 168, 232, 0.2);
}

.btn-primary:hover {
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 0 25px rgba(0, 168, 232, 0.6);
}

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

.btn-secondary:hover {
    background: var(--accent-green);
    color: #000;
    box-shadow: 0 0 25px rgba(63, 255, 174, 0.6);
}

/* Nav */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(10, 15, 31, 0.85);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--accent-blue);
    text-shadow: 0 0 8px var(--accent-blue);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    position: relative;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 45px;
    height: 45px;
    border: 2px solid var(--accent-blue);
    border-top-color: transparent;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ring-rotate 3s linear infinite;
    opacity: 0.6;
}

.menu-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-icon .bar {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger to X animation */
.mobile-menu-btn.active .menu-ring {
    border-color: var(--accent-green);
    border-top-color: transparent;
    animation: ring-rotate 1s linear infinite;
}

.mobile-menu-btn.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

@keyframes ring-rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Mobile Panel */
.mobile-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    z-index: 1050;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-panel.active {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.mobile-panel-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.mobile-panel-content {
    position: absolute;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: rgba(10, 15, 31, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    padding: 100px 30px 30px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.mobile-panel.active .mobile-panel-content {
    right: 0;
}

/* Auth Status */
.auth-status {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent-blue);
    opacity: 0;
    letter-spacing: 2px;
}

.mobile-panel.authenticating .auth-status {
    animation: auth-flash 0.4s ease forwards;
}

@keyframes auth-flash {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Scan Line */
.mobile-panel-content .scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    opacity: 0;
}

.mobile-panel.authenticating .scan-line {
    animation: scan-down 0.5s ease forwards;
}

@keyframes scan-down {
    0% {
        top: 0;
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Mobile Nav Links */
.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li {
    opacity: 0;
    transform: translateX(30px);
    margin-bottom: 1.5rem;
}

.mobile-panel.active .mobile-nav-links li {
    animation: link-slide-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: calc(0.1s + var(--i) * 0.08s);
}

@keyframes link-slide-in {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }

    80% {
        transform: translateX(-5px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-nav-links a {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.mobile-nav-links a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--accent-green);
    transition: height 0.3s ease;
    box-shadow: 0 0 10px var(--accent-green);
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    color: var(--accent-green);
    text-shadow: 0 0 10px rgba(63, 255, 174, 0.5);
}

.mobile-nav-links a:hover::before,
.mobile-nav-links a.active::before {
    height: 100%;
}

/* Disconnect Status */
.disconnect-status {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent-green);
    opacity: 0;
    letter-spacing: 2px;
    white-space: nowrap;
}

.mobile-panel.closing .disconnect-status {
    animation: auth-flash 0.5s ease forwards;
}

/* Closing animation */
.mobile-panel.closing .mobile-nav-links li {
    animation: link-slide-out 0.3s ease forwards;
    animation-delay: calc((5 - var(--i)) * 0.05s);
}

@keyframes link-slide-out {
    0% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(30px);
    }
}

/* Hero */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--nav-height);
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
}

.hero-content h2 {
    font-size: 1.5rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--accent-green);
}

.tagline {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    display: block;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.timeline {
    border-left: 2px solid var(--glass-border);
    padding-left: 2rem;
    margin-top: 2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.4rem;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-blue);
}

.timeline-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.timeline-item span {
    font-size: 0.85rem;
    color: var(--accent-green);
    font-family: 'IBM Plex Mono', monospace;
}

/* HUD Frame Portrait */
.hud-frame {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Left Glow Line */
.hud-glow-left {
    position: absolute;
    left: 0;
    top: 20%;
    width: 3px;
    height: 60%;
    background: linear-gradient(to bottom, transparent, var(--accent-blue), transparent);
    box-shadow: 0 0 15px var(--accent-blue), 0 0 30px var(--accent-blue);
    animation: glow-pulse 2s ease-in-out infinite;
}

/* Bottom Glow Line */
.hud-glow-bottom {
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--accent-blue), transparent);
    box-shadow: 0 0 15px var(--accent-blue), 0 0 30px var(--accent-blue);
    animation: glow-pulse 2s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes glow-pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* HUD Data Readout - Scan Triggered */
.hud-readout {
    position: absolute;
    top: 12px;
    right: 12px;
    text-align: right;
    z-index: 10;
    background: rgba(10, 15, 31, 0.7);
    padding: 8px 10px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 168, 232, 0.3);
}

.readout-line {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
    line-height: 1.8;
    text-shadow: 0 0 4px rgba(0, 168, 232, 0.3);
    opacity: 0;
    transform: translateX(10px);
    animation: data-reveal 5s ease-in-out infinite;
    animation-delay: calc(0.5s + (var(--i) * 0.15s));
}

@keyframes data-reveal {

    0%,
    5% {
        opacity: 0;
        transform: translateX(10px);
    }

    12%,
    75% {
        opacity: 1;
        transform: translateX(0);
    }

    85%,
    100% {
        opacity: 0;
        transform: translateX(10px);
    }
}

/* Status Colors */
.status-verified {
    color: var(--accent-green);
    text-shadow: 0 0 6px var(--accent-green);
}

.status-role {
    color: var(--accent-blue);
    text-shadow: 0 0 6px var(--accent-blue);
}

.status-next {
    color: #ff6b9d;
    text-shadow: 0 0 6px #ff6b9d;
}

/* HUD Label */
.hud-label {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: var(--accent-green);
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Profile Image - HUD Style */
.hud-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    /* Sharper corners */
}

.profile-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    border-radius: 4px;
    /* Sharper corners */
    border: none;
    box-shadow: none;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: saturate(0.9) contrast(1.1);
    /* Contrast boost */
}

/* Vignette Overlay */
.hud-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    border-radius: 4px;
}

/* Top-Right Corner Line */
.hud-corner-tr {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-top: 2px solid var(--accent-green);
    border-right: 2px solid var(--accent-green);
    opacity: 0.7;
    box-shadow: 0 0 8px var(--accent-green);
}

/* Reactive Glow Scan Effect */
.hud-scan-line {
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(0, 168, 232, 0.05) 20%,
            rgba(0, 168, 232, 0.15) 40%,
            rgba(0, 168, 232, 0.4) 48%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(0, 168, 232, 0.4) 52%,
            rgba(0, 168, 232, 0.15) 60%,
            rgba(0, 168, 232, 0.05) 80%,
            transparent 100%);
    animation: reactive-scan 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 5;
    mix-blend-mode: screen;
}

@keyframes reactive-scan {
    0% {
        top: -60px;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    60% {
        top: 100%;
        opacity: 1;
    }

    70% {
        opacity: 0;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Hover Effects */
.hud-frame:hover .profile-img {
    transform: scale(1.03);
    filter: saturate(1.1) contrast(1.15);
}

.hud-frame:hover .hud-glow-left,
.hud-frame:hover .hud-glow-bottom {
    box-shadow: 0 0 20px var(--accent-blue), 0 0 40px var(--accent-blue);
}

.hud-frame:hover .hud-corner-tr {
    opacity: 1;
    box-shadow: 0 0 12px var(--accent-green);
}

/* Skill Lab */
.lab-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.lab-module {
    position: relative;
    overflow: hidden;
    opacity: 0.6;
    transition: all 0.4s ease;
    border: 1px solid var(--glass-border);
}

.lab-module:hover {
    opacity: 1;
    border-color: var(--accent-blue);
    box-shadow: 0 0 30px rgba(0, 168, 232, 0.2);
}

/* Module Header */
.module-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.module-header h3 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Status Light */
.status-light {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.lab-module:hover .status-light {
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulse-light 1.5s ease infinite;
}

@keyframes pulse-light {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Module Content */
.module-content {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Skill Chips */
.skill-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.85rem;
    opacity: 0.5;
    transform: translateY(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-chip i {
    font-size: 1.2rem;
}

/* Staggered Boot-up Animation */
.lab-module:hover .skill-chip {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--i) * 0.08s);
}

.skill-chip:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 168, 232, 0.4);
}

/* Scan Line Effect */
.scan-line {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.lab-module:hover .scan-line {
    opacity: 1;
    animation: scan 2s linear infinite;
}

@keyframes scan {
    from {
        left: -100%;
    }

    to {
        left: 100%;
    }
}

/* Skill Modal */
.skill-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.skill-modal.active {
    opacity: 1;
    visibility: visible;
}

.skill-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.skill-modal-content {
    position: relative;
    max-width: 400px;
    width: 90%;
    padding: 2rem;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.skill-modal.active .skill-modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--accent-blue);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.modal-header i {
    font-size: 2.5rem;
    color: var(--accent-blue);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-stat {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'IBM Plex Mono', monospace;
}

.stat-value {
    font-size: 1rem;
    color: var(--accent-green);
}

/* Responsive */
@media (max-width: 768px) {
    .lab-grid {
        grid-template-columns: 1fr;
    }
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-image-container {
    height: 180px;
    background: #111;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
}

/* Simulated 'screenshot' gradient/pattern */
.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, #151b2e 0%, #1c2541 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.05);
}

.project-info h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

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

.tech-tag {
    font-size: 0.75rem;
    color: var(--accent-green);
    background: rgba(63, 255, 174, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

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

.btn-sm {
    padding: 8px 20px;
    font-size: 0.8rem;
}

/* Contact */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

input,
textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    outline: none;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 168, 232, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 24px;
        /* More breathing room on mobile */
    }

    .section {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }

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

    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .lab-grid {
        grid-template-columns: 1fr;
        margin: 0 8px;
        /* Space from screen edges */
    }

    .lab-module {
        padding: 1.5rem;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        margin: 0 8px;
        /* Space from screen edges */
    }

    .contact-container {
        margin-left: 8px;
        margin-right: 8px;
        width: calc(100% - 16px);
        /* Full width minus margins */
    }

    .btn-secondary {
        margin-top: 0.5rem;
    }
}

/* Animation classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}