@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&family=Inter:wght@100..900&display=swap');

/* --- Custom Variables and Base Styles (Vedic Theme) --- */
:root {
    --color-primary: #092d76;
    /* Royal Blue */
    --color-accent: #800000;
    /* Maroon (Mehroon) */
    --color-secondary-bg: #f5f7fa;
    /* Light Blue-Grey/Off-White */
    --color-red-danger: #d9534f;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-secondary-bg);
    color: #1a1a1a;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    background-image: none;
    /* Remove static shader as we use dynamic canvas */
}

/* Shader Canvas Container CSS */
/* Decorative Background SVGs Container */
.hero-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    /* Soft Radial Gradient Overlay */
    background: radial-gradient(circle at center, transparent 0%, rgba(255, 255, 255, 0.4) 50%, rgba(9, 45, 118, 0.05) 100%);
}

.bg-symbol {
    position: absolute;
    /* transition: transform 0.2s ease-out; Remove transition here to avoid conflict with animation, handle in JS or wrap in div */
    will-change: transform;
}

/* Specific Positions, Anims & Depth */
.symbol-om-1 {
    top: 8%;
    left: 5%;
    width: 140px;
    opacity: 0.12;
    filter: blur(1px);
    animation: floatBg 12s ease-in-out infinite;
}

.symbol-swastik-1 {
    top: 18%;
    right: 8%;
    width: 110px;
    opacity: 0.15;
    animation: floatBg 14s ease-in-out infinite reverse;
}

.symbol-om-2 {
    bottom: 15%;
    right: 20%;
    width: 160px;
    opacity: 0.08;
    filter: blur(2px);
    /* Background depth */
    animation: floatBg 16s ease-in-out infinite 1s;
}

.symbol-swastik-2 {
    bottom: 8%;
    left: 5%;
    width: 90px;
    opacity: 0.18;
    /* Sharper/Foreground */
    animation: floatBg 10s ease-in-out infinite 2s;
}

@keyframes floatBg {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-25px) rotate(6deg);
    }
}

/* Entrance Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    /* Star invisible */
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Ensure main content sections are opaque for readability over dynamic background */
.expert-section,
.deliverables-section,
.modules-section,
.testimonials-section,
.process-section {
    position: relative;
    z-index: 1;
    /* Explicitly setting background colors */
}

.expert-section,
.testimonials-section {
    background-color: white;
    background-image: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)), url('assests/om.avif');
    background-repeat: repeat;
    background-size: 400px;
    background-position: center;
}

h1,
h2,
h3 {
    font-family: 'Cinzel', serif;
    color: var(--color-primary);
}

/* Decorative Section Headings */
h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 0;
}

h2::before,
h2::after {
    content: '';
    display: block;
    width: 32px;
    height: 32px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.9;
}

/* Swastik Left */
h2::before {
    background-image: url('assests/swastik.png');
}

/* Om Right */
h2::after {
    background-image: url('assests/om.png');
}

@media (min-width: 768px) {
    .expert-content h2 {
        justify-content: flex-start;
        text-align: left;
    }
}

/* Watermark for Module Cards - subtler */
.module-card::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 120px;
    height: 120px;
    background-image: url('assests/om.png');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

/* --- Header & Hero Section --- */
/* --- Header & Hero Section --- */
.header {
    position: relative;
    /* Light Theme Background */
    background-color: var(--color-secondary-bg);
    color: var(--color-primary);
    padding: 3rem 0;
    text-align: center;
}

.header h1 {
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.header .accent-text {
    color: var(--color-accent);
}

.header p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Main CTA Button */
.cta-button {
    display: inline-block;
    background-color: var(--color-accent);
    color: white;
    /* Changed from var(--color-primary) for better contrast on Maroon */
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid var(--color-accent);
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* --- Expert Section --- */
.expert-section {
    padding: 4rem 0;
}

.expert-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.expert-image-wrapper {
    margin-bottom: 2rem;
    text-align: center;
}

.expert-image {
    border-radius: 50%;
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 4px solid var(--color-accent);
    box-shadow: 0 0 0 8px #f0e6ff;
}

.cert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.cert-tags span {
    background-color: #fff8e1;
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid var(--color-accent);
}

/* --- Key Deliverables Section --- */
/* --- Key Deliverables Section --- */
.deliverables-section {
    padding: 7rem 0;
    background-color: var(--color-secondary-bg);
    /* changed from white to create contrast */
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern - moved to ::before */
.deliverables-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(9, 45, 118, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(128, 0, 0, 0.03) 0%, transparent 20%);
    pointer-events: none;
}

/* Om watermark separate */
.deliverables-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background-image: url('assests/om.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.deliverables-section h2 {
    text-align: center;
    margin-bottom: 5rem;
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--color-primary);
    position: relative;
    z-index: 1;
}

.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.deliverable-card {
    background-color: #ffffff;
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    /* Soft, premium shadow */
    position: relative;
    overflow: hidden;
    /* For hover effects */
}

/* Elegant Hover Effect */
.deliverable-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(9, 45, 118, 0.15);
}

