:root {
    /* Enhanced Color Palette */
    --primary-color: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-light: #FF9A6B;
    --secondary-color: #6C63FF;
    --accent-color: #FFD166;
    --dark-color: #1A1A2E;
    --light-color: #F8F9FA;
    --text-dark: #2D3748;
    --text-light: #718096;
    --success-color: #38B2AC;
    --warning-color: #ED8936;
    --danger-color: #E53E3E;
    
    /* About Page Specific Colors */
    --about-primary: #dcb478;
    --about-bg-theme: #fdfbf7;
    --about-bg-white: #ffffff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #FF9A6B 100%);
    --gradient-dark: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
    --gradient-purple: linear-gradient(135deg, #6C63FF 0%, #8A84FF 100%);
    --gradient-sunset: linear-gradient(135deg, #FF6B35 0%, #6C63FF 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.3);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Responsive Vars */
    --nav-height: 80px;
    --section-spacing: 6rem;
    
    /* Global Background */
    --global-bg-light: #F8F9FA;
    --global-bg-dark: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
    
    /* Card Backgrounds */
    --card-bg-light: #ffffff;
    --card-bg-dark: rgba(30, 30, 46, 0.8);
    --border-color-light: #e9ecef;
    --border-color-dark: rgba(255, 255, 255, 0.1);
}

/* Mobile Adjustment for Variables */
@media (max-width: 991px) {
    :root {
        --nav-height: 70px;
        --section-spacing: 4rem;
    }
}
@media (max-width: 767px) {
    :root {
        --nav-height: 60px;
        --section-spacing: 3rem;
    }
}

/* =========================================
   BASE STYLES & RESET - UPDATED FOR GLOBAL BG
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--global-bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    transition: background var(--transition-normal), color var(--transition-normal);
    min-height: 100vh;
}

/* Apply global dark background */
body.dark-mode {
    background: var(--global-bg-dark) !important;
    color: #E2E8F0;
    min-height: 100vh;
}

/* Remove all individual section backgrounds */
.hero,
.stats-section,
.about-section,
.services-section,
.works-section,
.testimonials-section,
.faq-section,
.contact-section,
.footer-main,
section {
    background: transparent !important;
}

/* Light mode sections (cards) should have white background */
body:not(.dark-mode) .service-card,
body:not(.dark-mode) .work-step,
body:not(.dark-mode) .testimonial-card,
body:not(.dark-mode) .contact-form-card,
body:not(.dark-mode) .contact-info-card,
body:not(.dark-mode) .custom-accordion .accordion-button,
body:not(.dark-mode) .stat-card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* Dark mode sections (cards) should have semi-transparent dark background */
body.dark-mode .service-card,
body.dark-mode .work-step,
body.dark-mode .testimonial-card,
body.dark-mode .contact-form-card,
body.dark-mode .contact-info-card,
body.dark-mode .custom-accordion .accordion-button,
body.dark-mode .stat-card {
    background: var(--card-bg-dark) !important;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color-dark);
}

/* Dark mode overrides for sections */
body.dark-mode section,
body.dark-mode .about-hero,
body.dark-mode .mission-vision,
body.dark-mode .stats-section {
    background: transparent !important;
    background-color: transparent !important;
}

body.dark-mode .text-muted {
    color: #A0AEC0 !important;
}

body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h4, 
body.dark-mode h5,
body.dark-mode .section-title {
    color: #ffffff !important;
    -webkit-text-fill-color: white !important;
    background: none !important;
}

/* Pattern Overlay for Sections */
section::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-image: radial-gradient(var(--primary-color) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

body.dark-mode section::before {
    opacity: 0.03; /* Make pattern more subtle in dark mode */
}

.container { 
    position: relative; 
    z-index: 1; 
}

/* Remove borders from dark mode stat cards */
body.dark-mode .stat-card {
    border-color: var(--border-color-dark);
}

/* Make hero image more transparent for better text visibility */
.hero-slide img {
    opacity: 0.3;
}

/* Update footer for dark mode */
body.dark-mode .footer-main {
    background: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Add subtle section separators for better visual hierarchy */
.section-padding {
    position: relative;
}

.section-padding:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    z-index: 1;
}

/* Light mode section separators */
body:not(.dark-mode) .section-padding:not(:first-child)::before {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 0, 0, 0.1), 
        transparent);
}

