:root {
    --color-brightest: #0eff00;
    --color-bright: #1fc600;
    --color-primary: #089000;
    --color-dark: #0a5d00;
    --color-darker: #063b00;
    --color-light: #edfced;
    --font-heading: 'Poppins', 'Abhaya Libre', serif;
    --font-body: 'Inter', 'Abhaya Libre', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@600;700&family=Abhaya+Libre:wght@400;500;600;700;800&display=swap');

body {
    font-family: var(--font-body);
    overflow-x: hidden;
    color: var(--color-darker);
    background-color: var(--color-light);
}

.sinhala-text {
    font-family: 'Abhaya Libre', serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-darker);
}

/* ─── Glass Card ──────────────────────────────────── */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* ─── Hero Section ────────────────────────────────── */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(135deg, var(--color-darker) 0%, var(--color-primary) 100%);
    overflow: hidden;
    color: white;
    display: flex;
    align-items: center;
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.8s;
}

.btn-hero {
    background-color: var(--color-brightest);
    color: var(--color-darker);
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 1.1s;
    box-shadow: 0 0 20px rgba(14, 255, 0, 0.4);
}

.btn-hero:hover {
    background-color: var(--color-bright);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(14, 255, 0, 0.4);
}

/* ─── DNA Animation Background ──────────────────── */
.dna-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
    pointer-events: none;
}

/* ─── Floating Elements ──────────────────────────── */
.floating-element {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
    z-index: 1;
}

/* ─── Cursor Cell ────────────────────────────────── */
.cursor-cell {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(14, 255, 0, 0.8);
    background-color: rgba(14, 255, 0, 0.15);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    box-shadow: 0 0 12px rgba(14, 255, 0, 0.5);
    transition: width 0.2s, height 0.2s;
}

.cursor-cell::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background-color: rgba(14, 255, 0, 0.9);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

a:hover~.cursor-cell,
button:hover~.cursor-cell {
    width: 60px;
    height: 60px;
    background-color: rgba(14, 255, 0, 0.08);
}

.leaf {
    width: 50px;
    height: 50px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2314c600'%3E%3Cpath d='M17,8C8,10 5.9,16.17 3.82,21.34L5.71,22L6.66,19.7C8.58,15.06 10.13,10.53 18.88,10.91C8.75,11.13 7.92,18.9 7.92,18.9C7.92,18.9 8.23,19.4 8.23,19.4C10.96,16.7 13.9,13.84 20.78,13.5C18.67,10.14 17.56,6.78 17,4C17,4 17,8 17,8Z' /%3E%3C/svg%3E");
    animation: float 15s infinite ease-in-out;
}

.cell {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(14, 255, 0, 0.3);
    background: rgba(14, 255, 0, 0.08);
    animation: float 20s infinite ease-in-out reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(20px, 40px) rotate(180deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── About Section ───────────────────────────────── */
.about-section {
    padding: 100px 0;
    background-color: white;
    position: relative;
    z-index: 2;
}

.about-img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.about-img:hover {
    transform: scale(1.02);
}

/* ─── Classes Section ─────────────────────────────── */
.classes-section {
    padding: 100px 0;
    background-color: var(--color-light);
    position: relative;
}

.class-card {
    background: white;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 6px 24px rgba(6, 59, 0, 0.08);
    height: 100%;
}

.class-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 48px rgba(6, 59, 0, 0.15);
}

.class-card .card-img-top {
    height: 200px;
    object-fit: cover;
    background-color: var(--color-dark);
}

/* ─── Price Tag on Class Cards ────────────────────── */
.class-price-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-bright));
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(8, 144, 0, 0.25);
}

.class-price-tag .price-label {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.85;
}

.class-card .btn-join {
    background-color: var(--color-primary);
    color: white;
    border-radius: 50px;
    padding: 10px 28px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
}

.class-card .btn-join:hover {
    background-color: var(--color-dark);
    box-shadow: 0 4px 14px rgba(8, 144, 0, 0.3);
    color: white;
}

/* ─── Navbar ──────────────────────────────────────── */
.navbar-main {
    background: rgba(6, 59, 0, 0.96) !important;
    backdrop-filter: blur(10px);
}

.navbar-main .nav-link {
    color: rgba(255, 255, 255, 0.88) !important;
    font-weight: 500;
}

.navbar-main .nav-link:hover {
    color: var(--color-brightest) !important;
}

/* ─── Swiper ──────────────────────────────────────── */
.center-slider {
    width: 100%;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 300px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
}

.swiper-pagination-bullet {
    background: var(--color-brightest) !important;
}

/* ─── Map Markers ─────────────────────────────────── */
.map-marker {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -50%);
}

.marker-dot {
    width: 15px;
    height: 15px;
    background-color: var(--color-primary);
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

.marker-label {
    background-color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-top: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(8, 144, 0, 0.7);
    }

    70% {
        transform: scale(1.2);
        box-shadow: 0 0 0 10px rgba(8, 144, 0, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(8, 144, 0, 0);
    }
}

/* ─── Top Bar ─────────────────────────────────────── */
.top-bar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.social-links-top a:hover {
    color: var(--color-brightest) !important;
}

/* ─── Footer Social Icons ─────────────────────────── */
.social-icons a:hover {
    color: var(--color-brightest) !important;
    transform: translateY(-3px);
    display: inline-block;
}