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

:root {
    --primary-dark: #000000;
    --primary-light: #ffffff;
    --text-medium: #666666;
    --bg-subtle: #f5f5f5;
    --accent-dark: #1a1a1a;
    --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-base: 0.4s;
    --duration-fast: 0.2s;
}

html {
    scroll-behavior: smooth;
}

html.fp-enabled,
.fp-enabled body {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    font-family: var(--font-stack);
    color: var(--primary-dark);
    background: var(--primary-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body.loading {
    overflow: hidden;
    height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--duration-fast) ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

::selection {
    background: var(--primary-dark);
    color: var(--primary-light);
}

/* Layout */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all var(--duration-base) var(--ease-smooth);
    pointer-events: none;
}

.main-header * {
    pointer-events: auto;
}

.nav-wrapper {
    padding: 1.5rem 0;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--primary-dark);
}

.nav-menu {
    gap: 2rem;
}

.nav-item {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-dark);
    position: relative;
    padding: 0.5rem 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-dark);
    transition: width var(--duration-base) var(--ease-smooth);
}

.nav-item:hover::after {
    width: 100%;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-cta,
.btn-submit {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary-dark);
    color: var(--primary-light);
    border: 2px solid var(--primary-dark);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    transition: all var(--duration-base) var(--ease-smooth);
    cursor: pointer;
}

.btn-primary:hover,
.btn-cta:hover,
.btn-submit:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    color: var(--primary-light);
}

/* Hero */
@media (min-width: 992px) {
    .hero-area {
        padding: 0;
    }

    .hero-area .container {
        height: 100%;
        display: flex;
        align-items: center;
        padding-top: 80px;
        padding-bottom: 60px;
    }
}

.hero-area {
    padding: 80px 0 60px;
}

.hero-area .container {
    display: flex;
    align-items: center;
}

.hero-heading {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    opacity: 0;
    transform: translateY(30px);
}

.hero-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 2rem;
    max-width: 500px;
    opacity: 0;
    transform: translateY(30px);
}

.btn-cta {
    opacity: 0;
    transform: translateY(30px);
}

.hero-visual {
    height: 500px;
    z-index: 10;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.1s ease-out;
}

@media (min-width: 992px) {
    .hero-visual {
        position: relative;
    }
}

.visual-placeholder,
.media-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.media-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.media-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* Fullpage Sections */
.section {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

.hero-area,
.about-area,
.philosophy-area,
.services-area,
.contact-area,
.work-showcase,
.site-footer {
    padding: 60px 0;
}

.site-footer {
    align-items: flex-start;
}

@media (min-width: 992px) {
    .hero-area,
    .about-area,
    .philosophy-area,
    .services-area,
    .contact-area,
    .work-showcase,
    .site-footer {
        padding: 40px 0;
    }
}

/* Mobile fallback */
.no-fullpage .section {
    height: auto;
    min-height: 100vh;
}

.container,
.container-fluid {
    padding-left: 4rem;
    padding-right: 4rem;
}

.section-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-medium);
}

.meta-year,
.meta-label,
.meta-brand {
    position: relative;
}

.meta-year::after,
.meta-label::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 15px;
    background: var(--text-medium);
}

.section-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.lead-paragraph {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: 1rem;
}

/* About */
.about-area {
    background: var(--bg-subtle);
}

.about-media {
    height: 300px;
    margin-bottom: 1rem;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.1s ease-out;
}

.about-content {
    padding: 2rem 0;
}

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

/* Featured Work */
@media (min-width: 992px) {
    .work-showcase {
        padding: 40px 0;
    }
}

.work-showcase {
    background: var(--primary-dark);
    color: var(--primary-light);
    padding: 60px 0;
}

.work-showcase .section-meta {
    color: rgba(255, 255, 255, 0.6);
}

.work-showcase .meta-year::after,
.work-showcase .meta-label::after {
    background: rgba(255, 255, 255, 0.6);
}

.showcase-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    text-align: center;
    margin: 3rem 0 5rem;
    letter-spacing: -1px;
}

.work-slider {
    position: relative;
    display: flex;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.slide-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 4rem;
}

.slide-content {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 4rem;
    align-items: center;
    padding: 0;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.slide-details {
    flex: 1;
    max-width: 450px;
}

.slide-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    line-height: 1.1;
}

.slide-description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.slide-specs {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.slide-media {
    height: 450px;
}

.slide-media .media-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-media .media-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    image-rendering: -webkit-optimize-contrast;
}

.btn-case-study {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-color: var(--primary-light);
}

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

.slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 4rem;
}

.nav-arrow {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--primary-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-smooth);
}

.nav-arrow:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-color: var(--primary-light);
}

.slide-counter {
    font-size: 1.2rem;
    font-weight: 600;
}

.slide-counter .current {
    font-size: 2rem;
}

