/* style.css */

/* --- 1. Variables & Reset --- */
:root {
    --primary: #752BAC; /* Deep Purple */
    --primary-dark: #5a1e85;
    --accent: #76B900;  /* Logo Green */
    --text-dark: #333333;
    --text-light: #555555;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --gradient: linear-gradient(135deg, rgba(117, 43, 172, 0.9), rgba(80, 20, 130, 0.85));
    --shadow: 0 15px 35px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--off-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; }
a { text-decoration: none; }
ul { list-style: none; }

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

/* --- 2. Top Bar --- */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.95);
    padding: 8px 0;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}
.top-bar .container { display: flex; justify-content: flex-end; gap: 25px; }
.top-bar i { margin-right: 8px; color: var(--accent); }

/* --- 3. Navigation --- */
nav {
    background: var(--white);
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

/* Logo Image Styling */
.nav-logo-img {
    height: 60px; /* Adjusts height nicely */
    width: auto;
    display: block;
}

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--text-dark); font-weight: 500; font-size: 0.95rem; transition: 0.3s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: var(--white) !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    box-shadow: 0 5px 15px rgba(117, 43, 172, 0.3);
}
.btn-primary:hover { 
    background: var(--accent); 
    border-color: var(--accent); 
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--white);
    transition: 0.3s;
}
.btn-secondary:hover { background: var(--white); color: var(--primary); }

/* --- 4. Hero Section & Slider --- */
.hero {
    height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-bottom: 60px;
    overflow: hidden;
}

.hero-slider {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
}
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.5s ease-in-out; transform: scale(1.05);
}
.slide.active { opacity: 1; transform: scale(1); transition: opacity 1.5s ease-in-out, transform 6s; }

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--gradient); z-index: 1;
}

.hero-content { position: relative; z-index: 2; padding: 20px; max-width: 800px; }
.hero-content h1 { font-size: 4.5rem; margin: 15px 0; line-height: 1.1; text-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.hero-content p { font-size: 1.3rem; margin-bottom: 35px; opacity: 0.95; font-weight: 300; }

.badge {
    background: rgba(255,255,255,0.25); backdrop-filter: blur(5px);
    padding: 8px 20px; border-radius: 30px;
    font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1.5px;
    border: 1px solid rgba(255,255,255,0.4);
}

.hero-btns { display: flex; gap: 20px; justify-content: center; }

/* --- 5. Info Cards --- */
.info-section { margin-top: -120px; position: relative; z-index: 10; padding-bottom: 60px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }

.info-card {
    background: var(--white); padding: 40px 30px;
    border-radius: 20px; box-shadow: var(--shadow);
    text-align: center; transition: transform 0.4s ease;
    border-bottom: 5px solid var(--accent);
}
.info-card:hover { transform: translateY(-15px); }

.icon-box {
    width: 70px; height: 70px; background: rgba(118, 185, 0, 0.1);
    color: var(--accent); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin: 0 auto 25px;
}
.info-card h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.5rem; }
.info-card p { color: var(--text-light); font-size: 1rem; }

/* --- 6. WhatsApp Float (Updated) --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px; right: 30px;
    height: 60px; width: 60px; /* Start as circle */
    background-color: #25d366; color: #FFF;
    border-radius: 50px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    overflow: hidden; /* Hide text initially */
    transition: width 0.4s ease, background-color 0.3s; /* Smooth expand */
}

.whatsapp-float i { font-size: 35px; }

.whatsapp-text {
    display: none; /* Hidden by default */
    margin-right: 10px;
    font-weight: 600;
    white-space: nowrap;
    font-size: 1rem;
}

/* Hover Effect: Expand & Show Text */
.whatsapp-float:hover {
    width: 220px; /* Expand width */
    background-color: #128C7E;
}

.whatsapp-float:hover .whatsapp-text {
    display: block; /* Show text */
    animation: fadeIn 0.4s;
}

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

