/* ========================================
   Parakrama Haegl - Custom Styles
   Elegant Purple Theme with Modern Design
   ======================================== */

/* CSS Variables - Color Palette */
:root {
    /* Primary Colors */
    --primary: #8E44AD;
    --primary-light: #9B59B6;
    --primary-dark: #6C3483;
    --secondary: #2ECC71;
    --accent: #F39C12;

    /* Gradient */
    --gradient-start: #8E44AD;
    --gradient-end: #6C3483;

    /* Text Colors */
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --text-white: #FFFFFF;

    /* Background Colors */
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --bg-dark: #1A1A2E;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 15px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(142, 68, 173, 0.15);
    --shadow-xl: 0 20px 40px rgba(142, 68, 173, 0.2);

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* ========================================
   Global Styles
   ======================================== */

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: var(--transition);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white) !important;
}

.navbar-brand .accent-text {
    color: var(--primary-light);
}

.navbar-brand i {
    color: var(--primary-light);
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 10px 15px !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ========================================
   Buttons
   ======================================== */

.btn-cta {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--text-white) !important;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 30px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.3);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(142, 68, 173, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border: none;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(142, 68, 173, 0.4);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-white) !important;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-outline-light:hover {
    background: var(--text-white);
    color: var(--primary) !important;
    border-color: var(--text-white);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--text-white) !important;
    border-color: var(--primary);
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #2D1F3D 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 50px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(142, 68, 173, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(107, 189, 131, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.badge-accent {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary), #27AE60);
    color: var(--text-white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 30px;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 5px;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.hero-image {
    position: relative;
    height: 500px;
}

.hero-image-wrapper {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-student-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.hero-student-image:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

.hero-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-blur-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    animation: fadeInBlur 1s ease forwards;
}

@keyframes fadeInBlur {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

.blur-content {
    text-align: center;
    color: var(--text-white);
    z-index: 1;
    animation: slideInUp 0.8s ease forwards;
}

.blur-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.blur-content p {
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

.overlay-badge {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideInUp 0.6s ease forwards;
    opacity: 0;
}

.overlay-badge:nth-child(1) {
    animation-delay: 0.3s;
}

.overlay-badge:nth-child(2) {
    animation-delay: 0.6s;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.overlay-badge i {
    font-size: 2rem;
    color: var(--primary);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.1), rgba(107, 189, 131, 0.1));
    border-radius: 12px;
}

.overlay-badge span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    top: 10%;
    right: 20%;
}

.floating-card:nth-child(2) {
    top: 40%;
    right: 10%;
}

.floating-card:nth-child(3) {
    bottom: 20%;
    right: 30%;
}

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

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.card-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.card-info p {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ========================================
   Stats Bar
   ======================================== */

.stats-bar {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 50px 0;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.stat-box h3 {
    font-size: 2.5rem;
    color: var(--text-white);
    margin-bottom: 5px;
}

.stat-box p {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.stat-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 10px;
}

/* ========================================
   Toppers Section
   ======================================== */

.toppers-section {
    background: linear-gradient(135deg, #FFF5F7 0%, #F0F4FF 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.toppers-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(142, 68, 173, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.toppers-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(107, 189, 131, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.topper-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    height: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.topper-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
}

.topper-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(142, 68, 173, 0.2);
}

.topper-rank-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, var(--accent), #E67E22);
    color: var(--text-white);
    padding: 8px 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

/* Rank 1 - Gold Badge */
.topper-rank-badge.rank-gold,
.rank-badge.rank-gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* Rank 2 - Silver Badge */
.topper-rank-badge.rank-silver,
.rank-badge.rank-silver {
    background: linear-gradient(135deg, #C0C0C0, #95A5A6);
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.3);
}

/* Rank 3 - Bronze Badge */
.topper-rank-badge.rank-bronze,
.rank-badge.rank-bronze {
    background: linear-gradient(135deg, #CD7F32, #A0522D);
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.3);
}

/* Rank 4+ - Blue Badge */
.topper-rank-badge.rank-blue,
.rank-badge.rank-blue {
    background: linear-gradient(135deg, #3498DB, #2980B9);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.rank-number {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
}

.rank-year {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.9;
}

.topper-image {
    position: relative;
    margin-bottom: 20px;
}

.topper-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    box-shadow: 0 8px 25px rgba(142, 68, 173, 0.3);
    position: relative;
}

.rank-badge {
    position: absolute;
    bottom: -5px;
    right: -10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent), #E67E22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(243, 156, 18, 0.4);
    animation: pulse 2s infinite;
}

.rank-badge.rank-silver {
    background: linear-gradient(135deg, #95A5A6, #7F8C8D);
}

.rank-badge.rank-bronze {
    background: linear-gradient(135deg, #CD7F32, #A0522D);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.topper-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.topper-college {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.topper-details {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Responsive Design for Toppers Section */
@media (max-width: 767px) {
    .toppers-section {
        padding: 40px 0;
    }

    .topper-card {
        padding: 20px;
    }

    .topper-avatar {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }

    .rank-badge {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        right: -5px;
    }

    .topper-info h4 {
        font-size: 1rem;
    }

    .topper-college {
        font-size: 0.85rem;
    }

    .topper-details {
        font-size: 0.8rem;
    }
}

/* ========================================
   Faculty Section
   ======================================== */

.faculty-section {
    background: linear-gradient(135deg, #FFF5F7 0%, #F0F4FF 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.faculty-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(142, 68, 173, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.faculty-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(107, 189, 131, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.faculty-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.faculty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary));
    transform: scaleX(0);
    transition: var(--transition);
}

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

.faculty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(142, 68, 173, 0.2);
}

.faculty-image {
    height: 320px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.1), rgba(107, 189, 131, 0.1));
}

.faculty-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.faculty-card:hover .faculty-image img {
    transform: scale(1.1);
}

.faculty-info {
    padding: 25px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.faculty-info h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.faculty-designation {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.faculty-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.faculty-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.faculty-social .social-link {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.1), rgba(107, 189, 131, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}

.faculty-social .social-link:hover {
    background: var(--primary);
    color: var(--text-white);
    transform: translateY(-3px);
}

/* Responsive Design for Faculty Section */
@media (max-width: 991px) {
    .faculty-section {
        padding: 60px 0;
    }

    .faculty-image {
        height: 280px;
    }

    .faculty-info {
        padding: 20px;
    }

    .faculty-info h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {
    .faculty-section {
        padding: 50px 0;
    }

    .faculty-image {
        height: 250px;
    }

    .faculty-info {
        padding: 20px 15px;
    }

    .faculty-info h4 {
        font-size: 1.1rem;
    }

    .faculty-designation {
        font-size: 0.85rem;
    }

    .faculty-description {
        font-size: 0.85rem;
    }

    .faculty-social .social-link {
        width: 35px;
        height: 35px;
    }
}

/* ========================================
   Section Styles
   ======================================== */

.section-padding {
    padding: var(--section-padding);
}

.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ========================================
   Services Section
   ======================================== */

.services-section {
    background: var(--bg-light);
}

.service-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 30px;
    height: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary));
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

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

.service-card.featured {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-md);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--accent), #E67E22);
    color: var(--text-white);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.1), rgba(107, 189, 131, 0.1));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    color: var(--text-white);
}