/* Bottom accent line on hover */
.deliverable-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
}

.deliverable-card:hover::after {
    transform: scaleX(1);
}

.deliverable-card .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #eef1ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: all 0.5s ease;
    box-shadow: inset 0 0 20px rgba(9, 45, 118, 0.05);
}

.deliverable-card:hover .icon-wrapper {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e4bd1 100%);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(9, 45, 118, 0.25);
}

.deliverable-card .icon-wrapper svg {
    width: 36px;
    height: 36px;
    stroke-width: 1.5;
}

.deliverable-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-weight: 800;
    font-family: 'Cinzel', serif;
}

.deliverable-card p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
    font-weight: 400;
}

/* --- Consultation Modules Section (Pricing Funnel) --- */
.modules-section {
    padding: 4rem 0;
    /* Reduced padding */
    background-color: var(--color-secondary-bg);
}

.modules-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    /* Reduced margin */
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--color-primary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    /* Tighter gap */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.module-card {
    background-color: white;
    border-radius: 1.25rem;
    /* Slightly smaller radius */
    padding: 2rem 1.5rem;
    /* Reduced padding */
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Keep button at bottom */
    justify-content: space-between;
}

.module-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* Soft, deep shadow */
    transform: translateY(-8px);
    border-color: rgba(9, 45, 118, 0.1);
}

/* Featured Card Styling */
/* Featured Card Styling */
.module-card.featured {
    border: 3px solid var(--color-accent);
    /* Maroon Border */
    box-shadow: 0 15px 40px rgba(128, 0, 0, 0.12);
    /* Maroon tinted shadow */
    z-index: 2;
    padding: 2.5rem 2rem;
    background: linear-gradient(to bottom, #ffffff, #fff5f5);
    /* Subtle Maroon Tint */
    position: relative;
    /* Ensure z-index works */
}

.module-card.featured:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(128, 0, 0, 0.2);
}

/* Badges */
.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-accent);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(128, 0, 0, 0.3);
}

.module-card h3 {
    font-size: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-family: 'Cinzel', serif;
    color: var(--color-primary);
    font-weight: 700;
}

.module-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: -1px;
}

.module-card.featured .module-price {
    color: var(--color-accent);
}

.module-card p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.module-features {
    text-align: left;
    margin-bottom: 1.5rem;
    /* Reduced space */
    list-style: none;
    padding: 0;
    color: #4a4a4a;
    flex-grow: 1;
    /* Pushes button down */
}

.module-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    /* Reduced item spacing */
    font-size: 0.95rem;
    /* Reduced font size */
    line-height: 1.4;
}

.module-features li span {
    color: var(--color-accent);
    /* Updated to Maroon for theme consistency */
    margin-right: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* Buttons */
.book-button {
    width: 100%;
    font-weight: 700;
    padding: 0.85rem;
    /* Reduced padding */
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    /* Reduced font size */
    background-color: var(--color-secondary-bg);
    /* Subtle bg for non-featured */
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.module-card:not(.featured) .book-button:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(9, 45, 118, 0.2);
}

.module-card.featured .book-button {
    background-color: var(--color-accent);
    color: white;
    border: none;
    font-size: 1rem;
    /* Reduced font size */
    padding: 1rem;
    /* Reduced padding */
    box-shadow: 0 10px 20px rgba(128, 0, 0, 0.2);
}

.module-card.featured .book-button:hover {
    background-color: #a00000;
    /* Darker Maroon */
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(128, 0, 0, 0.3);
}

.module-card.featured .book-button:hover {
    background-color: #c44743;
    box-shadow: 0 6px 15px rgba(217, 83, 79, 0.4);
}

/* --- Testimonials Section --- */
.testimonials-section {
    padding: 4rem 0;
    background-color: white;
}

.testimonials-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial-card {
    background-color: #fcfcfc;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--color-accent);
}

.testimonial-card p.quote {
    color: #555;
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-card p.author {
    font-weight: 600;
    text-align: right;
    font-size: 0.875rem;
}

/* --- Process Section --- */
.process-section {
    padding: 6rem 0;
    background-color: var(--color-secondary-bg);
}

.process-section h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    font-weight: 800;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 1.5rem 1rem;
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-10px);
}

.step-icon {
    width: 80px;
    height: 80px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.process-step:hover .step-icon {
    border-color: var(--color-accent);
    box-shadow: 0 8px 25px rgba(255, 199, 44, 0.3);
    color: var(--color-primary);
}

.step-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.process-step:hover .step-icon svg {
    color: var(--color-accent);
    /* Optional: Swap colors on hover */
}

/* Badge number */
.step-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--color-primary);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.process-step p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