/* =========================================
   TYPOGRAPHY (FLUID SCALING)
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    word-wrap: break-word;
}

h1 { font-size: clamp(2rem, 5vw + 1rem, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw + 1rem, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw + 1rem, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw + 1rem, 1.5rem); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

.lead {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: var(--text-light);
}

body.dark-mode .lead {
    color: #A0AEC0;
}

/* Text Utilities */
.text-yagna { 
    color: var(--about-primary) !important; 
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Page Specific Gradient */
.text-gradient-primary {
    background: linear-gradient(135deg, #b88b4a 0%, var(--about-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-mode .text-gradient-primary {
    background: linear-gradient(135deg, #FFD166 0%, #FF6B35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================
   HEADER SPACER - FIXED
   ========================================= */
.header-spacer {
    width: 100%;
    display: block;
    height: var(--nav-height);
    transition: height 0.3s ease;
}

/* =========================================
   HERO SECTION - UPDATED FOR TEXT-ONLY SLIDES
   ========================================= */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Dynamic height based on content - not fixed 100vh */
    min-height: 600px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: calc(-1 * var(--nav-height));
    padding-top: var(--nav-height);
    background: transparent;
}

/* Remove the dark overlay since we're using website background */
.hero::before {
    display: none;
}

.hero-slider {
    position: relative;
    width: 100%;
    min-height: 500px; /* Minimum height for slider */
    height: auto;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0 6rem; /* More bottom padding for dots */
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    transform: translateY(0);
}

/* Initial animation states for slides */
.hero-slide:not(.active) {
    transform: translateY(30px);
}

/* Hero Content Styling */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem; /* Space for dots */
}

/* Dark mode adjustments for hero text */
@media (prefers-color-scheme: dark) {
    .hero-content {
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
}

.hero-title {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    line-height: 1.1;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.5px;
}

body.dark-mode .hero-title {
    color: #E2E8F0;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.75rem);
    color: var(--text-light);
    margin-bottom: 2rem; /* Reduced on mobile */
    max-width: 700px;
    line-height: 1.6;
    font-weight: 400;
}

body.dark-mode .hero-subtitle {
    color: #A0AEC0;
}

/* Floating Elements - Lighter in dark mode */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.1;
}

@media (max-width: 768px) {
    .floating-elements {
        display: none;
    }
}

.floating-om, .floating-lotus, .floating-bell {
    position: absolute;
    font-size: 3rem; /* Smaller on mobile */
    opacity: 0.15;
    animation: float 8s ease-in-out infinite;
    color: var(--primary-color);
}

.floating-om { top: 15%; left: 5%; }
.floating-lotus { top: 60%; right: 10%; animation-delay: 1.5s; }
.floating-bell { bottom: 20%; left: 15%; animation-delay: 3s; }

/* Hero Controls - Updated for better visibility */
.hero-prev, .hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 20;
    border: 2px solid rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

body.dark-mode .hero-prev,
body.dark-mode .hero-next {
    background: rgba(30, 30, 46, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    color: #E2E8F0;
}

.hero-prev:hover, .hero-next:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.hero-prev { left: 30px; }
.hero-next { right: 30px; }

@media (max-width: 768px) {
    .hero-prev, .hero-next { 
        display: flex;
        width: 44px;
        height: 44px;
        font-size: 20px;
        top: 40%; /* Lower position on mobile */
    }
    .hero-prev { left: 10px; }
    .hero-next { right: 10px; }
}

/* HERO DOTS - FIXED POSITION */
.hero-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px; /* Position at bottom */
    display: flex;
    gap: 12px;
    z-index: 25;
}

.hero-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.2);
    padding: 0;
    cursor: pointer;
    transition: all var(--transition-normal);
}

body.dark-mode .hero-dots button {
    background: rgba(255, 255, 255, 0.2);
}

.hero-dots button.active {
    background: var(--primary-color);
    transform: scale(1.4);
}

.hero-dots button:hover:not(.active) {
    background: var(--primary-light);
}

/* Remove scroll indicator if not needed */
.scroll-indicator {
    display: none;
}

/* =========================================
   ABOUT PAGE SPECIFIC STYLES
   ========================================= */

/* 1. ABOUT HERO SECTION */
.about-hero {
    padding: 80px 0;
    text-align: center;
    background: radial-gradient(circle at center, var(--about-bg-white) 0%, var(--about-bg-theme) 100%);
}

body.dark-mode .about-hero {
    background: transparent;
}

.trust-badge {
    background: white;
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid rgba(220, 180, 120, 0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    font-weight: 600;
    color: #666;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.dark-mode .trust-badge {
    background: var(--card-bg-dark);
    border-color: var(--border-color-dark);
    color: #e2e8f0;
}

/* 2. MISSION & VISION CARDS */
.mv-card {
    background: var(--about-bg-theme);
    border: 1px solid rgba(220, 180, 120, 0.2);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 2rem;
}

body.dark-mode .mv-card {
    background: var(--card-bg-dark);
    border: 1px solid var(--border-color-dark);
    backdrop-filter: blur(10px);
}

.mv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(220, 180, 120, 0.15);
}

/* 3. CENTERED TIMELINE */
.timeline-section { 
    position: relative; 
}

.timeline-center { 
    position: relative; 
    max-width: 1000px; 
    margin: 0 auto; 
}

.timeline-center::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--about-primary);
    top: 0; 
    bottom: 0; 
    left: 50%;
    margin-left: -1.5px;
    opacity: 0.3;
}

.timeline-row {
    padding: 20px 0;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-row.left { 
    left: 0; 
    padding-right: 40px; 
    text-align: right; 
}

.timeline-row.right { 
    left: 50%; 
    padding-left: 40px; 
    text-align: left; 
}

.timeline-row::after {
    content: '';
    position: absolute;
    width: 20px; 
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid var(--about-primary);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-row.right::after { 
    left: -10px; 
}

body.dark-mode .timeline-row::after {
    background-color: #1A1A2E;
}

.timeline-box {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-bottom: 3px solid var(--about-primary);
    transition: background 0.3s ease;
}

body.dark-mode .timeline-box {
    background: var(--card-bg-dark);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color-dark);
    border-bottom: 3px solid var(--about-primary);
}

.timeline-year {
    display: inline-block;
    background: var(--about-primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* 4. CIRCULAR STATS */
.stats-container {
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 40px; 
    margin-top: 50px;
}

.stat-ring {
    width: 200px; 
    height: 200px;
    border-radius: 50%;
    background: white;
    border: 2px dashed var(--about-primary);
    display: flex; 
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(220, 180, 120, 0.15);
    z-index: 2;
}

body.dark-mode .stat-ring {
    background: var(--card-bg-dark);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border-color: rgba(220, 180, 120, 0.4);
}

.stat-ring::before {
    content: '';
    position: absolute;
    top: -10px; 
    left: -10px; 
    right: -10px; 
    bottom: -10px;
    border-radius: 50%;
    border: 1px solid rgba(220, 180, 120, 0.3);
    z-index: -1;
    transition: transform 0.4s ease;
}

.stat-ring:hover {
    background: var(--about-primary);
    border-style: solid;
    transform: scale(1.05);
}

.stat-ring:hover::before { 
    transform: scale(1.1); 
    border-color: var(--about-primary); 
}

.stat-ring h3 { 
    font-size: 2.5rem; 
    font-weight: 800; 
    color: var(--about-primary); 
    margin: 0; 
    line-height: 1; 
}

.stat-ring h5 { 
    font-size: 1rem; 
    font-weight: 700; 
    margin: 5px 0; 
    text-transform: uppercase; 
    color: #333; 
}

.stat-ring p { 
    font-size: 0.8rem; 
    color: #666; 
    text-align: center; 
    margin: 0; 
    padding: 0 15px; 
}

body.dark-mode .stat-ring h5 { 
    color: #fff; 
}

body.dark-mode .stat-ring p { 
    color: #ccc; 
}

.stat-ring:hover h3, 
.stat-ring:hover h5, 
.stat-ring:hover p { 
    color: white; 
}

/* 5. VALUES SECTION */
.value-card {
    background: white;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
}

body.dark-mode .value-card {
    background: var(--card-bg-dark);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color-dark);
}

body.dark-mode .value-card h4 { 
    color: white; 
}

.value-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); 
}

