@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Mona+Sans:wght@300;400;700&display=swap');

:root {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --accent-color: #ffffff;
    --text-muted: #8a8a8a;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Mona Sans', sans-serif;
}

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

body {
    background-color: transparent;
    /* Changed from var(--bg-color) to let cinematic layer show */
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Navigation Tabs */
.nav-tabs {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    /* Dark background for better contrast */
    backdrop-filter: blur(20px);
    padding: 0.5rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-tab {
    padding: 0.8rem 1.5rem;
    color: #a0a0a0;
    /* Slightly brighter muted text */
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    /* Shadow for legibility */
}

.nav-tab:hover,
.nav-tab.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

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

.social-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #fff;
}

/* Cinematic Utilities (Layout) */
.section {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding-bottom: 8rem;
}

/* Cinematic Background System */
.cinematic-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    background: #000;
}

.cinematic-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1.5s ease-in-out;
}

#intro-video {
    z-index: 20;
    opacity: 1;
}

#intro-video.hidden {
    opacity: 0;
    pointer-events: none;
}

#idle-video {
    z-index: 10;
    opacity: 1;
    /* Brightness handled by overlay for better control */
}

.cinematic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Stronger darken for legibility */
    z-index: 25;
    /* Above idle video ANS intro video (20), below transition (30) */
    pointer-events: none;
}

#transition-video {
    z-index: 30;
    opacity: 0;
    pointer-events: none;
}

#transition-video.active {
    opacity: 1;
    pointer-events: auto;
}

#main-bg-image {
    z-index: 10;
    opacity: 1;
    /* Always visible underneath */
    transform: scale(1.05);
    /* Slight zoom for parallax room */
    transition: transform 0.1s linear;
    /* Smooth mouse tracking */
    /* Add a subtle dark overlay to ensure text readability */
    filter: brightness(0.6);
}

/* Content wrapper — always above cinematic layers */
.content-wrapper {
    position: relative;
    z-index: 40;
    max-width: 1200px;
    padding: 2rem;
    text-align: center;
}

#hero .content-wrapper {
    padding-top: 40vh;
    /* Push text down to reveal face */
}

.title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    /* Strong shadow for title */
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: #e0e0e0;
    /* Much brighter than var(--text-muted) */
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    /* Shadow for subtitle */
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 1.5rem;
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-cinematic {
    display: inline-block;
    padding: 1rem 2rem;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border-radius: 4px;
    cursor: pointer;
    background: none;
}

.btn-cinematic:hover {
    background: #fff;
    color: #000;
}

.project-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.project-desc {
    color: var(--text-muted);
}

/* Animations Reveal states (to be handled by GSAP) */
.reveal {
    opacity: 0;
    transform: translateY(50px);
}

.zoom-out {
    transform: scale(1.5);
    opacity: 0;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

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

.modal-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem;
    border-radius: 2rem;
    max-width: 1000px;
    width: 90%;
    position: relative;
    transform: translateY(50px);
    transition: transform 0.5s ease;
    overflow-y: auto;
    max-height: 90vh;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.modal-close:hover {
    opacity: 1;
}

.modal-body {
    text-align: left;
}

.modal-body h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    font-family: var(--font-heading);
}

.modal-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Carousel Styles */
.carousel-view {
    width: 100%;
    overflow: hidden;
    padding: 4rem 0;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    will-change: transform;
}

.carousel-item {
    width: 400px;
    flex-shrink: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-tabs {
        width: 90%;
        bottom: 1.5rem;
        padding: 0.5rem;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        /* Hide scrollbar */
        scrollbar-width: none;
    }

    .nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .nav-tab {
        font-size: 0.7rem;
        padding: 0.6rem 1rem;
        flex-shrink: 0;
        /* Prevent shrinking */
    }

    .title {
        font-size: 2.5rem;
        /* Smaller title on mobile */
    }
}

/* Hero Profile Container */
.hero-profile-container {
    position: absolute;
    right: 5%;
    top: 15%;
    width: 250px;
    height: auto;
    z-index: 50;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
}

.glass-card {
    position: relative;
    width: 190px;
    height: 190px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow:
        0 0 50px rgba(0, 0, 0, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.02),
        0 0 20px rgba(255, 255, 255, 0.05);
    /* Outer ambient glow */
    animation: float 6s ease-in-out infinite, breathing-glow 8s ease-in-out infinite;
    overflow: hidden;
}

.hero-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: contrast(1.1) brightness(0.9) saturate(1.1);
    transform: scale(1.1);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.glass-card:hover .hero-profile-img {
    transform: scale(1.15);
}

.tech-ring {
    position: absolute;
    width: 125%;
    height: 125%;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: spin 30s linear infinite;
    z-index: -1;
}

.tech-ring::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #fff;
    box-shadow: 0 0 15px #fff, 0 0 30px rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

/* Second Ring for Complexity */
.tech-ring-outer {
    position: absolute;
    width: 140%;
    height: 140%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: spin-reverse 45s linear infinite;
    z-index: -2;
}

