/* ==========================================================================
   Premium Agency Portfolio - Natan Nunes
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-dark: #050505;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border-color: rgba(255, 255, 255, 0.08);
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary: #a855f7;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Custom Cursor Glow */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    transition: transform 0.1s ease;
}

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

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

.section {
    padding: 8rem 0;
}

.relative {
    position: relative;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Glassmorphism */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

/* Background Blurs */
.bg-blur {
    position: absolute;
    width: 40vw;
    height: 40vw;
    max-width: 500px;
    max-height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.15;
}

.bg-blur.left {
    background: var(--primary);
    left: -10%;
    top: 20%;
}

.bg-blur.right {
    background: var(--secondary);
    right: -10%;
    top: 50%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 100px;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-dark);
}

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

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-accent {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    color: var(--text-main);
    border: 1px solid rgba(99, 102, 241, 0.4);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    z-index: 1000;
    padding: 1rem 2rem;
    border-radius: 100px;
    transition: var(--transition-slow);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-main);
}

.btn-contact {
    background: var(--text-main);
    color: var(--bg-dark);
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
}

.btn-contact:hover {
    color: var(--bg-dark);
    background: #e2e8f0;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-main);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 120px;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

.hero-bg-glow {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.05) 40%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

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

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px #10b981;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-inline: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.scroll-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-chevrons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: -8px;
}

.scroll-chevron {
    color: var(--text-muted);
    animation: scrollBounce 2s infinite ease-in-out;
}

.scroll-chevron:nth-child(2) {
    margin-top: -10px;
    animation-delay: 0.15s;
    opacity: 0.5;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    50% {
        transform: translateY(6px);
        opacity: 1;
    }
}

/* Section Headers */
.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-heading {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-subheading {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.about-text .lead {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

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

/* Tools & Technologies Box */
.tools-container {
    margin-top: 2.5rem;
    padding: 1.5rem 1.75rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    width: 100%;
}

.tools-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    letter-spacing: -0.01em;
}

.tools-title svg {
    color: var(--primary);
    flex-shrink: 0;
}

.tools-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.tool-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.tool-category {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tool-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.82rem;
    color: var(--text-main);
    transition: var(--transition-fast);
    font-weight: 500;
    line-height: 1.3;
}

.tool-tag:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 3rem;
}

.stat-item h3 {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

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

.service-card {
    padding: 2.5rem;
    transition: var(--transition-slow);
}

.service-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.15);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
}

/* Portfolio */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-body);
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--text-main);
    color: var(--bg-dark);
}

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
}

.portfolio-item {
    overflow: hidden;
    position: relative;
    border-radius: 16px;
    aspect-ratio: 4/3;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    position: relative;
}

.portfolio-img img,
.portfolio-img video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-item:hover img,
.portfolio-item:hover video {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: var(--transition-slow);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.category-tag {
    align-self: flex-start;
    background: var(--primary);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: var(--transition-slow);
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    transform: translateY(20px);
    transition: var(--transition-slow);
    transition-delay: 0.1s;
}

.view-project {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: var(--transition-slow);
    transition-delay: 0.2s;
}

.view-project svg {
    width: 20px;
    height: 20px;
}

.portfolio-item:hover .category-tag,
.portfolio-item:hover h3 {
    transform: translateY(0);
}

.portfolio-item:hover .view-project {
    transform: scale(1);
}

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

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    background: var(--bg-dark);
    /* override glass slightly */
    z-index: 2;
    border: 2px solid var(--border-color);
}

.timeline-content {
    width: calc(50% - 50px);
    padding: 2rem;
}

.timeline-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.timeline-content p {
    color: var(--text-muted);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
}

.testimonial-card {
    padding: 3rem;
    position: relative;
}

