/*
===================================================================
VISUALS BY PHAYTH | OVERHAUL CSS v3.1 (Scroll Fix Edition)
===================================================================
* Removed JS-based gliding scroll.
* Enabled native, high-performance smooth scrolling (premium feel).
* The Endless Scrolling Fix is achieved by removing the scroll-container wrapper.
*/

/* == 1. :root Variables & Global Styles (STRICT B&W PALETTE) == */
:root {
    --color-primary: #000000; /* Black */
    --color-secondary: #ffffff; /* White */
    --color-light-bg: #f5f5f5; /* Light Grey Background */
    --color-border: #dddddd; /* Light Grey Border */
    --color-text-dark: #333333; /* Dark Grey Text */
    --color-text-light: #cccccc; /* Light Grey Text */
    
    --font-heading: 'Bebas Neue', cursive;
    --font-body: 'Montserrat', sans-serif; 
    --nav-height: 60px; 
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Base Setup for SMOOTH SCROLLING (Native/Premium Feel) */
html {
    /* RE-ENABLED native smooth scrolling */
    scroll-behavior: smooth; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--color-secondary); 
    color: var(--color-primary);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    margin: 0;
    overflow-x: hidden;
    /* Removed min-height/no-scroll fix logic */
}

/* Base Styles */
.container { 
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; 
}

section { 
    padding: 100px 0;
}

h1, h2, h3, .logo, .cta-button, .cta-button-outline {
    font-family: var(--font-heading);
    font-weight: normal;
    letter-spacing: 2px;
    margin-top: 0;
}

h1 {
    font-size: 5.5rem; 
    margin-bottom: 1rem;
    line-height: 1.1;
}

h2.section-title {
    font-size: 4rem;
    margin-bottom: 60px;
}

h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

p {
    font-size: 1rem;
    margin-bottom: 25px;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

img, video {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* CTA Buttons */
.cta-button, .cta-button-outline {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 15px 35px;
    border-radius: 50px;
    transition: all var(--transition-fast);
    margin: 5px;
    display: inline-block;
    cursor: pointer;
}

.cta-button { 
    background: var(--color-secondary); 
    color: var(--color-primary); 
    border: 2px solid var(--color-secondary);
}
.cta-button:hover { 
    background: transparent; 
    color: var(--color-secondary); 
    border-color: var(--color-secondary); 
}
.cta-button-outline { 
    background: transparent;
    color: var(--color-secondary); 
    border: 2px solid var(--color-secondary); 
}
.cta-button-outline:hover { 
    background: var(--color-secondary); 
    color: var(--color-primary); 
    border-color: var(--color-secondary);
}

/* == 2. REMOVED: SMOOTH SCROLL GLIDING CONTAINER STYLES == */
/* .scroll-container class was removed from HTML and CSS */

main {
    width: 100%;
    padding: 0; 
    margin: 0;
}

/* Anchor link offset fix for fixed header */
:target::before {
    content: "";
    display: block;
    height: calc(var(--nav-height) + 20px); 
    margin-top: calc( (var(--nav-height) + 20px) * -1 );
    visibility: hidden;
}

/* == 3. Dark/Light Section Themes == */
.section-light { 
    background-color: var(--color-secondary); 
    color: var(--color-primary); 
}
.section-light p { 
    color: var(--color-text-dark); 
}
.section-light .testimonial-card { 
    background: var(--color-light-bg); 
    border: 1px solid var(--color-border);
}

.section-dark { 
    background-color: var(--color-primary); 
    color: var(--color-secondary); 
}
.section-dark p { 
    color: var(--color-text-light); 
}
.section-dark .contact-link-item { 
    background: #1a1a1a; 
}
.section-dark a {
    color: var(--color-text-light);
}
.section-dark a:hover { 
    color: var(--color-secondary); 
}
.section-dark .cta-button {
    background: var(--color-secondary); 
    color: var(--color-primary); 
    border: 2px solid var(--color-secondary);
}
.section-dark .cta-button:hover {
    background: transparent;
    color: var(--color-secondary);
}
.section-dark .cta-button-outline { 
    color: var(--color-secondary); 
    border-color: var(--color-secondary); 
}
.section-dark .cta-button-outline:hover { 
    background: var(--color-secondary); 
    color: var(--color-primary); 
}


/* == 4. Header & Navigation (FLOATING, ROUNDED NAV) == */
.main-header {
    position: fixed;
    top: 20px; 
    left: 50%;
    transform: translateX(-50%);
    width: 90%; 
    max-width: 1100px;
    height: var(--nav-height); 
    background-color: rgba(255, 255, 255, 0.95); /* Semi-transparent white */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); 
    transition: all var(--transition-fast);
}
.header-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { 
    font-size: 2.2rem; 
    letter-spacing: 3px;
    color: var(--color-primary); 
}
.desktop-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}
.desktop-nav li { margin: 0 15px; }
.desktop-nav a {
    color: var(--color-primary);
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 0.9rem; 
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 5px;
    position: relative;
}
/* Desktop Nav Underline Hover Effect */
.desktop-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-primary);
    transition: width var(--transition-fast);
}
.desktop-nav a:hover::after, .desktop-nav a.active::after { 
    width: 100%; 
}

