/* Modern Cybersecurity Theme - Bersec LTD */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Color Palette - Cleaner Dark Theme */
    --bg-dark: #0f172a;
    /* Slate 900 */
    --bg-darker: #020617;
    /* Slate 950 */
    --bg-card: rgba(30, 41, 59, 0.7);
    /* Slate 800 + Opacity */
    --bg-glass: rgba(255, 255, 255, 0.03);

    --primary: #f1f5f9;
    /* Slate 100 */
    --primary-dim: rgba(241, 245, 249, 0.1);
    --primary-glow: rgba(241, 245, 249, 0.1);

    --secondary: #10b981;
    /* Emerald 500 - Matching Light Mode's Vibe */
    --secondary-dim: rgba(16, 185, 129, 0.1);
    --secondary-glow: rgba(16, 185, 129, 0.2);

    --accent: #34d399;
    /* Emerald 400 - Slightly Lighter for Dark Mode Pop */
    --accent-dim: rgba(52, 211, 153, 0.1);

    --text-main: #cbd5e1;
    /* Slate 300 */
    --text-muted: #94a3b8;
    /* Slate 400 */
    --text-highlight: #ffffff;

    --danger: #ef4444;
    /* Red 500 */

    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--secondary), var(--accent));
    --grad-dark: linear-gradient(to bottom, var(--bg-darker), var(--bg-dark));
    --grad-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

    /* Effects - Cleaner, Less Glow */
    --glass-border: 1px solid rgba(255, 255, 255, 0.06);
    --neon-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --purple-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
    /* Actually Green shadow */

    /* Spacing */
    --header-height: 80px;
}

/* Light Mode Overrides */
body.light-mode {
    --bg-dark: #f8fafc;
    --bg-darker: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.8);

    --primary: #0f172a;
    /* Slate 900 */
    --primary-dim: rgba(15, 23, 42, 0.05);
    --primary-glow: rgba(15, 23, 42, 0.1);

    --secondary: #10b981;
    /* Emerald 500 */
    --secondary-dim: rgba(16, 185, 129, 0.1);
    --secondary-glow: rgba(16, 185, 129, 0.2);

    --accent: #059669;
    /* Emerald 600 */
    --accent-dim: rgba(5, 150, 105, 0.1);

    --text-main: #334155;
    /* Slate 700 */
    --text-muted: #64748b;
    /* Slate 500 */
    --text-highlight: #0f172a;
    /* Slate 900 */

    --grad-dark: linear-gradient(to bottom, #ffffff 0%, #f1f5f9 100%);
    --glass-border: 1px solid rgba(15, 23, 42, 0.08);

    --neon-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    --purple-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

body.light-mode .theme-toggle {
    border-color: rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-dim);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-highlight);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

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

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

code,
pre,
.mono {
    font-family: 'JetBrains Mono', monospace;
}

sup {
    font-size: 0.6em;
    vertical-align: super;
    margin-left: 2px;
}

.video-responsive-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
}

.video-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.text-secondary {
    color: var(--secondary);
}

.text-accent {
    color: var(--accent);
}

.section-padding {
    padding: 6rem 0;
}

.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

body.light-mode .glass-panel {
    background: #ffffff;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--secondary-dim);
    border-color: var(--secondary);
    color: var(--secondary);
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.1);
}

body.light-mode .btn-primary {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--secondary);
    color: var(--secondary);
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.2);
}

body.light-mode .btn-primary:hover {
    background: var(--secondary);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
    background: var(--secondary);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

/* Background Animation */
#nodes-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}



/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-mode .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Removed text properties as we are using an image now */
}


/* Logo Styling & Inversion */
.nav-logo-img,
.footer-logo-img,
.hero-logo-img {
    filter: brightness(0) invert(1);
    /* Make fully white for Dark Mode */
    transition: filter 0.3s ease;
}

body.light-mode .nav-logo-img,
body.light-mode .footer-logo-img,
body.light-mode .hero-logo-img {
    filter: none;
    /* Restore original color for Light Mode */
}

/* Navbar Logo Specifics */
.nav-logo-img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
}

