:root {
    --bg-dark: #22252A;
    --text-light: #f5f5f5;
    --text-muted: #888888;
    --accent: #A9C9EE;
    /* Soft Blue accent */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --cursor-size: 10px;
}

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

html {
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.5;
    overflow-x: hidden;
    /* Hide scrollbar for clean look */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

h1,
h2,
h3,
h4,
.logo,
.mega-link {
    font-family: var(--font-heading);
    font-weight: 600;
}

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

/* Typography utilities */
.accent {
    color: var(--accent);
    font-style: italic;
    font-weight: 800;
}

/* Custom Cursor */
body {
    cursor: none;
}

.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--cursor-size);
    height: var(--cursor-size);
    background-color: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor.active {
    width: 60px;
    height: 60px;
    background-color: var(--text-light);
    mix-blend-mode: difference;
}

.cursor-follower.active {
    opacity: 0;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.preloader-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    gap: 0.5rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.preloader-text span {
    transform: translateY(100%);
}

.preloader-progress {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: var(--text-light);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 100;
    mix-blend-mode: difference;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.menu-toggle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Basics */
.section {
    position: relative;
    padding: 6rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-bottom: 4rem; /* Buffer for scrolling */
}





.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding-top: 5vh;
}

@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 4rem;
        padding-top: 15vh;
        padding-bottom: 5vh;
    }
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    perspective: 1000px;
    z-index: 1;
    opacity: 0; /* For GSAP initial animation */
    transform: translateY(20px);
}

@media (max-width: 992px) {
    .hero-visual {
        justify-content: center;
        width: 100%;
    }
}

/* iPhone Frame */
.iphone-frame {
    position: relative;
    width: 320px;
    height: 650px;
    background-color: #000;
    border-radius: 45px;
    border: 12px solid #000;
    overflow: visible;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out; /* Smooth transition for 3D mouse effect */
    margin-right: 2rem;
}

.iphone-layer {
    position: absolute;
    inset: -12px;
    border-radius: 45px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    pointer-events: none;
}

@media (max-width: 992px) {
    .iphone-frame {
        width: 250px;
        height: 520px;
        margin-right: 0;
    }
}

.iphone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateZ(1px);
    width: 130px;
    height: 30px;
    background-color: #000;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 10;
}

@media (max-width: 992px) {
    .iphone-notch {
        width: 100px;
        height: 25px;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }
}

.iphone-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 34px; /* Slightly less than frame-radius - border */
    transform: translateZ(0.5px);
}

.hero-title {
    font-size: clamp(3rem, 10vw, 9rem);
    line-height: 0.9;
    letter-spacing: -2px;
    text-transform: uppercase;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .word {
    display: inline-block;
    transform: translateY(100%);
    /* Initial state for animation */
}

.hero-subtitle {
    margin-top: 2rem;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-muted);
    max-width: 500px;
    opacity: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
}

.scroll-line {
    width: 50px;
    height: 1px;
    background: var(--text-light);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transform: translateX(-100%);
    animation: scrollLine 2s infinite ease-in-out;
}

@keyframes scrollLine {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Work Section */
.work {
    height: 100dvh;
    padding-top: 6rem;
    /* Space for nav */
    padding-bottom: 2rem;
    /* Keep items close to bottom */
    display: flex;
    flex-direction: column;
}

.work-header {
    margin-bottom: 1rem;
}

.work-header h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.work-header .badge {
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 50px;
    padding: 0.2rem 0.8rem;
}

.work-gallery-wrapper {
    flex: 1;
    min-height: 0;
    width: 100%;
    overflow: hidden;
}

.work-gallery {
    display: flex;
    height: 100%;
    gap: 2rem;
    /* We'll use GSAP for horizontal scroll */
    width: max-content;
    padding-right: 10vw;
}

.work-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.work-video-wrapper {
    height: 65dvh;
    max-height: 800px;
    width: auto;
    aspect-ratio: 9/16;
    overflow: hidden;
    margin-bottom: 1rem;
    border-radius: 12px;
}

.work-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.work-item:hover .work-video {
    transform: scale(1.05);
}

.work-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.work-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Packages Section */
.packages {
    margin: 5rem 2rem;
}

.packages-header {
    text-align: center;
    margin-bottom: 4rem;
}

.packages-header h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.packages-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

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

.package-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    transition: transform 0.3s, background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.package-card:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.package-card.package-test {
    background-color: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.package-card.package-test:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.package-card.featured {
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--accent);
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(169, 201, 238, 0.05);
    z-index: 2;
}

.package-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 0 50px rgba(169, 201, 238, 0.15);
}

@media (max-width: 1200px) {
    .package-card.featured {
        transform: none;
    }

    .package-card.featured:hover {
        transform: translateY(-8px);
    }
}

.card-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent);
    color: var(--bg-dark);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.package-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-family: var(--font-heading);
}

.package-card .price {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--accent);
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.package-card .price .price-period {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

.highlight-badge {
    display: inline-block;
    background: rgba(169, 201, 238, 0.1);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(169, 201, 238, 0.2);
    align-self: flex-start;
}

.package-card .features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.package-card .features li {
    padding: 0.6rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.package-card .features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
    margin-top: 0.1rem;
}

.package-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.pkg-btn {
    display: block;
    text-align: center;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: auto;
    font-family: var(--font-heading);
    cursor: none;
}

.pkg-btn-primary {
    background: var(--accent);
    color: var(--bg-dark);
    border: 1px solid var(--accent);
}

.pkg-btn-primary:hover {
    background: transparent;
    color: var(--text-light);
}

.pkg-btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pkg-btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(169, 201, 238, 0.05);
}

.packages-footnote {
    text-align: center;
    margin-top: 4rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.custom-collab-block {
    text-align: center;
    margin-top: 4rem;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-collab-block h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    color: var(--text-light);
}

.custom-collab-block p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-inline: auto;
}

.custom-collab-block .pkg-btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
}


/* Footer Section */
.footer {
    text-align: center;
    justify-content: space-between;
    padding-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.4;
    /* Fade images into bg */
}

.footer-images {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.footer-images img {
    width: 30%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 12px;
    filter: grayscale(50%);
    /* Stylistic choice to blend better */
    transition: filter 0.5s;
}

.footer-images img:nth-child(2) {
    transform: translateY(-2rem);
    /* Slight offset for middle image */
}

.footer-content {
    margin: auto 0;
    position: relative;
    z-index: 1;
    /* Place text above images */
}

.footer-content h2 {
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1;
    margin-bottom: 3rem;
}

.mega-link {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    display: inline-block;
    position: relative;
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    transition: background 0.3s, color 0.3s;
}

.mega-link:hover {
    background: var(--text-light);
    color: var(--bg-dark);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.socials {
    display: flex;
    gap: 2rem;
}

.socials a {
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.socials a:hover {
    color: var(--text-light);
}

/* Lenis Recommendation */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}