/* ============================================
   Nishat Boys High School - Style Sheet
   ============================================ */

:root {
    --primary: #1a5276;
    --primary-dark: #0f3d5a;
    --primary-light: #2980b9;
    --accent: #f39c12;
    --accent-dark: #e67e22;
    --dark: #1a1a2e;
    --text: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --gray-light: #eef2f5;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 15px 40px rgba(0, 0, 0, 0.2);
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

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

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* ============================================
   Top Bar
   ============================================ */

.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 0;
    position: relative;
    z-index: 1001;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left span,
.top-bar-right span {
    margin-right: 25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-bar i {
    color: var(--accent);
}

.live-clock {
    font-variant-numeric: tabular-nums;
}

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

.navbar {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.logo-text h1 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.logo-text span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

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

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--gradient);
    padding: 120px 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(243, 156, 18, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(41, 128, 185, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, rgba(26, 82, 118, 0.9) 0%, rgba(15, 61, 90, 0.85) 100%);
}

/* Floating Shapes in Hero */
.float-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    color: rgba(255, 255, 255, 0.12);
    font-size: 2.5rem;
    animation: floatUp 18s ease-in-out infinite;
}

.shape i {
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.shape-1 {
    left: 8%;
    top: 70%;
    font-size: 3.5rem;
    animation-delay: 0s;
}

.shape-2 {
    left: 18%;
    top: 30%;
    font-size: 2rem;
    animation-delay: 2s;
}

.shape-3 {
    right: 12%;
    top: 60%;
    font-size: 3rem;
    animation-delay: 4s;
}

.shape-4 {
    right: 22%;
    top: 25%;
    font-size: 2.2rem;
    animation-delay: 1.5s;
}

.shape-5 {
    left: 45%;
    top: 85%;
    font-size: 2rem;
    animation-delay: 3s;
}

.shape-6 {
    left: 60%;
    top: 15%;
    font-size: 2.8rem;
    animation-delay: 5s;
}

@keyframes floatUp {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.5;
    }
    25% {
        transform: translateY(-30px) rotate(10deg);
        opacity: 1;
    }
    50% {
        transform: translateY(0) rotate(-5deg);
        opacity: 0.7;
    }
    75% {
        transform: translateY(-15px) rotate(5deg);
        opacity: 1;
    }
}

/* Typing Cursor */
.type-cursor {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    animation: blink 0.8s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero-subtitle {
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero-title {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-location {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.hero-location i {
    color: var(--accent);
    margin-right: 8px;
}

.hero-tagline {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
}

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

.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(243, 156, 18, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
}

/* Submit Button Animation States */
.submit-btn {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:active {
    transform: scale(0.97);
}

.submit-btn .btn-icon {
    transition: transform 0.4s ease;
}

.submit-btn.sending {
    animation: btnPulse 1.2s ease-in-out infinite;
    pointer-events: none;
}

.submit-btn.sending .btn-icon {
    animation: spin 1s linear infinite;
}

.submit-btn.sending::after {
    content: '';
    position: absolute;
    top: var(--ripple-y, 50%);
    left: var(--ripple-x, 50%);
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 1.2s ease-out infinite;
}

.submit-btn.unlocked {
    animation: unlock 0.5s ease;
}

.submit-btn.success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.5);
    animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.submit-btn.success .btn-icon {
    animation: checkPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.submit-btn.error {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.5);
    animation: shake 0.6s ease;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes ripple {
    0% {
        width: 5px;
        height: 5px;
        opacity: 0.8;
    }
    100% {
        width: 400px;
        height: 400px;
        opacity: 0;
    }
}

@keyframes btnPulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(243, 156, 18, 0.4);
    }
    50% {
        box-shadow: 0 5px 35px rgba(243, 156, 18, 0.8);
        transform: translateY(-2px);
    }
}

@keyframes unlock {
    0% {
        transform: scale(0);
    }
    70% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes successPop {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.08);
    }
    60% {
        transform: scale(0.96);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes checkPop {
    0% {
        transform: scale(0) rotate(-90deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.4);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-8px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(8px);
    }
}

.hero-stats {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px 50px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-top: 5px;
}

/* ============================================
   Section Headers
   ============================================ */

section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-light);
    margin-top: 15px;
    font-size: 1.05rem;
}

.underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 4px;
    margin: 0 auto;
}

.section-header.light h2 {
    color: var(--white);
}

.section-header.light p {
    color: rgba(255, 255, 255, 0.8);
}

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

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 15px;
    text-align: justify;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 25px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: var(--gray-light);
    border-radius: 10px;
    transition: var(--transition);
}

.feature:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateX(5px);
}

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

.feature:hover i {
    color: var(--accent);
}

.feature span {
    font-size: 0.9rem;
    font-weight: 500;
}

.about-image {
    position: relative;
}

.image-card {
    background: var(--gradient);
    border-radius: 20px;
    height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-dark);
}

.image-card::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(243, 156, 18, 0.2) 0%, transparent 60%);
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.image-placeholder i {
    font-size: 7rem;
    color: rgba(255, 255, 255, 0.5);
}

.image-badge {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: var(--white);
    border-radius: 15px;
    padding: 15px 25px;
    box-shadow: var(--shadow-dark);
    text-align: center;
    transform: rotate(-5deg);
}

.badge-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

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