/* --- 7. Animations --- */
.fade-in-up { animation: fadeInUp 1s ease-out forwards; opacity: 0; transform: translateY(30px); }
.delay-1 { animation-delay: 0.3s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* --- 8. Footer --- */
footer { background: var(--primary-dark); color: var(--white); padding: 50px 0 20px; text-align: center; }
.social-links { margin: 20px 0; }
.social-links a { color: var(--white); margin: 0 12px; font-size: 1.6rem; transition: 0.3s; }
.social-links a:hover { color: var(--accent); transform: scale(1.1); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.9rem; opacity: 0.7; }

/* Mobile */
@media (max-width: 768px) {
    .top-bar { display: none; }
    .hero h1 { font-size: 2.8rem; }
    .hero { height: 80vh; }
    .nav-links {
        display: none; flex-direction: column;
        position: absolute; top: 70px; right: 0; left: 0;
        background: var(--white); padding: 30px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        text-align: center;
    }
    .nav-links.active { display: flex; }
    .hamburger { display: block; font-size: 1.8rem; color: var(--primary); cursor: pointer; }
    .hero-btns { flex-direction: column; }
    .info-section { margin-top: -60px; }
    
    /* On mobile, keep WhatsApp button small (optional) */
    .whatsapp-float:hover { width: 60px; }
    .whatsapp-float:hover .whatsapp-text { display: none; }
}

/* --- INTERNAL PAGES STYLES --- */

/* Page Headers */
.page-header {
    background: var(--primary-dark);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 50px;
}
.page-header h1 { font-size: 3rem; margin-bottom: 10px; }
.page-header p { opacity: 0.8; font-size: 1.1rem; }

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding-bottom: 50px;
}
.service-item {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: 0.3s;
    border-top: 5px solid var(--primary);
}
.service-item:hover { transform: translateY(-10px); border-color: var(--accent); }
.service-icon { font-size: 3rem; color: var(--primary); margin-bottom: 20px; }

/* About Section */
.about-flex {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}
.about-img { flex: 1; }
.about-img img { width: 100%; border-radius: 20px; box-shadow: var(--shadow); }
.about-text { flex: 1; }
.about-text h2 { color: var(--primary); margin-bottom: 20px; }

/* Team Section */
.team-card {
    background: var(--white);
    text-align: center;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 400px;
    margin: 0 auto;
}
.team-img {
    width: 150px; height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--accent);
}

/* Gallery & Achievements Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.gallery-item img {
    width: 100%; height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: 0.3s;
    cursor: pointer;
}
.gallery-item img:hover { transform: scale(1.03); box-shadow: var(--shadow); }

/* Career Page */
.career-box {
    text-align: center;
    background: var(--white);
    padding: 60px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: 0 auto;
}

/* Enquire Form Styling */
.form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: 0 auto;
}
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--primary); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins';
    font-size: 1rem;
}
.form-group input:focus { border-color: var(--primary); outline: none; }

/* Responsive adjustments for inner pages */
@media (max-width: 768px) {
    .about-flex { flex-direction: column; }
    .page-header h1 { font-size: 2rem; }
}

/* --- GOOGLE REVIEWS SCROLLING (Marquee) --- */
.google-reviews-section {
    background: #f8f9fa;
    padding: 50px 0;
    overflow: hidden; /* Hides the scrollbar */
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.google-badge {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.2rem;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
}

.marquee-content {
    display: inline-flex;
    gap: 30px;
    animation: scrollLeft 30s linear infinite; /* The moving animation */
}

/* Pause scroll when mouse hovers so people can read */
.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Moves content left */
}

/* The Review Cards */
.review-card {
    width: 350px;
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    white-space: normal; /* Allows text to wrap inside card */
    flex-shrink: 0;
    border-left: 5px solid var(--accent); /* Nice green accent */
}

.review-card .stars { color: #FFD700; margin-bottom: 10px; }
.review-card p { font-size: 0.95rem; color: #555; font-style: italic; margin-bottom: 15px; }
.review-card h4 { color: var(--primary); font-size: 1rem; }


/* --- CLEAN VERTICAL INSTAGRAM GRID --- */
.reels-grid {
    display: grid;
    /* Responsive columns */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-items: center;
}

.reel-item {
    width: 320px;
    height: 580px; /* PERFECT RATIO for Reels */
    background: #000; /* Black background while loading */
    border-radius: 20px; /* Clean rounded corners */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Lifted shadow */
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

/* Subtle Lift Effect on Hover */
.reel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(117, 43, 172, 0.2); /* Purple shadow glow */
}

.reel-item iframe {
    width: 100%;
    height: 100%;
    border: none;
    /* This fix prevents Instagram from being cut off */
    display: block; 
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .scrolling-content { animation: scroll 20s linear infinite; }
    .reel-item { width: 100%; height: 550px; }
}