.service-card h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.service-link:hover {
    color: var(--primary-dark);
}

/* ========================================
   About Section
   ======================================== */

.about-section {
    background: var(--bg-white);
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.1), rgba(107, 189, 131, 0.1));
    border-radius: 20px;
    display: flex;
    flex-wrap: wrap;
    padding: 30px;
    gap: 15px;
}

.frame-item {
    width: calc(50% - 7.5px);
    height: calc(50% - 7.5px);
    background: var(--bg-white);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.frame-item:hover {
    transform: scale(1.05);
}

.frame-item i {
    font-size: 2rem;
    color: var(--primary);
}

.frame-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.about-text {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-features {
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

/* ========================================
   Why Choose Us Section
   ======================================== */

.why-section {
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.05), rgba(107, 189, 131, 0.05));
}

.why-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    height: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.why-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-white);
    margin: 0 auto 20px;
}

.why-card h4 {
    color: var(--text-dark);
    margin-bottom: 15px;
}

.why-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ========================================
   Testimonials Section
   ======================================== */

.testimonials-section {
    background: var(--bg-white);
}

.testimonial-card {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 30px;
    height: 100%;
    transition: var(--transition);
}

.testimonial-card:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
}

.testimonial-rating {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.testimonial-text {
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.8;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.student-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-weight: 700;
    font-size: 0.9rem;
}

.student-details h4 {
    font-size: 1rem;
    margin-bottom: 2px;
    color: var(--text-dark);
}

.student-details p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #2D1F3D 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(142, 68, 173, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    color: var(--text-white);
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-content .lead {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.cta-features {
    list-style: none;
    margin-bottom: 20px;
}

.cta-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-features i {
    color: var(--secondary);
}

.booking-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

.booking-card .form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.booking-card .form-control,
.booking-card .form-select {
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    padding: 12px 15px;
    transition: var(--transition);
}

.booking-card .form-control:focus,
.booking-card .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.1);
}

