/* =========================================
   1. GLOBAL STYLES & BASE LAYOUT
   ========================================= */

/* CSS Custom Properties (Variables) */
:root {
    --background: #0a0a0a;
    --foreground: #f5f5f5;
    --card: #1a1a1a;
    --primary: #b38d31;
    --primary-foreground: #0a0a0a;
    --secondary: #2a2a2a;
    --muted-foreground: #a1a1a1;
    --accent: #b38d31;
    --border: #2a2a2a;
    --error: #ef4444;
    --success: #22c55e;
    --charcoal: #1a1a1a;
}

/* Global Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }


/* --- CTA BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    text-decoration: none;
}

.btn-primary { background-color: var(--primary); color: var(--primary-foreground); border: none;;}
.btn-primary:hover { background-color: #a89100; transform: translateY(-2px); box-shadow: 0 10px 25px rgba(218, 185, 0, 0.4); }
.btn-primary:disabled { 
    background-color: var(--primary); 
    color: var(--primary-foreground); 
    cursor: wait; 
    transform: none; 
    opacity: 0.8; /* Slight fade when disabled */
}

.btn-outline { background-color: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background-color: var(--primary); color: var(--primary-foreground); }

/* --- NEW: Loading Spinner CSS for Form Submission --- */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    /* Semi-transparent ring */
    border: 3px solid rgba(255, 255, 255, 0.3); 
    border-radius: 50%;
    /* Highlighted color for the moving part */
    border-top-color: var(--primary-foreground); 
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =========================================
   1. HERO SECTION (Compact Header)
   ========================================= */
.about-hero {
    position: relative;
    height: 45vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    
    /* --- NEW BACKGROUND IMAGE PROPERTIES --- */
    background-size: cover; /* Cover the entire area */
    background-position: center center; /* Center the image */
    background-repeat: no-repeat; /* Do not repeat the image */
    /* Fallback background color if image fails to load */
    background-color: var(--charcoal); 
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Black gradient from top to bottom, slightly transparent to fully opaque */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.95));
    z-index: 1; /* Ensure gradient is below text but above background image */
}

.hero-content {
    position: relative;
    z-index: 10; /* Higher than the ::before gradient */
    text-align: center;
    padding: 2rem;
    max-width: 900px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-subline {
    font-size: 1.75rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    animation: fadeUp 0.92s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-oneliner {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    animation: fadeUp 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================
   3. CONTACT INFO & FORM LAYOUT
   ========================================= */

.contact-info-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 100%);
}

.info-grid {
    /* Layout: Details (left, narrower) and Form (right, wider) */
    display: grid;
    grid-template-columns: 0.5fr 1.5fr;
    gap: 10rem;
}

/* --- LEFT COLUMN: Studio Details --- */
.details-title { font-size: 2rem; font-weight: 900; color: var(--foreground); margin-bottom: 2rem; }

.detail-item { display: flex; gap: 1.25rem; margin-bottom: 3.5rem; }

.detail-icon {
    flex-shrink: 0; width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(218, 185, 0, 0.15), rgba(218, 185, 0, 0.05));
    border-radius: 0.75rem; color: var(--primary);
}

.detail-content { flex: 1; }

.detail-label {
    font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--primary); margin-bottom: 0.5rem;
}

.detail-text { font-size: 1rem; color: var(--muted-foreground); line-height: 1.6; }

.detail-link { font-size: 1rem; color: var(--muted-foreground); text-decoration: none; transition: color 0.3s; }
.detail-link:hover { color: #a89100; text-decoration: underline; }

.social-links { margin-top: 2.5rem; }

.social-label {
    font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--primary); margin-bottom: 1rem;
}

.social-icons { display: flex; gap: 1rem; }

.social-icon {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    background-color: rgba(218, 185, 0, 0.1); border: 1px solid rgba(218, 185, 0, 0.2);
    border-radius: 0.5rem; color: var(--primary); transition: all 0.3s;
}

.social-icon:hover { background-color: var(--primary); color: var(--primary-foreground); transform: translateY(-3px); box-shadow: 0 6px 15px rgba(218, 185, 0, 0.3); }


/* --- RIGHT COLUMN: Form Wrapper --- */
.form-wrapper {
    max-width: 800px; /* Uses full width of its grid column */
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(42, 42, 42, 0.7));
    border: 1px solid rgba(218, 185, 0, 0.2);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

.form-title { font-size: 2rem; font-weight: 900; color: var(--foreground); margin-bottom: 0.5rem; text-align: center; }
.form-subtitle { font-size: 1rem; color: var(--muted-foreground); margin-bottom: 2.5rem; text-align: center; }


