/* Core Variables */
:root {
    --bg-dark: #09090b;
    --accent-gold: #CBB26B;
    --accent-gold-hover: #e0cc96;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    background-color: var(--bg-dark);
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Animated Backgrounds */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 15% 50%, rgba(203, 178, 107, 0.08), transparent 25%),
                radial-gradient(circle at 85% 30%, rgba(203, 178, 107, 0.05), transparent 25%);
    z-index: -2;
    animation: pulse 15s ease-in-out infinite alternate;
}

.mesh-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        radial-gradient(at 40% 20%, hsla(28, 100%, 74%, 0.02) 0px, transparent 50%),
        radial-gradient(at 80% 0%, hsla(189, 100%, 56%, 0.02) 0px, transparent 50%),
        radial-gradient(at 0% 50%, hsla(355, 100%, 93%, 0.02) 0px, transparent 50%);
    z-index: -1;
    filter: blur(100px);
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

#fluid-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
}

@media (pointer: fine) {
    body, button, a {
        cursor: none !important;
    }
    
    body.modal-open,
    body.modal-open button,
    body.modal-open a,
    body.modal-open .modal,
    body.modal-open .modal * {
        cursor: auto !important;
    }
    
    body.modal-open #custom-cursor,
    body.modal-open #cursor-glow {
        display: none !important;
    }
}

#custom-cursor, #cursor-glow {
    position: fixed;
    top: 0; 
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    display: none;
}

@media (pointer: fine) {
    #custom-cursor, #cursor-glow {
        display: block;
    }
}

#custom-cursor {
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    box-shadow: 0 0 10px var(--accent-gold);
    will-change: transform;
}

#cursor-glow {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(203, 178, 107, 0.4);
    transition: width 0.2s, height 0.2s, background 0.2s;
    will-change: transform;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* Layout */
.box {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 4rem 3rem;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -15px rgba(203, 178, 107, 0.15);
    border-color: rgba(203, 178, 107, 0.2);
}

/* Logo Animation */
.logo {
    margin-bottom: 2rem;
    perspective: 1000px;
    display: inline-block;
}

.logo img {
    width: 100%;
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.05));
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    transform-style: preserve-3d;
    will-change: transform;
}

.logo:hover img {
    /* Handled by JS for 3D effect */
}

/* Typography inside card */
.brand-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 2.5rem;
    letter-spacing: 0.05em;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Contact Form */
.contact-form {
    margin-top: 1rem;
    text-align: left;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(203, 178, 107, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--bg-dark);
    background: linear-gradient(135deg, var(--accent-gold) 0%, #e8d7a5 100%);
    border: none;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(203, 178, 107, 0.39);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(203, 178, 107, 0.5);
    background: linear-gradient(135deg, var(--accent-gold-hover) 0%, #f0e4bf 100%);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Footer */
.copyright {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.copyright p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.fade-in {
    animation: fadeIn 1.2s ease forwards 0.5s;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive */
@media (max-width: 640px) {
    .glass-card {
        padding: 3rem 1.5rem;
        margin: 0 1rem;
    }
    
    .logo img {
        max-width: 240px;
    }
    
    .brand-subtitle {
        min-height: 3.5rem; /* Prevents vertical layout jumping during text decode */
    }
}

/* Modal Styles */
.modal {
    margin: auto;
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
}

.modal::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    padding: 3rem 2rem;
    width: 90vw;
    max-width: 450px;
    margin: 0 auto !important;
    box-sizing: border-box;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--accent-gold);
}

/* Interactive Button */
.interactive-button button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 600;
    color: var(--bg-dark);
    background: linear-gradient(135deg, var(--accent-gold) 0%, #e8d7a5 100%);
    border: none;
    cursor: pointer;
    border-radius: 9999px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(203, 178, 107, 0.39);
}

.interactive-button button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(203, 178, 107, 0.5);
    background: linear-gradient(135deg, var(--accent-gold-hover) 0%, #f0e4bf 100%);
}

.interactive-button button:active {
    transform: translateY(0) scale(0.98);
}
