/* ===========================
   CSS Reset & Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a237e;
    --secondary-color: #0d47a1;
    --accent-color: #2196f3;
    --dark-color: #212121;
    --light-color: #f5f5f5;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --overlay-dark: rgba(0, 0, 0, 0.6);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

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

/* ===========================
   Navigation Bar
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 8px 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
}

.navbar .container {
    max-width: 1400px;
}

.nav-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    transition: var(--transition);
    justify-self: start;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    transition: var(--transition);
}

.navbar.scrolled .logo img {
    height: 60px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
    justify-content: center;
}

.nav-menu-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .nav-link {
    color: var(--text-dark);
    text-shadow: none;
}

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

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

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--primary-color);
}

.login-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 30px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
    font-weight: 600;
    text-shadow: none !important;
}

.login-btn::after {
    display: none;
}

.login-btn:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.6);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar.scrolled .hamburger span {
    background-color: var(--primary-color);
}

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

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

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

/* ===========================
   Hero Section
   =========================== */
.hero {
    min-height: 100vh;
    background-image: url('../kolubowila.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 100px;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 30px 20px;
}

.hero-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    animation: fadeInUp 1s ease-out;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(33, 150, 243, 0.4);
}

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

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* ===========================
   Section Headers
   =========================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===========================
   About Section
   =========================== */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 50%, rgba(33, 150, 243, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(26, 35, 126, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(33, 150, 243, 0.08) 0%, transparent 50%);
    animation: moveBackground 20s ease-in-out infinite;
    z-index: 0;
}

.about::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 60% 30%, rgba(33, 150, 243, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 60%, rgba(26, 35, 126, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 10% 80%, rgba(33, 150, 243, 0.1) 0%, transparent 40%);
    animation: moveBackgroundReverse 25s ease-in-out infinite;
    z-index: 0;
}

.about .container {
    position: relative;
    z-index: 1;
}

@keyframes moveBackground {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(5%, 5%) rotate(2deg);
    }
    50% {
        transform: translate(-3%, 3%) rotate(-1deg);
    }
    75% {
        transform: translate(3%, -5%) rotate(1deg);
    }
}

@keyframes moveBackgroundReverse {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-4%, 4%) scale(1.05);
    }
    50% {
        transform: translate(4%, -3%) scale(0.95);
    }
    75% {
        transform: translate(-3%, -4%) scale(1.02);
    }
}

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

.about-image {
    position: relative;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.about-image.animate {
    opacity: 1;
    transform: translateX(0);
}

.image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    animation: floatImage 6s ease-in-out infinite;
}

.image-frame:hover {
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
    transform: translateY(-10px);
    animation-play-state: paused;
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    transition: transform 0.4s ease;
}

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

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

.about-text {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out 0.2s;
}

.about-text.animate {
    opacity: 1;
    transform: translateX(0);
}

.about-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    line-height: 1.3;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.intro-text strong {
    position: relative;
    display: inline-block;
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(33, 150, 243, 0.3);
    }
    50% {
        text-shadow: 0 0 15px rgba(33, 150, 243, 0.6), 0 0 25px rgba(33, 150, 243, 0.4);
    }
}

.qualifications-box {
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.05), rgba(33, 150, 243, 0.05));
    border-left: 4px solid var(--primary-color);
    padding: 25px 30px;
    border-radius: 10px;
    margin-bottom: 35px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out 0.4s;
    position: relative;
    overflow: hidden;
}

.qualifications-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(33, 150, 243, 0.1),
        transparent
    );
    animation: shimmer 3s infinite;
}

.qualifications-box.animate {
    opacity: 1;
    transform: translateY(0);
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.qualifications-box h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.qualification-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.qualification-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.qualification-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.qualification-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.qualification-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.qualification-details strong {
    font-size: 1.05rem;
    color: var(--dark-color);
    font-weight: 600;
}

.institution {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 35px;
}

.feature {
    text-align: center;
    padding: 25px 15px;
    border-radius: 12px;
    background-color: var(--white);
    border: 2px solid var(--light-color);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(40px);
}

.feature.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature:nth-child(1) {
    transition: all 0.6s ease-out 0.6s;
}

.feature:nth-child(2) {
    transition: all 0.6s ease-out 0.75s;
}

.feature:nth-child(3) {
    transition: all 0.6s ease-out 0.9s;
}

.feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(33, 150, 243, 0.2);
    border-color: var(--accent-color);
}

.feature-icon {
    font-size: 2.8rem;
    margin-bottom: 15px;
    display: inline-block;
    animation: bounceIcon 2s ease-in-out infinite;
}

.feature:hover .feature-icon {
    animation: spinIcon 0.6s ease-in-out;
}

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

