/* CSS Variables */
:root {
    --primary-red: #E53935;
    --primary-blue: #2962FF;
    --bg-cream: #FFF8F0;
    --bg-cream-light: #FFFBF5;
    --text-dark: #1a1a2e;
    --text-gray: #4a4a5a;
    --white: #ffffff;
    --star-blue: #2962FF;
    --star-red: #E53935;
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-g {
    color: var(--white);
    font-weight: 800;
    font-size: 20px;
}

.logo-text {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-dark);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1587654780291-39c9404d746b?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(41, 98, 255, 0.6) 0%, rgba(229, 57, 53, 0.5) 50%, rgba(255, 193, 7, 0.4) 100%);
    z-index: 1;
}

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

.welcome-badge {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--white);
    padding: 12px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    box-shadow: 0 4px 15px rgba(41, 98, 255, 0.4);
}

.welcome-badge::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid var(--primary-blue);
}

.hero-title {
    font-size: clamp(48px, 10vw, 100px);
    font-weight: 800;
    color: var(--white);
    text-shadow: 3px 5px 10px rgba(0, 0, 0, 0.4);
    line-height: 1.1;
    letter-spacing: 2px;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--bg-cream-light);
    position: relative;
    overflow: hidden;
}

.about .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-content {
    flex: 1;
    max-width: 600px;
}

.section-badge {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--white);
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
    position: relative;
}

.section-badge::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 30px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--primary-blue);
}

.about-text {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.8;
}

.about-text strong {
    font-weight: 700;
}

.about-illustration {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-illustration img {
    max-width: 100%;
    height: auto;
}

.kids-illustration {
    width: 100%;
    max-width: 350px;
    height: auto;
}

/* Decorative Elements */
.decorative-star {
    position: absolute;
    width: 40px;
    height: 40px;
}

.decorative-star::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: currentColor;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.star-blue {
    color: var(--star-blue);
}

.star-red {
    color: var(--star-red);
}

.star-1 {
    bottom: 20%;
    left: 5%;
}

.star-2 {
    top: 15%;
    right: 5%;
}

.star-3 {
    bottom: 10%;
    right: 10%;
}

.star-4 {
    top: 10%;
    right: 8%;
}

.star-5 {
    bottom: 15%;
    left: 8%;
}

.star-6 {
    top: 10%;
    right: 5%;
}

.decorative-apple {
    position: absolute;
    width: 50px;
    height: 60px;
    bottom: 10%;
    right: 15%;
}

.decorative-apple::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-red);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--bg-cream);
    position: relative;
}

.services-header {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 60px;
}

.services-title-wrap {
    flex-shrink: 0;
}

.services-title-curved {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-red);
    writing-mode: vertical-lr;
    text-orientation: mixed;
    transform: rotate(180deg);
    line-height: 1;
}

.services-subtitle {
    font-size: 18px;
    color: var(--text-dark);
    max-width: 600px;
    padding-top: 20px;
}

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

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

.service-icon-box {
    width: 150px;
    height: 150px;
    margin: 0 auto 25px;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* Products Section */
.products {
    padding: 100px 0;
    background: var(--bg-cream-light);
    position: relative;
}

.products-badge {
    margin-bottom: 60px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    justify-items: center;
}

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

.product-icon {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-svg {
    width: 100%;
    height: 100%;
}

.product-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    font-style: italic;
}

/* PKB Section */
.pkb {
    padding: 100px 0;
    background: var(--bg-cream);
    position: relative;
}

.pkb-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.pkb-illustration {
    flex: 1;
    display: flex;
    justify-content: center;
}

.rocket-scene {
    max-width: 350px;
}

.rocket-svg {
    width: 100%;
    height: auto;
}

.pkb-text {
    flex: 1;
}

.pkb-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
}

.pkb-parents {
    color: #7C4DFF;
}

.pkb-kids {
    color: #E53935;
}

.pkb-beyond {
    color: #7C4DFF;
}

.star-inline {
    color: #FFD700;
}

.pkb-text p {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--primary-red);
    color: var(--white);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--bg-cream);
    clip-path: ellipse(70% 100% at 50% 0%);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.5fr;
    gap: 60px;
    padding-top: 40px;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    background: var(--white);
    padding: 10px 20px;
    border-radius: 10px;
    width: fit-content;
}

.footer-logo-gymcademy {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-red);
    font-weight: 700;
}

.footer-logo-g {
    width: 30px;
    height: 30px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.footer-logo-pkb {
    color: #7C4DFF;
    font-weight: 600;
    font-size: 12px;
}

.footer-brand h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #FFD700;
}

.footer-brand > p {
    font-size: 14px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon svg {
    width: 22px;
    height: 22px;
}

.footer-location h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-location p {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover {
    opacity: 0.8;
}

.apple-footer {
    position: absolute;
    top: 50px;
    right: 10%;
    width: 60px;
    height: 70px;
}

.apple-footer::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--white);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.5;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .footer-nav {
        grid-column: span 2;
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
    }

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

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-title {
        font-size: 40px;
    }

    .about .container {
        flex-direction: column;
        text-align: center;
    }

    .about-illustration {
        order: -1;
    }

    .services-header {
        flex-direction: column;
        text-align: center;
    }

    .services-title-curved {
        writing-mode: horizontal-tb;
        transform: none;
    }

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

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

    .pkb-content {
        flex-direction: column;
        text-align: center;
    }

    .pkb-title {
        font-size: 36px;
    }

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

    .footer-logos {
        margin: 0 auto 20px;
    }

    .social-links {
        justify-content: center;
    }

    .footer-nav {
        grid-column: auto;
    }
}

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

.decorative-star {
    animation: float 3s ease-in-out infinite;
}

.star-2 {
    animation-delay: 0.5s;
}

.star-3 {
    animation-delay: 1s;
}

.star-4 {
    animation-delay: 1.5s;
}

.star-5 {
    animation-delay: 2s;
}

.star-6 {
    animation-delay: 2.5s;
}

/* Scroll animations */
.about-content,
.about-illustration,
.service-card,
.product-card,
.pkb-illustration,
.pkb-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