/* ============================================
   Programs Section
   ============================================ */

.programs {
    background: var(--gradient);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.program-card {
    background: var(--white);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

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

.program-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 2rem;
    transition: var(--transition);
}

.program-card:hover .program-icon {
    background: var(--gradient-accent);
    transform: rotate(360deg);
}

.program-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.program-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.program-card ul {
    text-align: left;
}

.program-card ul li {
    font-size: 0.85rem;
    color: var(--text-light);
    padding: 6px 0;
    padding-left: 25px;
    position: relative;
    border-bottom: 1px dashed var(--gray-light);
}

.program-card ul li:last-child {
    border-bottom: none;
}

.program-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ============================================
   Facilities Section
   ============================================ */

.facilities {
    background: var(--off-white);
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.facility-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid var(--gray-light);
}

.facility-card:hover {
    transform: translateY(-8px);
    border-bottom-color: var(--accent);
    box-shadow: var(--shadow);
}

.facility-icon {
    width: 70px;
    height: 70px;
    background: var(--gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 1.8rem;
    transition: var(--transition);
}

.facility-card:hover .facility-icon {
    background: var(--gradient-accent);
    color: var(--white);
}

.facility-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.facility-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ============================================
   Gallery Section
   ============================================ */

.gallery {
    background: var(--gradient);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item.large {
    grid-row: span 2;
}

.gallery-placeholder {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.gallery-item.large .gallery-placeholder {
    height: 100%;
    min-height: 500px;
}

.gallery-placeholder i {
    font-size: 3rem;
    opacity: 0.5;
    transition: var(--transition);
}

.gallery-placeholder span {
    font-weight: 500;
    opacity: 0.8;
}

.gallery-placeholder:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent);
    transform: scale(1.03);
}

.gallery-placeholder:hover i {
    opacity: 1;
    color: var(--accent);
}

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

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

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 50px;
    text-align: center;
    box-shadow: var(--shadow);
    display: none;
}

.testimonial-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.testimonial-quote {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(243, 156, 18, 0.4);
}

.testimonial-card p {
    font-size: 1.05rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.author-avatar {
    width: 55px;
    height: 55px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
}

.author-info h4 {
    color: var(--primary);
    font-size: 1rem;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

/* ============================================
   Admissions Section
   ============================================ */

.admissions {
    background: var(--white);
}

.admissions-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.admission-info h3 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 30px;
}

.admission-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.step-content h4 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.step-content p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.admission-form-card {
    background: var(--off-white);
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--accent);
}

.admission-form-card h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.documents-list {
    margin-bottom: 25px;
}

.documents-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.92rem;
    color: var(--text);
    border-bottom: 1px dashed #ddd;
}

.documents-list li:last-child {
    border-bottom: none;
}

.documents-list i {
    color: var(--accent);
    font-size: 1.1rem;
}

.fee-info h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.fee-info h4 i {
    color: var(--accent);
    margin-right: 8px;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.fee-table td {
    padding: 10px 12px;
    font-size: 0.9rem;
    border: 1px solid #ddd;
    background: var(--white);
}

.fee-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--primary);
}

.contact-note {
    background: rgba(243, 156, 18, 0.1);
    border-radius: 10px;
    padding: 12px 15px;
    border-left: 4px solid var(--accent);
}

.contact-note p {
    font-size: 0.85rem;
    color: var(--text);
}

.contact-note i {
    color: var(--accent);
    margin-right: 8px;
}

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

.contact {
    background: var(--gradient);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 50px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.contact-icon {
    width: 55px;
    height: 55px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--white);
    font-size: 1.3rem;
}

.contact-card h3 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 10px;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
}

.contact-form-wrapper {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-dark);
}

.contact-form-wrapper h3 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 18px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    transition: var(--transition);
    background: var(--off-white);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-light);
    background: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   Map Section
   ============================================ */

.map-section {
    padding: 0;
}

.map-placeholder {
    height: 450px;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.map-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
}

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

.map-content i {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
}

.map-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.map-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

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

.footer {
    background: var(--dark);
    color: var(--white);
    padding: 70px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

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

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

.social-links a:hover {
    background: var(--gradient-accent);
    transform: translateY(-5px);
}

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

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

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

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact i {
    color: var(--accent);
    margin-top: 5px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ============================================
   Scroll Reveal Animation
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Back to Top
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-dark);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
}

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

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

    .about-content,
    .admissions-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .hero-stats {
        gap: 30px;
        padding: 20px 30px;
    }
}

@media (max-width: 768px) {
    .top-bar-left span:last-child,
    .top-bar-right {
        display: none;
    }

    .hamburger {
        display: flex;
        z-index: 1002;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 350px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        padding: 50px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
        transition: var(--transition);
        z-index: 1001;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        text-align: center;
    }

    .logo-text h1 {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

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

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

    .hero-stats {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 20px;
        background: transparent;
        border: none;
        backdrop-filter: none;
        padding: 20px 0;
        gap: 20px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-item.large .gallery-placeholder {
        min-height: 240px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    section {
        padding: 60px 0;
    }

    .testimonial-card {
        padding: 30px 25px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .image-badge {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

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

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 25px;
    }

    .admission-form-card {
        padding: 25px;
    }

    .top-bar-left span {
        margin-right: 15px;
        font-size: 0.8rem;
    }
}