/* --- Global Styles & Variables --- */
:root {
    --primary-purple: #6a0dad;
    --primary-gold: #ffd700;
    --light-gold: #fff9e8;
    --dark-charcoal: #333333;
    --soft-grey: #f8f8f8;
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); line-height: 1.6; color: var(--dark-charcoal); background: var(--white); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--primary-purple); font-weight: 700; }
h2 { font-size: 2.8rem; text-align: center; margin-bottom: 1.5rem; }
p.section-intro { text-align: center; max-width: 800px; margin: 0 auto 3rem auto; font-size: 1.1rem; }
.content-section { padding: 6rem 0; }
.light-bg { background-color: var(--soft-grey); }

/* --- Navigation Bar --- */
header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); box-shadow: 0 2px 15px rgba(0,0,0,0.08); }
nav { display: flex; justify-content: space-between; align-items: center; height: 80px; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.nav-logo { height: 60px; }
.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 2.5rem; }
.nav-links a { text-decoration: none; color: var(--dark-charcoal); font-weight: 600; font-size: 1rem; position: relative; transition: color 0.3s; padding-bottom: 5px; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary-gold); transition: width 0.3s ease-in-out; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-purple); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.hamburger { display: none; cursor: pointer; }
.hamburger span { display: block; width: 28px; height: 3px; margin: 6px 0; background: var(--primary-purple); transition: all 0.3s ease-in-out; }

/* --- Contained Hero Section --- */
.hero-section { min-height: 90vh; display: flex; justify-content: center; align-items: center; text-align: center; padding: 120px 2rem 4rem 2rem; background: linear-gradient(145deg, var(--white) 0%, var(--light-gold) 100%); }
.hero-content { display: flex; flex-direction: column; align-items: center; }
.hero-logo { max-width: 350px; margin-bottom: 1.5rem; }
.tagline { font-size: 2.8rem; font-style: italic; font-family: var(--font-heading); margin-bottom: 2.5rem; max-width: 700px; line-height: 1.3; }
.founders-img { width: 100%; max-width: 280px; border-radius: 50%; border: 6px solid var(--primary-gold); box-shadow: 0 8px 30px rgba(0,0,0,0.15); margin-bottom: 1.5rem; }
.founders-caption { font-style: italic; font-weight: 400; font-size: 1.1rem; margin-bottom: 2rem; }
.hero-cta { background: var(--primary-purple); color: var(--white); border: 2px solid var(--primary-purple); }
.hero-cta:hover { background: var(--primary-gold); color: var(--primary-purple); border: 2px solid var(--primary-gold); }

/* --- INTERACTIVE: Service Pillar Cards --- */
.service-card { background: var(--white); padding: 2rem; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,0.07); text-align: center; transition: transform 0.3s, box-shadow 0.3s; border-top: 4px solid var(--primary-gold); overflow: hidden; position: relative; }
.service-card h3 { font-size: 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.service-card h3 i { font-size: 2.5rem; color: var(--primary-purple); }
.pillar-details { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(106, 13, 173, 0.95); color: white; display: flex; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.4s ease; padding: 1rem; pointer-events: none; }
.pillar-details ul { list-style: none; text-align: center; }
.pillar-details li { margin-bottom: 0.5rem; font-weight: 600; }
.service-card:hover .pillar-details { opacity: 1; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }

/* --- INTERACTIVE: Impact Counters --- */
.impact-section { background: var(--primary-purple); color: var(--white); padding: 4rem 0; }
.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; text-align: center; }
.impact-item h3 { color: var(--primary-gold); font-size: 3.5rem; font-weight: 700; }
.impact-item p { font-size: 1rem; font-weight: 300; text-transform: uppercase; letter-spacing: 1px; }