/* ========================================
   Contact Section
   ======================================== */

.contact-section {
    background: var(--bg-light);
}

.contact-info-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.contact-info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.1), rgba(107, 189, 131, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0 auto 20px;
}

.contact-info-card h4 {
    color: var(--text-dark);
    margin-bottom: 15px;
}

.contact-info-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.contact-form-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.contact-form-card h3 {
    color: var(--text-dark);
}

.contact-form-card .form-control {
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    padding: 12px 15px;
    transition: var(--transition);
}

.contact-form-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.1);
}

/* ========================================
   Map Container
   ======================================== */

.map-container {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.map-header {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--text-white);
    padding: 20px 25px;
    text-align: center;
}

.map-header h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.map-header p {
    opacity: 0.9;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.map-wrapper {
    position: relative;
    flex: 1;
    min-height: 300px;
    background: #E5E7EB;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    min-height: 300px;
}

.map-directions {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background: var(--bg-light);
    flex-wrap: wrap;
}

.map-directions .btn {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 140px;
    transition: var(--transition);
}

.map-directions .btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.map-directions .btn-outline-primary:hover {
    background: var(--primary);
    color: var(--text-white);
    transform: translateY(-2px);
}

.map-directions .btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border: none;
}

.map-directions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(142, 68, 173, 0.4);
}

/* Contact Form Card Height */
.contact-form-card.h-100 {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Responsive Design for Map */
@media (max-width: 991px) {
    .map-container {
        margin-bottom: 30px;
    }

    .map-wrapper {
        height: 300px;
    }

    .map-header {
        padding: 20px;
    }

    .map-directions {
        padding: 15px;
        justify-content: center;
    }

    .map-directions .btn {
        width: calc(50% - 5px);
        min-width: auto;
    }
}

@media (max-width: 575px) {
    .map-header h3 {
        font-size: 1rem;
    }

    .map-header p {
        font-size: 0.85rem;
    }

    .map-directions {
        flex-direction: column;
    }

    .map-directions .btn {
        width: 100%;
    }
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--bg-dark);
    padding: 60px 0 20px;
}

.footer-heading {
    color: var(--text-white);
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-heading .accent-text {
    color: var(--primary-light);
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-subheading {
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

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

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-info i {
    color: var(--primary-light);
    margin-top: 3px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

/* ========================================
   Website Image Popup Modal
   ======================================== */

#websitePopup .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 25px 70px rgba(142, 68, 173, 0.3);
    overflow: hidden;
    background: #fff;
}

#websitePopup .modal-header {
    background: transparent;
    border: none;
    padding: 10px 15px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

#websitePopup .btn-close {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    opacity: 1;
    transition: var(--transition);
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#websitePopup .btn-close:before {
    content: '✕';
    position: absolute;
    font-size: 20px;
    color: #8E44AD;
    font-weight: bold;
}

#websitePopup .btn-close:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#contactPopup .btn-close {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    opacity: 1;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#contactPopup .btn-close:before {
    content: '✕';
    position: absolute;
    font-size: 18px;
    color: #fff;
    font-weight: bold;
}

#contactPopup .btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

#websitePopup .modal-body {
    padding: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.popup-images-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.popup-image-wrapper {
    position: relative;
    overflow: hidden;
}

.popup-image-wrapper:first-child {
    margin-bottom: 0;
}

.popup-main-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.popup-secondary-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

#websitePopup .modal-footer {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border: none;
    padding: 20px 25px;
    justify-content: center;
    gap: 15px;
}

#websitePopup .modal-footer .btn {
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    min-width: 150px;
}

