﻿/*
=================================================================
    ULTIMATE 2030 FINAL STYLESHEET - ARYAN KHANNA PORTFOLIO
=================================================================
*/

/* --- 1. THEME, TYPOGRAPHY & BASE --- */
:root {
    --bg-dark: #0d0d0d;
    --bg-card: #1a1a1a;
    --text-primary: #f0f0f0;
    --text-secondary: #999999;
    --accent-gold: #bda071;
    --border-color: rgba(255, 255, 255, 0.1);
}

body.light-theme {
    --bg-dark: #f8f8f8;
    --bg-card: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #555555;
    --border-color: rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: background-color 0.4s ease, color 0.4s ease;
    cursor: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--text-primary);
}

.section {
    padding: 120px 0;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -1px;
}

.section-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

/* --- 2. NAVIGATION & HERO --- */
#mainNav {
    background-color: rgba(13, 13, 13, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
}

body.light-theme #mainNav {
    background-color: rgba(248, 248, 248, 0.7);
}

#mainNav .navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

#mainNav .nav-link {
    color: var(--text-secondary);
    font-weight: 600;
}

    #mainNav .nav-link:hover, #mainNav .nav-link.active {
        color: var(--accent-gold);
    }

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .hero::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to top, var(--bg-dark) 5%, transparent 50%);
        transition: background 0.4s ease;
    }

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-main-title {
    font-size: clamp(4rem, 10vw, 9rem);
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-transform: uppercase;
}

.hero-line {
    display: block;
    overflow: hidden;
}

    .hero-line span {
        display: block;
        transform: translateY(110%);
    }

/* --- 3. PORTFOLIO & "REVEAL EDIT" --- */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    display: block;
}

    .portfolio-item .image-container {
        position: relative;
        padding-bottom: 125%;
        height: 0;
    }

    .portfolio-item img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: opacity 0.6s ease;
    }

    .portfolio-item .after-image {
        opacity: 1;
    }

    .portfolio-item .before-image {
        opacity: 0;
    }

    .portfolio-item:hover .after-image {
        opacity: 0;
    }

    .portfolio-item:hover .before-image {
        opacity: 1;
    }

.portfolio-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-caption {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-caption h5 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(0,0,0,0.5);
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .video-play-icon {
    transform: translate(-50%, -50%) scale(1.2);
}

/* --- 4. HORIZONTAL SCROLL (Desktop Only) --- */
.horizontal-scroll-section {
    background-color: var(--bg-dark);
}

.sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.scroll-gallery {
    display: flex;
    height: 100%;
    width: max-content;
    align-items: center;
    padding: 0 5vw;
    will-change: transform;
}

.scroll-gallery-item {
    width: 70vw;
    height: 80vh;
    margin: 0 2.5vw;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

    .scroll-gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* --- 5. MOBILE-SPECIFIC STYLES --- */
.mobile-portfolio-swiper {
    display: none;
}

@media (max-width: 991px) {
    .horizontal-scroll-section {
        display: none;
    }

    .mobile-portfolio-swiper {
        display: block;
    }

    .swiper-slide-content {
        position: relative;
        border-radius: 15px;
        overflow: hidden;
    }

        .swiper-slide-content img {
            width: 100%;
            height: 70vh;
            object-fit: cover;
        }

    .swiper-slide-caption {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 1.5rem;
        background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
        color: #fff;
    }
}

/* --- 6. REDESIGNED SERVICES SECTION --- */
.service-card-v2 {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: #fff;
    border: 1px solid var(--border-color);
}

    .service-card-v2::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 20%, rgba(0,0,0,0.1) 100%);
        z-index: 1;
    }

.service-card-v2-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card-v2:hover .service-card-v2-bg {
    transform: scale(1.05);
}

.service-card-v2-content {
    position: relative;
    z-index: 2;
}

.service-card-v2 h3 {
    font-size: 2rem;
    color: #fff;
}

.service-card-v2 .price {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin: 0.5rem 0 1rem 0;
}

.service-card-v2 ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

    .service-card-v2 ul li {
        margin-bottom: 0.5rem;
        color: rgba(255,255,255,0.8);
    }

.btn-service {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    padding: 10px 25px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

    .btn-service:hover {
        background: var(--accent-gold);
        color: var(--bg-dark);
    }

/* --- 7. FUTURISTIC CONTACT SECTION --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

    .contact-card .icon {
        font-size: 2rem;
        color: var(--accent-gold);
        margin-bottom: 1rem;
    }

    .contact-card h4 {
        font-family: 'Inter', sans-serif;
        font-weight: 600;
        font-size: 1.1rem;
        color: var(--text-secondary);
    }

    .contact-card .contact-link {
        font-family: 'Playfair Display', serif;
        font-size: clamp(1.2rem, 3vw, 1.8rem);
        color: var(--text-primary);
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .contact-card .contact-link:hover {
            color: var(--accent-gold);
        }

.social-links-modern {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.social-link {
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .social-link:hover {
        color: var(--text-primary);
        background-color: var(--bg-card);
        border-color: var(--accent-gold);
    }

/* --- 8. SMOOTHNESS & POLISH --- */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.cursor, .cursor-follower {
    display: none;
}
/* Hide by default, show on desktop */
@media (min-width: 992px) {
    .cursor {
        display: block;
        position: fixed;
        width: 10px;
        height: 10px;
        background-color: var(--accent-gold);
        border-radius: 50%;
        top: 0;
        left: 0;
        pointer-events: none;
        z-index: 9999;
        mix-blend-mode: difference;
        transform: translate(-50%, -50%);
    }

    .cursor-follower {
        display: block;
        position: fixed;
        width: 40px;
        height: 40px;
        border: 1px solid var(--accent-gold);
        border-radius: 50%;
        top: 0;
        left: 0;
        pointer-events: none;
        z-index: 9999;
        mix-blend-mode: difference;
        transition: transform 0.3s ease-out, width 0.4s ease, height 0.4s ease, background-color 0.4s ease;
        transform: translate(-50%, -50%);
    }

    .cursor-hover {
        transform: scale(2.5);
        background-color: var(--accent-gold);
    }
}

img.lazyload {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

img.lazyloaded {
    opacity: 1;
}

.gsap-reveal {
    visibility: hidden;
}

.gsap-reveal-image {
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
}
