/* ============================================
   Design System — Theme Variables
   ============================================ */

/* Dark Theme (Default) */
:root {
    /* Brand colors — shared across themes */
    --primary: #a855f7;
    --primary-glow: rgba(168, 85, 247, 0.4);
    --secondary: #06b6d4;
    --secondary-glow: rgba(6, 182, 212, 0.4);
    --nav-height: 80px;

    /* Surfaces */
    --bg-body: #0a0a1a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --bg-nav: rgba(10, 10, 26, 0.8);
    --bg-mobile-nav: rgba(10, 10, 26, 0.95);
    --bg-input: rgba(255, 255, 255, 0.03);
    --bg-input-focus: rgba(255, 255, 255, 0.05);
    --bg-skill-pill: rgba(255, 255, 255, 0.03);
    --bg-showcase: rgba(168, 85, 247, 0.02);
    --bg-tech-pill: rgba(6, 182, 212, 0.1);
    --bg-tech-pill-hover: rgba(6, 182, 212, 0.2);
    --bg-readmore-hover: rgba(168, 85, 247, 0.1);

    /* Text */
    --text-primary: #ffffff;
    --text-muted: #94a3b8;
    --text-input: #ffffff;

    /* Borders & Effects */
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-glass-hover: rgba(255, 255, 255, 0.2);
    --border-readmore: rgba(168, 85, 247, 0.3);
    --shadow-card: none;
    --shadow-tech: 0 4px 12px rgba(6, 182, 212, 0.15);
    --shadow-readmore: 0 0 20px rgba(168, 85, 247, 0.15);

    /* Fade overlay (project cards) */
    --fade-mid: rgba(10, 10, 26, 0.85);
    --fade-end: rgba(10, 10, 26, 1);

    /* Timeline dot */
    --timeline-dot-bg: #0a0a1a;

    /* Logo text */
    --logo-color: #ffffff;

    /* Hero glow */
    --hero-glow-opacity: 0.15;

    /* Neon glow intensity */
    --neon-text-shadow: 0 0 10px var(--primary-glow);
    --nav-active-shadow: 0 0 8px var(--primary-glow);
}

/* Light Theme */
[data-theme="light"] {
    /* Surfaces */
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-nav: rgba(248, 250, 252, 0.85);
    --bg-mobile-nav: rgba(248, 250, 252, 0.98);
    --bg-input: #f1f5f9;
    --bg-input-focus: #e2e8f0;
    --bg-skill-pill: #f1f5f9;
    --bg-showcase: rgba(168, 85, 247, 0.04);
    --bg-tech-pill: rgba(6, 182, 212, 0.08);
    --bg-tech-pill-hover: rgba(6, 182, 212, 0.15);
    --bg-readmore-hover: rgba(168, 85, 247, 0.06);

    /* Text */
    --text-primary: #1e293b;
    --text-muted: #64748b;
    --text-input: #1e293b;

    /* Borders & Effects */
    --border-glass: #e2e8f0;
    --border-glass-hover: #cbd5e1;
    --border-readmore: rgba(168, 85, 247, 0.25);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-tech: 0 4px 12px rgba(6, 182, 212, 0.1);
    --shadow-readmore: 0 0 16px rgba(168, 85, 247, 0.1);

    /* Fade overlay */
    --fade-mid: rgba(255, 255, 255, 0.85);
    --fade-end: rgba(255, 255, 255, 1);

    /* Timeline dot */
    --timeline-dot-bg: #f8fafc;

    /* Logo text */
    --logo-color: #1e293b;

    /* Hero glow */
    --hero-glow-opacity: 0.08;

    /* Tone down neon effects */
    --primary-glow: rgba(168, 85, 247, 0.2);
    --neon-text-shadow: none;
    --nav-active-shadow: none;
}


/* ============================================
   Reset & Base
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Outfit', sans-serif;
}

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

.hidden {
    display: none;
}


/* ============================================
   Glass Card Component
   ============================================ */

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease, background-color 0.4s ease,
        border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: var(--border-glass-hover);
}


/* ============================================
   Shared Components
   ============================================ */

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

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 0 auto;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 20px var(--primary-glow);
}

.btn-primary:hover {
    box-shadow: 0 15px 30px var(--primary-glow);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}