.icon-box {
    width: 60px; 
    height: 60px;
    background: rgba(220, 180, 120, 0.1);
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    margin: 0 auto 15px;
}

body.dark-mode .icon-box { 
    background: rgba(220, 180, 120, 0.2); 
}

/* =========================================
   NAVBAR STYLES - UPDATED FOR GLOBAL BG
   ========================================= */
.navbar.fixed-top {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    transition: all 0.3s ease;
    z-index: 1030;
}

body.dark-mode .navbar.fixed-top {
    background-color: rgba(26, 26, 46, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Nav Links */
.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
}

body.dark-mode .nav-link {
    color: #E2E8F0 !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

body.dark-mode .nav-link:hover {
    color: var(--primary-light) !important;
}

/* Active link indicator */
.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

body.dark-mode .nav-link.active {
    color: var(--primary-light) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Theme toggle button */
.theme-toggle-btn {
    color: var(--text-dark) !important;
    transition: all var(--transition-fast);
}

body.dark-mode .theme-toggle-btn {
    color: #E2E8F0 !important;
}

.theme-toggle-btn:hover {
    color: var(--primary-color) !important;
    transform: scale(1.1);
}

/* Mobile menu */
@media (max-width: 991px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 1rem;
        border-top: 1px solid #f0f0f0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        max-height: 80vh;
        overflow-y: auto;
        z-index: 1000;
    }
    
    body.dark-mode .navbar-collapse {
        background: rgba(26, 26, 46, 0.98) !important;
        border-top: 1px solid #2D3748;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: var(--radius-sm);
    }
    
    .nav-link:hover {
        background: rgba(255, 107, 53, 0.1);
    }
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-yagna, .btn-outline-yagna {
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .btn-yagna, .btn-outline-yagna {
        width: 100%;
        padding: 0.75rem 1rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        width: 100%;
    }
}

.btn-yagna {
    background: var(--gradient-primary);
    border: none;
    color: white;
    z-index: 1;
}

.btn-yagna:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-outline-yagna {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-yagna:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* =========================================
   SECTIONS & LAYOUT
   ========================================= */
.section-padding {
    padding: var(--section-spacing) 0;
}

.section-header {
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-title {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-mode .section-title {
    color: white;
    -webkit-text-fill-color: white;
    background: none;
}

.title-line {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin-top: 1rem;
}

/* =========================================
   STAT CARDS - LIGHTER IN LIGHT MODE
   ========================================= */

/* Default stat card styles */
.stat-card {
    background: var(--card-bg-light);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Stat card content */
.stat-card .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 1.125rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0;
}

body.dark-mode .stat-card .stat-label {
    color: #E2E8F0;
}

/* Stat card icon (if any) */
.stat-card .stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* Make it even lighter with a subtle gradient effect */
body:not(.dark-mode) .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--primary-light) 0%, 
        var(--primary-color) 50%, 
        var(--primary-light) 100%);
    opacity: 0.3;
    border-radius: 16px 16px 0 0;
}

/* Optional: Add a very subtle pattern overlay for depth */
body:not(.dark-mode) .stat-card {
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(248, 249, 250, 0.8) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(248, 249, 250, 0.8) 0%, transparent 20%);
    background-color: #ffffff;
}

/* =========================================
   DARK MODE STAT CARDS
   ========================================= */

body.dark-mode .stat-card {
    background: var(--card-bg-dark);
    border-color: var(--border-color-dark);
}

/* Animation classes */
.stat-card.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stat-card.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   GENERAL ABOUT SECTION
   ========================================= */
.about-main-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 107, 53, 0.05);
}

body.dark-mode .feature-item {
    background: rgba(255, 107, 53, 0.1);
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.service-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

body.dark-mode .service-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.service-image {
    position: relative;
    padding-top: 60%;
    width: 100%;
    overflow: hidden;
}

.service-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img { transform: scale(1.1); }

.service-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-overlay { opacity: 1; }

.service-overlay-btn {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    text-decoration: none;
}

.service-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.service-title {
    font-size: 1.25rem;
    margin: 0;
    color: var(--dark-color);
    word-break: break-word;
}

body.dark-mode .service-title { color: white; }

.service-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

body.dark-mode .service-description {
    color: #A0AEC0;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    gap: 0.5rem;
}

body.dark-mode .service-footer { 
    border-top-color: rgba(255, 255, 255, 0.1); 
}

.service-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.service-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .service-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .service-actions {
        justify-content: space-between;
        gap: 0.75rem;
    }
    
    .service-actions .btn {
        flex: 1;
        min-width: 120px;
    }
}

.service-price .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.service-price .price-label {
    font-size: 0.75rem;
    color: var(--text-light);
    opacity: 0.7;
}

body.dark-mode .service-price .price-label {
    color: #A0AEC0;
}

/* =========================================
   HOW IT WORKS SECTION
   ========================================= */