#websitePopup .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-white);
}

#websitePopup .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--text-white);
}

#websitePopup .btn-primary {
    background: var(--text-white);
    border: none;
    color: var(--primary);
}

#websitePopup .btn-primary:hover {
    background: var(--bg-white);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Responsive Design for Website Popup */
@media (max-width: 991px) {
    #websitePopup .modal-dialog {
        margin: 10px;
    }

    #websitePopup .modal-footer {
        flex-direction: column;
    }

    #websitePopup .modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 575px) {
    #websitePopup .modal-body {
        max-height: 60vh;
        overflow-y: auto;
    }

    .popup-images-container {
        max-height: 60vh;
        overflow-y: auto;
    }
}

/* Animation for Popup Appearance */
@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal.show .modal-dialog {
    animation: popupSlideIn 0.4s ease;
}

/* ========================================
   Django Messages
   ======================================== */

#messages-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    pointer-events: auto;
}

.message-toast {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-left: 4px solid;
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    min-height: 50px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-success {
    border-left-color: #6BBF59;
    background: linear-gradient(135deg, #F0FDF4, #DCFCE7);
    color: #166534;
}

.alert-success i {
    color: #6BBF59;
    font-size: 1.2rem;
}

.alert-error {
    border-left-color: #E74C3C;
    background: linear-gradient(135deg, #FEF2F2, #FEE2E2);
    color: #991B1B;
}

.alert-error i {
    color: #E74C3C;
    font-size: 1.2rem;
}

.alert-warning {
    border-left-color: var(--accent);
    background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
    color: #92400E;
}

.alert-warning i {
    color: var(--accent);
    font-size: 1.2rem;
}

.alert-info {
    border-left-color: var(--primary);
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    color: #1E40AF;
}

.alert-info i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* ========================================
   Contact Popup Modal
   ======================================== */

#contactPopup .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(142, 68, 173, 0.3);
    overflow: hidden;
}

#contactPopup .modal-header {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-bottom: none;
    padding: 20px 25px;
}

#contactPopup .modal-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
}

#contactPopup .modal-body {
    padding: 30px 25px;
}

.popup-content {
    position: relative;
}

.popup-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.1), rgba(107, 189, 131, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin: 0 auto 20px;
}

.popup-content h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
}

.popup-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

#popupContactForm .form-control {
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    padding: 12px 15px;
    transition: var(--transition);
}

#popupContactForm .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.1);
}

#popupContactForm .form-control::placeholder {
    color: var(--text-light);
    font-size: 0.9rem;
}

#popupContactForm textarea.form-control {
    resize: none;
}

#popupContactForm .btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border: none;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 10px;
    transition: var(--transition);
}

#popupContactForm .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(142, 68, 173, 0.4);
}

.popup-footer {
    margin-top: 20px;
}

/* Responsive Design for Popup */
@media (max-width: 575px) {
    #contactPopup .modal-dialog {
        margin: 10px;
    }

    #contactPopup .modal-body {
        padding: 20px 15px;
    }

    .popup-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .popup-content h4 {
        font-size: 1.1rem;
    }

    .popup-content p {
        font-size: 0.85rem;
    }
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

    .hero-image {
        height: 300px;
    }

    .navbar-collapse {
        background: rgba(26, 26, 46, 0.98);
        padding: 20px;
        border-radius: 0 0 15px 15px;
    }

    .nav-item {
        margin-bottom: 10px;
    }

    .btn-cta {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .section-padding {
        padding: 60px 0;
    }

    .stat-box h3 {
        font-size: 2rem;
    }

    .floating-card {
        padding: 15px;
        font-size: 0.9rem;
    }

    .card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .frame-item {
        padding: 15px;
    }

    .frame-item i {
        font-size: 1.5rem;
    }

    .booking-card {
        padding: 20px;
    }

    .contact-form-card {
        padding: 20px;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.75rem;
    }

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

    .badge-accent {
        font-size: 0.75rem;
        padding: 6px 15px;
    }

    .service-card,
    .why-card,
    .testimonial-card,
    .contact-info-card {
        padding: 20px;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }
}

/* ========================================
   Smooth Scroll
   ======================================== */

html {
    scroll-behavior: smooth;
}

/* ========================================
   Custom Scrollbar
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

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

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