/* --- FORM ELEMENTS --- */
.contact-form { display: block; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.5rem; }

.form-label { display: block; font-size: 0.9375rem; font-weight: 600; color: var(--foreground); margin-bottom: 0.5rem; }
.required { color: var(--error); }

.form-input, .form-textarea {
    width: 100%; padding: 0.875rem 1rem; font-size: 1rem;
    border: 1px solid var(--border); border-radius: 0.5rem;
    background-color: rgba(42, 42, 42, 0.5); color: var(--foreground);
    transition: all 0.3s; font-family: inherit;
}

.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(218, 185, 0, 0.15); background-color: rgba(42, 42, 42, 0.8); }

.form-textarea { resize: vertical; min-height: 150px; }

.error-message { display: block; font-size: 0.875rem; color: var(--error); margin-top: 0.5rem; min-height: 20px; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; }

.form-actions { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); }


/* --- Success State --- */
.form-success { text-align: center; padding: 3rem 2rem; }
.success-icon {
    width: 80px; height: 80px; margin: 0 auto 1.5rem; display: flex; align-items: center; justify-content: center;
    background-color: rgba(34, 197, 94, 0.15); border-radius: 50%; color: var(--success);
}
.success-title { font-size: 2rem; font-weight: 900; color: var(--foreground); margin-bottom: 1rem; }
.success-text { font-size: 1.125rem; color: var(--muted-foreground); line-height: 1.7; margin-bottom: 2rem; }


/* =========================================
   4. ALTERNATIVE CONTACT LINKS
   ========================================= */

.alternative-contact { padding: 4rem 0; background-color: var(--background); }

.alt-content { text-align: center; max-width: 700px; margin: 0 auto; }

.alt-title { font-size: 1.75rem; font-weight: 700; color: var(--foreground); margin-bottom: 1.5rem; }

.alt-links { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

.alt-link { font-size: 1.125rem; color: var(--primary); text-decoration: none; font-weight: 500; transition: color 0.3s; }
.alt-link:hover { color: #a89100; text-decoration: underline; }

.alt-separator { color: var(--muted-foreground); }

.alt-note { font-size: 0.9375rem; color: var(--muted-foreground); }

.alt-link-inline { color: var(--primary); text-decoration: none; font-weight: 600; transition: color 0.3s; }
.alt-link-inline:hover { color: #a89100; text-decoration: underline; }


/* =========================================
   5. RESPONSIVENESS
   ========================================= */

@media (max-width: 1024px) {
    .info-grid {
        /* Stack contact details and form on tablets/smaller desktops */
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subline { font-size: 1.125rem; }
    
    .form-wrapper { padding: 2rem 1.5rem; }
    
    .form-row { grid-template-columns: 1fr; }
    
    .details-title, .actions-title { font-size: 1.5rem; }
    
    .alt-title { font-size: 1.5rem; }
    
    .alt-links { flex-direction: column; gap: 0.5rem; }
    .alt-separator { display: none; }

    /* Added mobile responsiveness for Philosophy Strip */
    .philosophy-strip { padding: 3rem 1rem; } /* Reduced padding for mobile */
    .philosophy-content h2 { font-size: 1.75rem; } /* Smaller heading on mobile */
    .philosophy-quote { font-size: 1.125rem; } /* Smaller quote text on mobile */
    .philosophy-cta-btn { margin-top: 1rem; } /* Reduced margin for mobile */
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* =========================================
   Section 4: Philosophy Strip
   ========================================= */
.philosophy-strip {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    overflow: hidden;
}

.philosophy-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(218, 185, 0, 0.03) 2px,
        rgba(218, 185, 0, 0.03) 4px
    );
    animation: filmGrain 8s steps(10) infinite;
}

@keyframes filmGrain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -5%); }
    20% { transform: translate(-10%, 5%); }
    30% { transform: translate(5%, -10%); }
    40% { transform: translate(-5%, 15%); }
    50% { transform: translate(-10%, 5%); }
    60% { transform: translate(15%, 0); }
    70% { transform: translate(0, 10%); }
    80% { transform: translate(-15%, 0); }
    90% { transform: translate(10%, 5%); }
}

.philosophy-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.philosophy-quote {
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
    color: white;
    line-height: 1.5;
    animation: fadeIn 2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.philosophy-content h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: -.4rem;
    color: var(--accent);
}

.philosophy-cta-btn {
    margin-top: 1.5rem;
    display: inline-block; /* Allows the button to shrink to its content size */
}