.work-step {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
    height: 100%;
    position: relative;
    overflow: hidden;
}

body.dark-mode .work-step {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.work-step:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/*.step-number {*/
/*    position: absolute;*/
/*    top: 1rem;*/
/*    left: 1rem;*/
/*    font-size: 3rem;*/
/*    font-weight: 900;*/
/*    color: rgba(255, 107, 53, 0.1);*/
/*    line-height: 1;*/
/*}*/

.step-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

body.dark-mode .step-title {
    color: white;
}

.step-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

body.dark-mode .step-description {
    color: #A0AEC0;
}

/* =========================================
   TESTIMONIALS SECTION
   ========================================= */
.testimonial-card {
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    height: 100%;
    position: relative;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

body.dark-mode .testimonial-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text-dark);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

body.dark-mode .testimonial-text {
    color: #E2E8F0;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .testimonial-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

body.dark-mode .author-name {
    color: white;
}

.author-location {
    font-size: 0.875rem;
    color: var(--text-light);
}

body.dark-mode .author-location {
    color: #A0AEC0;
}

/* =========================================
   FAQ SECTION
   ========================================= */
.faq-illustration {
    text-align: center;
    padding: 2rem;
}

.faq-illustration .illustration-icon {
    font-size: 8rem;
    color: var(--primary-color);
    opacity: 0.2;
    margin-bottom: 2rem;
}

.custom-accordion .accordion-item {
    border: none;
    margin-bottom: 1rem;
    background: transparent;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
}

.custom-accordion .accordion-button {
    border: none;
    border-radius: var(--radius-md) !important;
    padding: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    box-shadow: none;
}

body:not(.dark-mode) .custom-accordion .accordion-button {
    background: rgba(255, 107, 53, 0.05);
}

body.dark-mode .custom-accordion .accordion-button {
    color: white;
}

.custom-accordion .accordion-button:not(.collapsed) {
    color: var(--primary-color);
}

body:not(.dark-mode) .custom-accordion .accordion-button:not(.collapsed) {
    background: rgba(255, 107, 53, 0.1);
}

body.dark-mode .custom-accordion .accordion-button:not(.collapsed) {
    background: rgba(255, 107, 53, 0.2);
    color: var(--primary-light);
}

.custom-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FF6B35'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

body.dark-mode .custom-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFFFFF'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.custom-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FF6B35'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-icon {
    margin-right: 0.75rem;
    color: var(--primary-color);
}

.custom-accordion .accordion-body {
    padding: 1.25rem;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    color: var(--text-dark);
    line-height: 1.6;
}

body:not(.dark-mode) .custom-accordion .accordion-body {
    background: rgba(255, 107, 53, 0.03);
}

body.dark-mode .custom-accordion .accordion-body {
    color: #E2E8F0;
}

/* =========================================
   CONTACT SECTION - UPDATED & FIXED
   ========================================= */
.contact-info-card {
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    height: 100%;
    transition: transform var(--transition-normal);
}

body.dark-mode .contact-info-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-info-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 107, 53, 0.1);
}

.contact-info-header h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

body.dark-mode .contact-info-header h3 {
    color: white;
}

.contact-info-header p {
    color: var(--text-light);
    margin: 0;
}

body.dark-mode .contact-info-header p {
    color: #A0AEC0;
}

/* =========================================
   CONTACT ITEMS - FIXED ALIGNMENT
   ========================================= */
.contact-items {
    margin-bottom: 2rem;
}

/* Base styling for both anchor tags and divs */
.contact-item-box,
.contact-items a.contact-item-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    text-decoration: none !important;
    color: inherit !important;
    transition: all var(--transition-normal);
    width: 100%;
    cursor: pointer;
}

/* Reset anchor tag specific styles */
.contact-items a.contact-item-box {
    display: flex !important;
}

/* Light mode background */
body:not(.dark-mode) .contact-item-box,
body:not(.dark-mode) .contact-items a.contact-item-box {
    background: rgba(255, 107, 53, 0.05);
}

/* Dark mode background */
body.dark-mode .contact-item-box,
body.dark-mode .contact-items a.contact-item-box {
    background: rgba(255, 255, 255, 0.05);
}

/* Hover effects */
.contact-item-box:hover,
.contact-items a.contact-item-box:hover {
    transform: translateX(5px);
    text-decoration: none !important;
    color: inherit !important;
}

/* Light mode hover */
body:not(.dark-mode) .contact-item-box:hover,
body:not(.dark-mode) .contact-items a.contact-item-box:hover {
    background: rgba(255, 107, 53, 0.1);
}

/* Dark mode hover */
body.dark-mode .contact-item-box:hover,
body.dark-mode .contact-items a.contact-item-box:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Ensure text content is properly aligned */
.contact-item-box > div:last-child,
.contact-items a.contact-item-box > div:last-child {
    flex: 1;
    text-align: left;
}

/* Contact text styling */
.contact-text {
    flex: 1;
    text-align: left;
}

/* Icon box styling */
.icon-box {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Text styling */
.contact-item-box h6,
.contact-items a.contact-item-box h6 {
    color: var(--dark-color);
    margin-bottom: 0.25rem;
    font-size: 1rem;
    font-weight: 600;
}

body.dark-mode .contact-item-box h6,
body.dark-mode .contact-items a.contact-item-box h6 {
    color: white;
}

.contact-item-box span,
.contact-items a.contact-item-box span {
    color: var(--text-light);
    font-size: 0.95rem;
    display: block;
    line-height: 1.4;
}

body.dark-mode .contact-item-box span,
body.dark-mode .contact-items a.contact-item-box span {
    color: #A0AEC0;
}

/* Remove any unwanted focus outlines */
.contact-item-box:focus,
.contact-items a.contact-item-box:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.25);
}

