/* Reset & Base Styles */
:root {
    --bg-color: #f0ebe3;
    --text-primary: #0f0f0f;
    --surface-secondary: #e8e2d9;
    --accent-orange: #ff4d00;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;
    --easing: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.5;
    cursor: none; /* We will use custom cursor on desktop */
}

/* Mobile Cursor Reset */
@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto;
    }
    .cursor-dot, .cursor-outline {
        display: none !important;
    }
}

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

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    line-height: 0.9;
}

.orange-text {
    color: var(--text-primary); /* Start as normal text */
    transition: color 0.5s ease;
}

.orange-text.active {
    color: var(--accent-orange);
}

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

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

/* Cursor Hover States */
body.hovering-link .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 77, 0, 0.1);
    border-color: transparent;
}

body.hovering-link .cursor-dot {
    width: 12px;
    height: 12px;
}

/* Header */
.site-header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 1200px;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    color: var(--text-primary);
}

.logo-img {
    height: 20px;
    width: auto;
}

.cta-link {
    font-family: var(--font-display);
    font-size: 1.25rem;
    text-transform: uppercase;
    font-weight: 400;
    position: relative;
    padding-bottom: 2px;
}

.cta-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-orange);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--easing);
}

.cta-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Hero Section & Background Viz */
.hero-section {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
    padding: 1.5rem 1.5rem 0.5rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-bg-viz {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.viz-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    transition: transform 1s var(--easing);
    will-change: transform;
    animation: blob-drift 15s infinite alternate ease-in-out;
}

.viz-1 {
    width: 70vw;
    height: 70vw;
    background-color: var(--accent-orange);
    top: -15%;
    right: -15%;
    animation-delay: -2s;
}

.viz-2 {
    width: 60vw;
    height: 60vw;
    background-color: var(--surface-secondary);
    bottom: -10%;
    left: -15%;
    animation-delay: -5s;
    animation-duration: 18s;
}

.viz-3 {
    width: 40vw;
    height: 40vw;
    background-color: var(--accent-orange);
    top: 30%;
    left: 10%;
    opacity: 0.15;
    animation-duration: 22s;
    animation-direction: alternate-reverse;
}

@keyframes blob-drift {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(30%, 20%) scale(1.3) rotate(60deg); }
    66% { transform: translate(-20%, 30%) scale(1.2) rotate(-30deg); }
    100% { transform: translate(10%, -10%) scale(1) rotate(10deg); }
}

.viz-noise {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    opacity: 0.05;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    transition: transform 0.3s var(--easing);
    will-change: transform;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
}

.hero-title {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    text-align: center;
}

.intro-text {
    font-family: var(--font-body);
    font-size: clamp(1.25rem, 3.5vw, 1.75rem);
    font-weight: 500;
    margin-bottom: 0.25rem;
    opacity: 0;
    animation: fadeIn 1s 0.5s forwards;
    display: block;
    white-space: nowrap;
    will-change: transform;
}

.industry-container {
    height: 15vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible; 
}

/* Wrapper to hold text and highlighter */
.industry-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}

.industry-word {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 13vw, 10rem);
    line-height: 0.85;
    position: relative;
    color: var(--text-primary);
    cursor: default;
    display: inline-block;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.8s var(--easing);
}

.industry-underline {
    position: absolute;
    bottom: 5%;
    left: 0;
    width: 100%;
    height: clamp(3px, 0.8vw, 8px);
    background-color: var(--accent-orange);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s var(--easing);
}

/* Active States */
.industry-wrapper.active .industry-word {
    clip-path: inset(0 0 0 0);
}

.industry-wrapper.active .industry-underline {
    transform: scaleX(1);
    transform-origin: left;
    transition-delay: 0.2s;
}

.industry-wrapper.exiting .industry-word {
    clip-path: inset(0 0 0 100%);
}

.industry-wrapper.exiting .industry-underline {
    transform: scaleX(0);
    transform-origin: right;
    transition-delay: 0s;
}

/* After wipe, hide everything cleanly */
.industry-wrapper.hidden {
    display: none;
}

/* Hero Buttons Container */
.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    opacity: 0;
    animation: fadeIn 1s 1.2s forwards;
}