/* Mobile Menu Button */
.hamburger-menu { 
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    padding: 0;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}
.hamburger-menu .bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    margin: 6px 0;
    transition: all 0.3s ease-in-out;
}
/* Hamburger Active State (X Icon) */
.hamburger-menu.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger-menu.is-active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation Drawer Styling (FLOATING/ROUNDED) */
.mobile-nav {
    display: block; /* Shown by default for mobile, hidden by media query */
    position: fixed;
    top: 80px; /* Below the main header */
    right: 20px;
    width: 250px;
    background-color: var(--color-primary);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 999;
    padding: 20px;
    transform: translateX(calc(100% + 20px)); /* Off-screen by default */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.mobile-nav.is-open {
    transform: translateX(0); /* Slide into view */
}
.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}
.mobile-nav li {
    padding: 10px 0;
    border-bottom: 1px solid #333;
}
.mobile-nav li:last-child {
    border-bottom: none;
}
.mobile-nav a {
    color: var(--color-secondary);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 1px;
    display: block;
}
.mobile-socials {
    display: flex;
    justify-content: space-around;
    padding-top: 20px;
    border-top: 1px solid #333;
}
.mobile-socials a {
    color: var(--color-secondary);
    font-size: 1.5rem;
}
.mobile-socials a:hover {
    color: var(--color-text-light);
}


/* == 5. Hero Section == */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    text-align: center;
    padding: 0;
}
.hero-video { 
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); 
    min-width: 100%; min-height: 100%; 
    width: auto; height: auto; 
    object-fit: cover; 
    z-index: -2;
}
.hero-overlay { 
    position: absolute; top: 0; left: 0; 
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); 
    z-index: -1; 
}
.hero-content-container {
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 80px; /* Offset for fixed header */
}
.hero-tagline { 
    font-family: var(--font-body); 
    font-weight: 400; 
    font-size: 2rem; 
    letter-spacing: 1px; 
    margin-bottom: 20px;
    display: block; 
    color: var(--color-text-light); 
}
.hero-text p {
    font-size: 1.1rem; 
    color: var(--color-text-light); 
    max-width: 600px;
    margin: 0 auto 30px auto; 
}
.hero-buttons { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center;
}


/* == 6. Services Section == */
.service-list-container {
    max-width: 1000px;
    margin: 0 auto;
}
.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Centered alignment for visual balance */
    gap: 60px; 
    padding: 60px 0; 
    border-bottom: 2px solid var(--color-border);
}
.service-item:first-of-type { 
    border-top: 2px solid var(--color-border); 
    padding-top: 60px; 
} 
.service-item:last-of-type { 
    border-bottom: none;
} 