/* =========================================
   SOCIAL LINKS
   ========================================= */
.social-links {
    padding-top: 1.5rem;
    border-top: 2px solid rgba(255, 107, 53, 0.1);
    display: flex;
    gap: 0.75rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* =========================================
   CONTACT FORM CARD
   ========================================= */
.contact-form-card {
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    height: 100%;
    transition: transform var(--transition-normal);
}

body.dark-mode .contact-form-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.contact-form-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.form-title {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

body.dark-mode .form-title {
    color: white;
}

.contact-form .form-floating {
    margin-bottom: 1.5rem;
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    padding: 1rem;
    color: var(--dark-color);
}

body.dark-mode .contact-form .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 53, 0.25);
}

.contact-form label {
    color: var(--text-light);
    padding: 1rem;
}

body.dark-mode .contact-form label {
    color: #A0AEC0;
}

/* =========================================
   RESPONSIVE ADJUSTMENTS FOR CONTACT SECTION
   ========================================= */
@media (max-width: 768px) {
    .contact-info-card,
    .contact-form-card {
        padding: 1.5rem;
    }
    
    .icon-box {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .contact-item-box,
    .contact-items a.contact-item-box {
        padding: 0.875rem;
    }
    
    .contact-item-box h6,
    .contact-items a.contact-item-box h6 {
        font-size: 0.95rem;
    }
    
    .contact-item-box span,
    .contact-items a.contact-item-box span {
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .contact-info-card,
    .contact-form-card {
        padding: 1.25rem;
    }
    
    .social-links {
        justify-content: center;
    }
}
/* =========================================
   FOOTER - UPDATED FOR GLOBAL BG
   ========================================= */
.footer-main {
    color: white;
    padding: 4rem 0 2rem;
    background: rgba(26, 26, 46, 0.9) !important;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .footer-main {
    background: rgba(26, 26, 46, 0.8) !important;
}

.footer-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: white;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-block;
    padding: 0.25rem 0;
    position: relative;
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(8px);
    text-decoration: none;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all var(--transition-fast);
    color: var(--primary-color);
}

.footer-links a:hover::before {
    opacity: 1;
    left: -12px;
}

.footer-contact {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    transition: all var(--transition-fast);
}

.footer-contact:hover {
    color: white;
    transform: translateX(5px);
}

.footer-contact i {
    color: var(--primary-color);
    flex-shrink: 0;
    transition: color var(--transition-fast);
}

.footer-contact:hover i {
    color: var(--primary-light);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px) scale(1.1);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 3rem 0;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-copy strong {
    color: white;
}

.footer-dev {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.footer-dev span {
    color: var(--primary-color);
    font-weight: 600;
    transition: color var(--transition-fast);
}

.footer-dev span:hover {
    color: var(--primary-light);
    cursor: pointer;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-main {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-subtitle::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links a:hover::before {
        display: none;
    }
    
    .footer-links a:hover {
        transform: translateX(5px);
    }
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeIn { 
    from { opacity: 0; } 
    to { opacity: 1; } 
}

@keyframes slideUp { 
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    } 
    to { 
        opacity: 1; 
        transform: translateY(0); 
    } 
}

@keyframes bounce { 
    0%, 20%, 50%, 80%, 100% { 
        transform: translateY(0); 
    } 
    40% { 
        transform: translateY(-10px); 
    } 
    60% { 
        transform: translateY(-5px); 
    } 
}

@keyframes float { 
    0%, 100% { 
        transform: translateY(0); 
    } 
    50% { 
        transform: translateY(-20px); 
    } 
}

@keyframes pulse { 
    0% { 
        transform: scale(1); 
    } 
    50% { 
        transform: scale(1.05); 
    } 
    100% { 
        transform: scale(1); 
    } 
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { 
        transform: translateX(0); 
    }
    25% { 
        transform: translateX(-5px); 
    }
    75% { 
        transform: translateX(5px); 
    }
}

@keyframes spin {
    from { 
        transform: rotate(0deg); 
    }
    to { 
        transform: rotate(360deg); 
    }
}

@keyframes rotate { 
    from { 
        transform: rotate(0deg); 
    } 
    to { 
        transform: rotate(360deg); 
    } 
}

.animate-fade-in { 
    animation: fadeIn 0.8s ease forwards; 
}

.animate-slide-up { 
    animation: slideUp 0.8s ease forwards; 
}

.animate-scale { 
    animation: fadeIn 0.6s ease forwards; 
}

.animate-on-scroll { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: opacity 0.6s ease, transform 0.6s ease; 
}

.animate-on-scroll.visible { 
    opacity: 1; 
    transform: translateY(0); 
}

/* =========================================
   UTILITIES
   ========================================= */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: var(--dark-color);
    display: flex; 
    align-items: center; 
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease;
}

#preloader.loaded { 
    opacity: 0; 
    pointer-events: none; 
}

.loader-inner {
    width: 60px; 
    height: 60px;
    border: 4px solid transparent;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: rotate 1s linear infinite;
}

/* Additional Helper Classes */
.btn-pulse {
    animation: pulse 2s infinite;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* =========================================
   RESPONSIVE ADJUSTMENTS - FIXED
   ========================================= */

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 4rem 0 5rem;
        margin-top: calc(-1 * var(--nav-height));
    }
    
    .hero-slider {
        min-height: 400px;
        padding: 2rem 0 4rem;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.25rem);
        margin-bottom: 1.5rem;
        line-height: 1.5;
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-dots {
        bottom: 15px;
    }
    
    /* Adjust button spacing on mobile */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Timeline responsive */
    .timeline-center::after { 
        left: 31px; 
    }
    
    .timeline-row { 
        width: 100%; 
        padding-left: 70px !important; 
        padding-right: 25px !important; 
        text-align: left !important; 
    }
    
    .timeline-row.left, 
    .timeline-row.right { 
        left: 0; 
    }
    
    .timeline-row::after { 
        left: 21px !important; 
    }
    
    .stat-ring { 
        width: 160px; 
        height: 160px; 
    }
    
    .stat-ring h3 { 
        font-size: 2rem; 
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-card .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-card .stat-label {
        font-size: 1rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .hero {
        padding: 3rem 0 4rem;
    }
    
    .hero-slider {
        min-height: 350px;
        padding: 1.5rem 0 3.5rem;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-dots {
        bottom: 10px;
    }
    
    .hero-dots button {
        width: 10px;
        height: 10px;
    }
    
    .timeline-center::after { 
        left: 16px; 
    }
    
    .timeline-content {
        margin-left: 2.5rem;
    }
    
    .stat-ring {
        width: 140px;
        height: 140px;
    }
    
    .stat-ring h3 {
        font-size: 1.75rem;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
        min-height: 500px;
    }
    
    .hero-slider {
        min-height: 450px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1.25rem, 2vw, 1.5rem);
    }
}

<!-- Custom CSS for Login Page -->
/* =========================================
   LOGIN PAGE STYLES - FIXED SPACING
========================================= */
.login-page-wrapper {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.login-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50" y="50" font-family="serif" font-size="12" fill="rgba(255, 153, 51, 0.03)" text-anchor="middle" dominant-baseline="middle">ॐ</text></svg>');
    background-size: 200px;
    opacity: 0.3;
    z-index: -1;
}

.login-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 0 1rem;
    animation: fadeInUp 0.6s ease;
}

.login-card {
    background: var(--card-bg-light);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
}

body.dark-mode .login-card {
    background: var(--card-bg-dark);
    border-color: var(--border-color-dark);
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-mode .login-title {
    color: white;
    -webkit-text-fill-color: white;
    background: none;
}

.login-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.5;
}

body.dark-mode .login-subtitle {
    color: #A0AEC0;
}

/* Error Alert */
.login-alert {
    background: #ffe6e6;
    color: #b00020;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
    border: none;
    animation: slideDown 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

body.dark-mode .login-alert {
    background: rgba(176, 0, 32, 0.15);
    color: #ff6b6b;
}

/* Form Styles */
.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

body.dark-mode .login-form label {
    color: #E2E8F0;
}

.login-form input {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    box-sizing: border-box;
}

body.dark-mode .login-form input {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color-dark);
    color: white;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
    transform: translateY(-1px);
}

.login-form input::placeholder {
    color: #A0AEC0;
    opacity: 0.7;
}

/* Submit Button */
.login-btn {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

/* Register Link */
.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .login-footer {
    border-top-color: var(--border-color-dark);
}

.register-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.register-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Additional Options */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

body.dark-mode .remember-me {
    color: #A0AEC0;
}

.forgot-password {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .login-page-wrapper {
        min-height: calc(100vh - var(--nav-height));
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .login-container {
        padding: 0 1rem;
    }
    
    .login-card {
        padding: 2rem 1.5rem;
        border-radius: var(--radius-lg);
    }
    
    .login-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .login-title {
        font-size: 1.75rem;
    }
    
    .login-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .login-page-wrapper {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .login-card {
        padding: 1.75rem 1.25rem;
    }
    
    .login-icon {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
        margin-bottom: 1.25rem;
    }
    
    .login-title {
        font-size: 1.6rem;
    }
    
    .login-subtitle {
        font-size: 0.9rem;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .login-card {
        padding: 1.5rem 1rem;
    }
    
    .login-form input {
        padding: 0.75rem 0.875rem;
    }
    
    .login-btn {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
}

/* Fix for header spacing */
.header-spacer {
    display: block;
    height: var(--nav-height);
    width: 100%;
}


/* =========================================
   REFUND POLICY STYLES
========================================= */
.refund-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-bg-light);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    line-height: 1.7;
}

body.dark-mode .refund-container {
    background: var(--card-bg-dark);
    border: 1px solid var(--border-color-dark);
}

.refund-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 107, 53, 0.1);
}

.refund-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-mode .refund-title {
    color: white;
    -webkit-text-fill-color: white;
    background: none;
}

.last-updated {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 53, 0.05);
    border-radius: var(--radius-sm);
    display: inline-block;
}

body.dark-mode .last-updated {
    background: rgba(255, 107, 53, 0.1);
    color: #A0AEC0;
}

.refund-content h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    position: relative;
    padding-left: 1rem;
}

.refund-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    height: 1.2rem;
    width: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.refund-content p, .refund-content ul {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

body.dark-mode .refund-content p,
body.dark-mode .refund-content ul {
    color: #E2E8F0;
}

.refund-content ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.refund-content li {
    margin-bottom: 0.75rem;
    position: relative;
}

.refund-content li::marker {
    color: var(--primary-color);
}

.policy-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .policy-section {
    border-bottom-color: var(--border-color-dark);
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.payment-card {
    background: rgba(255, 107, 53, 0.05);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(255, 107, 53, 0.1);
}

body.dark-mode .payment-card {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.2);
}

.payment-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.highlight-note {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

body.dark-mode .highlight-note {
    background: rgba(255, 193, 7, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .refund-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .refund-title {
        font-size: 2rem;
    }
    
    .refund-content h3 {
        font-size: 1.3rem;
    }
    
    .payment-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .refund-container {
        padding: 1.5rem 1rem;
        border-radius: var(--radius-lg);
    }
    
    .refund-title {
        font-size: 1.75rem;
    }
    
    .refund-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .payment-card {
        padding: 1.25rem;
    }
}


/* =========================================
   TERMS & CONDITIONS STYLES
========================================= */
.terms-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-bg-light);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    line-height: 1.7;
}

body.dark-mode .terms-container {
    background: var(--card-bg-dark);
    border: 1px solid var(--border-color-dark);
}

.terms-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 107, 53, 0.1);
}

