/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== FLEXBOX FALLBACKS FOR OLDER BROWSERS ===== */
@supports not (display: flex) {
    .footer-cta .container > div,
    .footer-section,
    .social-links {
        text-align: center;
    }

    .footer-cta .container > div > div {
        text-align: center;
    }

    .footer-cta .container > div > div > * {
        display: inline-block;
        margin: 0.5rem;
    }
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: 1rem;
    color: #cccccc;
}

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

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: #ffd700;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

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

.bar {
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: 0.3s;
    border-radius: 2px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 800px;
    padding: 0 2rem;
}

.title-card {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid rgba(255, 215, 0, 0.3);
    padding: 3rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease-out;
}

.hero-name {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #cccccc;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.hero-contact {
    font-size: 1.3rem;
    color: #999999;
    margin-bottom: 1rem;
}

.hero-stats {
    font-size: 0.9rem;
    color: #aaaaaa;
    line-height: 1.4;
}

.hero-tagline {
    font-size: clamp(0.7rem, 2.0vw, 1.0rem);
    color: #ffd700;
    margin: 2rem 0;
    font-style: italic;
    font-weight: 500;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 3rem 0 0 0;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-projects {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin: 2.5rem 0 1.5rem 0;
    flex-wrap: wrap;
    position: relative;
    padding-top: 1.5rem;
}

.hero-projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.6), transparent);
    border-radius: 1px;
}

.project-box {
    padding: 1rem 1.8rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 215, 0, 0.05));
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.project-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.project-box:hover::before {
    left: 100%;
}

.project-box:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 255, 255, 0.08));
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.project-box:active {
    transform: translateY(-1px) scale(1.01);
}

@media (max-width: 768px) {
    .hero-projects {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
        margin: 2rem 0 1.5rem 0;
        padding-top: 1.5rem;
    }

    .project-box {
        width: 280px;
        max-width: calc(100vw - 2rem);
        padding: 1.2rem 2rem;
        font-size: 1rem;
    }

    /* Make hero stats smaller on mobile */
    .hero-stats {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.3rem !important;
    }

    /* Make hero tagline bigger on mobile */
    .hero-tagline {
        font-size: clamp(1.1rem, 3.5vw, 1.3rem) !important;
        line-height: 1.5 !important;
        margin: 2.5rem 0 !important;
    }
}

@media (max-width: 480px) {
    .hero-projects {
        margin: 1.5rem 0 1rem 0;
        padding-top: 1.2rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .project-box {
        width: auto;
        min-width: 90px;
        max-width: 110px;
        padding: 0.6rem 0.8rem;
        font-size: 0.75rem;
        text-align: center;
        line-height: 1.2;
    }

    /* Make hero stats even smaller on small mobile */
    .hero-stats {
        font-size: 0.65rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.2rem !important;
    }

    /* Ensure hero tagline stays prominent on small mobile */
    .hero-tagline {
        font-size: clamp(1.0rem, 4vw, 1.2rem) !important;
        line-height: 1.4 !important;
        margin: 2rem 0 !important;
        padding: 0 0.5rem !important;
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000000;
    border-color: #ffd700;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    color: #ffd700;
    border: 2px solid #ffd700;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #ffd700;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* ===== SECTIONS ===== */
.section {
    padding: 6rem 0;
}

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

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 2px;
}

/* ===== DEMO REEL SECTION ===== */
.demo-reel {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.video-container video {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.video-container video:hover {
    box-shadow: 0 25px 50px rgba(255, 215, 0, 0.3);
}

/* Custom Play Button Overlay */
.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    z-index: 10;
}

.video-play-overlay:hover {
    background: rgba(0, 0, 0, 0.7);
}

.video-play-button {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    font-size: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.video-play-overlay:hover .video-play-button {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6);
}

.video-play-button i {
    margin-left: 4px; /* Slightly offset to center the triangle visually */
}

/* Hide overlay when video is playing */
.video-container.playing .video-play-overlay {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.video-placeholder {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cccccc;
    font-size: 1.2rem;
    border: 2px dashed rgba(255, 215, 0, 0.3);
}

.video-caption {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.1rem;
    color: #cccccc;
}

/* ===== HIGHLIGHTS CAROUSEL ===== */
.highlights {
    padding: 6rem 0;
}

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

.highlight-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
}

.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
}

.highlight-icon {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 1.5rem;
}

.highlight-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.highlight-desc {
    color: #cccccc;
    font-size: 1rem;
}

.highlight-image {
    margin-top: 1.5rem;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 16/9;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.highlight-card:hover .highlight-image {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.2);
}

.highlight-card:hover .highlight-image img {
    transform: scale(1.05);
}

/* ===== BIO SECTION ===== */
.bio {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6rem 0;
}

.bio-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cccccc;
}

/* ===== ABOUT PAGE ===== */
.about-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

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

.headshot-container {
    position: relative;
}

.headshot {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 215, 0, 0.3);
}

