/* ==========================================
   Base Styles
   ========================================== */
:root {
    --bg-dark: #000000;
    --bg-light: #F4F5F7;
    --text-dark: #1A1A1A;
    --text-light: #FFFFFF;
    --accent-blue: #3A70E2;
    --accent-hover: #2955B5;
    
    --tag-devlog: #E74C3C;
    --tag-release: #2ECC71;
    --tag-event: #F1C40F;
    --tag-news: #3498DB;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================
   Navbar
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 1rem 0;
}

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

.logo-text {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.nav-logo {
    height: 40px;
    width: auto;
    border-radius: 6px;
}

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

.nav-links a {
    color: #CCCCCC;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* ==========================================
   Hero Banner
   ========================================== */
.hero-banner {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    padding: 0 5%;
    overflow: hidden; /* Hide overflow for scaling bg */
}

/* Independent background layer for GSAP scaling */
.hero-bg-layer {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('hero-bg.png') center/cover no-repeat;
    z-index: 1;
    transform-origin: center center;
}

/* Dark overlay for readability */
.hero-bg-layer::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0) 100%);
}

#hero-particles {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    color: var(--text-light);
}

.app-icon {
    margin-bottom: 1rem;
}

.hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.app-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.app-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary {
    background: #FFFFFF;
    color: #000000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 0.5rem 1.5rem;
}

.btn-outline:hover {
    background: rgba(58, 112, 226, 0.1);
}

/* ==========================================
   Sections Layout
   ========================================== */
.section-light {
    background: var(--bg-light);
    padding: 5rem 0;
}

.pt-0 {
    padding-top: 0;
}

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
}

.text-center {
    justify-content: center;
}

.btn-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-blue);
    background: rgba(58, 112, 226, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 99px;
}

/* ==========================================
   News Grid
   ========================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.news-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.news-image {
    height: 180px;
    position: relative;
    background-size: cover;
    background-position: center;
}

/* Placeholders for news backgrounds */
.devlog-bg { background-image: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); }
.release-bg { background-image: linear-gradient(135deg, #093028 0%, #237A57 100%); }
.event-bg { background-image: linear-gradient(135deg, #e65c00 0%, #F9D423 100%); }
.news-bg { background-image: linear-gradient(135deg, #4b6cb7 0%, #182848 100%); }

.news-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    text-transform: uppercase;
}

.news-tag.devlog { background: var(--tag-devlog); }
.news-tag.release { background: var(--tag-release); }
.news-tag.event { background: var(--tag-event); }
.news-tag.news { background: var(--tag-news); }

.news-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.news-content p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.news-date {
    margin-top: auto;
    font-size: 0.8rem;
    color: #999;
}

/* ==========================================
   Products Grid
   ========================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.product-banner {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.banner-nurture { background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 99%, #FECFEF 100%); }
.banner-anime { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.banner-football { background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%); }
.banner-hrms { background: linear-gradient(135deg, #cc2b5e 0%, #753a88 100%); }
.banner-lms { background: linear-gradient(135deg, #8E2DE2 0%, #4A00E0 100%); }

.product-info {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.5rem;
}

.product-icon-small {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.icon-nurture { background: #FF6B6B; }
.icon-anime { background: #9c27b0; }
.icon-football { background: #4DABF7; }
.icon-hrms { background: #BE4BDB; }
.icon-lms { background: #5C7CFA; }

.product-text {
    flex-grow: 1;
}

.product-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.product-text p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.mt-3 {
    margin-top: 1rem;
}

/* ==========================================
   Toast Notification
   ========================================== */
#toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #2ECC71;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.5s, bottom 0.5s, visibility 0.5s;
}

#toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}
#toast.error {
    background-color: #E74C3C;
}

/* ==========================================
   Secondary Pages (About, Contact, Legal)
   ========================================== */
.back-btn {
    display: none;
    color: var(--accent-blue);
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 20px;
    font-size: 1rem;
    transition: opacity 0.3s;
}
.back-btn:hover {
    opacity: 0.8;
}
.pre-footer {
    background: var(--bg-dark);
    padding: 4rem 0;
}

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

.info-block {
    background: #1A1A1A;
    border-radius: 12px;
    padding: 3rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--text-light);
    transition: background 0.3s;
}

.info-block:hover {
    background: #222222;
}

.info-block h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.info-block p {
    font-size: 1rem;
    color: #AAAAAA;
}

.arrow-icon {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    width: 40px;
    height: 40px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    transition: transform 0.3s;
}

.info-block:hover .arrow-icon {
    transform: translateX(5px);
}

/* ==========================================
   Footer
   ========================================== */
.main-footer {
    background: #000000;
    border-top: 1px solid #1A1A1A;
    padding: 3rem 0;
    text-align: center;
    color: #666666;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #FFFFFF;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.footer-copyright {
    font-size: 0.8rem;
}

/* ==========================================
   Native Scroll Animations
   ========================================== */
.animate-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* ==========================================
   Responsive Design
   ========================================== */
.menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1000;
}
.menu-btn span {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .app-title {
        font-size: 3rem;
    }
    
    .blocks-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-btn {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: rgba(17, 17, 17, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding-top: 100px;
        padding-left: 2rem;
        transition: 0.4s right ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }
    
    .nav-links.show-menu {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Footer Responsiveness */
    .main-footer .section-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .back-btn {
        display: inline-block;
    }
}
