/* Services CSS */
/* ===== ROOT VARIABLES ===== */
:root {
    --primary-maroon: #800000;
    --primary-saffron: #FF9933;
    --primary-orange: #FF5722;
    --gold: #D4AF37;
    --cream: #FFF9F0;
    --light-saffron: #FFF5E6;
    --text-dark: #333333;
    --text-light: #5a3d3d;
    --white: #FFFFFF;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--cream);
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ===== PAGE HEADER ===== */
.page-header {
    position: relative;
    min-height: 25vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(128, 0, 0, 0.9), rgba(255, 87, 34, 0.85)),
        url('../images/services-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 0 50px;
    overflow: hidden;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 153, 51, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-item {
    position: absolute;
    font-size: 2rem;
    opacity: 0.4;
    animation: floatAnimation 15s infinite ease-in-out;
}

.float-item:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.float-item:nth-child(2) {
    top: 25%;
    right: 15%;
    animation-delay: 3s;
    font-size: 3rem;
}

.float-item:nth-child(3) {
    bottom: 30%;
    left: 15%;
    animation-delay: 5s;
}

.float-item:nth-child(4) {
    bottom: 20%;
    right: 10%;
    animation-delay: 2s;
}

@keyframes floatAnimation {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header .container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-saffron);
}

.breadcrumb span:not(:last-child) {
    opacity: 0.6;
}

.page-header h1 {
    font-family: 'Tiro Devanagari Hindi', serif;
    font-size: 4rem;
    margin-bottom: 10px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.8s ease;
}

.page-header .subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    opacity: 0.95;
    letter-spacing: 3px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.page-header .tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.header-decorative {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.header-decorative span:first-child,
.header-decorative span:last-child {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.header-decorative .icon {
    font-size: 1.5rem;
}

/* ===== INTRO SECTION ===== */
.intro-section {
    padding: 80px 0;
    background: var(--white);
    text-align: center;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.intro-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-maroon), var(--primary-orange));
    color: var(--white);
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.intro-content h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--primary-maroon);
    margin-bottom: 25px;
}

.intro-content .lead-text {
    font-size: 1.25rem;
    line-height: 1.9;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.intro-verse {
    background: linear-gradient(135deg, var(--light-saffron), var(--cream));
    padding: 30px 40px;
    border-radius: 20px;
    border-left: 5px solid var(--primary-saffron);
}

.intro-verse .sanskrit {
    font-family: 'Tiro Devanagari Hindi', serif;
    font-size: 1.8rem;
    color: var(--primary-maroon);
    margin-bottom: 10px;
}

.intro-verse .translation {
    font-style: italic;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    position: relative;
    padding: 100px 0;
    background: var(--cream);
    overflow: hidden;
}

.decorative-mandala {
    position: absolute;
    width: 400px;
    height: 400px;
    opacity: 0.05;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="45" fill="none" stroke="%23800000" stroke-width="0.5"/><circle cx="50" cy="50" r="35" fill="none" stroke="%23800000" stroke-width="0.5"/><circle cx="50" cy="50" r="25" fill="none" stroke="%23800000" stroke-width="0.5"/></svg>');
    background-size: contain;
    animation: rotateMandala 60s linear infinite;
}

.decorative-mandala.left {
    left: -150px;
    top: 20%;
}

.decorative-mandala.right {
    right: -150px;
    bottom: 20%;
    animation-direction: reverse;
}

@keyframes rotateMandala {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(128, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 153, 51, 0.1);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(128, 0, 0, 0.15);
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-image img {
    transform: scale(1.1);
}

.card-icon {
    position: absolute;
    bottom: -25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-saffron), var(--primary-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.card-content {
    padding: 40px 30px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--primary-maroon);
    margin-bottom: 5px;
}

.hindi-title {
    font-family: 'Tiro Devanagari Hindi', serif;
    color: var(--primary-saffron);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.card-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
    background: var(--light-saffron);
    padding: 15px;
    border-radius: 10px;
}

.service-features li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.service-features li:last-child {
    margin-bottom: 0;
}

.service-features li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--primary-saffron);
}

.service-btn {
    display: inline-block;
    text-align: center;
    padding: 12px 25px;
    background: transparent;
    border: 2px solid var(--primary-maroon);
    color: var(--primary-maroon);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-btn:hover {
    background: var(--primary-maroon);
    color: var(--white);
}

/* ===== CTA SECTION ===== */
.cta-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-maroon), var(--primary-orange));
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><circle cx="30" cy="30" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.cta-content h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-btn.donate {
    background: var(--white);
    color: var(--primary-maroon);
}

.cta-btn.donate:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-btn.volunteer {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid var(--white);
    backdrop-filter: blur(5px);
}

.cta-btn.volunteer:hover {
    background: var(--white);
    color: var(--primary-maroon);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .intro-content h2 {
        font-size: 2rem;
    }
}