/* Hero Logo Specifics */
.hero-logo-img {
    max-height: 250px;
    /* Larger in Hero */
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

.nav-logo span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
    position: relative;
    padding: 5px 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary);
}

.nav-link:hover {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary);
}

.nav-link:hover::before {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-highlight);
}

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

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    opacity: 0.4;
    /* Slightly dimmed to blend */
}

.video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    /* 16:9 Aspect Ratio */
    min-height: 100vh;
    min-width: 177.77vh;
    /* 16:9 Aspect Ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-darker) 90%);
    z-index: -1;
}

body.light-mode .hero-overlay {
    background: rgba(255, 255, 255, 0.9);
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 900px;
}

.hero-label {
    font-family: 'JetBrains Mono', monospace;
    color: var(--secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 143, 57, 0.1);
    border: 1px solid rgba(0, 143, 57, 0.3);
    border-radius: 4px;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 0.2s;
}

.hero-title {
    font-family: 'Century Schoolbook L', 'Century Schoolbook', Georgia, serif;
    font-style: italic;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    text-transform: none;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 0.4s;
}

.hero-title .highlight {
    color: var(--text-highlight);
    position: relative;
}

/* Removed the blur effect to match the clean look of the navbar */
.hero-title .highlight::after {
    display: none;
}

body.light-mode .hero-title {
    text-shadow: none;
}

body.light-mode .hero-title .highlight {
    color: var(--secondary);
    -webkit-text-stroke: 0;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 1.2s;
}

.hero-content .btn {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 1.6s;
}

.hero-stats-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 2.0s;
}

.stat-box {
    text-align: center;
    position: relative;
}

.stat-value {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-highlight);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* About Section */
.about {
    position: relative;
}

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

.quote-author {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
}

.quote-author:hover {
    background: var(--bg-glass);
    border-color: var(--secondary);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.3);
}

.quote-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    /* Fix: Don't cut off the head */
    border: 3px solid var(--secondary);
    box-shadow: 0 0 15px rgba(0, 143, 57, 0.4);
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 3rem;
}

.feature-card {
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-left-color: var(--primary);
    box-shadow: 0 10px 40px -10px rgba(0, 243, 255, 0.15);
}

.card-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 5px rgba(0, 243, 255, 0.4));
}

/* Certifications */
.cert-section {
    margin-top: 6rem;
}

.cert-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.cert-badge {
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    width: 160px;
    transition: all 0.3s ease;
}

.cert-badge:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.2);
    transform: translateY(-5px);
}

.cert-badge img {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.cert-badge:hover img {
    filter: grayscale(0%);
}

.cert-name {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Skills Glitch Effect */
.skills-container {
    margin-top: 4rem;
}

.skill-row {
    margin-bottom: 3rem;
}

.skill-category-title {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 143, 57, 0.2);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.skill-tag:hover {
    border-color: var(--primary);
    background: rgba(0, 243, 255, 0.05);
    color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    position: relative;
    padding: 2.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
    transition: opacity 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-highlight);
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--primary);
}

.service-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    /* Push to bottom */
    flex-wrap: wrap;
    padding-top: 1.5rem;
}

.tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

.team-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    position: relative;
}

.team-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--secondary);
    box-shadow: 0 0 15px rgba(0, 143, 57, 0.3);
    font-size: 2.5rem;
    color: var(--secondary);
}

.team-name {
    color: var(--text-highlight);
    margin-bottom: 0.5rem;
}

.team-role {
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.team-badges {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge-mini {
    font-size: 0.7rem;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    color: var(--text-muted);
}

/* Contact Terminal */
.terminal-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 243, 255, 0.3);
    background: rgba(10, 10, 15, 0.95);
}

.terminal-header {
    background: #1a1a2e;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-dots {
    display: flex;
    gap: 8px;
    margin-right: 1.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red {
    background: #ff5f56;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #27c93f;
}

.terminal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #888;
}

.terminal-body {
    padding: 2rem;
    font-family: 'JetBrains Mono', monospace;
    color: #e0e0e0;
}

/* Trusted Section */
.trusted-section {
    background: rgba(0, 0, 0, 0.2);
}

.trusted-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    opacity: 0.7;
}

