/* ============================================
   Sikshadwar - Custom Stylesheet
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    --primary-red: #cc0000;
    --primary-dark: #990000;
    --primary-light: #ff3333;
    --accent-green: #228B22;
    --accent-brown: #8B4513;
    --bg-light: #f8f5f0;
    --bg-cream: #fffaf0;
    --text-dark: #2d2d2d;
    --text-muted: #6c757d;
    --font-primary: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

/* ---- Global Styles ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
}

p, span, small, a, li, label, input, textarea, select, button, .badge {
    font-family: var(--font-primary);
}

.section-title {
    font-size: 2.5rem;
    position: relative;
}

/* ---- Primary Button ---- */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(204, 0, 0, 0.3);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--primary-dark), #770000);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(204, 0, 0, 0.45);
}

.btn-outline-danger {
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-danger:hover {
    transform: translateY(-2px);
}

/* ============ NAVBAR ============ */
.navbar {
    padding: 10px 0;
    transition: var(--transition);
    z-index: 1050;
}

.navbar.scrolled {
    padding: 5px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
}

.navbar-brand img {
    transition: var(--transition);
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    font-family: var(--font-primary);
    font-size: 1.05rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red) !important;
    background: rgba(204, 0, 0, 0.05);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    right: 16px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 3px;
}

/* ============ HERO SECTION ============ */
.hero-section {
    min-height: 100vh;
    position: relative;
    background: linear-gradient(135deg, var(--bg-cream) 0%, #fff5f5 50%, #f0f8ff 100%);
    overflow: hidden;
}

.hero-title {
    font-family: var(--font-primary);
    line-height: 1.2;
}

.hero-subtitle {
    font-family: var(--font-primary);
    line-height: 1.5;
}

.hero-logo-img {
    max-height: 450px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(204, 0, 0, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 0;
}

.hero-stats {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Decorative Shapes */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    z-index: 0;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-red);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--accent-green);
    bottom: 50px;
    left: -80px;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: #ffc107;
    bottom: -50px;
    right: 20%;
}

/* Float Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ============ ABOUT SECTION ============ */
#about {
    background: var(--bg-light);
}

.about-image-wrapper {
    position: relative;
}

.about-card {
    position: relative;
    z-index: 2;
    margin-bottom: -30px;
    margin-left: 40px;
    max-width: 350px;
    border-left: 4px solid var(--primary-red);
}

.about-decoration {
    position: relative;
    z-index: 1;
    padding: 20px;
    background: linear-gradient(135deg, #fff5f5, #f0fff0);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============ COURSES SECTION ============ */
.course-card {
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.course-card:hover {
    transform: translateY(-8px);
    border-bottom-color: var(--primary-red);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
}

.course-img-placeholder {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.course-img-placeholder::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(transparent, white);
}

.bg-gradient-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.bg-gradient-2 { background: linear-gradient(135deg, #11998e, #38ef7d); }
.bg-gradient-3 { background: linear-gradient(135deg, #fc5c7d, #6a82fb); }
.bg-gradient-4 { background: linear-gradient(135deg, #00b4db, #0083b0); }
.bg-gradient-5 { background: linear-gradient(135deg, #f12711, #f5af19); }
.bg-gradient-6 { background: linear-gradient(135deg, #654ea3, #eaafc8); }

/* ============ FEATURES SECTION ============ */
.feature-card {
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-red);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: rotateY(180deg);
}

.stats-bar {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
    position: relative;
    overflow: hidden;
}

.stats-bar::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -100px;
    right: -50px;
}

.stats-bar::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -80px;
    left: -30px;
}

/* ============ TESTIMONIALS ============ */
.testimonial-card {
    transition: var(--transition);
    border-left: 4px solid transparent;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 4rem;
    color: rgba(204, 0, 0, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-left-color: var(--primary-red);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.testimonial-avatar {
    width: 45px;
    height: 45px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ============ CTA SECTION ============ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark) 50%, #660000 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ============ CONTACT SECTION ============ */
.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(204, 0, 0, 0.15);
}

.contact-item {
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(5px);
}

/* ============ FOOTER ============ */
.footer {
    background: linear-gradient(180deg, #1a1a2e, #16213e) !important;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-red);
    color: #fff;
    transform: translateY(-3px);
}

/* ============ BACK TO TOP ============ */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    display: none;
    z-index: 1040;
    border: none;
    font-size: 1.2rem;
    transition: var(--transition);
    background: var(--primary-red);
}

#backToTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(204, 0, 0, 0.4);
}

#backToTop.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============ RESPONSIVE STYLES ============ */

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-title {
        font-size: 2.8rem !important;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.3rem !important;
    }
    
    .hero-logo-img {
        max-height: 300px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .navbar-collapse {
        background: #fff;
        padding: 20px;
        border-radius: 15px;
        margin-top: 10px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }

    .nav-link.active::after {
        display: none;
    }

    .about-card {
        margin-left: 0;
        max-width: 100%;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
    
    .hero-logo-img {
        max-height: 250px;
    }
    
    .hero-stats h3 {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }

    .cta-section h2 {
        font-size: 1.8rem !important;
    }

    .stats-bar h2 {
        font-size: 1.5rem;
    }

    .course-img-placeholder {
        height: 150px;
    }

    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.8rem !important;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem !important;
    }
    
    .hero-stats .vr {
        display: none;
    }
    
    .hero-stats > div {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .d-flex.flex-wrap.gap-3 .btn {
        width: 100%;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .contact-form {
        padding: 20px !important;
    }

    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* ============ UTILITY CLASSES ============ */
.text-danger {
    color: var(--primary-red) !important;
}

.bg-danger-subtle {
    background-color: rgba(204, 0, 0, 0.1) !important;
}

/* ============ SELECTION COLOR ============ */
::selection {
    background: var(--primary-red);
    color: #fff;
}

::-moz-selection {
    background: var(--primary-red);
    color: #fff;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ============ LOADING ANIMATION ============ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
