/* --- CSS Variables / Color Palette --- */
:root[data-theme="dark"] {
    --primary-bg: #0D0514; /* Deep almost-black with purple hue */
    --secondary-color: #7A1CAC;
    --highlight-color: #AD49E1;
    --text-color: #D3CCE3; /* Softer, readable lavender-gray */
    --heading-color: #FFFFFF;
    --card-bg: #1A1025; /* Slightly lighter for card depth */
    --glass-bg: #0d0514e6;
    --glass-overlay: #0d051499;
    --icon-bg: #7a1cac26;
    --border-color: #ad49e140;
    --nav-height: 80px;
    --hero-logo-url: url('./logo-white.png');
}

:root[data-theme="light"] {
    --primary-bg: #ECE6F0; /* Soft gray-purple to reduce glaring white */
    --secondary-color: #9240C9;
    --highlight-color: #61188D;
    --text-color: #3B2E4A; /* Deep slate-purple for readable body text */
    --heading-color: #4f1670; /* Deep solid purple for bold contrast */
    --card-bg: #FFFFFF; /* Crisp white to pop against the soft background */
    --glass-bg: #ece6f0e6;
    --glass-overlay: #ece6f080;
    --icon-bg: #7a1cac1a;
    --border-color: #7a1cac26;
    --nav-height: 80px;
    --hero-logo-url: url('./logo-purple.png');
}

/* --- Base Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    color: var(--heading-color);
    font-family: 'Bebas Neue', cursive;
    font-weight: 400;
    letter-spacing: 2px;
}

p {
    line-height: 1.6;
    color: var(--text-color);
}

/* --- Navigation Bar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: transparent;
    z-index: 1000;
    transition: all 0.4s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Logo Styling */
.logo {
    font-family: 'Bebas Neue', cursive;
    color: var(--heading-color);
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 0.5em;
}

.logo .symbol {
    font-size: 2rem;
    color: var(--secondary-color);
}

.logo .main-text {
    font-size: 3rem;
    color: var(--heading-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav_link {
    font-weight: 500;
    transition: color 0.3s ease;
    color: var(--text-color);
}

.nav_link:hover {
    color: var(--highlight-color);
}

/* Book Now Btn in Nav */
.nav_book {
    background-color: var(--highlight-color);
    color: #FFFFFF !important;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

.nav_book:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Actions in Nav */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    font-size: 1.3rem;
    color: var(--heading-color);
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.theme-toggle:hover {
    color: var(--highlight-color);
    transform: rotate(15deg);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--heading-color);
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--primary-bg); /* Use primary bg for both themes */
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
    box-shadow: -5px 0 30px rgba(0,0,0,0.2);
}

.mobile-menu.active {
    right: 0;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2rem;
    color: var(--heading-color);
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.mobile-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--heading-color);
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: var(--highlight-color);
}

.mobile-link.cta {
    color: var(--highlight-color);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: moveBlob 20s infinite alternate cubic-bezier(0.5, 0, 0.5, 1);
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--highlight-color);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: rgba(122, 28, 172, 0.5);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 25s;
}

@keyframes moveBlob {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, 50px) scale(1.1); }
    66% { transform: translate(-50px, 150px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

.glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--glass-overlay);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    z-index: 2;
}

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

.hero-logo {
    width: auto;
    height:20vh;
    margin: 0;
    background-image: var(--hero-logo-url);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2;
    transition: background-image 0.3s ease;
}

.company-name {
    font-size: 4rem;
    color: var(--highlight-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.slogan {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--heading-color);
    opacity: 0.9;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.scroll-indicator i {
    font-size: 1.5rem;
    color: var(--highlight-color);
}

.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}


/* --- Shared Section Styles --- */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 15px;
}

.divider {
    height: 4px;
    width: 60px;
    background: var(--highlight-color);
    margin: 0 auto;
    border-radius: 2px;
}


/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(173, 73, 225, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--icon-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 1.6rem;
    color: var(--highlight-color);
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.service-card p {
    font-size: 0.85rem;
}

.service-note {
    text-align: center;
    margin-top: 50px;
    padding: 15px;
    background: var(--icon-bg);
    border-radius: 10px;
    border-left: 4px solid var(--highlight-color);
    display: inline-block;
    max-width: 800px;
    width: 100%;
}

.service-note p {
    font-size: 0.95rem;
    color: var(--heading-color);
}

.service-note strong {
    color: var(--highlight-color);
}


/* --- Order Now Section --- */
.order-now {
    background: var(--card-bg);
    position: relative;
    padding: 80px 0;
    text-align: center;
    border-top: 1px dashed var(--border-color);
    border-bottom: 1px dashed var(--border-color);
}

.order-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.order-content p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--secondary-color), var(--highlight-color));
    color: #FFFFFF;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 20px rgba(122, 28, 172, 0.3);
}

.whatsapp-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 25px rgba(173, 73, 225, 0.4);
    color: #FFFFFF;
}

.whatsapp-btn i {
    font-size: 1.5rem;
}


/* --- FAQ Section --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--icon-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: var(--highlight-color);
    background: var(--card-bg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--heading-color);
}

.faq-item.active .faq-question h3 {
    color: var(--highlight-color);
}

.faq-question i {
    color: var(--highlight-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    padding-bottom: 20px;
}


/* --- Footer Section --- */
footer {
    background: var(--card-bg);
    padding-top: 80px;
    border-top: 2px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 1.6rem;
    color: var(--heading-color);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--highlight-color);
    border-radius: 2px;
}

.footer-col p {
    margin-bottom: 5px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--highlight-color);
    width: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: var(--icon-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    color: var(--heading-color);
}

.social-icons a:hover {
    background: var(--highlight-color);
    color: #FFFFFF;
    transform: translateY(-5px);
}

.footer-bottom {
    background: rgba(0,0,0,0.05);
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.8;
}


/* --- Back To Top Button --- */
#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--highlight-color);
    color: #FFFFFF;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop i {
    font-size: 18px;
    color: #FFFFFF;
}

#backToTop:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(122, 28, 172, 0.4);
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .company-name { font-size: 3rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: block; }

    .hero-logo {
        width: 180px;
        height: 180px;
    }
    
    .company-name { font-size: 2.5rem; }
    
    .services-grid { grid-template-columns: 1fr; }
    
    .footer-content { grid-template-columns: 1fr; gap: 40px; }
    
    .order-content h2 { font-size: 2rem; }
}