.trusted-card {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

body.light-mode .trusted-section {
    background: rgba(0, 0, 0, 0.02);
}

body.light-mode .trusted-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.5);
}

.cmd-line {
    display: flex;
    margin-bottom: 1rem;
}

.prompt {
    color: var(--accent);
    margin-right: 10px;
}

.cmd {
    color: var(--text-highlight);
}

.output-line {
    margin-bottom: 0.8rem;
    display: flex;
}

.label {
    color: var(--text-muted);
    width: 100px;
}

.value {
    color: #ffffff;
    /* Always white in terminal */
}

.value.email {
    cursor: pointer;
    text-decoration: underline;
    color: var(--accent);
    /* Accent color for links */
}

.value.email:hover {
    color: #ffffff;
    text-shadow: 0 0 10px var(--accent);
}

.cursor-blink {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background: var(--accent);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
    background: var(--bg-dark);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    font-family: 'Orbitron';
    font-size: 1.5rem;
    color: var(--text-muted);
}

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

.social-link {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.social-link:hover {
    color: var(--primary);
}


.footer-logo-img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}

/* Mobile & Tablet Optimization */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
        /* Slight increase for better touch area */
    }

    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
        width: 100%;
    }

    /* Navbar Mobile Fixes */
    .nav-container {
        padding: 0 1rem;
        /* Ensure padding on sides */
    }

    .nav-logo-img {
        max-height: 50px;
        /* Constrain navbar logo */
    }

    /* Fix Hero Logo Size on Mobile */
    .hero-logo-img {
        max-height: 100px;
        /* Significantly Reduced */
        width: auto;
        margin-bottom: 1rem;
    }

    /* Adjust Hero Text */
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
        width: 100%;
        margin-bottom: 2rem;
    }

    .section-padding {
        padding: 4rem 0;
    }

    h1,
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.8rem;
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: 0;
        background: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        overflow: hidden;
        transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        opacity: 0;
    }

    .nav-menu.active {
        height: 100vh;
        padding-top: 2rem;
        opacity: 1;
        overflow-y: auto;
        /* Allow scrolling in menu if height is small */
    }

    body.light-mode .nav-menu {
        background: #ffffff;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-link {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
    }

    /* Hamburger Animation */
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* Layout Adjustments */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Fix image/video size in about section */
    .about-content-right {
        order: -1;
        /* Show video first on mobile? Optional, usually better below text but let's keep standard unless requested. Keeping standard order. */
        margin-top: 2rem;
    }

    .feature-card,
    .service-card,
    .team-card {
        padding: 1.5rem;
    }

    /* Hero alignment and Video Fixes */
    .hero {
        align-items: center;
        /* Restore centered alignment */
        padding-top: calc(var(--header-height) + 2rem);
        height: auto;
        min-height: 100vh;
    }

    .hero-label {
        font-size: 0.9rem;
        white-space: nowrap;
        margin-top: 1rem;
    }

    /* Force video to cover background on mobile */
    .video-background iframe {
        width: 300% !important;
        /* Massive width to allow height to fill */
        height: 100% !important;
        min-width: unset !important;
        min-height: 100% !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    /* Hero adjustments */
    .hero-stats-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        background: rgba(255, 255, 255, 0.03);
        padding: 1rem;
        border-radius: 8px;
        width: 100%;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

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

    /* Contact Terminal Mobile Optimization */
    .terminal-body {
        padding: 1.5rem;
    }

    .output-line {
        flex-direction: column;
        /* Stack label and value */
        gap: 0.25rem;
        margin-bottom: 1.25rem;
    }

    .label {
        width: 100%;
        font-size: 0.8rem;
        opacity: 0.8;
    }

    .value {
        padding-left: 0.5rem;
        /* Slight indent for value */
        font-size: 1rem;
        line-height: 1.4;
    }

    .cmd-line {
        flex-wrap: wrap;
        /* Allow long commands to wrap */
        gap: 0.5rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .btn {
        width: 100%;
    }

    .cert-grid {
        justify-content: center;
    }

    .cert-badge {
        width: 100%;
        max-width: 200px;
    }
}