.headshot-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cccccc;
    font-size: 1.2rem;
    border: 2px dashed rgba(255, 215, 0, 0.3);
}

.bio-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cccccc;
}

.bio-text h2 {
    color: #ffffff;
    margin-bottom: 2rem;
}

/* ===== TRAINING & SKILLS ===== */
.training-skills {
    padding: 6rem 0;
}

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

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
}

.skill-category h4 {
    color: #ffd700;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    color: #cccccc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-category li:last-child {
    border-bottom: none;
}

/* ===== REEL PAGE ===== */
.reel-hero {
    padding: .5rem 0 1rem 0;
    text-align: center;
}

.reel-video {
    max-width: 900px;
    margin: .5rem auto;
}

.scene-breakdown {
    margin-top: .5rem;
    overflow-x: auto;
}

.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.breakdown-table th,
.breakdown-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breakdown-table th {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    font-weight: 600;
}

.breakdown-table td {
    color: #cccccc;
}

/* ===== GALLERY PAGE ===== */
.gallery-section {
    margin: 4rem 0;
}

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

.gallery-item {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-item img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.gallery-item:hover {
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
    transform: translateY(-5px);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cccccc;
    border: 2px dashed rgba(255, 215, 0, 0.3);
}

/* ===== CONTACT PAGE ===== */
.contact-hero {
    padding: 4rem 0;
    text-align: center;
}

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

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 3rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffd700;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    padding: 2rem;
}

.contact-method {
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #ffd700;
}

.contact-method h4 {
    color: #ffd700;
    margin-bottom: 1rem;
}

.contact-method p {
    color: #cccccc;
    margin-bottom: 0.5rem;
}

.contact-method a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-method a:hover {
    color: #ffd700;
}

.social-profiles {
    margin-top: 2rem;
}

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

.social-link {
    display: block;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #ffd700;
    transform: translateY(-2px);
}

.social-link i {
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 0.5rem;
    display: block;
}

/* ===== FOOTER CTA ===== */
.footer-cta {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    padding: 4rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    text-align: center;
}

.footer-cta h2 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    text-align: center;
}

.footer-cta p {
    color: #cccccc;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    text-align: center;
}

.footer-cta .container > div {
    text-align: center;
}

.footer-cta .container > div > div {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
    background: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.footer-section h3,
.footer-section h4 {
    color: #ffd700;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #cccccc;
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cccccc;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffd700;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #ffd700;
    color: #000000;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999999;
}

/* ===== MOBILE NAVIGATION STYLES ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        padding: 2rem 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu .nav-link {
        padding: 1rem 2rem;
        margin: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .nav-menu .nav-link:last-child {
        border-bottom: none;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
        position: relative;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

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

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

    /* Hero and CTAs mobile adjustments */
    .hero-ctas {
        flex-direction: column;
        align-items: center;
        margin: 2.5rem 0 0 0;
        gap: 1.2rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        min-height: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(255, 215, 0, 0.3);
    }

    /* Layout adjustments */
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

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

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

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

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .gallery-item {
        min-height: 44px;
    }

    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 4rem 0;
    }

    .title-card {
        padding: 2rem;
    }

    /* Form improvements for mobile */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea {
        font-size: 16px;
    }

    .form-group input:focus,
    .form-group textarea:focus {
        transform: scale(1.02);
        transition: transform 0.2s ease;
    }
}

