@import url('services.css');

:root {
    --primary-yellow: #FFC107;
    /* Vivid Yellow */
    --primary-yellow-dark: #FFB300;
    --secondary-grey: #e9ecef;
    /* Light Grey Background */
    --dark-grey: #343a40;
    /* Dark Grey for Contrast Sections */
    --text-dark: #212529;
    --text-light: #f8f9fa;
    --white: #ffffff;
    --accent-blue: #0d6efd;
    /* For small accents like icons */
    --font-main: 'Kanit', sans-serif;
}

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

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

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
    color: var(--white);
    /* Default to white for dark background side */
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s;
}

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

.btn-primary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    font-family: var(--font-main);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    /* Implementing the split background look */
    background: linear-gradient(105deg, var(--dark-grey) 0%, var(--dark-grey) 55%, var(--primary-yellow) 55%, var(--primary-yellow) 100%);
}

.container {
    display: flex;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
    color: var(--white);
    padding-top: 5rem;
    /* Space for navbar */
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.school-name {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    opacity: 0.9;
}

.btn-learn-more {
    display: inline-block;
    background-color: #ff5757;
    /* Keeping the red button from reference for contrast */
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 87, 87, 0.4);
    margin-bottom: 3rem;
    transition: transform 0.2s;
}

.btn-learn-more:hover {
    transform: translateY(-2px);
}

.motto {
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-top: 2rem;
}

/* Hero Image Side */
.hero-image-container {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    z-index: 5;
    /* width/height removed for dynamic sizing */
    background: rgba(255, 255, 255, 0.2);
    /* Glassy background */
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* Space for the frame */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.main-img {
    max-width: 130%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
    /* Soft fade at bottom if cut off */
}

/* Floating Cards */
.float-card {
    position: absolute;
    background: var(--white);
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
    z-index: 6;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.card-followers {
    top: 20%;
    left: -10%;
}

.card-wow {
    bottom: 10%;
    right: -5%;
    animation-delay: 2s;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.blue-icon {
    background-color: #4267B2;
}

.yellow-icon {
    background-color: #FFC107;
    color: var(--text-dark);
}

.card-text span {
    font-size: 0.8rem;
    color: #6c757d;
    display: block;
}

.card-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-up {
    font-size: 0.75rem;
    color: #198754;
    /* Green */
    font-weight: 600;
}

/* Decor */
.circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.circle-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    right: 20%;
    border-color: rgba(255, 255, 255, 0.5);
}

.circle-2 {
    width: 50px;
    height: 50px;
    bottom: 30%;
    left: 10%;
    background-color: var(--primary-yellow);
    border: none;
    opacity: 0.8;
}

/* Fluid Shapes for Background */
.bg-shape-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Optional: SVG pattern overlay for texture */
    background-image: radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.03) 0%, transparent 10%);
    pointer-events: none;
}

.bg-shape-right {
    /* Right side texture (dots) from reference */
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    z-index: 1;
    background-image: radial-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 992px) {
    .navbar {
        padding: 1rem 2rem;
    }

    .nav-links {
        display: none;
        /* Simple hiding for mobile for now */
    }

    .hero {
        background: linear-gradient(180deg, var(--dark-grey) 0%, var(--dark-grey) 60%, var(--primary-yellow) 60%, var(--primary-yellow) 100%);
        flex-direction: column;
        padding-bottom: 2rem;
    }

    .container {
        flex-direction: column;
        text-align: center;
        margin-top: 5rem;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }

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

    .hero-image-container {
        width: 100%;
    }

    .image-wrapper {
        width: 90%;
        height: auto;
        min-height: 400px;
    }

    .main-img {
        max-width: 100%;
    }

    .card-followers {
        left: 0;
    }

    .card-wow {
        right: 0;
    }
}

/* Footer Styles */
.footer {
    background-color: #fff;
    padding-top: 60px;
    border-top: 1px solid #eee;
    color: #333;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    /* Strict 3 columns for perfect center alignment */
    align-items: start;
    gap: 20px;
    padding-bottom: 40px;
}

.footer-col h3 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #212529;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 0;
    /* Important for alignment */
    line-height: 1.4;
}

/* Specific Alignment Requests */
.footer-header-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 0;
    /* Align with h3 in other cols */
    margin-bottom: 20px;
}

.footer-header-group h3 {
    margin-bottom: 0;
}

/* Column 1: Left */
.footer-col:nth-child(1) {
    text-align: left;
}

/* Column 2: Center */
.footer-col:nth-child(2) {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Column 3: Right */
.footer-col:nth-child(3) {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        text-align: center;
    }

    .footer-col:nth-child(1),
    .footer-col:nth-child(2),
    .footer-col:nth-child(3) {
        text-align: center;
        align-items: center;
    }

    .footer-header-group {
        justify-content: center;
    }
}

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

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

.footer-links a {
    text-decoration: none;
    color: #6c757d;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-yellow);
}

.footer-bottom {
    background-color: #f8f9fa;
    padding: 20px 0;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #6c757d;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-social a {
    text-decoration: none;
    color: #6c757d;
    margin: 0 5px;
}

.footer-social a:hover {
    color: var(--primary-yellow);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: #ccc;
    color: white;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: background 0.3s;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: var(--primary-yellow);
    color: #333;
}