/* Hero Button Base */
.hero-cta-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--text-primary);
    color: var(--bg-color);
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: transform 0.3s var(--easing), background-color 0.3s, color 0.3s;
    position: relative;
    z-index: 10;
}

.hero-cta-btn:hover {
    transform: scale(1.05);
    background-color: var(--accent-orange);
}

.hero-cta-btn.orange {
    background-color: var(--accent-orange);
    color: var(--text-primary);
}

.hero-cta-btn.orange:hover {
    background-color: var(--text-primary);
    color: var(--bg-color);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--text-primary);
    line-height: 1;
    display: inline-block;
    position: relative;
}

/* Work Section */
.work-section {
    padding: 5rem 1.5rem;
    position: relative;
    background-color: var(--bg-color);
}

.work-heading-bg {
    font-family: var(--font-display);
    font-size: 25vw;
    color: rgba(0,0,0,0.015);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    line-height: 1;
}

.horizontal-scroll-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.work-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 3rem 2rem;
    transition: transform 0.6s var(--easing), box-shadow 0.6s var(--easing), opacity 0.8s var(--easing);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    opacity: 0;
    transform: translateY(40px);
}

.work-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.work-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    height: 100%;
}

.work-image {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16/10;
    background-color: var(--surface-secondary);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--easing);
}

.work-card:hover .project-img {
    transform: scale(1.05);
}

.work-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.work-category {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-primary);
    opacity: 0.6;
}

.view-btn {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent-orange);
    transition: transform 0.3s var(--easing);
}
.work-card:hover .view-btn {
    transform: translateX(5px);
}

/* Mobile: Single row swipe */
@media (max-width: 768px) {
    .work-section {
        padding: 3rem 0;
    }
    .horizontal-scroll-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 0 1.5rem 1.5rem;
        gap: 1.25rem;
        scrollbar-width: none;
    }
    .horizontal-scroll-container::-webkit-scrollbar {
        display: none;
    }
    .work-card {
        flex: 0 0 85vw;
        scroll-snap-align: center;
        border-radius: 20px; /* Slightly smaller radius for mobile */
        padding: 2rem 1.5rem;
    }
    .work-image {
        border-radius: 12px;
    }
}

/* Desktop: Grid */
@media (min-width: 768px) {
    .horizontal-scroll-container {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

/* About Section */
.about-section {
    padding: 1.5rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.about-bg-text {
    font-family: var(--font-display);
    font-size: 30vw;
    color: rgba(0,0,0,0.015);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    line-height: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
}

.about-item {
    padding: 2.5rem 1.25rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.6s var(--easing), background-color 0.4s;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-item:hover {
    background-color: rgba(0,0,0,0.01);
}

.about-num {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--accent-orange);
    margin-bottom: 0.75rem;
}

.about-item h2 {
    font-size: clamp(2.25rem, 5vw, 4rem);
    margin-bottom: 0.75rem;
    line-height: 0.8;
}

.about-item p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

.about-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 2-column on desktop */
@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-item:nth-child(odd) {
        border-right: 1px solid rgba(0,0,0,0.05);
    }
}

/* CTA Section */
.cta-section {
    padding: 5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.cta-container {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 32px;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 1000px;
    width: 100%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    text-align: center;
}

.giant-cta-btn {
    font-family: var(--font-display);
    font-size: clamp(3rem, 12vw, 8rem);
    line-height: 0.9;
    color: var(--text-primary);
    transition: transform 0.4s var(--easing), color 0.4s var(--easing);
}

.giant-cta-btn:hover {
    transform: scale(1.05);
    color: var(--accent-orange);
}

.cta-footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.cta-footer-info p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 0;
}

.email-link {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 2px;
}

.email-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent-orange);
}

/* Footer */
.site-footer {
    padding: 3rem 1.5rem;
    background-color: var(--bg-color);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    height: 18px;
    width: auto;
    filter: none; /* No need to invert on light background */
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-info p, .footer-info a {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0;
    transition: color 0.3s;
}

.footer-info a:hover {
    color: var(--accent-orange);
}

.footer-copyright {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 1rem;
}

/* Utility Classes */
.clip-text {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    display: inline-block;
}

.reveal-char {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.revealed .reveal-char {
    transform: translateY(0);
}
