/* Variables & Reset */
:root {
    --primary-color: #023618;
    --primary-light: #075226;
    --secondary-color: #0b6e32;
    --bg-color: #FFFFFF;
    --text-color: #1a2421;
    --text-light: #445952;
    --white: #ffffff;
    --font-main: 'Montserrat', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --shadow-sm: 0 4px 10px -1px rgba(2, 54, 24, 0.05), 0 2px 5px -1px rgba(2, 54, 24, 0.03);
    --shadow-md: 0 12px 20px -3px rgba(2, 54, 24, 0.08), 0 4px 8px -2px rgba(2, 54, 24, 0.04);
    --shadow-lg: 0 25px 35px -5px rgba(2, 54, 24, 0.12), 0 15px 15px -5px rgba(2, 54, 24, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 40px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 15px;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.15), rgba(255,255,255,0));
    z-index: -1;
    transition: var(--transition);
    opacity: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(2, 54, 24, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(2, 54, 24, 0.45);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #149c49);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(11, 110, 50, 0.25);
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(11, 110, 50, 0.45);
}

.btn-secondary:hover::before {
    opacity: 1;
}

.btn-large {
    padding: 16px 36px;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.section-subtitle {
    font-family: var(--font-main);
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 20px;
}

.section-desc {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.home-page .header {
    background-color: transparent;
    box-shadow: none;
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
}

.home-page .header.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
}

.home-page .header:not(.scrolled) .nav > ul > li > a,
.home-page .header:not(.scrolled) .mobile-menu-btn {
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.home-page .header:not(.scrolled) .nav > ul > li > a::after {
    background-color: var(--white);
}

.home-page .header:not(.scrolled) .nav > ul > li > a:hover,
.home-page .header:not(.scrolled) .nav > ul > li > a.active {
    color: var(--white);
}

.home-page .header:not(.scrolled) .dropdown > a i {
    color: var(--white);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    object-fit: contain;
}

.nav > ul {
    display: flex;
    gap: 25px;
}

.nav > ul > li > a {
    font-weight: 500;
    font-size: 15px;
    padding: 10px 0;
    position: relative;
}

.nav > ul > li > a:hover, .nav > ul > li > a.active {
    color: var(--secondary-color);
}

.nav > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav > ul > li > a:hover::after, .nav > ul > li > a.active::after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 220px;
    z-index: 1000;
    border-radius: 5px;
    padding: 10px 0;
    flex-direction: column;
    gap: 0;
}

.dropdown:hover .dropdown-menu {
    display: block;
    animation: slideUp 0.3s ease;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-color);
}

