/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */
:root {
    --bg-color: #050505;
    --text-color: #f0f0f0;
    --text-muted: #888888;
    --accent-primary: #d4af37; /* Elegant Gold */
    --accent-secondary: #ff3366;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    --transition-fast: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    
    --border-radius: 12px;
}

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

html {
    scroll-behavior: initial; /* Handled by Lenis */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

ul {
    list-style: none;
}

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

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

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

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.1;
    font-weight: 700;
    white-space: nowrap;
}

p {
    text-wrap: pretty;
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 3rem;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 1px;
    background-color: var(--accent-primary);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 2rem;
}

.text-center {
    text-align: center;
}
.text-center .section-label {
    padding-left: 0;
    padding-bottom: 0.5rem;
}
.text-center .section-label::before {
    display: none;
}

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

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

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

/* Cursor States */
.cursor-hover .cursor-dot {
    width: 40px;
    height: 40px;
    background-color: rgba(212, 175, 55, 0.2);
    mix-blend-mode: screen;
}
.cursor-hover .cursor-outline {
    width: 60px;
    height: 60px;
    border-color: var(--accent-primary);
}
.cursor-hidden .cursor-dot, .cursor-hidden .cursor-outline {
    opacity: 0;
}

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

.loader-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 4px;
    overflow: hidden;
    color: var(--text-color);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: none; /* handled by custom cursor */
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #000;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    transform: translateY(100%);
    transition: transform var(--transition-smooth);
    z-index: -1;
    border-radius: 30px;
}

.btn-primary:hover::before {
    transform: translateY(0);
}

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

.btn-outline:hover {
    border-color: var(--accent-primary);
}

.btn-full {
    width: 100%;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    mix-blend-mode: difference;
    transition: padding var(--transition-fast), background var(--transition-fast);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    mix-blend-mode: normal;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn) {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width var(--transition-fast);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#webgl-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.7;
}

.hero-container {
    width: 100%;
    z-index: 1;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: clamp(4rem, 12vw, 12rem);
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 0.85;
}

.hero-title.indent {
    padding-left: 10vw;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
}

.hero-meta {
    margin-top: 4rem;
    max-width: 900px;
    padding-left: 10vw;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    font-family: var(--font-body);
}

.hero-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.overflow-hidden {
    overflow: hidden;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    animation: scroll 2s infinite cubic-bezier(0.15, 0.41, 0.69, 0.94);
}

@keyframes scroll {
    0% { opacity: 0; transform: translate(-50%, 0); }
    10% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 20px); }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--text-color);
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    /* Removed aspect-ratio to fit the original image's ratio */
}

.about-image {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transform: scale(1.1); /* For parallax effect */
}

.about-image-wrapper:hover img {
    /* Optionally add hover effect here */
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-list {
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-item {
    display: flex;
    align-items: center;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: var(--transition-smooth);
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    z-index: -1;
}

.service-item:hover::before {
    opacity: 1;
}

.service-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-primary);
    width: 10%;
    font-weight: 300;
}

.service-content {
    width: 75%;
    padding-right: 2rem;
}

.service-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: transform var(--transition-smooth);
}

.service-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    opacity: 0.7;
    transition: opacity var(--transition-smooth);
    line-height: 1.6;
}

.service-item:hover .service-content h3 {
    transform: translateX(10px);
}

.service-item:hover .service-content p {
    opacity: 1;
}

.service-icon {
    width: 15%;
    display: flex;
    justify-content: flex-end;
}

.service-icon i {
    width: 48px;
    height: 48px;
    color: rgba(255, 255, 255, 0.2);
    transition: color var(--transition-smooth), transform var(--transition-smooth);
}

.service-item:hover .service-icon i {
    color: var(--accent-primary);
    transform: scale(1.1) rotate(5deg);
}

/* ==========================================================================
   Portfolio Section
   ========================================================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.portfolio-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 3/4;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-smooth);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

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

.portfolio-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    color: var(--text-muted);
}

/* ==========================================================================
   Footer & Contact
   ========================================================================== */
.footer {
    padding: var(--spacing-xl) 0 var(--spacing-sm);
    background-color: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-large {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.testimonial-large blockquote {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 2rem;
}

.testimonial-large cite {
    font-style: normal;
    color: var(--accent-primary);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    margin-bottom: 6rem;
}

.footer-title {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 2rem;
}

.footer-email {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    transition: color var(--transition-fast);
}

.footer-email:hover {
    color: var(--text-color);
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

.footer-socials a:hover {
    background-color: var(--text-color);
    color: #000;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.input-group {
    position: relative;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-primary);
}

.input-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .about-grid, .footer-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .service-num, .service-content, .service-icon {
        width: 100%;
    }
    
    .service-icon {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    .cursor-dot, .cursor-outline {
        display: none;
    }
    
    .nav-links {
        display: none; /* In a real app, implement a hamburger menu */
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title.indent {
        padding-left: 0;
    }
    
    .hero-meta {
        padding-left: 0;
    }
}
