@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,600;0,700;1,600;1,700&display=swap');

:root {
    --bg-dark: #09090b;
    --bg-darker: #040405;
    --bg-panel: rgba(18, 18, 22, 0.65);
    --bg-card: rgba(30, 30, 38, 0.45);
    --primary: #ff4a22; /* Vibrant Crimson/Orange-Red */
    --primary-rgb: 255, 74, 34;
    --secondary: #f59e0b; /* Golden Orange */
    --accent-gold: #d4af37; /* Metallic Gold */
    --accent-gold-rgb: 212, 175, 55;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-active: rgba(255, 74, 34, 0.4);
    --glass-blur: blur(16px);
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 25px rgba(255, 74, 34, 0.2);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

[data-theme="light"] {
    --bg-dark: #f8fafc;
    --bg-darker: #f1f5f9;
    --bg-panel: rgba(255, 255, 255, 0.8);
    --bg-card: rgba(255, 255, 255, 0.9);
    --text-light: #0f172a;
    --text-muted: #475569;
    --border-glass: rgba(0, 0, 0, 0.08);
    --border-active: rgba(255, 74, 34, 0.5);
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    color: #0f172a !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 74, 34, 0.3);
    border-radius: 4px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* Section Transitions & Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: -0.5px;
}

h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: var(--font-sans);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input, select, textarea {
    font-family: var(--font-sans);
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

select option {
    background-color: #18181b;
    color: #f8fafc;
}

[data-theme="light"] select option {
    background-color: #ffffff;
    color: #0f172a;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 15px rgba(255, 74, 34, 0.15);
    outline: none;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Luxury UI Elements & Glassmorphism */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-premium);
}

/* Premium Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #e11d48);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(255, 74, 34, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 74, 34, 0.5), var(--shadow-glow);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    padding: 14px 28px;
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--accent-gold), #b45309);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

/* Premium App Footer */
.app-footer {
    text-align: center;
    padding: 60px 24px 120px;
    background: linear-gradient(to top, var(--bg-darker), var(--bg-dark));
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
}

.dev-label {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.dev-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 600;
    background: rgba(255, 74, 34, 0.08);
    padding: 10px 24px;
    border-radius: 30px;
    border: 1px solid rgba(255, 74, 34, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.dev-contact:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.loader {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Luxury Toast Notifications */
#toast-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: rgba(15, 15, 20, 0.9);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--primary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    padding: 16px 28px;
    border-radius: 8px;
    box-shadow: var(--shadow-premium);
    min-width: 280px;
    max-width: 400px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--error); }
.toast.info { border-left-color: var(--warning); }

/* Utilities */
.hidden { display: none !important; }
.mt-5 { margin-top: 5px; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-link { background: none; color: var(--primary); font-weight: 600; font-size: 0.9rem; padding: 0; }
.text-link:hover { text-decoration: underline; color: var(--secondary); }

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 90px;   /* above mobile nav bar */
    left: 20px;
    background-color: #25d366;
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
    z-index: 10000;  /* same layer as theme toggle */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    background-color: #128c7e;
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: white;
}

/* On desktop: pull both buttons down to a comfortable position */
@media (min-width: 769px) {
    .whatsapp-float {
        bottom: 30px;
        left: 30px;
    }
}