.terms-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-mode .terms-title {
    color: white;
    -webkit-text-fill-color: white;
    background: none;
}

.last-updated {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 53, 0.05);
    border-radius: var(--radius-sm);
    display: inline-block;
}

body.dark-mode .last-updated {
    background: rgba(255, 107, 53, 0.1);
    color: #A0AEC0;
}

.terms-content h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    position: relative;
    padding-left: 1rem;
}

.terms-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    height: 1.2rem;
    width: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.terms-content p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

body.dark-mode .terms-content p {
    color: #E2E8F0;
}

.terms-content strong {
    color: var(--primary-color);
}

.highlight-box {
    background: rgba(255, 107, 53, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

body.dark-mode .highlight-box {
    background: rgba(255, 107, 53, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .terms-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .terms-title {
        font-size: 2rem;
    }
    
    .terms-content h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .terms-container {
        padding: 1.5rem 1rem;
        border-radius: var(--radius-lg);
    }
    
    .terms-title {
        font-size: 1.75rem;
    }
    
    .terms-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .highlight-box {
        padding: 1rem;
    }
}


/* =========================================
   PRIVACY & POLICY PAGES STYLES
========================================= */
.policy-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-bg-light);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    line-height: 1.7;
}

body.dark-mode .policy-container {
    background: var(--card-bg-dark);
    border: 1px solid var(--border-color-dark);
}

.policy-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 107, 53, 0.1);
}