.quote-icon {
    width: 40px;
    height: 40px;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info h4 {
    font-size: 1rem;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Contact */
.contact-wrapper {
    padding: 4rem;
    text-align: center;
}

.contact-info p {
    color: var(--text-muted);
    max-width: 500px;
    margin: 1.5rem auto 3rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    transition: var(--transition-fast);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

.social-btn:hover {
    transform: translateY(-5px);
}

.social-btn.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
}

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

.social-btn.instagram:hover {
    background: #E1306C;
    border-color: #E1306C;
    color: #fff;
}

.social-btn.facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
    color: #fff;
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
}

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

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

/* Animations & Reveal Classes */
.reveal,
.reveal-left,
.reveal-right,
.hover-up {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.hover-up {
    transform: translateY(20px);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active,
.hover-up.active {
    opacity: 1;
    transform: translate(0);
}

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

    .about-stats {
        order: -1;
    }

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

    .timeline-icon {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px;
    }

    .timeline-item:nth-child(even) {
        flex-direction: row;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    }

    .portfolio-gallery {
        grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    }

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

@media (max-width: 768px) {

    /* General mobile spacing */
    .section {
        padding: 4rem 0;
    }

    .container {
        width: 92%;
    }

    /* Disable cursor glow on touch devices */
    .cursor-glow {
        display: none;
    }

    /* Navbar mobile */
    .navbar {
        width: 92%;
        padding: 0.8rem 1.2rem;
        top: 0.5rem;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 1.5rem;
        border: 1px solid var(--border-color);
        border-radius: 16px;
        flex-direction: column;
        display: none;
        margin-top: 0.5rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .nav-link {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 12px;
        font-size: 1rem;
        transition: background 0.2s;
    }

    .nav-link:hover,
    .nav-link:active {
        background: rgba(255, 255, 255, 0.05);
    }

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

    .btn-contact {
        text-align: center;
        width: 100%;
        display: block;
        padding: 0.8rem 1.2rem;
    }

    /* Hero mobile */
    .hero {
        padding-top: 100px;
        min-height: 100svh;
    }

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

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        justify-content: center;
    }

    .hero-bg-glow {
        width: 100%;
        height: 100%;
    }

    .scroll-indicator {
        bottom: 1.5rem;
    }

    /* Reduce reveal animation distances on mobile */
    .reveal {
        transform: translateY(20px);
    }

    .reveal-left {
        transform: translateX(-20px);
    }

    .reveal-right {
        transform: translateX(20px);
    }

    .hover-up {
        transform: translateY(10px);
    }

    /* About mobile */
    .about-text .lead {
        font-size: 1.1rem;
    }

    .about-stats {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .stat-item h3 {
        font-size: 2.2rem;
    }

    .stat-item p {
        font-size: 0.8rem;
    }

    .tech-stack {
        gap: 0.4rem;
    }

    .tech-stack span {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    /* Services mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-card:hover {
        transform: none;
    }

    .service-card h3 {
        font-size: 1.25rem;
    }

    /* Portfolio mobile */
    .portfolio-filters {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .portfolio-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .portfolio-item {
        border-radius: 12px;
    }

    /* Always show overlay on mobile (no hover) */
    .portfolio-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0) 100%);
        padding: 1.5rem;
    }

    .category-tag,
    .portfolio-overlay h3 {
        transform: translateY(0);
    }

    .portfolio-overlay h3 {
        font-size: 1.2rem;
    }

    .view-project {
        transform: scale(1);
        width: 40px;
        height: 40px;
        top: 1rem;
        right: 1rem;
    }

    .portfolio-item:hover img,
    .portfolio-item:hover video {
        transform: none;
    }

    /* Section headers mobile */
    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-heading {
        margin-bottom: 0.75rem;
    }

    /* Timeline mobile */
    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
    }

    /* Testimonials mobile */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    /* Contact mobile */
    .contact-wrapper {
        padding: 2rem 1.2rem;
        border-radius: 12px;
    }

    .contact-info p {
        font-size: 0.95rem;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .social-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 0.9rem 1.5rem;
    }

    .social-btn:hover {
        transform: none;
    }

    /* Footer mobile */
    .footer {
        padding: 2rem 0;
        margin-top: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    /* Disable heavy hover effects on mobile */
    .service-card:hover {
        border-color: var(--border-color);
    }
}

/* Small phones */
@media (max-width: 400px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .hero-actions .btn {
        max-width: 100%;
        font-size: 0.9rem;
    }

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

    .stat-item h3 {
        font-size: 1.8rem;
    }

    .section-heading {
        font-size: 1.8rem;
    }

    .contact-wrapper {
        padding: 1.5rem 1rem;
    }

    .social-btn {
        max-width: 100%;
        font-size: 0.9rem;
    }
}

/* =========================================
   Project Subpage Styles
   ========================================= */
.project-header {
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition-fast);
}

.btn-back:hover {
    color: var(--primary);
    transform: translateX(-5px);
}

.project-details-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
    min-height: 60vh;
}

.project-media {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-media img,
.project-media video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.project-info {
    position: sticky;
    top: 120px;
}

.project-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.project-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

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

.error-message {
    text-align: center;
    padding: 10rem 0;
}

@media (max-width: 992px) {
    .project-details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-info {
        position: static;
    }
}

/* Video Modal Overlay */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.video-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.video-modal-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.video-modal-overlay.active .video-modal-container {
    transform: scale(1);
}

.video-modal-overlay video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.video-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10;
    transition: var(--transition-fast);
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .video-modal-container {
        width: 95%;
        border-radius: 8px;
    }

    .video-modal-close {
        top: 1rem;
        right: 1rem;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    z-index: 100;
}

.current-lang {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-main);
    transition: var(--transition-fast);
}

.current-lang:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 120px;
    padding: 0.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-fast);
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    text-align: left;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-main);
    transition: var(--transition-fast);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}

.lang-btn.active {
    color: var(--primary);
    background: rgba(0, 240, 255, 0.05);
}

/* Intro Splash Screen */
.intro-splash {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), visibility 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.intro-splash.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.intro-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.intro-animation.fade-out {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    position: absolute;
}

.intro-name {
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.3s;
}

.intro-role {
    color: var(--text-muted);
    font-size: clamp(1rem, 2vw, 1.5rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 1.2s;
}

.intro-lang-select {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.intro-lang-select.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.intro-lang-texts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.intro-lang-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-main);
}

.intro-lang-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.intro-lang-options {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.lang-select-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lang-select-btn:hover {
    background: var(--text-main);
    color: var(--bg-dark);
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}