/* --- Variables & Reset --- */
:root {
    --primary: #FF6F00;
    --primary-gradient: linear-gradient(135deg, #FF8F00 0%, #FF6F00 100%);
    --secondary: #FFFFFF;
    --accent: #FFF3E0;
    --bg-light: #F5F5F5;
    --text-dark: #333333;
    --text-muted: #666666;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    /* Move hero gradient to body for site-wide consistency */
    background: radial-gradient(circle at top right, var(--accent), var(--secondary)) fixed;
    overflow-x: hidden;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
    transition: var(--transition);
}

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

.highlight {
    color: var(--primary);
}

.hindi-font {
    font-family: 'Kalam', cursive;
    font-weight: 700;
    font-size: 1.2em;
    vertical-align: middle;
    text-shadow: 2px 2px 4px rgba(255, 111, 0, 0.3);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 111, 0, 0.4);
}

.btn-secondary {
    background: var(--accent);
    color: var(--primary);
    margin-left: 10px;
}

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

.nav-actions .btn-outline {
    margin-left: 10px;
}

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

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

/* --- Splash Screen --- */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15); /* Light transparent background */
    backdrop-filter: blur(25px); /* Heavy blur for glassmorphism */
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Very high z-index to cover everything */
    opacity: 1;
    visibility: visible;
    transition: background 0.8s ease-out, backdrop-filter 0.8s ease-out, opacity 0.5s ease-out;
}

.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-logo {
    max-width: 280px; /* Adjust size as needed */
    height: auto;
    animation: splashLogoPulse 2s ease-in-out infinite alternate, splashLogoScale 1.5s ease-out forwards;
    filter: drop-shadow(0 0 25px rgba(255, 111, 0, 0.6)); /* Saffron glow */
}

@keyframes splashLogoPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

@keyframes splashLogoScale {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- Logo Styling (Navbar & Footer) --- */
.logo-link {
    text-decoration: none;
    display: flex; /* Ensures image is centered if needed */
    align-items: center;
}
.logo-wrapper {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-img {
    height: 45px;
    width: auto;
    opacity: 0;
    transition: var(--transition);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: white;
    padding: 15px 0;
    box-shadow: var(--shadow);
}

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

.logo {
    font-family: 'Kalam', cursive;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 1px;
    display: block;
    transition: opacity 0.8s ease, transform 0.8s ease;
    opacity: 0;
    transform: translateX(-15px);
}

.logo.reveal-shimmer {
    opacity: 1;
    transform: translateX(0);
    background: linear-gradient(
        120deg, 
        var(--primary) 25%, 
        #FFD700 45%, 
        #FFF3E0 50%, 
        #FFD700 55%, 
        var(--primary) 75%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldenShimmer 3s linear 1 forwards;
}

@keyframes goldenShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: 20px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 2px 0;
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background: transparent;
    padding-top: 80px;
    overflow: hidden;
}

.site-watermark {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 850px;
    height: 850px;
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
    border-radius: 50%;
    filter: drop-shadow(0 0 10px rgba(255, 111, 0, 0));
    animation: watermarkReveal 2.5s ease-out forwards, pulseGlow 4s ease-in-out 2.5s infinite;
}

.site-watermark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    border-radius: 50%;
    animation: slowRotate 60s linear infinite;
}

@keyframes watermarkReveal {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
    to { opacity: 0.15; transform: translate(-50%, -50%) scale(1); }
}

@keyframes pulseGlow {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(255, 111, 0, 0.2)); }
    50% { filter: drop-shadow(0 0 40px rgba(255, 111, 0, 0.5)); }
}

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

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

.badge {
    background: var(--accent);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* --- Sections Common --- */
section {
    padding: 100px 0;
    /* Ensure background is transparent to see global watermark */
    background: transparent;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(255, 111, 0, 0.15);
}

.service-card:hover h3,
.service-card:hover .icon {
    color: #E65100;
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    transition: var(--transition);
}

/* --- Featured Cards --- */
.featured {
    /* Transparent saffron background for the section */
    background: rgba(255, 111, 0, 0.05);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.featured-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.featured-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(255, 111, 0, 0.15);
    transition: var(--transition);
}

.featured-card:hover h4 {
    color: #E65100;
}

.card-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #999;
}

.card-body {
    padding: 25px;
}

.price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* --- Why Us --- */
.why-us {
    background: linear-gradient(to bottom, transparent, rgba(255, 111, 0, 0.02), transparent);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.why-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 60px 35px;
    border-radius: 32px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.why-item:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(255, 111, 0, 0.12);
}