@keyframes spinIcon {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

.feature h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 600;
}

.feature p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* ===========================
   Classes Section
   =========================== */
.classes {
    padding: 100px 0;
    background: linear-gradient(135deg, #e3f2fd 0%, #f5f5f5 100%);
    position: relative;
    overflow: hidden;
}

.classes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 25%, rgba(33, 150, 243, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(26, 35, 126, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(33, 150, 243, 0.06) 0%, transparent 60%);
    animation: floatBg 15s ease-in-out infinite;
    z-index: 0;
}

.classes::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
    z-index: 0;
}

.classes .container {
    position: relative;
    z-index: 1;
}

@keyframes floatBg {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(2deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(-2deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.8;
    }
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: stretch;
}

.class-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 50px 35px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.class-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(33, 150, 243, 0.1), transparent);
    transition: left 0.5s ease;
}

.class-card:hover::before {
    left: 100%;
}

.class-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.class-card:nth-child(1) {
    transition: all 0.6s ease-out 0.2s;
}

.class-card:nth-child(2) {
    transition: all 0.6s ease-out 0.4s;
}

.class-card:nth-child(3) {
    transition: all 0.6s ease-out 0.6s;
}

.class-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(33, 150, 243, 0.25);
    border-color: var(--accent-color);
}

.class-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    display: inline-block;
    width: 100px;
    height: 100px;
    line-height: 100px;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(26, 35, 126, 0.1));
    border-radius: 50%;
    margin: 0 auto 25px;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.2);
}

.class-card:hover .class-icon {
    animation: pulse 0.8s ease-in-out;
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.4);
}

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

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

.class-card h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.class-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.class-description {
    margin-bottom: 30px;
    text-align: left;
    flex-grow: 1;
}

.desc-english {
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.05), rgba(33, 150, 243, 0.02));
    border-left: 3px solid var(--accent-color);
    border-radius: 8px;
}

.desc-english p {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin: 0;
}

.desc-sinhala {
    padding: 20px;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.05), rgba(26, 35, 126, 0.02));
    border-left: 3px solid var(--primary-color);
    border-radius: 8px;
    font-family: 'Noto Sans Sinhala', sans-serif;
}

.desc-sinhala p {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.9;
    margin: 0;
}

