/* ============================================
   MAHA ASTRO - Main Stylesheet
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    /* Colors - Minimal palette */
    --color-primary: #2d1b4e;
    --color-primary-light: #4a3366;
    --color-accent: #8b6db5;
    --color-accent-light: #c4a6e8;
    
    --color-bg: #faf9fc;
    --color-bg-alt: #f3f0f7;
    --color-surface: #ffffff;
    
    --color-text: #1a1a2e;
    --color-text-muted: #6b6b7b;
    --color-text-light: #9898a8;
    
    --color-border: #e8e4ee;
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(45, 27, 78, 0.05);
    --shadow-md: 0 4px 12px rgba(45, 27, 78, 0.08);
    --shadow-lg: 0 8px 24px rgba(45, 27, 78, 0.12);
    
    /* Layout */
    --container-max: 1200px;
    --navbar-height: 70px;
    --topbar-height: 44px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--navbar-height) + var(--topbar-height));
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text);
}

.section-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    margin-bottom: var(--space-md);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header .section-desc {
    margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

/* ---------- Top Bar ---------- */
.top-bar {
    background-color: var(--color-primary);
    color: white;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1001;
}

.top-bar-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-xl);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    transition: color var(--transition-fast);
}

.contact-link:hover {
    color: white;
}

.contact-link .icon {
    width: 16px;
    height: 16px;
}

.contact-link.whatsapp {
    color: #25D366;
}

.contact-link.whatsapp:hover {
    color: #4ae87d;
}

/* ---------- Navbar ---------- */
.navbar {
    background-color: var(--color-surface);
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: var(--topbar-height);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    font-size: 1.75rem;
    color: var(--color-accent);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a:not(.nav-cta):hover {
    color: var(--color-primary);
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-base);
}

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

.nav-cta {
    background-color: var(--color-primary);
    color: white !important;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
}

.nav-cta:hover {
    background-color: var(--color-primary-light);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    transition: all var(--transition-fast);
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    min-height: calc(100vh - var(--navbar-height) - var(--topbar-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
}

.hero-bg {
    position: absolute;
    inset: 0;
    /* background-image: 
        radial-gradient(circle at 20% 50%, rgba(139, 109, 181, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(196, 166, 232, 0.1) 0%, transparent 40%); */
    background-image: url('../background.jpg');
    
    backdrop-filter: blur(10px) saturate(180%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-blend-mode: multiply;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: var(--space-4xl) 0;
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    margin-bottom: var(--space-lg);
    padding: var(--space-sm) var(--space-lg);
    border: 1px solid rgba(196, 166, 232, 0.3);
    border-radius: var(--radius-full);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    margin: 0 4px;
    color: white;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
    margin-bottom: var(--space-2xl);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn-primary {
    background-color: white;
    color: var(--color-primary);
}

.hero .btn-primary:hover {
    background-color: var(--color-bg);
}

.hero .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.hero .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    position: relative;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-full);
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

/* ---------- About Section ---------- */
.about {
    padding: var(--space-4xl) 0;
    background-color: var(--color-surface);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about-content {
    max-width: 540px;
}

.about-text {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.about-stats {
    display: flex;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--color-border);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-frame {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-surface) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-frame::before {
    content: '';
    position: absolute;
    inset: -10px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
}

.zodiac-wheel {
    width: 80%;
    height: 80%;
    animation: rotate-slow 60s linear infinite;
}

.zodiac-svg {
    width: 100%;
    height: 100%;
    color: var(--color-accent);
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ---------- Services Section ---------- */
.services {
    padding: var(--space-4xl) 0;
    background-color: var(--color-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.service-card {
    background-color: var(--color-surface);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent-light);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-lg);
    color: var(--color-accent);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.service-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ---------- Booking Section ---------- */
.booking {
    padding: var(--space-4xl) 0;
    background-color: var(--color-surface);
}

.booking-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-3xl);
    align-items: start;
}

.booking-info {
    background-color: var(--color-bg-alt);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
}

.booking-info h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
}

.booking-checklist {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.booking-checklist li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--color-text-muted);
}

.booking-checklist svg {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.booking-contact {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.booking-contact p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.booking-phone {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

.booking-phone:hover {
    color: var(--color-accent);
}

.booking-form {
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 600px;
}

.booking-form iframe {
    display: block;
    border: none;
}

/* ---------- Footer ---------- */
.footer {
    background-color: var(--color-primary);
    color: white;
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--space-md);
    max-width: 300px;
}

.footer-brand .logo-icon {
    color: var(--color-accent-light);
}

.footer-brand .logo-text {
    color: white;
}

.footer h4 {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
    color: rgba(255, 255, 255, 0.9);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: white;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-bottom {
    padding-top: var(--space-xl);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ---------- Responsive Design ---------- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        gap: var(--space-2xl);
    }
    
    .booking-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 60px;
        --topbar-height: 40px;
    }
    
    .top-bar-content {
        justify-content: center;
        gap: var(--space-lg);
    }
    
    .contact-link span {
        display: none;
    }
    
    .contact-link .icon {
        width: 20px;
        height: 20px;
    }
    
    .contact-link.whatsapp span {
        display: inline;
    }
    
    /* Mobile Navigation */
    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        top: calc(var(--navbar-height) + var(--topbar-height));
        left: 0;
        right: 0;
        background-color: var(--color-surface);
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-lg);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-content {
        max-width: 100%;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .about-image {
        order: -1;
    }
    
    .image-frame {
        max-width: 280px;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
    }
    
    .footer-brand p {
        max-width: 100%;
    }
    
    .footer-brand .logo {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 80%;
        margin: 0 auto;
    }
    
    .about-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
}