/* Philosophy Grid */
.philosophy-area {
    background: var(--bg-subtle);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-card {
    background: var(--primary-light);
    padding: 1.5rem;
    border-radius: 15px;
    transition: all var(--duration-base) var(--ease-smooth);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.feature-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.feature-number {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 0.7rem;
}

.feature-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    line-height: 1.3;
}

.feature-card p {
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Services */
.services-area .process-wrapper {
    margin-top: 3rem;
}

.process-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.accordion {
    border: none;
}

.accordion-item {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: transparent;
}

.accordion-button {
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 0;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--primary-dark);
}

.accordion-button:focus {
    box-shadow: none;
}

.step-number {
    font-size: 0.8rem;
    color: var(--text-medium);
    margin-right: 0.8rem;
}

.accordion-body {
    padding: 0.7rem 0 1rem;
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Contact */
.contact-area {
    background: var(--bg-subtle);
}

.contact-intro {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-medium);
    margin-top: 1rem;
}

.contact-form {
    background: var(--primary-light);
    padding: 2rem;
    border-radius: 20px;
}

.contact-form .form-control {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    transition: all var(--duration-fast) ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.contact-form textarea {
    resize: none;
}

.form-check {
    margin: 1.5rem 0;
}

.form-check-input:checked {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: none;
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.indicator-item {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.4s ease;
}

.indicator-item.active {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: scale(1.3);
}

.indicator-item:hover {
    background: var(--primary-dark);
    transform: scale(1.2);
}

/* Footer */
.site-footer {
    background: var(--primary-dark);
    color: var(--primary-light);
    padding: 100px 0 50px;
}

.footer-brand {
    text-align: center;
    margin-bottom: 4rem;
}

.footer-title {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -2px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-menu {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-menu a,
.footer-link {
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--duration-fast) ease;
}

.footer-menu a:hover,
.footer-link:hover {
    color: var(--primary-light);
}

.footer-legal {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Hover Image */
.cursor-preview {
    position: fixed;
    width: 350px;
    height: 450px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    display: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    will-change: transform, opacity;
}

.cursor-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Custom Cursor */
.cursor-dot,
.cursor-ring {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    border-radius: 50%;
    transition: opacity 0.3s ease, transform 0.3s ease;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-light);
    transform: translate(-50%, -50%);
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-light);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

.cursor-ring.hover {
    width: 60px;
    height: 60px;
    opacity: 0.5;
}

/* Enhanced cursor on images */
[data-distortion]:hover ~ .cursor-dot,
[data-distortion]:hover ~ .cursor-ring,
.hero-visual:hover ~ .cursor-dot,
.hero-visual:hover ~ .cursor-ring,
.about-media:hover ~ .cursor-dot,
.about-media:hover ~ .cursor-ring {
    mix-blend-mode: difference;
}

.cursor-ring.on-image {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.3);
    border-width: 3px;
}

@media (min-width: 768px) {
    body,
    a,
    button,
    .feature-card,
    .slide-item,
    [data-magnetic] {
        cursor: none !important;
    }
}

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

/* fullPage.js control arrows */
.fp-controlArrow {
    top: 50%;
    margin-top: -38px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fp-controlArrow:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.fp-controlArrow.fp-prev {
    left: 2rem;
    border-width: 0 0 2px 2px;
    border-color: transparent transparent rgba(255, 255, 255, 0.7) rgba(255, 255, 255, 0.7);
}

.fp-controlArrow.fp-next {
    right: 2rem;
    border-width: 2px 2px 0 0;
    border-color: rgba(255, 255, 255, 0.7) rgba(255, 255, 255, 0.7) transparent transparent;
}

@media (max-width: 991px) {
    /* Disable fullpage on mobile */
    .hero-area,
    .content-section,
    .work-showcase,
    .site-footer {
        min-height: auto;
        height: auto;
    }
    
    .work-slider .slide-item {
        display: none;
    }
    
    .work-slider .slide-item:first-child {
        display: flex;
    }
    
    .fp-controlArrow {
        display: block !important;
    }

    .scroll-indicator {
        display: none;
    }

    .work-slider {
        display: block;
    }

    .slide-item {
        min-width: 100%;
        display: none;
        padding: 0;
    }

    .slide-item.active {
        display: block;
    }

    .container,
    .container-fluid {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .navbar-collapse {
        padding: 2rem 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-area {
        padding: 100px 0 40px;
    }
    
    .hero-visual {
        margin-top: 3rem;
        height: 300px;
    }
    
    .slide-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 100%;
    }
    
    .slide-details {
        max-width: 100%;
    }
    
    .slide-media {
        height: 350px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
        margin-top: 3rem;
    }
    
    .footer-title {
        font-size: 3rem;
    }
}

@media (max-width: 767px) {
    .container,
    .container-fluid {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .content-section {
        padding: 60px 0;
    }
    
    .section-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .meta-year::after,
    .meta-label::after {
        display: none;
    }
    
    .hero-heading {
        font-size: 2.5rem;
    }
    
    .section-heading {
        font-size: 1.8rem;
    }
    
    .showcase-title {
        font-size: 2rem;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .cursor-preview {
        display: none !important;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-animate {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-dark);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-light);
    letter-spacing: -2px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.loader-logo span {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: letterDrop 0.6s ease forwards;
}

@keyframes letterDrop {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto;
    overflow: hidden;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: var(--primary-light);
    animation: loadProgress 2s ease forwards;
}

@keyframes loadProgress {
    to { width: 100%; }
}

/* Text Scramble */
.text-scramble {
    display: inline-block;
}

.scramble-char {
    display: inline-block;
    animation: scrambleFlicker 0.1s ease;
}
orwards;
}

@keyframes loadProgress {
    to { width: 100%; }
}

/* Text Scramble */
.text-scramble {
    display: inline-block;
}

.scramble-char {
    display: inline-block;
    animation: scrambleFlicker 0.1s ease;
}