.class-details {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.class-details li {
    padding: 10px 0;
    color: var(--text-dark);
    border-bottom: 1px solid var(--light-color);
}

.class-details li:last-child {
    border-bottom: none;
}

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

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

/* ===========================
   Banner Section
   =========================== */
.banner {
    position: relative;
    min-height: 600px;
    background-image: url('../for cover.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f5f7fa;
}

/* ===========================
   Timetable Section
   =========================== */
.timetable {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
}

.timetable-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.timetable-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.timetable-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.timetable-header {
    padding: 25px 20px;
    text-align: center;
    color: var(--white);
}

.timetable-header.online {
    background: linear-gradient(135deg, #2196f3, #1976d2);
}

.timetable-header.physical {
    background: linear-gradient(135deg, #1a237e, #283593);
}

.timetable-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.timetable-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.timetable-header .location {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-top: 5px;
}

.timetable-body {
    padding: 25px 20px;
}

.time-slot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.time-slot:last-child {
    margin-bottom: 0;
}

.time-slot:hover {
    background: #e3f2fd;
    transform: translateX(5px);
}

.time-slot .grade {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.time-slot .time {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Responsive Design for Timetable */
@media (max-width: 1024px) {
    .timetable-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .timetable-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .time-slot {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ===========================
   Institute Logos Section
   =========================== */
.institute-logos {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    position: relative;
}

.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.logo-box {
    transition: all 0.3s ease;
}

.logo-box:hover {
    transform: scale(1.1);
}

.institute-logo {
    max-width: 350px;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.logo-box:hover .institute-logo {
    filter: drop-shadow(0 8px 20px rgba(33, 150, 243, 0.3));
}

.logo-large {
    max-width: 450px !important;
    max-height: 180px !important;
}

/* Responsive Design for Institute Logos */
@media (max-width: 768px) {
    .institute-logos {
        padding: 80px 0;
    }

    .logos-container {
        gap: 50px;
        flex-direction: column;
    }

    .institute-logo {
        max-width: 300px;
        max-height: 130px;
    }

    .logo-large {
        max-width: 380px !important;
        max-height: 160px !important;
    }
}

/* ===========================
   Contact Section
   =========================== */
.contact {
    padding: 100px 0;
    background-color: var(--white);
}

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

.contact-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.info-icon {
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 40px;
}

.whatsapp-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    padding: 8px;
}

.whatsapp-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.whatsapp-link {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-link:hover {
    color: #25D366;
    text-decoration: underline;
}

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

.info-text p {
    color: var(--text-light);
    font-size: 1rem;
}

.contact-form-wrapper {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: 15px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    display: none;
    text-align: center;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

/* ===========================
   Login Section
   =========================== */
.login {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    background-color: var(--white);
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 100%;
}

.login-box h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
    color: var(--dark-color);
}

.login-box > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox input {
    width: auto;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
}

.login-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 0.95rem;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-section p {
    color: #aaa;
    line-height: 1.7;
}

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

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

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
}

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

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

.social-link {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #aaa;
}

/* ===========================
   Back to Top Button
   =========================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

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

/* ===========================
   Animations
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Tablet Landscape */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .classes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .class-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Tablet Portrait */
@media (max-width: 968px) {
    .hero-title {
        font-size: 3.5rem;
        letter-spacing: 8px;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 80px;
    }

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

    .about-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .feature:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }

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

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

    .class-card:nth-child(3) {
        grid-column: auto;
        max-width: 100%;
    }

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

    .section-description {
        font-size: 1rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-wrapper {
        grid-template-columns: auto 1fr;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        padding: 60px 0;
        transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
        grid-column: 1 / -1;
        z-index: 999;
        overflow-y: auto;
        border-left: 3px solid #000000;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu .nav-link {
        color: #000000;
        text-shadow: none;
        font-size: 1.3rem;
        font-weight: 300;
        padding: 22px 40px;
        margin: 0;
        border-radius: 0;
        transition: all 0.3s ease;
        border-bottom: 1px solid #d0d0d0;
        background: transparent;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .nav-menu .nav-link:hover {
        background: #f8f8f8;
        color: #000000;
        padding-left: 50px;
        letter-spacing: 2px;
    }

    .nav-menu .nav-link.active {
        background: transparent;
        color: #000000;
        font-weight: 500;
        border-left: 5px solid #000000;
    }

    .nav-menu-right {
        justify-self: end;
    }

    .nav-menu-right .login-btn {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .logo img {
        height: 60px;
    }

    .navbar.scrolled .logo img {
        height: 50px;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
        background-position: center center;
    }

    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 4px;
        margin-bottom: 40px;
    }

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

    .section-description {
        font-size: 0.95rem;
    }

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

    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        font-size: 15px;
        padding: 14px 30px;
    }

    /* About Section Mobile */
    .about {
        padding: 60px 0;
    }

    .about-text h3 {
        font-size: 1.3rem;
    }

    .intro-text {
        font-size: 1rem;
    }

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

    .feature:nth-child(3) {
        grid-column: auto;
        max-width: 100%;
    }

    .feature {
        padding: 20px 15px;
    }

    .feature-icon {
        font-size: 2.2rem;
    }

    .feature h4 {
        font-size: 1rem;
    }

    .feature p {
        font-size: 0.85rem;
    }

    /* Classes Section Mobile */
    .classes {
        padding: 60px 0;
    }

    .classes-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .class-card {
        padding: 35px 25px;
    }

    .class-icon {
        width: 80px;
        height: 80px;
        line-height: 80px;
        font-size: 3rem;
        margin-bottom: 20px;
    }

    .class-card h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .desc-english,
    .desc-sinhala {
        padding: 15px;
    }

    .desc-english p,
    .desc-sinhala p {
        font-size: 0.95rem;
    }

    /* Contact Section Mobile */
    .contact {
        padding: 60px 0;
    }

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

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        align-items: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo img {
        height: 50px;
    }

    .navbar.scrolled .logo img {
        height: 45px;
    }

    .hero {
        padding-top: 90px;
        padding-bottom: 50px;
    }

    .hero-title {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }

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

    .section-description {
        font-size: 0.9rem;
    }

    .btn {
        font-size: 14px;
        padding: 12px 25px;
    }

    .about {
        padding: 50px 0;
    }

    .about-text h3 {
        font-size: 1.1rem;
    }

    .intro-text {
        font-size: 0.95rem;
    }

    .qualifications-box {
        padding: 20px;
    }

    .qualifications-box h4 {
        font-size: 1.1rem;
    }

    .classes {
        padding: 50px 0;
    }

    .class-card {
        padding: 30px 20px;
    }

    .class-card h3 {
        font-size: 1.3rem;
    }

    .class-icon {
        width: 70px;
        height: 70px;
        line-height: 70px;
        font-size: 2.5rem;
    }

    .desc-english,
    .desc-sinhala {
        padding: 12px;
    }

    .desc-english p,
    .desc-sinhala p {
        font-size: 0.9rem;
    }

    .contact {
        padding: 50px 0;
    }

    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

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

    .logo img {
        height: 40px;
    }

    .login-box {
        padding: 30px 20px;
    }

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