/* --- Responsive Fixes --- */
@media (max-width: 900px) {
    .container {
        padding: 0 1.25rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .modules-section,
    .deliverables-section,
    .expert-section {
        padding: 3rem 0;
    }
}

/* Vedic Page Border Overlay */
.vedic-page-border {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    z-index: 9999;
    pointer-events: none;
    box-sizing: border-box;
    border: 40px solid transparent;
    border-image: url('assests/vedic_border.png') 14% round;
    /* Initially hide bottom border */
    border-bottom-width: 0;
    opacity: 1;
    /* Hardware acceleration and isolation */
    will-change: transform;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
    contain: strict;
    transition: border-bottom-width 0.3s ease;
}

.vedic-page-border.show-bottom {
    border-bottom-width: 40px;
}

@media (max-width: 768px) {
    .vedic-page-border {
        border-width: 15px;
        border-image-width: 15px;
        /* Ensure bottom is hidden on mobile too initially */
        border-bottom-width: 0;
    }

    .vedic-page-border.show-bottom {
        border-bottom-width: 15px;
    }
}





@media (max-width: 768px) {

    /* featured styling reset for mobile */
    .module-card.featured {
        transform: none;
        box-shadow: 0 8px 20px rgba(128, 0, 0, 0.15);
        border-width: 2px;
        order: initial;
    }

    .module-card.featured:hover {
        transform: none;
        /* No movement on mobile to prevent layout jumps */
    }
}

/* --- Footer --- */
.footer {
    background-color: #1a1a1a;
    color: white;
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

/* Add a subtle top border/glow */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--color-primary), var(--color-accent), var(--color-primary));
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: pulse-border 2s infinite;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1ebc57;
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.footer-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    text-align: left;
}

.footer h3 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

.footer h4 {
    color: var(--color-accent);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer p {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a,
.footer-links li {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.footer-links a:hover,
.footer-links li:hover {
    color: var(--color-accent);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links span {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-links span:hover {
    background-color: var(--color-accent);
    color: #1a1a1a;
    transform: translateY(-3px);
}

.social-links svg {
    width: 18px;
    height: 18px;
}

/* Newsletter */
.footer-newsletter {
    display: flex;
    gap: 0.5rem;
}

.footer-newsletter input {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem;
    border-radius: 0.5rem;
    color: white;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.footer-newsletter input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.footer-newsletter button {
    background-color: var(--color-accent);
    color: #1a1a1a;
    border: none;
    padding: 0 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.footer-newsletter button:hover {
    background-color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}

.footer-bottom span {
    color: #999;
    text-decoration: none;
}

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    margin: auto;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content h4 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.modal-content .modal-body {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
    color: #4a4a4a;
}

.modal-content button {
    background-color: var(--color-primary);
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 1.5rem;
}

.modal-content button:hover {
    background-color: #4e3a8f;
}

/* Certificate Image Styling */
.certificate-image {
    width: 200px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.certificate-image:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

/* --- Media Queries for Responsiveness --- */
@media (min-width: 768px) {
    .header {
        padding: 5rem 0;
    }

    .header h1 {
        font-size: 4rem;
    }

    .expert-content {
        flex-direction: row;
        text-align: left;
    }

    .expert-image-wrapper {
        margin-bottom: 0;
        flex: 0 0 33.3333%;
    }

    .expert-content>div:last-child {
        flex: 0 0 66.6666%;
        padding-left: 3rem;
    }

    .cert-tags {
        justify-content: flex-start;
    }

    .deliverables-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: flex-start;
    }

    /* Process Grid Desktop */
    .process-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 1rem;
    }

    /* Timeline line */
    .process-grid::before {
        content: '';
        position: absolute;
        top: 40px;
        /* Aligned with icon center (icon is 80px high) */
        left: 40px;
        right: 40px;
        height: 2px;
        background-image: linear-gradient(to right, var(--color-primary) 50%, transparent 50%);
        background-size: 10px 100%;
        background-repeat: repeat-x;
        z-index: -1;
        opacity: 0.3;
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile specific gap adjustment for pricing grid */
@media (max-width: 768px) {
    .pricing-grid {
        gap: 6.5rem;
    }
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.process-step {
    opacity: 0;
    /* Hidden initially */
    transform: translateY(20px);
}

.process-step.visible {
    animation: fadeInUp 0.6s ease forwards;
}

/* Stagger delays */
.process-step:nth-child(1) {
    animation-delay: 0.1s;
}

.process-step:nth-child(2) {
    animation-delay: 0.2s;
}

.process-step:nth-child(3) {
    animation-delay: 0.3s;
}

.process-step:nth-child(4) {
    animation-delay: 0.4s;
}

.process-step:nth-child(5) {
    animation-delay: 0.5s;
}

.process-step:nth-child(6) {
    animation-delay: 0.6s;
}

@media (min-width: 1024px) {
    .header h1 {
        font-size: 5rem;
    }
}