/* ============================================
   Navbar
   ============================================ */

.navbar {
    height: var(--nav-height);
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--logo-color);
    transition: color 0.4s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    text-shadow: var(--nav-active-shadow);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}


/* ============================================
   Theme Toggle Button
   ============================================ */

.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 0 16px var(--primary-glow);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease;
}

/* Dark mode: show sun icon (to switch to light) */
.theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

/* Light mode: show moon icon (to switch to dark) */
[data-theme="light"] .theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="light"] .theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}


/* ============================================
   Hero Section
   ============================================ */

.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 40px;
}

.hero-bg-glow {
    position: absolute;
    width: 40vw;
    height: 40vw;
    background: var(--primary);
    filter: blur(150px);
    opacity: var(--hero-glow-opacity);
    top: 10%;
    right: 5%;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.hero-content {
    text-align: left;
    margin-left: 0;
}

.hero-subtitle {
    color: var(--secondary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-role {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    height: 1.6em;
    display: flex;
    align-items: center;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.profile-card {
    max-width: 400px;
    margin-left: auto;
    margin-right: 0;
    text-align: center;
}

.profile-frame {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    border-radius: 50%;
    padding: 10px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    box-shadow: 0 0 30px var(--primary-glow);
}

.profile-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
    border-radius: 50%;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    background: #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary);
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

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


/* ============================================
   Sections Spacing
   ============================================ */

section {
    padding: 60px 0;
}


/* ============================================
   About
   ============================================ */

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 30px;
}

.about-card p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.focus-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.focus-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}


/* ============================================
   Skills
   ============================================ */

.skills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.skill-category h3 {
    margin-bottom: 25px;
    color: var(--secondary);
    font-size: 1.3rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-pill {
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 50px;
    background: var(--bg-skill-pill);
}

.skill-pill i {
    color: var(--primary);
}


/* ============================================
   Projects
   ============================================ */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    align-items: start;
}

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

.project-card:hover {
    transform: translateY(-5px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-header i {
    font-size: 1.8rem;
    color: var(--primary);
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    color: var(--text-muted);
    transition: 0.3s;
}

.project-links a:hover {
    color: var(--secondary);
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.project-bullets {
    margin-top: 0.5rem;
    padding-left: 1.2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    list-style: none;
}

.project-bullets li {
    margin-bottom: 0.5rem;
    position: relative;
}

.project-bullets li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: -1.2rem;
    font-weight: bold;
}

/* Collapsible Project Content */
.project-content-wrapper {
    position: relative;
    flex-grow: 1;
}

.project-content {
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: 4px;
}

.project-content.collapsed {
    max-height: 9.5em;
}

.project-content.expanded {
    max-height: none;
}

/* Gradient fade overlay */
.project-fade-overlay {
    position: relative;
    margin-top: -40px;
    height: 40px;
    background: linear-gradient(to bottom,
            transparent 0%,
            var(--fade-mid) 60%,
            var(--fade-end) 100%);
    pointer-events: none;
    transition: opacity 0.4s ease, margin-top 0.4s ease, height 0.4s ease,
        background 0.4s ease;
}

.project-content-wrapper.is-expanded .project-fade-overlay {
    opacity: 0;
    margin-top: 0;
    height: 0;
}

/* Read More / Show Less Button */
.project-read-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 0;
    margin-top: 4px;
    background: transparent;
    border: 1px solid var(--border-readmore);
    border-radius: 10px;
    color: var(--primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.project-read-more-btn:hover {
    background: var(--bg-readmore-hover);
    border-color: var(--primary);
    box-shadow: var(--shadow-readmore);
    transform: translateY(-1px);
}

.project-read-more-btn .btn-icon {
    font-size: 0.75rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-read-more-btn.active .btn-icon {
    transform: rotate(180deg);
}

/* No truncation needed */
.project-content-wrapper.no-truncate .project-fade-overlay,
.project-content-wrapper.no-truncate .project-read-more-btn {
    display: none;
}

.project-content-wrapper.no-truncate .project-content.collapsed {
    max-height: none;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.project-tech span {
    font-size: 0.8rem;
    color: var(--secondary);
    background: var(--bg-tech-pill);
    padding: 4px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.project-tech span:hover {
    background: var(--bg-tech-pill-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-tech);
}


/* ============================================
   Video Showcase
   ============================================ */

.showcase {
    background: var(--bg-showcase);
    transition: background-color 0.4s ease;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-glass);
}

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

.video-item h3 {
    text-align: center;
    font-size: 1.2rem;
    color: var(--secondary);
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   Timeline (Experience)
   ============================================ */

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.timeline-item {
    margin-left: 60px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -48px;
    top: 24px;
    width: 16px;
    height: 16px;
    background: var(--timeline-dot-bg);
    border: 3px solid var(--primary);
    border-radius: 50%;
    transition: background-color 0.4s ease;
}

.timeline-date {
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 5px;
}

.timeline-role {
    font-size: 1.4rem;
}

.timeline-company {
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 500;
}

.timeline-points {
    list-style: none;
    color: var(--text-muted);
}

.timeline-points li::before {
    content: '→';
    margin-right: 10px;
    color: var(--primary);
}


/* ============================================
   Automations Grid
   ============================================ */

.auto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.auto-card {
    text-align: center;
}

.auto-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.auto-card h3 {
    margin-bottom: 10px;
}

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


/* ============================================
   Contact
   ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

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

.contact-info p {
    margin-bottom: 40px;
    color: var(--text-muted);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.method {
    display: flex;
    align-items: center;
    gap: 15px;
}

.method i {
    color: var(--primary);
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 20px;
}

input,
textarea {
    width: 100%;
    padding: 15px;
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-input);
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    border-color: var(--primary);
    background: var(--bg-input-focus);
}

/* Form message styles */
.success-msg {
    padding: 12px;
    border-radius: 8px;
    margin-top: 16px;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.error-msg {
    padding: 12px;
    border-radius: 8px;
    margin-top: 16px;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}


/* ============================================
   Show All Button
   ============================================ */

.show-all-container {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.btn-show-all {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1.5px solid var(--border-glass);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-show-all::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 1.5px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));

    /* Standard property (Firefox, modern spec) */
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    /* WebKit support (Chrome, Safari) */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    /* Composite rules */
    mask-composite: exclude;
    -webkit-mask-composite: xor;

    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}


.btn-show-all:hover::before {
    opacity: 1;
}

.btn-show-all:hover {
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px var(--primary-glow),
        0 4px 12px var(--secondary-glow);
    background: var(--bg-card-hover);
}

.btn-show-all i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.btn-show-all:hover i {
    transform: translateX(5px);
}


/* ============================================
   Subpage Hero & Header
   ============================================ */

.subpage-hero {
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 20px;
}

.subpage-header {
    text-align: center;
}

.subpage-header .section-title {
    margin-top: 16px;
}

.subpage-header .section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 8px;
    margin-bottom: 16px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid var(--border-readmore);
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.back-link:hover {
    background: var(--bg-readmore-hover);
    border-color: var(--primary);
    box-shadow: var(--shadow-readmore);
    transform: translateX(-4px);
}

.back-link i {
    transition: transform 0.3s ease;
}

.back-link:hover i {
    transform: translateX(-4px);
}


/* ============================================
   Empty State
   ============================================ */

.empty-state {
    text-align: center;
    padding: 60px 30px;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 1.1rem;
}


/* ============================================
   Footer
   ============================================ */

footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-glass);
    text-align: center;
    color: var(--text-muted);
    transition: border-color 0.4s ease;
}


/* ============================================
   Animations
   ============================================ */

.typed-text {
    color: var(--primary);
    font-weight: 700;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--primary);
    animation: blink 0.7s infinite;
}

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

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}


/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .navbar .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .profile-card {
        margin: 0 auto;
    }

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

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

    /* Theme toggle in mobile nav */
    .theme-toggle {
        width: 40px;
        height: 40px;
    }

    /* Show All button mobile */
    .btn-show-all {
        padding: 12px 28px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    .show-all-container {
        margin-top: 32px;
    }

    /* Subpage mobile */
    .subpage-hero {
        padding-top: calc(var(--nav-height) + 30px);
    }

    .subpage-header .section-title {
        font-size: 1.8rem;
    }

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