.policy-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-mode .policy-title {
    color: white;
    -webkit-text-fill-color: white;
    background: none;
}

.last-updated {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 53, 0.05);
    border-radius: var(--radius-sm);
    display: inline-block;
}

body.dark-mode .last-updated {
    background: rgba(255, 107, 53, 0.1);
    color: #A0AEC0;
}

.policy-content h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    position: relative;
    padding-left: 1rem;
}

.policy-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    height: 1.2rem;
    width: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.policy-content p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

body.dark-mode .policy-content p {
    color: #E2E8F0;
}

.policy-content strong {
    color: var(--primary-color);
}

.contact-email {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-email:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .policy-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .policy-title {
        font-size: 2rem;
    }
    
    .policy-content h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .policy-container {
        padding: 1.5rem 1rem;
        border-radius: var(--radius-lg);
    }
    
    .policy-title {
        font-size: 1.75rem;
    }
    
    .policy-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
}


/* =========================================
   REGISTRATION PAGES - ENHANCED STYLES
   ========================================= */

/* CSS Variables */
:root {
    --nav-height: 80px;
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #FF9A6B 100%);
    --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #38b2ac 0%, #319795 100%);
    --primary-color: #FF6B35;
    --primary-dark: #E55A2B;
    --text-dark: #2D3748;
    --text-light: #718096;
    --card-bg-light: #ffffff;
    --card-bg-dark: #1A1A2E;
    --border-color-light: rgba(0, 0, 0, 0.1);
    --border-color-dark: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

.dark-mode {
    --card-bg: var(--card-bg-dark);
    --border-color: var(--border-color-dark);
}

/* Registration Page Base */
.registration-page-wrapper {
    min-height: 100vh;
    padding-top: var(--nav-height);
    padding-bottom: 4rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.dark-mode .registration-page-wrapper {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.registration-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,107,53,0.02)"/><text x="20" y="80" font-family="serif" font-size="18" fill="rgba(255,153,51,0.03)" text-anchor="middle" dominant-baseline="middle">ॐ</text></svg>');
    background-size: cover;
    opacity: 0.4;
    z-index: 0;
}

.registration-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* Registration Card */
.registration-card {
    background: var(--card-bg-light);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color-light);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    margin-top: 2rem;
    overflow: hidden;
    position: relative;
}

.dark-mode .registration-card {
    background: var(--card-bg-dark);
    border-color: var(--border-color-dark);
}

.registration-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Card Header */
.registration-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.registration-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.registration-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite linear;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.registration-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.dark-mode .registration-title {
    color: white;
    -webkit-text-fill-color: white;
    background: none;
}

.registration-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.6;
}

.dark-mode .registration-subtitle {
    color: #A0AEC0;
}

/* Form Grid */
.registration-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.dark-mode .form-group label {
    color: #E2E8F0;
}

.form-group label .required {
    color: #e53e3e;
    font-size: 1.2em;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color-light);
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
}

.dark-mode .form-control {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color-dark);
    color: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: #A0AEC0;
    opacity: 0.7;
}

/* Form Sections */
.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px dashed var(--border-color-light);
}

.dark-mode .form-section {
    border-bottom-color: var(--border-color-dark);
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dark-mode .section-title {
    color: #E2E8F0;
}

.section-title .icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-purple);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

/* File Upload Styling */
.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 107, 53, 0.1);
    border: 2px dashed rgba(255, 107, 53, 0.3);
    border-radius: var(--radius-md);
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dark-mode .file-upload-label {
    background: rgba(255, 107, 53, 0.15);
    border-color: rgba(255, 107, 53, 0.4);
    color: #FFA48D;
}

.file-upload-label:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.file-upload-label .icon {
    font-size: 1.25rem;
}

.file-upload-info {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dark-mode .file-upload-info {
    color: #A0AEC0;
}

/* Alerts */
.registration-alert {
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideDown 0.3s ease;
    border: none;
}

.alert-success {
    background: linear-gradient(135deg, rgba(56, 178, 172, 0.1) 0%, rgba(49, 151, 149, 0.1) 100%);
    color: #2c7a7b;
    border-left: 4px solid #38b2ac;
}

.dark-mode .alert-success {
    background: rgba(56, 178, 172, 0.15);
    color: #81e6d9;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.1) 0%, rgba(197, 48, 48, 0.1) 100%);
    color: #c53030;
    border-left: 4px solid #e53e3e;
}

.dark-mode .alert-danger {
    background: rgba(229, 62, 62, 0.15);
    color: #fc8181;
}

.registration-alert .icon {
    font-size: 1.5rem;
}

/* Submit Button */
.registration-submit-btn {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    padding: 1.125rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.registration-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.registration-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.4);
}

