/* 
 * CREATIVE BASECAMP - "Basic/Dept" Style Design System 
 * Philosophy: Bold, Immersive, Minimal
 */

:root {
    /* Color Palette - Deep Black & Stark White */
    --color-bg: #050505;
    --color-text: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.6);
    --color-accent: #ffffff;
    --color-border: rgba(255, 255, 255, 0.1);

    /* Typography - Massive & Tight */
    --font-main: 'Inter', sans-serif;
    --font-display: 'Inter', sans-serif;
    /* Setup for bold sans */

    /* Spacing */
    --container-width: 92vw;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1.5rem;
    --spacing-md: 3rem;
    --spacing-lg: 6rem;
    --spacing-xl: 12rem;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a,
button {
    cursor: auto;
}

/* Custom Cursor Removed */

/* Typography Utilities */
.text-display {
    font-family: var(--font-display);
    font-weight: 800;
    /* Extra Bold */
    font-size: clamp(4rem, 12vw, 10rem);
    /* Massive responsive size */
    line-height: 0.9;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin: 0;
}

.text-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.02em;
    margin-top: var(--spacing-sm);
}

/* Layout Utilities */
.container {
    width: var(--container-width);
    margin: 0 auto;
}

.section {
    padding: var(--spacing-lg) 0;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero Section Specifics */
#hero {
    height: 100vh;
    width: 100vw;
    position: relative;
    display: flex;
    align-items: flex-start;
    /* Align content to top */
    justify-content: flex-start;
    /* Align content to left */
    /* Align content to left */
    padding-top: var(--spacing-xl);
    /* Add top padding to clear sticky logo */
    padding-left: var(--spacing-md);
    /* Add left padding */
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    border: none;
    outline: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    #hero-video {
        min-width: 0;
        min-height: 0;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    #hero {
        height: auto;
        min-height: 100vh;
        align-items: center;
        /* Center video vertically if needed */
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Removed background overlay for clarity as requested */
    background: transparent;
    z-index: 1;
    pointer-events: none;
    /* Allow clicking through if needed */
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: var(--container-width);
    display: flex;
    justify-content: flex-start;
    /* Align text group to left */
    align-items: flex-start;
    text-align: left;
    /* Align text itself to left */
}

/* Slogan Animation */
.hero-text-group h1 {
    opacity: 0;
    transform: translateY(-20px);
    /* Start from slightly above */
    animation: revealSlogan 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.5s;
    color: rgba(255, 255, 255, 0.6);
    /* Semi-transparent white */
    mix-blend-mode: overlay;
    /* Blends nicely with video */

    /* Reduced font size by 50% as requested */
    font-size: clamp(2rem, 7.5vw, 6rem) !important;
    line-height: 1.1;
}

.hero-text-group p {
    opacity: 0;
    transform: translateY(-20px);
    animation: revealSlogan 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.8s;
    color: rgba(255, 255, 255, 0.7);
}

@keyframes revealSlogan {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    100% {
        opacity: 1;
        /* Animation handles fade in, but color handles transparency */
        transform: translateY(0) scale(1);
    }
}

/* Cinematic "Fly" Effect - Added via JS class '.cinematic-mode' */
body.cinematic-mode .hero-text-group h1 {
    transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1.1);
    /* Make it slightly larger */
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* Navigation & Buttons */
.audio-btn {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    z-index: 10;
}

.logo-btn {
    display: block;
    mix-blend-mode: difference;
    transition: transform 0.3s ease;
}

.logo-btn:hover {
    transform: scale(1.05);
}

.logo-btn img {
    filter: brightness(0) invert(1);
    /* Ensure logo is white for difference mode */
}

.audio-btn:hover {
    background: white;
    color: black;
    border-color: white;
}

.audio-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.audio-text {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Grid & Portfolio (Updates for new style) */
.grid-portfolio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3-column grid for desktop */
    gap: var(--spacing-sm);
    width: 100%;
}

article {
    margin-bottom: var(--spacing-lg);
}

article h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 1.5rem;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

/* Portfolio Card Styles */
.project-card {
    position: relative;
    cursor: none;
    /* Handled by custom cursor */
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
    border-radius: 16px;
    /* Rounded corners */
    transform: translateZ(0);
    /* Fix for overflow clipping in some browsers */
}

.project-image-placeholder {
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.view-project {
    border: 1px solid white;
    border-radius: 999px;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

/* Hover Effects */
.project-card:hover .project-image-placeholder {
    transform: scale(1.05);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .view-project {
    transform: translateY(0);
}

.project-card:hover h3 {
    color: var(--color-text-muted);
    /* Interactive feel */
}

/* Footer specific */
.footer-left h2 {
    margin-bottom: var(--spacing-xs);
}

/* Responsive Layout */
@media (max-width: 1024px) {
    :root {
        --container-width: 90vw;
        --spacing-lg: 4rem;
        --spacing-xl: 6rem;
    }

    .text-display {
        font-size: clamp(3rem, 10vw, 6rem);
    }

    .grid-portfolio {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on tablet */
    }
}

@media (max-width: 768px) {
    :root {
        --container-width: 90vw;
        --spacing-md: 2rem;
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .text-display {
        font-size: clamp(2.5rem, 10vw, 4rem);
        line-height: 1.1;
    }

    .hero-text-group h1 {
        font-size: clamp(2rem, 10vw, 3.5rem) !important;
    }

    .hero-text-group p {
        font-size: 1rem;
    }

    .grid-portfolio {
        grid-template-columns: 1fr;
        /* Single column on mobile */
        gap: 2rem;
    }

    article h3 {
        font-size: 1.8rem;
        margin-top: 1rem;
    }

    /* Adjust padding for specific elements */
    #hero {
        padding-top: 15vh;
        /* Push text down on mobile */
        padding-left: 5vw;
        padding-right: 5vw;
        justify-content: center;
        /* Center horizontally */
        align-items: flex-start;
        /* Center vertically */
    }

    .hero-content-wrapper {
        align-items: center;
        /* Center text on mobile hero */
        text-align: center;
        /* Center alignment */
        width: 100%;
    }

    .hero-text-group {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .audio-btn {
        bottom: 20px;
        right: 20px;
        padding: 8px 16px;
    }

    .footer-left h2 {
        font-size: 1.5rem !important;
    }

    /* Ensure project detail pages also look good */
    .detail-hero {
        height: 50vh;
        /* Shorter hero on mobile */
    }

    #project-title {
        font-size: 3rem !important;
    }

    /* Contact Page Mobile Fix */
    .contact-item p,
    .contact-item a {
        font-size: clamp(1.2rem, 4vw, 2rem) !important;
        word-break: break-all;
        /* Force break specifically for long emails */
        white-space: normal;
    }

    /* Force Visible on Mobile (Fix Safari issue where content stays hidden) */
    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}