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

:root {
    --primary-color: #6366f1;
    --secondary-color: #0f172a;
    --accent-color: #f43f5e;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --light-bg: #f8fafc;
    --dark-bg: #1e293b;
    --darker-bg: #0f172a;
    --text-color: #1e293b;
    --light-text: #ffffff;
    --gray-text: #64748b;
}

html {
    scroll-behavior: smooth;
}

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

/* Topbar */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    z-index: 1100;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand { display:flex; align-items:center; gap:10px; text-decoration:none; }
.brand-logo { width:32px; height:32px; }
.brand-name { color: var(--secondary-color); font-weight:800; letter-spacing:.5px; }

.nav-links { display:flex; gap:16px; }
.nav-links .link { color: var(--secondary-color); text-decoration:none; padding:10px 12px; border-radius:8px; font-weight:600; }
.nav-links .link:hover { background:#eef2ff; }
.nav-links .link.active { background: linear-gradient(135deg, var(--primary-color), var(--accent-purple)); color:#fff; }

.nav-toggle { display:none; background:#0b0; }
.nav-toggle { position: relative; width:44px; height:40px; border:none; background:#fff; border-radius:10px; box-shadow:0 6px 16px rgba(0,0,0,.08); display:none; align-items:center; justify-content:center; }
.nav-toggle span { position:absolute; width:20px; height:2px; background:#111; transition:transform .2s ease, opacity .2s ease; }
.nav-toggle span:nth-child(1){ transform: translateY(-6px); }
.nav-toggle span:nth-child(2){ transform: translateY(0); }
.nav-toggle span:nth-child(3){ transform: translateY(6px); }

@media (max-width: 900px) {
  .nav-toggle { display:flex; }
  .nav-links { position: absolute; top:64px; left:0; right:0; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); border-bottom:1px solid rgba(0,0,0,.06); flex-direction: column; gap:0; padding:8px; display:none; }
  .nav-links.open { display:flex; }
  .nav-links .link { padding:14px 16px; }
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-cyan));
    bottom: -150px;
    right: -150px;
    animation-delay: -7s;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--primary-color));
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(100px, -100px) rotate(120deg); }
    66% { transform: translate(-50px, 100px) rotate(240deg); }
}

/* Fade In Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 1s ease forwards;
}

.fade-in-delay {
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

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

/* Header */
header {
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    color: var(--light-text);
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.logo-circle {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 10s linear infinite;
    opacity: 0.3;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

header h1 {
    font-size: 5rem;
    margin-bottom: 10px;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff, var(--primary-color), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.tagline {
    font-size: 1.3rem;
    opacity: 0.8;
    font-weight: 300;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 80px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.title-bg {
    position: relative;
    z-index: 1;
}

.section-title::before {
    content: attr(data-text);
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 4rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(99, 102, 241, 0.1);
    z-index: -1;
}

/* Timeline Section */
.timeline {
    padding: 100px 0;
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, 
        transparent 0%,
        var(--primary-color) 10%,
        var(--accent-purple) 50%,
        var(--accent-cyan) 90%,
        transparent 100%
    );
    transform: translateX(-50%);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 60px;
    margin-bottom: 100px;
    position: relative;
    align-items: center;
}

.timeline-item:nth-child(even) .timeline-date {
    order: 3;
}

.timeline-item:nth-child(even) .timeline-content {
    order: 1;
}

.timeline-item:nth-child(even) .timeline-marker {
    order: 2;
}

.timeline-item:nth-child(odd) .timeline-date {
    order: 1;
    text-align: right;
}

.timeline-item:nth-child(odd) .timeline-content {
    order: 3;
}

.timeline-item:nth-child(odd) .timeline-marker {
    order: 2;
}

.timeline-marker {
    position: relative;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.marker-dot {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 4px var(--light-bg), 0 0 20px rgba(99, 102, 241, 0.5);
}

.marker-ring {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0; }
}

.timeline-date {
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    min-width: 200px;
}

.year {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 5px;
}

.year-label {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-text);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-purple), var(--accent-cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.timeline-content:hover::before {
    transform: scaleX(1);
}

.timeline-content:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
}

.content-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.timeline-content:hover .timeline-icon {
    transform: rotate(5deg) scale(1.1);
}

.timeline-icon svg {
    width: 30px;
    height: 30px;
}

.timeline-content h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.timeline-content p {
    color: var(--gray-text);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.tag-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.tag:hover::before {
    left: 100%;
}

.tag-game {
    background: linear-gradient(135deg, #f43f5e, #ec4899);
}

.tag-tech {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.tag-web {
    background: linear-gradient(135deg, #06b6d4, #0ea5e9);
}

/* Divisions Section */
.divisions {
    background: linear-gradient(180deg, var(--light-bg) 0%, white 100%);
    padding: 100px 0;
    position: relative;
}

.divisions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.division-card {
    background: white;
    padding: 50px 35px;
    border-radius: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.division-card:hover .card-glow {
    opacity: 1;
}

.division-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
    border-color: var(--primary-color);
}

.division-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.4s ease;
}

.division-card:hover .division-icon-wrapper {
    transform: rotateY(360deg);
}

.division-icon {
    width: 50px;
    height: 50px;
    color: white;
    stroke-width: 2;
}

.division-card h3 {
    color: var(--secondary-color);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.division-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-purple));
    margin: 20px auto;
    border-radius: 2px;
}

.division-card p {
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.card-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Team Section */
.team {
    background: white;
    padding: 100px 0;
    position: relative;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 60px;
    max-width: 800px;
    margin: 0 auto;
    justify-items: center;
}

.team-member {
    text-align: center;
    position: relative;
}

.member-image-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 30px;
}

.member-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease;
}

.member-image.top-crop { object-position: top center; }

.team-member:hover .member-image {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
}

.team-member h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.member-role {
    font-size: 1rem;
    color: var(--gray-text);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mission Section */
.mission {
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    padding: 80px 0;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.mission-card {
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(99,102,241,0.10);
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 8px 30px rgba(17,24,39,0.06);
}

.mission-card h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.mission-card p {
    color: var(--gray-text);
    line-height: 1.8;
}

.mission-card ul {
    padding-left: 20px;
    margin-top: 6px;
}

.mission-card li {
    color: var(--gray-text);
    margin: 8px 0;
}

/* Stats Section */
.stats {
    background: linear-gradient(135deg, var(--darker-bg), var(--dark-bg));
    padding: 80px 0;
    position: relative;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 15px;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Footer */
footer {
    background: var(--darker-bg);
    color: var(--light-text);
    padding: 50px 0 30px;
}

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

.footer-logo h3 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #ffffff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    font-style: italic;
}

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

/* AOS Animations */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-right"] {
    transform: translateX(-50px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(50px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.8);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 968px) {
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .timeline-item:nth-child(even) .timeline-date,
    .timeline-item:nth-child(odd) .timeline-date {
        order: 1;
        text-align: center;
    }

    .timeline-item:nth-child(even) .timeline-marker,
    .timeline-item:nth-child(odd) .timeline-marker {
        order: 2;
        margin: 0 auto;
    }

    .timeline-item:nth-child(even) .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        order: 3;
    }

    .timeline-line {
        display: none;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 3rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .year {
        font-size: 2.5rem;
    }

    .timeline-content {
        padding: 30px;
    }

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

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

    .stat-number {
        font-size: 3rem;
    }

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

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

    .member-image-wrapper {
        width: 180px;
        height: 180px;
    }
}
