:root {
    --primary-green: #14532d;
    --primary-maroon: #8b1538;
    --green-light: #dcfce7;
    --maroon-light: #fce7f3;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --white: #ffffff;
    --shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-green);
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    padding: 0.75rem 2rem;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo {
    width: 32px;
    height: 32px;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-green);
    letter-spacing: -0.5px;
}

.brand-name span {
    color: var(--primary-maroon);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-green);
    border-bottom: 2px solid var(--primary-green);
}

/* Buttons */
.btn {
    padding: 0.8rem 1.75rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.btn-maroon {
    background-color: var(--primary-maroon);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(139, 21, 56, 0.39);
}

.btn-green {
    background-color: var(--primary-green);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(20, 83, 45, 0.39);
}

.btn-green:hover,
.btn-maroon:hover {
    transform: translateY(-3px) scale(1.02);
}

.btn-outline {
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    margin-left: 1rem;
}

.btn-outline.small {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

.btn-white {
    background: var(--white);
    color: var(--primary-green);
    box-shadow: 0 4px 14px 0 rgba(255, 255, 255, 0.2);
}

.btn-white:hover {
    background: #f8fafc;
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    padding-top: 10rem;
    padding-bottom: 5rem;
    background: radial-gradient(circle at top right, rgba(20, 83, 45, 0.05), transparent 40%),
        radial-gradient(circle at bottom left, rgba(139, 21, 56, 0.05), transparent 40%);
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-text {
    flex: 1;
}

.badge-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.badge {
    display: inline-block;
    background-color: var(--green-light);
    color: var(--primary-green);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-lottie {
    width: 40px;
    height: 40px;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.background-pulse {
    position: absolute;
    width: 150%;
    height: 150%;
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mockup-wrapper {
    position: relative;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.mockup-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.dashboard-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 3rem 2rem;
    background: #fdfdfd;
    border: 1px solid #f1f5f9;
    border-radius: 24px;
    transition: all 0.3s;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-green);
    box-shadow: var(--shadow);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.icon-box.green {
    background: var(--green-light);
    color: var(--primary-green);
}

.icon-box.maroon {
    background: var(--maroon-light);
    color: var(--primary-maroon);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* About Page Pillar Styles */
.about-hero {
    padding: 10rem 0 5rem;
    text-align: center;
}

.about-content h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
    letter-spacing: -1.5px;
}

.about-content .lead {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin: 0 auto 4rem;
    max-width: 800px;
    opacity: 0.8;
}

.core-pillars {
    padding: 5rem 0 8rem;
}

.pillar-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 8rem;
}

@media (max-width: 768px) {
    .pillar-row {
        flex-direction: column !important;
        text-align: center;
        gap: 2rem;
        margin-bottom: 5rem;
    }

    .pillar-text {
        order: 2;
    }

    .pillar-visual {
        order: 1;
    }
}

.pillar-row.reverse {
    flex-direction: row-reverse;
}

.pillar-text {
    flex: 1;
}

.pillar-visual {
    flex: 0.8;
    display: grid;
    place-items: center;
}

.pillar-visual dotlottie-wc {
    width: 400px;
    height: 400px;
}

.pillar-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.pillar-badge.green {
    background: var(--green-light);
    color: var(--primary-green);
}

.pillar-badge.maroon {
    background: var(--maroon-light);
    color: var(--primary-maroon);
}

.pillar-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.pillar-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Inline CTA for About Page */
.inline-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.inline-lottie {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inline-lottie dotlottie-wc {
    width: 100%;
    height: 100%;
}

/* Portals Section - Landing Page */
.portals-section {
    padding: 8rem 0;
    background: #f8fafc;
}

.portal-selection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

@media (max-width: 992px) {
    .portal-selection-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 4rem auto 0;
    }
}

.portal-card {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid #e2e8f0;
    padding: 3rem 2rem;
    border-radius: 32px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.portal-card:hover {
    transform: translateY(-15px);
    background: white;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.1);
}

.card-lottie {
    width: 200px;
    height: 200px;
    margin-bottom: 1rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.portal-link {
    font-weight: 800;
    color: var(--primary-green);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.portal-card.admin:hover .portal-link {
    color: var(--primary-green);
}

.portal-card.parent:hover .portal-link {
    color: var(--primary-maroon);
}

.portal-card.staff:hover .portal-link {
    color: var(--primary-green);
}

.portal-card.admin:hover {
    border-bottom: 6px solid var(--primary-green);
}

.portal-card.parent:hover {
    border-bottom: 6px solid var(--primary-maroon);
}

.portal-card.staff:hover {
    border-bottom: 6px solid var(--primary-green);
}

/* Footer - Professional & Compact */
.footer {
    padding: 2rem 0;
    background: #0a2514;
    /* Deeper Green for Premium Feel */
    color: var(--white);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer p {
    font-size: 0.85rem;
    opacity: 0.7;
    letter-spacing: 0.3px;
    font-weight: 500;
}

@media (max-width: 968px) {
    .inline-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .inline-lottie {
        margin-left: -15px;
    }
}

@media (max-width: 968px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        margin: 0 auto 2rem;
    }

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

    .navbar {
        width: 92%;
        padding: 0.8rem 1.5rem;
    }

    .nav-links {
        display: none;
        /* Simple Mobile Row for now */
        position: absolute;
        top: 110%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1.5rem;
        border-radius: 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: var(--primary-green);
        padding: 0.8rem 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links a:last-child {
        border-bottom: none;
        margin-top: 0.5rem;
    }

    .mobile-toggle {
        display: flex !important;
        cursor: pointer;
        font-size: 1.5rem;
        color: var(--primary-green);
    }
}