/* ===== MOBILE FOOTER IMPROVEMENTS ===== */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-cta {
        padding: 3rem 0;
        text-align: center;
    }

    /* AGGRESSIVE MOBILE CENTERING - HIGH SPECIFICITY */
    body .footer-cta div[style*="display: flex"],
    body .footer-cta .container div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    body .footer-cta .btn {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
        display: block !important;
    }

    /* Force center alignment for footer CTA content - ULTRA HIGH SPECIFICITY */
    body .footer-cta .container > div,
    body .footer-cta .container > div[style] {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
    }

    body .footer-cta h2,
    body .footer-cta p {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
    }

    /* Ensure footer sections are properly centered - HIGH SPECIFICITY */
    body .footer-section {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    body .footer-section h3,
    body .footer-section h4,
    body .footer-section p {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
    }

    /* Center social links - HIGH SPECIFICITY */
    body .social-links {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        margin: 1rem auto 0 auto !important;
        width: 100% !important;
        gap: 1rem !important;
    }

    /* Center footer bottom - HIGH SPECIFICITY */
    body .footer-bottom {
        text-align: center !important;
    }

    body .footer-bottom p {
        text-align: center !important;
        margin: 0 auto !important;
        width: 100% !important;
    }

    /* NUCLEAR OPTION - Force everything in footer to center */
    body .footer *,
    body .footer-cta * {
        text-align: center !important;
    }

    body .footer div,
    body .footer-cta div {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Exception for social links container - keep horizontal */
    body .social-links {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 1rem !important;
    }

    /* Exception for button containers to be horizontal if needed */
    body .footer-cta div[style*="display: flex"][style*="gap"] {
        flex-direction: column !important;
    }

    /* EMERGENCY DEBUG STYLES - UNCOMMENT TO SEE WHAT'S HAPPENING */
    /*
    body .footer-cta * {
        border: 2px solid red !important;
        background: rgba(255, 0, 0, 0.1) !important;
    }
    
    body .footer-section * {
        border: 2px solid blue !important;
        background: rgba(0, 0, 255, 0.1) !important;
    }
    
    body .footer-bottom * {
        border: 2px solid green !important;
        background: rgba(0, 255, 0, 0.1) !important;
    }
    */
}

/* ===== ULTIMATE MOBILE FOOTER CENTERING - PLACE AT END OF FILE ===== */
@media screen and (max-width: 768px) {
    /* Ultra-high specificity selectors */
    html body .footer-cta,
    html body .footer-cta .container,
    html body .footer-cta .container > div,
    html body .footer-cta .container > div[style] {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
        width: 100% !important;
    }

    html body .footer-cta h2,
    html body .footer-cta p,
    html body .footer-cta div[style*="display: flex"] {
        text-align: center !important;
        margin: 0 auto !important;
        width: 100% !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    html body .footer-cta .btn {
        display: block !important;
        margin: 0.5rem auto !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 280px !important;
    }

    html body .footer .footer-content,
    html body .footer .footer-section {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
    }

    html body .footer .footer-section h3,
    html body .footer .footer-section h4,
    html body .footer .footer-section p,
    html body .footer .footer-section a {
        text-align: center !important;
        margin: 0 auto !important;
        width: 100% !important;
    }

    html body .footer .social-links {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 1rem auto 0 auto !important;
        width: 100% !important;
        gap: 1rem !important;
    }

    html body .footer .footer-bottom,
    html body .footer .footer-bottom p {
        text-align: center !important;
        margin: 0 auto !important;
        width: 100% !important;
    }

    /* Fallback for any remaining elements */
    html body .footer *:not(script):not(i),
    html body .footer-cta *:not(script):not(i) {
        text-align: center !important;
    }
}

/* ===== MEDIUM MOBILE SCREENS (481px - 767px) ===== */
@media (min-width: 481px) and (max-width: 767px) {
    .hero-projects {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
        margin: 2rem 0 1.5rem 0;
    }

    .project-box {
        width: auto;
        min-width: 120px;
        max-width: 140px;
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
        text-align: center;
    }
}

/* ===== SMALLER MOBILE SCREENS ===== */
@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .title-card {
        padding: 1.5rem;
    }

    .hero-ctas {
        margin: 2rem 0 0 0;
        gap: 1rem;
    }

    .footer-cta {
        padding: 2rem 0;
    }

    .footer-cta h2 {
        font-size: 1.8rem;
    }

    /* Additional centering fixes for small screens */
    .footer-cta .container {
        padding: 0 1rem;
    }

    .footer-cta .container > div {
        text-align: center !important;
    }

    .footer-cta .container > div > div {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }

    .footer-section {
        padding: 1rem !important;
        text-align: center !important;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1.2rem !important;
        text-align: center !important;
    }

    .footer-section p {
        font-size: 1rem !important;
        text-align: center !important;
    }

    .social-links {
        justify-content: center !important;
        gap: 0.8rem;
    }

    .footer-bottom {
        padding-top: 1.5rem !important;
        text-align: center !important;
    }
}

/* ===== MOBILE LANDSCAPE ORIENTATION ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .footer-cta {
        padding: 2rem 0;
    }

    .footer-cta h2 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .footer-cta p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .footer-cta .container > div > div {
        flex-direction: row !important;
        gap: 1rem !important;
        justify-content: center !important;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }
}

/* ===== FORCE CENTERING UTILITY CLASSES ===== */
.text-center-mobile {
    text-align: center !important;
}

.flex-center-mobile {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

@media (max-width: 768px) {
    .mobile-center {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .mobile-center * {
        text-align: center !important;
    }

    /* Additional utility classes for debugging */
    .debug-center {
        border: 2px solid red !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Force center any remaining problematic elements */
    .footer-cta,
    .footer-cta *,
    .footer-section,
    .footer-section *,
    .footer-bottom,
    .footer-bottom * {
        text-align: center !important;
    }

    .footer-cta .container,
    .footer-cta .container > div {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .footer-cta .container > div > div {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1rem !important;
    }
}
