:root {
    /* New Color Palette (Premium Vedic Theme) */
    --primary-color: #D35400;   /* Burnt Orange/Saffron */
    --secondary-color: #F39C12; /* Golden Orange */
    --accent-color: #E67E22;    /* Carrot Orange */
    
    --bg-color: #FDF2E9;        /* Warm Cream Background */
    --bg-card: #FFFFFF;         /* White Card Background */
    --bg-glass: rgba(255, 255, 255, 0.9); /* High opacity white glass */
    
    --text-color: #2C3E50;      /* Midnight Blue Text */
    --text-muted: #7F8C8D;      /* Gray Muted Text */
    --border-color: rgba(211, 84, 0, 0.2); /* Saffron border */
    
    --gradient-main: linear-gradient(135deg, #FDF2E9 0%, #FAE5D3 100%);
    --shadow-card: 0 4px 20px rgba(44, 62, 80, 0.08); /* Subtle dark shadow */
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Cinzel Decorative', serif; /* For a mystical/premium feel */

    /* Spacing - Compact */
    --container-padding: 1.5rem;
    --section-spacing: 3rem;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; text-align: center; margin-bottom: 2rem; }
h3 { font-size: 1.3rem; color: var(--accent-color); }

p { margin-bottom: 1rem; color: var(--text-muted); }

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

ul { list-style: none; }

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

.btn:hover {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 153, 51, 0.2);
}

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

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

.section {
    padding: var(--section-spacing) 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--gradient-main);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/stardust.png'); /* Subtle texture */
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 2px solid var(--primary-color);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition-fast);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

/* Products Section */
.product {
    margin-bottom: 3rem;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.product.reverse .product-container {
    direction: rtl; /* Quick way to swap, but better to use order in flex/grid */
}
.product.reverse .product-content {
    direction: ltr;
}

/* Swiper Customization */
.swiper {
    width: 100%;
    
}

.swiper-mobile {
    height: 600px; /* Portrait height */
    max-width: 350px; /* Limit width for mobile screenshots */
    margin: 0 auto; /* Center it */
}

.swiper-desktop {
    width: 100%;
    aspect-ratio: 16 / 10; /* Landscape aspect ratio for laptop */
    max-height: 500px; /* Prevent it from getting too tall */
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; /* Remove solid background */
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem; /* Reduced padding */
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3)); /* Add shadow to the image itself */
}

.swiper-pagination-bullet {
    background: var(--text-muted);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(26, 11, 46, 0.5); /* Semi-transparent dark bg */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Custom Kundali Layout */
.product-kundali-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 4rem;
}

.desktop-view-container {
    width: 100%;
    max-width: 1000px; /* Limit width for better aesthetics */
    margin: 0 auto;
}

.kundali-content-row {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.mobile-view-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 992px) {
    .kundali-content-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .kundali-content-row .product-content {
        width: 55%; /* Text takes more space */
        text-align: left;
        padding-right: 2rem;
    }

    .kundali-content-row .mobile-view-container {
        width: 40%; /* Slider takes less space */
    }
    
    /* Ensure buttons align left on desktop in this specific row */
    .kundali-content-row .product-content .btn {
        margin: 0; 
    }
}

/* Packages Section */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.package-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.package-card:hover {
    transform: scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.1);
}

.package-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0.8rem 0;
}

.package-features {
    margin: 2rem 0;
    text-align: left;
}

.package-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.package-features li::before {
    content: ''; /* Removed sparkle */
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    margin-right: 10px;
    display: inline-block;
}

/* Footer */
footer {
    background: #1F1510; /* Deep Warm Brown */
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: white; /* Ensure text is white on dark footer */
}

.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.social-links a:hover {
    color: var(--primary-color);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    
    .nav-links {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--bg-card);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .about-grid, .product-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .product.reverse .product-container {
        direction: ltr;
    }
    
    .slider-container {
        height: 300px;
    }
}

/* Download Badges */
.download-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.badge-link img {
    height: 50px; /* Standard height for badges */
    width: auto;
    transition: transform 0.3s ease;
}

.badge-link:hover img {
    transform: scale(1.05);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--bg-card);
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideIn 0.3s ease;
}

.close-modal {
    color: var(--text-muted);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
    text-decoration: none;
}

.modal h3 {
    margin-top: 0;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.modal-body p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--text-color);
}

.code-block {
    background-color: #f4f4f4;
    border-left: 5px solid var(--primary-color);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 5px;
    font-family: monospace;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-block code {
    word-break: break-all;
    color: #c0392b;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: 0.2s;
    padding: 5px;
}

.copy-btn:hover {
    color: var(--primary-color);
}

.modal-actions {
    text-align: center;
    margin-top: 2rem;
}

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

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Copy Tooltip */
.copy-btn {
    position: relative;
}

.tooltip {
    visibility: hidden;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 5px 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Position above */
    left: 50%;
    margin-left: -40px; /* Center */
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
    font-family: var(--font-main);
}

.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--primary-color) transparent transparent transparent;
}

.copy-btn.copied .tooltip {
    visibility: visible;
    opacity: 1;
}

/* WhatsApp Button */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #25D366; /* WhatsApp Green */
    border-color: #25D366;
}

.btn-whatsapp:hover {
    background-color: transparent;
    color: #25D366;
    border-color: #25D366;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.2);
}

.btn-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