.service-description { 
    flex: 1; 
    padding-top: 10px; 
}
.service-item.reverse { 
    flex-direction: row-reverse;
}
.service-media { 
    flex: 1; 
    max-width: 500px; 
    height: 350px; 
}
.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.service-learn-more { 
    margin-top: 15px;
    display: inline-block;
    position: relative;
    padding-bottom: 5px;
    font-weight: 600; 
    color: var(--color-primary);
}
/* Underline effect */
.service-learn-more::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: currentColor;
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: right;
}
.service-learn-more:hover::after { 
    transform: scaleX(1); 
    transform-origin: left;
} 


/* == 7. "I Create" Section (VIDEO ON HOVER) == */
.i-create-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 40px;
}
.video-card { 
    height: 550px; 
    position: relative; 
    overflow: hidden; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: box-shadow var(--transition-fast);
}
.video-card:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}
.card-video { 
    position: absolute; 
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none; /* Allows click events to pass to the card */
}
.video-card:hover .card-video {
    transform: scale(1.05); /* Subtle zoom on hover */
}
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    color: var(--color-secondary);
    /* Subtle gradient overlay for text readability */
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
}
.card-content h3 {
    margin-bottom: 5px;
    font-size: 2.5rem;
}
.card-content p {
    color: var(--color-text-light);
    margin-bottom: 0;
}


/* == 8. Work Section == */
.work-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px;
}
.project-card {
    display: block;
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.project-card:hover img {
    transform: scale(1.08);
}
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    color: var(--color-secondary);
    opacity: 0;
    transition: opacity var(--transition-fast);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}
.project-card:hover .project-overlay {
    opacity: 1;
}
.project-overlay i { 
    font-size: 2.5rem; 
    margin-bottom: 10px;
}
.project-overlay h3 { 
    font-size: 2rem; 
    margin-bottom: 5px; 
}
.project-insta-link { 
    font-size: 0.85rem; 
    color: var(--color-border);
}


/* == 9. About Section == */
.about-section { 
    overflow-x: hidden; 
}
.about-container { 
    display: flex;
    align-items: center; 
    gap: 60px; 
}
.about-image-wrapper { 
    flex: 1; 
}
.about-image-slider { 
    position: relative; 
    width: 100%; 
    height: 500px; 
    overflow: hidden;
    border-radius: 8px; 
}
.about-track { 
    display: flex;
    width: 300%; /* Holds three 100% slides */
    height: 100%; 
    transition: transform 0.8s ease-in-out;
}
.about-slide { 
    width: calc(100% / 3); 
    height: 100%; 
    object-fit: cover;
    flex-shrink: 0;
}
.about-content { 
    flex: 1.2; 
}
.about-content h2 { 
    margin-bottom: 40px;
}


/* == 10. Testimonials Section (CARD GRID OVERHAUL) == */
.testimonial-section .container { 
    max-width: 1100px; 
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.testimonial-card {
    padding: 40px;
    border-radius: 10px;
    box-sizing: border-box;
    text-align: center;
    transition: transform 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}
.testimonial-icon {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    opacity: 0.5;
}
.testimonial-text { 
    font-size: 1.2rem;
    font-weight: 300; 
    line-height: 1.6; 
    margin-bottom: 20px; 
    font-style: italic; 
    color: var(--color-text-dark);
}
.testimonial-author { 
    font-family: var(--font-heading); 
    font-size: 1.1rem; 
    letter-spacing: 1px;
    color: var(--color-primary);
}


/* == 11. Contact Section == */
.contact-subtext {
    max-width: 600px;
    margin: 0 auto 50px auto;
}
.contact-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.contact-link-item {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    transition: transform 0.3s ease;
}
.contact-link-item:hover {
    transform: translateY(-5px);
}
.contact-link-item i {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 15px;
}
.contact-link-item h3 {
    color: var(--color-secondary);
}
.contact-link-item a {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-light);
}
.contact-link-item a:hover {
    color: var(--color-secondary);
}