.why-item:hover h4 {
    color: #E65100;
}

.why-icon {
    width: 90px;
    height: 90px;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    margin: 0 auto 35px;
    font-size: 2.5rem;
    box-shadow: 0 15px 35px rgba(255, 111, 0, 0.3);
    transition: var(--transition);
}

.why-item:hover .why-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 20px 45px rgba(255, 111, 0, 0.4);
}

/* --- Testimonials --- */
.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-container {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    min-width: 100%;
    padding: 40px;
    text-align: center;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.testimonial-card h5 {
    margin-top: 20px;
    color: var(--primary);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: var(--primary);
    width: 25px;
    border-radius: 10px;
}

/* --- CTA Section --- */
.cta-box {
    background: var(--primary-gradient);
    border-radius: 30px;
    padding: 60px;
    text-align: center;
    color: white;
}

.cta-box h2 { font-size: 2.5rem; }
.cta-box p { color: rgba(255,255,255,0.9); margin-bottom: 30px; }

/* --- Footer --- */
footer {
    background: #1a1a1a;
    color: white;
    padding: 80px 0 20px;
}

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

.footer-col h4 {
    color: var(--primary);
    margin-bottom: 25px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: #ccc; text-decoration: none; transition: var(--transition); }
.footer-col a:hover { color: var(--primary); }

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* --- Floating WhatsApp --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #777;
}

/* Footer Logo */
.footer-logo {
    height: 50px; /* Adjust height as needed */
    width: auto;
    margin-bottom: 10px;
}

/* --- Logo Trail Particles --- */
.logo-trail-particle {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998; /* Just below the splash logo */
    filter: blur(8px);
    opacity: 0.5;
    animation: trailFade 0.6s ease-out forwards;
}

@keyframes trailFade {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(2.5); opacity: 0; }
}
/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), 
                transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform, opacity;
}

/* --- Directional Entrance Logic --- */
/* We use :not(.appear) to set the starting state; once .appear is added, they transition to translate(0,0) */

/* Left-side items slide from the left */
.services-grid .service-card.fade-in:nth-child(3n+1):not(.appear),
.featured-grid .featured-card.fade-in:nth-child(3n+1):not(.appear),
.why-grid .why-item.fade-in:nth-child(odd):not(.appear) {
    transform: translateX(-70px) scale(0.95);
}

/* Right-side items slide from the right */
.services-grid .service-card.fade-in:nth-child(3n):not(.appear),
.featured-grid .featured-card.fade-in:nth-child(3n):not(.appear),
.why-grid .why-item.fade-in:nth-child(even):not(.appear) {
    transform: translateX(70px) scale(0.95);
}

/* Note: Middle items (3n+2) naturally inherit the default translateY(40px) from .fade-in */

.fade-in.appear {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Staggered delays for grid items to create a wave effect */
.services-grid .service-card.fade-in:nth-child(1),
.featured-grid .featured-card.fade-in:nth-child(1),
.why-grid .why-item.fade-in:nth-child(1) {
    transition-delay: 0.1s;
}

.services-grid .service-card.fade-in:nth-child(2),
.featured-grid .featured-card.fade-in:nth-child(2),
.why-grid .why-item.fade-in:nth-child(2) {
    transition-delay: 0.2s;
}

.services-grid .service-card.fade-in:nth-child(3),
.featured-grid .featured-card.fade-in:nth-child(3),
.why-grid .why-item.fade-in:nth-child(3) {
    transition-delay: 0.3s;
}

.why-grid .why-item.fade-in:nth-child(4) {
    transition-delay: 0.4s;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: white;
        flex-direction: column;
        padding: 100px 40px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: 0.4s;
    }
    .nav-links.active { right: 0; }
    .nav-links li { margin: 15px 0; }
    .menu-toggle { display: flex; }
    .footer-grid { grid-template-columns: 1fr; }
    .nav-actions .btn { display: none; }

    .site-watermark {
        width: 600px;
        height: 600px;
        left: 50%;
        opacity: 0.08;
    }

    /* On mobile, reset to vertical entry to prevent horizontal overflow/scrolling issues */
    .services-grid .service-card.fade-in:not(.appear),
    .featured-grid .featured-card.fade-in:not(.appear),
    .why-grid .why-item.fade-in:not(.appear) {
        transform: translateY(30px) scale(0.98);
    }
}
