/* ============================================
   General Styles
   ============================================ */

:root {
    --primary-color: #FF8C42;
    --primary-dark: #FF6B35;
    --primary-light: #FFA500;
    --light-bg: #f8f9fa;
    --dark-text: #333;
    --muted-text: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.display-3, .display-4 {
    line-height: 1.2;
}

/* ============================================
   Navigation Bar
   ============================================ */

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.nav-link {
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    transform: translateY(-2px);
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hero-illustration {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/hero1.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 500px;
}

/* ============================================
   Card Styles
   ============================================ */

.card {
    transition: all 0.3s ease;
    border-radius: 1rem;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.15) !important;
}

.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(255, 140, 66, 0.2) !important;
}

/* ============================================
   Service Cards
   ============================================ */

.service-card {
    transition: all 0.3s ease;
    border-radius: 2rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.2);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(255, 140, 66, 0.3);
}

.service-card i {
    transition: all 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* ============================================
   Subject Badge
   ============================================ */

.subject-badge {
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 140, 66, 0.15);
    border-radius: 1.5rem;
}

.subject-badge:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 140, 66, 0.3);
}

.subject-badge i {
    transition: all 0.3s ease;
}

.subject-badge:hover i {
    transform: scale(1.3) rotate(360deg);
}

/* ============================================
   Institution Card
   ============================================ */

.institution-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.institution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #619efa, #5159ff);
}

.institution-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 40px rgba(255, 140, 66, 0.2) !important;
}

/* ============================================
   Contact Card
   ============================================ */

.contact-card {
    background-color: white;
    border-radius: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 140, 66, 0.15);
}

.contact-card i {
    transition: all 0.3s ease;
}

.contact-card:hover i {
    transform: scale(1.2);
    color: #FF6B35 !important;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    transition: all 0.3s ease;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 50px;
}

.btn-light {
    background-color: white;
    color: #FF8C42;
}

.btn-light:hover {
    background-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.form-control {
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    border-radius: 0.8rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 140, 66, 0.25);
}

/* ============================================
   Animations
   ============================================ */

.animate__animated {
    animation-duration: 0.8s;
}

@keyframes countUp {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.animate__countUp {
    animation: countUp 0.8s ease;
}

/* ============================================
   Sections
   ============================================ */

section {
    position: relative;
}

section h2 {
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
}

/* ============================================
   Footer
   ============================================ */

footer {
    background-color: #1a1a1a;
    border-top: 4px solid var(--primary-color);
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-3px);
    display: inline-block;
}

/* ============================================
   Scroll to Top Button
   ============================================ */

.scroll-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(255, 140, 66, 0.4);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 140, 66, 0.5);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .display-3 {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 1.8rem;
    }

    .hero-section {
        min-height: 70vh !important;
    }

    .hero-illustration {
        margin-top: 2rem;
    }

    .service-card {
        margin-bottom: 1rem;
    }

    section h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .navbar-brand {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .display-3 {
        font-size: 1.8rem;
    }

    .display-4 {
        font-size: 1.5rem;
    }

    .hero-section {
        min-height: 60vh !important;
    }

    .btn-lg {
        padding: 10px 24px;
        font-size: 1rem;
    }

    .service-card {
        padding: 2rem 1.5rem !important;
    }
}

/* ============================================
   Loading & Preloader
   ============================================ */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader {
    border: 5px solid var(--light-bg);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   Gradient Text
   ============================================ */

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Shadow Effects
   ============================================ */

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* ============================================
   Text Styles
   ============================================ */

.fw-500 {
    font-weight: 500;
}

.fw-bold {
    font-weight: 700;
}

.text-orange {
    color: var(--primary-color) !important;
}

.lead {
    font-size: 1.15rem;
    font-weight: 300;
}