@keyframes breathing-glow {

    0%,
    100% {
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.05);
    }

    50% {
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 255, 255, 0.15);
    }
}

@keyframes spin-reverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes float {

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

    50% {
        transform: translateY(-20px);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {

    /* Reposition Profile for Mobile */
    .hero-profile-container {
        display: flex;
        /* Show it! */
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        top: 12%;
        /* Top center */
        width: 140px;
        /* Reduced width */
    }

    .glass-card {
        width: 100px;
        /* Smaller photo */
        height: 100px;
    }

    .hero-profile-container .btn-cinematic {
        font-size: 0.6rem !important;
        padding: 0.6rem 1rem !important;
        margin-top: 1rem !important;
    }

    /* Adjust Hero Text Padding */
    #hero .content-wrapper {
        padding-top: 35vh;
        /* Less push down on mobile */
    }

    .title {
        font-size: 2.5rem;
    }

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

/* Social Sidebar Redesign */
.social-sidebar {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    z-index: 1000;
    padding: 1.5rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.social-sidebar-link {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.social-sidebar-link:hover {
    background: rgba(255, 255, 255, 1);
    color: #000;
    transform: scale(1.2) translateX(5px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 1);
}

/* WhatsApp Bubble Redesign */
.whatsapp-bubble {
    position: fixed;
    right: 40px;
    bottom: 40px;
    z-index: 1000;
}

.whatsapp-link {
    background: rgba(37, 211, 102, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: #fff;
    padding: 10px 22px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(37, 211, 102, 0.1);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    animation: magnet-pulse 4s ease-in-out infinite;
}

.whatsapp-link i {
    font-size: 1.4rem;
    color: #25d366;
    text-shadow: 0 0 10px rgba(37, 211, 102, 0.5);
}

.whatsapp-link:hover {
    background: rgba(37, 211, 102, 1);
    color: #fff;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

.whatsapp-link:hover i {
    color: #fff;
}

/* Projects Bubble */
.projects-bubble {
    position: fixed;
    right: 40px;
    bottom: 110px;
    z-index: 1000;
}

.projects-link {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 22px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    animation: magnet-pulse 4s ease-in-out infinite;
    animation-delay: 1s;
    /* Staggered from WhatsApp */
}

.projects-link i {
    font-size: 1.2rem;
    color: #fff;
}

.projects-link:hover {
    background: #fff;
    color: #000;
    transform: translateY(-5px) scale(1.02);
}

.projects-link:hover i {
    color: #000;
}

@keyframes magnet-pulse {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(37, 211, 102, 0.2);
    }
}

@media (max-width: 768px) {
    .social-sidebar {
        left: 15px;
        right: auto;
        padding: 1rem 0.5rem;
    }

    .social-sidebar-link {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .projects-bubble {
        right: 25px;
        bottom: 90px;
    }

    .projects-link span {
        display: none;
    }

    .projects-link {
        padding: 14px;
        border-radius: 50%;
    }

    .whatsapp-bubble {
        right: 25px;
        bottom: 25px;
    }

    .whatsapp-link span {
        display: none;
    }

    .whatsapp-link {
        padding: 14px;
        border-radius: 50%;
    }
}

/* ── PREDIUM UI OVERHAUL ──────────────────────────────────────────────── */

/* Glass Feature Cards (Services) */
.glass-feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2rem;
    padding: 3rem 2rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.glass-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.05),
            transparent);
    transition: 0.5s;
}

.glass-feature-card:hover::before {
    left: 100%;
}

.glass-feature-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.05);
}

.glass-feature-card-icon {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.4));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.5s ease;
}

.glass-feature-card:hover .glass-feature-card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Tech Pillars (Skills) */
.skill-pillar {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: left;
    transition: all 0.4s ease;
}

.skill-pillar:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.skill-pillar-title {
    font-size: 0.75rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    opacity: 0.5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.premium-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.4rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.premium-tag:hover {
    background: #fff;
    color: #000;
}

/* Cinematic Testimonial Slider */
.testimonial-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    -webkit-mask-image: linear-gradient(to right,
            transparent,
            black 10%,
            black 90%,
            transparent);
    mask-image: linear-gradient(to right,
            transparent,
            black 10%,
            black 90%,
            transparent);
}

.testimonial-track {
    display: flex;
    gap: 2rem;
    padding: 0 10vw;
    cursor: grab;
    will-change: transform;
}

.testimonial-track:active {
    cursor: grabbing;
}

.testimonial-card-premium {
    min-width: 400px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2rem;
    padding: 3rem;
    position: relative;
    transition: all 0.4s ease;
    user-select: none;
}

.testimonial-card-premium:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.quote-icon-premium {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 2rem;
    right: 2rem;
}

@media (max-width: 768px) {
    .testimonial-card-premium {
        min-width: 85vw;
        padding: 2rem;
    }

    .glass-feature-card {
        padding: 2rem 1.5rem;
    }
}