/* == 12. Footer == */
.main-footer {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 60px 0 20px 0;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-column h4 { 
    font-size: 1.5rem; 
    margin-bottom: 15px; 
    color: var(--color-secondary); 
    font-family: var(--font-heading);
    letter-spacing: 1px;
}
.footer-column ul { 
    list-style: none;
    padding: 0; 
}
.footer-column a { 
    color: var(--color-text-light); 
    font-size: 0.95rem; 
    display: block; 
    padding: 5px 0;
}
.footer-column a:hover { 
    color: var(--color-secondary); 
}
.footer-bottom { 
    border-top: 1px solid #222; 
    margin-top: 40px; 
    padding-top: 20px; 
    text-align: center;
    font-size: 0.85rem; 
    color: var(--color-text-light); 
}
.footer-bottom a {
    color: var(--color-text-light);
}
.footer-bottom a:hover {
    color: var(--color-secondary);
}


/* == 13. Animations == */
.reveal-fade-up, .reveal-fade-left, .reveal-fade-right { 
    opacity: 0;
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* Apply delay from data-delay attribute if present */
    transition-delay: var(--delay, 0s); 
}
.reveal-fade-up { 
    transform: translateY(50px); 
}
.reveal-fade-left { 
    transform: translateX(-50px);
}
.reveal-fade-right { 
    transform: translateX(50px); 
}
.in-view { 
    opacity: 1; 
    transform: none;
}

/* == 14. Responsive Media Queries == */

/* Tablet & Smaller Desktops (1024px and down) */
@media (max-width: 1024px) {
    
    /* Global Adjustments */
    h1 { font-size: 4rem; }
    h2.section-title { font-size: 3rem; }
    section { padding: 80px 0; }

    /* Header & Mobile Nav */
    .desktop-nav { display: none; } /* Hide desktop nav */
    .hamburger-menu { display: block; } /* Show hamburger */
    .main-header { max-width: 95%; }

    /* I Create */
    .i-create-grid { grid-template-columns: 1fr; }
    .video-card { height: 450px; }

    /* Work Grid */
    .work-grid { grid-template-columns: repeat(2, 1fr); }
    .project-card { height: 350px; }

    /* Services (Stacking) */
    .service-item { 
        flex-direction: column; 
        align-items: center; 
        gap: 30px;
    }
    .service-item.reverse { 
        flex-direction: column; 
    }
    .service-media { 
        order: -1; 
        height: 300px; 
    }
    .service-description { 
        text-align: center; 
        padding-top: 0;
    }
    .service-learn-more { 
        margin: 0 auto; 
    }
    
    /* About */
    .about-container { 
        flex-direction: column; 
        gap: 40px; 
    }
    .about-content { 
        text-align: center; 
    }

    /* Footer */
    .footer-content { 
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-column {
        text-align: center;
    }
    .footer-column ul {
        text-align: center;
    }
}

/* Mobile Devices (768px and down) */
@media (max-width: 768px) {
    
    /* Global Adjustments */
    h1 { font-size: 3rem; }
    h2.section-title { font-size: 2.5rem; margin-bottom: 40px; }
    .hero-tagline { font-size: 1.5rem; }
    section { padding: 60px 0; }
    
    /* Header/Nav */
    .main-header { height: 50px; top: 10px; }
    .logo { font-size: 1.8rem; }
    .hamburger-menu { width: 25px; height: 25px; }
    .hamburger-menu .bar { margin: 4px 0; }
    .mobile-nav { top: 65px; width: 220px; right: 10px; }
    
    /* Hero */
    .hero-content-container { padding-top: 60px; }

    /* Work Grid */
    .work-grid { grid-template-columns: 1fr; }
    .project-card { height: 250px; }

    /* Services & About */
    .service-item, .service-item.reverse { flex-direction: column; }
    .service-description { text-align: left; }
    .about-content { text-align: left; }
    .about-image-slider { height: 300px; }
    
    /* Testimonials */
    .testimonial-grid { gap: 20px; }
    .testimonial-text { font-size: 1rem; }

    /* Contact */
    .contact-links { gap: 20px; }
    .contact-link-item { min-width: 150px; }

    /* Footer */
    .footer-content { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 30px;
    }
}