:root {
    /* Color Palette derived from Logo/Card */
    --primary-blue: #232a76; /* Dark blue from card */
    --primary-light: #eff4fa;
    --accent-red: #d32027;   /* Red from the S */
    --accent-orange: #f39223; /* Orange from logo */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.85);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --transition: all 0.3s ease;
}

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

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

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

.text-center {
    text-align: center;
}

/* Typography Utility */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
.w-100 { width: 100%; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    font-family: var(--font-heading);
}

.btn-primary {
    background-color: var(--accent-red);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(211, 32, 39, 0.3);
}

.btn-primary:hover {
    background-color: #b91c22;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 32, 39, 0.4);
}

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

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

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 5px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

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

.logo {
    height: 50px;
    border-radius: 50%;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-red);
    transition: var(--transition);
}

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

.nav-links li a:hover {
    color: var(--primary-blue);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 150px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-light) 100%);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.shape-1 {
    top: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background-color: rgba(35, 42, 118, 0.2);
}

.shape-2 {
    bottom: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background-color: rgba(243, 146, 35, 0.15); /* orange */
}

.shape-3 {
    top: 30%;
    left: 40%;
    width: 300px;
    height: 300px;
    background-color: rgba(211, 32, 39, 0.1); /* red */
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: var(--accent-orange);
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 90%;
}

.badge {
    display: inline-block;
    padding: 6px 15px;
    background-color: rgba(211, 32, 39, 0.1);
    color: var(--accent-red);
    font-weight: 600;
    border-radius: 30px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

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

.hero-image {
    position: relative;
    perspective: 1000px;
}

.floating-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes float {
    0% { transform: translateY(0px) rotateX(5deg) rotateY(-5deg); }
    50% { transform: translateY(-20px) rotateX(0deg) rotateY(0deg); }
    100% { transform: translateY(0px) rotateX(5deg) rotateY(-5deg); }
}

/* Programs Section */
.programs-section {
    background-color: var(--white);
}

.section-header p {
    color: var(--text-muted);
    margin-top: 10px;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

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

.card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

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

.card-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(35, 42, 118, 0.05);
    color: var(--primary-blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
    transition: var(--transition);
}

.card:hover .card-icon {
    background-color: var(--primary-blue);
    color: var(--white);
}

.program-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.grades {
    color: var(--accent-orange);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(243, 146, 35, 0.1);
    border-radius: 20px;
}

.program-card p:last-child {
    color: var(--text-muted);
}

.medium-banner {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a205a 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    color: var(--white);
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

.medium-banner h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.medium-tags {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.tag {
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    backdrop-filter: blur(5px);
}

.tag-blue {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tag-orange {
    background-color: var(--accent-orange);
    color: var(--white);
}

/* Boards Section */
.boards-section {
    background-color: var(--bg-light);
}

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

.board-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.board-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.board-card:nth-child(1):hover { border-color: #3b82f6; }
.board-card:nth-child(2):hover { border-color: #10b981; }
.board-card:nth-child(3):hover { border-color: #f59e0b; }
.board-card:nth-child(4):hover { border-color: #ef4444; }

.board-card h4 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

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

/* Contact Section */
.contact-section {
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.contact-info {
    padding: 50px;
    background-color: var(--primary-blue);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.contact-info h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-desc {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

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

.icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-orange);
    flex-shrink: 0;
}

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

.info-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.contact-persons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.person {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.person .name {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.person .phone {
    color: var(--accent-orange);
    font-weight: 600;
}

.person .phone:hover {
    color: var(--white);
}

.contact-form-container {
    padding: 50px;
    background-color: var(--white);
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    background-color: #f8fafc;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(35, 42, 118, 0.1);
}

/* Footer */
footer {
    background-color: #111827;
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

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

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        margin-top: 40px;
    }

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

    .hero-text p {
        margin: 0 auto 30px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .board-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .navbar .btn {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

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

    .medium-tags {
        flex-direction: column;
    }

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

    .contact-info, .contact-form-container {
        padding: 30px 20px;
    }
    
    .container {
        padding: 0 15px;
    }
}