.dropdown-menu a:hover {
    background: var(--bg-color);
    color: var(--secondary-color);
    padding-left: 25px;
    transition: all 0.3s ease;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero */
.hero {
    min-height: 85vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: bgSlide 24s infinite linear;
}

.slide-bg:nth-child(1) { animation-delay: 0s; }
.slide-bg:nth-child(2) { animation-delay: 6s; }
.slide-bg:nth-child(3) { animation-delay: 12s; }
.slide-bg:nth-child(4) { animation-delay: 18s; }

@keyframes bgSlide {
    0% { opacity: 0; transform: scale(1.05); }
    4% { opacity: 1; }
    21% { opacity: 1; }
    25% { opacity: 0; transform: scale(1); }
    100% { opacity: 0; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-title {
    font-size: 56px;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 40px;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.hero-features {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    padding: 14px 24px;
    border-radius: 40px;
    box-shadow: var(--shadow-md);
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.feature-item i {
    color: var(--secondary-color);
    font-size: 18px;
}

/* About */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-container.about-reverse {
    direction: rtl;
}

.about-container.about-reverse .about-content {
    direction: ltr;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}
.about-image:hover img {
    transform: scale(1.02);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary-color);
    color: var(--white);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 8px solid var(--bg-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.experience-badge .years {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 12px;
    text-align: center;
    margin-top: 5px;
    font-weight: 500;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.about-feature i {
    color: var(--secondary-color);
}

/* Services */
.bg-light {
    background-color: var(--bg-color); /* Kept pure white for cleaner contrast */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Services Marquee / Queue Slider */
.services-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.services-slider::before,
.services-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.services-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color), transparent);
}
.services-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color), transparent);
}

.services-track {
    display: flex;
    width: max-content;
    animation: scrollQueue 35s linear infinite;
}

.services-track:hover {
    animation-play-state: paused;
}

.services-slide {
    display: flex;
    gap: 30px;
    padding-right: 30px; /* match the gap for a seamless loop */
}

.services-slide .service-card {
    width: 300px;
    flex-shrink: 0;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.services-slide .service-card:hover {
    transform: translateY(-12px) !important;
}

@keyframes scrollQueue {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .services-slide .service-card {
        width: 280px;
    }
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(16, 185, 129, 0.1);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.service-content p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

.service-link {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link:hover {
    color: var(--primary-color);
}

/* CTA Section */
.cta {
    background-color: #f7f6ed;
    color: var(--text-color);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    opacity: 0.2;
}

.cta::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    opacity: 0.2;
}

.cta h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta .btn-primary {
    background: #ccf8c4;
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(204, 248, 196, 0.4);
}

.cta .btn-primary:hover {
    box-shadow: 0 12px 30px rgba(204, 248, 196, 0.6);
}

.cta .btn-secondary {
    background: #25D366; /* WhatsApp color */
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.cta .btn-secondary:hover {
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

/* Footer */
.footer {
    background-color: #ccf8c4;
    color: var(--text-color);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 80px;
    margin-bottom: 20px;
}

.footer-col h3 {
    color: var(--primary-color);
    font-family: var(--font-main);
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-info i {
    color: var(--secondary-color);
    font-size: 18px;
    margin-top: 3px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(2, 54, 24, 0.05); /* very light primary color for bg */
    border-radius: 50%;
    color: var(--primary-color);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(2, 54, 24, 0.1); /* dark transparent border */
    padding: 25px 0;
    text-align: center;
    font-size: 14px;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    visibility: hidden;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.slide-up { transform: translateY(50px); }
.fade-in-left { transform: translateX(-50px); }
.fade-in-right { transform: translateX(50px); }
.zoom-in { transform: scale(0.9); }

/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 42px; }
    .about-container { grid-template-columns: 1fr; gap: 40px; }
    .about-container.about-reverse { direction: ltr; } /* Reset order so image stays on top on mobile */
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Vedaaranyam Specific Animations */
@keyframes heroBgZoom {
    0% { transform: scale(1.1); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeUpReveal {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.hero {
    overflow: hidden;
    position: relative;
}

.hero-bg-animated {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    animation: heroBgZoom 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    z-index: 0;
}

.veda-animate-title {
    animation: fadeUpReveal 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
    opacity: 0;
}

.veda-animate-subtitle {
    animation: fadeUpReveal 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
    opacity: 0;
}

.veda-animate-features {
    animation: fadeUpReveal 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.9s forwards;
    opacity: 0;
}

.veda-animate-btn {
    animation: fadeUpReveal 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.2s forwards;
    opacity: 0;
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        padding: 20px;
        z-index: 1001;
    }
    .nav.active { display: block; }
    .nav ul { flex-direction: column; gap: 15px; }
    .header-contact { display: none; }
    .mobile-menu-btn { display: block; }
    
    .logo {
        max-width: 75%;
    }
    .logo img {
        height: auto;
        max-height: 50px; /* Slightly smaller on mobile to prevent overlap */
        object-position: left;
    }
    
    .hero {
        padding-top: 100px; /* Prevent text from overlapping absolute header */
        align-items: center;
    }
    .hero-content {
        margin-top: 20px;
    }
    .hero-title { font-size: 32px; }
    .about-features { grid-template-columns: 1fr; }
    .cta-buttons { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* Floating WhatsApp Button (All Pages) */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background-color: #25D366;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 2000;
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
    transition: var(--transition);
    border: 2px solid rgba(255,255,255,0.55);
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    background-color: var(--secondary-color);
    box-shadow: 0 16px 35px rgba(0,0,0,0.22);
}

.whatsapp-float:focus {
    outline: none;
}

.whatsapp-float:focus-visible {
    box-shadow: 0 0 0 4px rgba(131, 183, 53, 0.25), 0 16px 35px rgba(0,0,0,0.22);
}

@media (max-width: 768px) {
    .whatsapp-float {
        right: 18px;
        bottom: 18px;
        width: 54px;
        height: 54px;
        font-size: 26px;
    }
}

/* Offer Popup */
.offer-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.offer-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.professional-popup {
    background: var(--white);
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    position: relative;
    transform: scale(0.8) translateY(50px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    border: 3px solid var(--secondary-color);
}

.popup-image-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    margin-top: 15px; /* space for close button */
    border: 1px solid #eee;
}

.popup-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.offer-popup-overlay.show .professional-popup {
    transform: scale(1) translateY(0);
}

.professional-popup .close-popup-btn {
    position: absolute;
    top: 12px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 30px;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    z-index: 10;
}

.professional-popup .close-popup-btn:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

.popup-action .popup-btn {
    width: 100%;
    font-size: 18px;
    padding: 12px 25px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

@media (max-width: 480px) {
    .professional-popup {
        padding: 15px;
    }
    .popup-image-container {
        margin-top: 25px;
    }
}
