/* Design Tokens - Based on Antarlipi Branding */
:root {
    --primary-red: #D4AF37;
    /* Golden */
    --accent-red: #8B0000;
    /* Darker Brick */
    --text-header: #f8e1a0;
    /* Gold text */
    --text-body: #f8e1a0;
    /* Golden text for dark bg */
    --bg-cream: #06132b;
    /* Dark Navy Background */
    --bg-card: rgba(10, 20, 45, 0.85);
    /* Slightly lighter navy for cards */
    --accent-beige: #D4AF37;
    /* Gold accent */
    --accent-gold: #D4AF37;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--bg-cream);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.05' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' fill='%2306132b'/%3E%3Crect width='400' height='400' filter='url(%23a)' opacity='0.15'/%3E%3C/svg%3E");
}

h1,
h2,
h3,
h4,
h5,
.display-font {
    font-family: 'Playfair Display', serif;
    color: var(--text-header);
    font-weight: 600;
}

/* Navbar */
.navbar {
    background: rgba(4, 18, 45, 0.95) !important;
    /* Deep Navy Blue header */
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-red);
    padding: 15px 0;
    transition: var(--transition);
}

.navbar-brand {
    font-size: 1.6rem;
    color: var(--text-header) !important;
    letter-spacing: 1px;
}

.nav-link {
    color: rgba(248, 225, 160, 0.8) !important;
    font-weight: 500;
    margin: 0 12px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold) !important;
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    color: var(--text-header);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn-gold {
    background-color: var(--accent-gold);
    color: var(--bg-cream);
    border: none;
    padding: 10px 25px;
    border-radius: 2px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-gold:hover {
    background-color: #f8e1a0;
    color: var(--bg-cream);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-outline-gold {
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    background: transparent;
    border-radius: 2px;
}

.btn-outline-gold:hover {
    background: var(--accent-gold);
    color: var(--bg-cream);
}

/* Cards */
.service-card {
    border: none;
    border-radius: 12px;
    padding: 45px 35px;
    transition: var(--transition);
    background: var(--bg-card);
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-red);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(192, 76, 54, 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card i {
    font-size: 2.2rem;
    color: var(--bg-cream);
    /* Dark Blue */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gold);
    /* Golden */
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto;
    /* Center Align */
    transition: var(--transition);
}

.service-card:hover i {
    background: #f8e1a0;
    /* Lighter Golden on hover */
    color: var(--bg-cream);
    /* Dark Blue */
    transform: rotateY(360deg);
}

.service-list {
    margin-top: auto;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.service-list li {
    margin-bottom: 12px;
    color: var(--text-body);
    font-size: 0.9rem;
}

.book-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 30px;
}

.book-card:hover {
    transform: scale(1.03);
}

.book-cover {
    height: 350px;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Testimonials */
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: left;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.testimonial-card .quote-icon {
    font-size: 4rem;
    color: rgba(212, 175, 55, 0.08);
    position: absolute;
    top: 15px;
    right: 25px;
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-body);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding-top: 20px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--accent-gold);
    padding: 2px;
}

.testimonial-author h6 {
    margin: 0 0 4px 0;
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
}

.testimonial-author p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(248, 225, 160, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Sections */
.section-padding {
    padding: 100px 0;
}

.section-title {
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-gold);
}

/* Stats */
.stat-item h3 {
    font-size: 2.5rem;
    color: var(--text-header);
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--primary-red);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Timeline */
.timeline-item {
    border-left: 2px solid var(--primary-red);
    padding-left: 30px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    width: 18px;
    height: 18px;
    background: var(--bg-cream);
    border: 2px solid var(--primary-red);
    border-radius: 50%;
}

/* Footer */
footer {
    background: rgba(10, 20, 45, 0.95);
    color: var(--text-header);
    padding: 80px 0 20px;
}

.footer-link {
    color: rgba(248, 225, 160, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--primary-red);
}

/* Forms */
.form-control {
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.form-control:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.25rem rgba(184, 134, 11, 0.25);
}

/* Helper Classes for Theme Compatibility */
.text-white {
    color: var(--text-header) !important;
}

.text-muted {
    color: rgba(248, 225, 160, 0.7) !important;
}

.text-dark {
    color: var(--bg-cream) !important;
}

.bg-dark {
    background-color: var(--bg-cream) !important;
}

.text-gold {
    color: var(--accent-gold) !important;
}

.bg-gold {
    background-color: var(--accent-gold) !important;
    color: var(--bg-cream) !important;
}

.bg-light {
    background-color: var(--bg-cream) !important;
}

.border-gold {
    border-color: var(--accent-gold) !important;
}

.italic {
    font-style: italic;
}

.ls-2 {
    letter-spacing: 2px;
}

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

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

@keyframes flyFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

.fade-up {
    opacity: 0;
}

.fade-up.animate-now {
    animation: fadeUp 1s ease-out forwards;
}

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

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Slider Animations */
.carousel-item.active .hero h6 {
    opacity: 0;
    animation: fadeUp 0.8s ease-out 0.2s forwards;
}

.carousel-item.active .hero h2 {
    opacity: 0;
    animation: flyFromLeft 0.8s ease-out 0.4s forwards;
}

.carousel-item.active .hero h3 {
    opacity: 0;
    animation: fadeUp 0.8s ease-out 0.5s forwards;
}

.carousel-item.active .hero p {
    opacity: 0;
    animation: fadeUp 0.8s ease-out 0.6s forwards;
}

.carousel-item.active .hero .d-flex {
    opacity: 0;
    animation: fadeUp 0.8s ease-out 0.8s forwards;
}