.registration-submit-btn:hover::before {
    left: 100%;
}

.registration-submit-btn:active {
    transform: translateY(-1px);
}

/* Login Link */
.registration-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color-light);
}

.dark-mode .registration-footer {
    border-top-color: var(--border-color-dark);
}

.registration-footer p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.dark-mode .registration-footer p {
    color: #A0AEC0;
}

.login-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.login-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
    gap: 0.75rem;
}

/* Progress Indicator (for Pandit form) */
.registration-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.step-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .registration-page-wrapper {
        padding: var(--nav-height) 1rem 2rem;
    }
    
    .registration-container {
        padding: 0;
    }
    
    .registration-card {
        padding: 2rem 1.5rem;
        margin-top: 1rem;
    }
    
    .registration-title {
        font-size: 2rem;
    }
    
    .registration-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .registration-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .registration-card {
        padding: 1.75rem 1.25rem;
        border-radius: var(--radius-lg);
    }
    
    .registration-title {
        font-size: 1.75rem;
    }
    
    .registration-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .registration-submit-btn {
        padding: 1rem;
        font-size: 1rem;
    }
}

/* Back to Home Link */
.back-to-home {
    text-align: center;
    margin-top: 1.5rem;
}

.back-to-home .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

/* Form Tips */
.form-tip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--radius-sm);
}

.dark-mode .form-tip {
    background: rgba(255, 255, 255, 0.05);
    color: #A0AEC0;
}

.form-tip .icon {
    color: var(--primary-color);
    flex-shrink: 0;
}

/* =========================================
   PORTAL & DASHBOARD STYLES (Append to bottom)
   ========================================= */

/* --- Portal Layout Variables --- */
:root {
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --header-height: 70px;
    --portal-bg-light: #f3f4f6;
    --portal-bg-dark: #111827;
    --sidebar-light: #ffffff;
    --sidebar-dark: #1f2937;
}

/* --- Portal Main Wrapper --- */
.page-wrapper {
    display: flex;
    min-height: 100vh;
    padding-top: var(--header-height);
    background-color: var(--portal-bg-light);
    transition: background-color 0.3s ease;
}

body.dark-mode .page-wrapper {
    background-color: var(--portal-bg-dark);
}

/* --- Portal Header --- */
.portal-header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1040; /* High z-index to stay on top */
}

body.dark-mode .portal-header {
    background: rgba(31, 41, 55, 0.95); /* Dark gray */
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

body.dark-mode .portal-header .navbar-text,
body.dark-mode .portal-header .nav-link {
    color: #e5e7eb;
}

/* Fix mobile padding so content doesn't hide behind header */
.content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
    transition: margin-left 0.3s ease;
    width: 100%;
}

@media (max-width: 991.98px) {
    .content {
        margin-left: 0;
        /* Add padding-top to prevent content from hiding behind the fixed header */
        padding-top: calc(var(--header-height) + 1rem);
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* --- Sidebar --- */
.sidebar {
    width: var(--sidebar-width);
    position: fixed;
    top: var(--header-height);
    bottom: 0;
    left: 0;
    z-index: 1030;
    padding: 1.5rem 1rem;
    overflow-y: auto;
    background-color: var(--sidebar-light);
    border-right: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.02);
}

body.dark-mode .sidebar {
    background-color: var(--sidebar-dark);
    border-right: 1px solid rgba(255,255,255,0.05);
    box-shadow: none;
}

.sidebar .list-group-item {
    border: none;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.2s;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
}

body.dark-mode .sidebar .list-group-item {
    color: #9ca3af; /* Light gray text */
}

.sidebar .list-group-item:hover,
.sidebar .list-group-item.active {
    background: var(--gradient-primary);
    color: white !important;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    transform: translateX(5px);
}

.sidebar .list-group-item i {
    font-size: 1.2rem;
}

/* Mobile Sidebar */
@media (max-width: 991.98px) {
    .sidebar {
        left: calc(-1 * var(--sidebar-width));
    }
    .sidebar.active {
        left: 0;
        box-shadow: 0 0 50px rgba(0,0,0,0.5);
    }
}

/* --- Content Area --- */
.content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
    transition: margin-left 0.3s ease;
    width: 100%;
}

@media (max-width: 991.98px) {
    .content {
        margin-left: 0;
    }
}

/* --- Dashboard Specifics --- */

/* Cards in Dashboard */
.dashboard-card {
    background-color: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}

body.dark-mode .dashboard-card {
    background-color: var(--sidebar-dark); /* Match sidebar dark */
    border: 1px solid rgba(255,255,255,0.05);
    color: #e5e7eb;
}

body.dark-mode .dashboard-card .text-muted {
    color: #9ca3af !important;
}

/* Headings in Dark Mode */
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, 
body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 {
    color: #f3f4f6;
}

/* Tables in Dark Mode */
.table-responsive {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

body.dark-mode .table {
    color: #e5e7eb;
    border-color: rgba(255,255,255,0.1);
}

body.dark-mode .table > :not(caption) > * > * {
    background-color: transparent; /* Let container bg show */
    border-bottom-color: rgba(255,255,255,0.1);
    color: #e5e7eb;
}

body.dark-mode .table-light {
    background-color: rgba(255,255,255,0.05);
    color: #e5e7eb;
}

body.dark-mode .table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(255,255,255,0.02);
    color: #e5e7eb;
}

body.dark-mode .table-hover > tbody > tr:hover > * {
    background-color: rgba(255,255,255,0.05);
    color: #e5e7eb;
}