/* --- INTERACTIVE: Filterable Services --- */
.filter-buttons { display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.filter-btn { background: var(--soft-grey); color: var(--dark-charcoal); border: 1px solid #ddd; padding: 0.8rem 1.5rem; border-radius: 50px; cursor: pointer; font-weight: 600; transition: all 0.3s; }
.filter-btn:hover { background: var(--light-gold); border-color: var(--primary-gold); }
.filter-btn.active { background: var(--primary-purple); color: var(--white); border-color: var(--primary-purple); }
.detailed-service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.detailed-card { background: var(--white); padding: 2rem; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,0.07); transition: transform 0.3s, opacity 0.4s, visibility 0.4s, height 0.4s, padding 0.4s, margin 0.4s; border-left: 4px solid var(--primary-purple); }
.detailed-card.hide { transform: scale(0.9); opacity: 0; visibility: hidden; height: 0; padding: 0; margin: 0; border-width: 0; }
.detailed-card h4 { font-size: 1.3rem; margin-bottom: 0.5rem; }

/* --- INTERACTIVE: Testimonials --- */
.testimonial-slider { position: relative; max-width: 800px; margin: 0 auto; text-align: center; padding: 2rem; background: var(--white); border-radius: 10px; box-shadow: 0 5px 25px rgba(0,0,0,0.1); }
.testimonial { display: none; }
.testimonial.active { display: block; animation: fadeIn 0.8s; }
.quote { font-family: var(--font-heading); font-style: italic; font-size: 1.4rem; margin-bottom: 1rem; line-height: 1.5; }
.author { font-weight: 600; color: var(--primary-purple); }
.slider-nav { position: absolute; top: 50%; width: 100%; left: 0; transform: translateY(-50%); display: flex; justify-content: space-between; padding: 0 1rem; }
.prev-btn, .next-btn { background: var(--primary-gold); color: var(--primary-purple); border: none; border-radius: 50%; width: 40px; height: 40px; font-size: 1.5rem; cursor: pointer; transition: background 0.3s; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.prev-btn { margin-left: -30px; }
.next-btn { margin-right: -30px; }

/* --- CTA Section --- */
.cta-section { background: linear-gradient(145deg, rgba(106, 13, 173, 0.9), rgba(135, 30, 203, 0.9)), url('placeholder.jpg') no-repeat center center/cover; background-attachment: fixed; padding: 6rem 0; text-align: center; color: var(--white); }
.cta-section h2 { color: var(--white); font-size: 2.8rem; }
.cta-button { display: inline-block; background: var(--primary-gold); color: var(--primary-purple); padding: 1.2rem 3rem; text-decoration: none; font-weight: 600; border-radius: 50px; transition: all 0.3s; border: none; cursor: pointer; font-size: 1.1rem; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.cta-button:hover { background: #fff; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }

/* --- INTERACTIVE: Modal Styles (for Ebook) --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 2000; display: none; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.4s ease; }
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content { background: var(--white); padding: 3rem; border-radius: 10px; max-width: 500px; width: 90%; position: relative; text-align: center; transform: translateY(-50px); transition: transform 0.4s ease; }
.modal-overlay.active .modal-content { transform: translateY(0); }
.close-modal { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 2rem; color: var(--dark-charcoal); cursor: pointer; }
.modal-content h3 { margin-bottom: 1rem; }
.modal-intro { font-size: 0.95rem; margin-bottom: 2rem; color: #555; }
.contact-form input, .contact-form textarea { width: 100%; padding: 1rem; margin-bottom: 1rem; border: 1px solid #ddd; border-radius: 5px; }
.contact-form .cta-button { width: 100%; }

/* --- Footer --- */
footer { background: var(--dark-charcoal); color: var(--soft-grey); text-align: center; padding: 3rem 0; }
footer a { color: var(--primary-gold); text-decoration: none; }
.back-to-top { display: block; margin-top: 1.5rem; font-size: 0.9rem; }

/* --- CHANGE: WhatsApp Button and Pop-up Styles --- */
.whatsapp-container { position: fixed; bottom: 30px; right: 30px; z-index: 100; display: flex; align-items: center; }
.whatsapp-float { width: 60px; height: 60px; background-color: #25D366; color: #FFF; border-radius: 50px; text-align: center; font-size: 30px; box-shadow: 2px 2px 8px rgba(0,0,0,0.3); transition: transform 0.3s ease-in-out; display: flex; justify-content: center; align-items: center; text-decoration: none; }
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-popup { position: absolute; right: 75px; /* Position to the left of the button */ background-color: var(--dark-charcoal); color: var(--white); padding: 8px 12px; border-radius: 6px; font-size: 0.9rem; white-space: nowrap; /* Prevent text wrapping */ opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.whatsapp-container:hover .whatsapp-popup { opacity: 1; visibility: visible; }

/* --- Responsive & Animations --- */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 768px) {
    .nav-links { position: fixed; top: 80px; right: -100%; width: 70%; height: calc(100vh - 80px); background: var(--white); flex-direction: column; align-items: center; padding-top: 3rem; transition: right 0.4s ease-in-out; }
    .nav-links.active { right: 0; }
    .nav-links li { margin: 1.5rem 0; }
    .hamburger { display: block; }
    .hamburger.toggle span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .hamburger.toggle span:nth-child(2) { opacity: 0; }
    .hamburger.toggle span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }
    .contact-grid { grid-template-columns: 1fr; }
    .modal-content { padding: 2rem; }
    .whatsapp-container { bottom: 20px; right: 20px; }
    .whatsapp-float { width: 50px; height: 50px; font-size: 24px; }
    .whatsapp-popup { right: 65px; }
}