/* =========================================
   1. VARIABLES & SETUP
   ========================================= */
:root {
    /* Cosmic Palette */
    --color-bg-deep: #050511;
    --color-bg-space: #0b0b1e;
    --color-accent-gold: #FFD700;
    --color-accent-purple: #9b5de5;
    --color-text-light: #ffffff;
    --color-glass: rgba(255, 255, 255, 0.05);
    --color-glass-border: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    /* Modern, geometric */
    --font-body: 'Inter', sans-serif;
    /* Clean, readable */

    /* Spacing */
    --spacing-container: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--color-bg-deep);
    color: var(--color-text-light);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: none;
    /* Hide default cursor for custom one */
}

/* =========================================
   2. TYPOGRAPHY & UTILITIES
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-gold {
    color: var(--color-accent-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.text-center {
    text-align: center;
}

.glow-text {
    background: linear-gradient(to right, #FFD700, #FDB931, #FFD700);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 3s infinite linear;
    background-size: 200% auto;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    /* Content above stars */
}

/* =========================================
   3. COMPONENTS
   ========================================= */
/* Custom Cursor */
.cursor-dot,
.cursor-circle {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-accent-gold);
}

.cursor-circle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-accent-gold);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--color-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, var(--color-accent-gold), #FDB931);
    color: #000;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    cursor: pointer;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

/* Contact Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
}

/* FAQ Accordion */
.faq-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--color-glass-border);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1rem 0;
    color: var(--color-text-light);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--color-accent-gold);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-right: 2rem;
    opacity: 0.8;
}

.faq-answer p {
    padding-bottom: 1rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Adjust based on content */
}

.faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--color-accent-gold);
}

/* Testimonial Grid to Carousel (Simple Grid primarily) */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: var(--color-glass);
    backdrop-filter: blur(5px);
    border: 1px solid var(--color-glass-border);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #000;
}

/* =========================================
   4. SECTIONS
   ========================================= */
/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Canvas Background */
#star-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Behind everything */
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-accent-gold);
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid var(--color-glass-border);
}

/* =========================================
   5. ANIMATIONS & MEDIA QUERIES
   ========================================= */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .cursor-dot,
    .cursor-circle {
        display: none;
    }

    /* No custom cursor on touch */
    body {
        cursor: auto;
    }
}

/* Scroll Animation Class */
.fade-in-section {
    opacity: 0;
    transform: translateY(20vh);
    visibility: hidden;
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
    visibility: visible;
}