/* ===== CSS Variables ===== */
:root {
    /* Primary Colors */
    --primary: #8517F3;
    --primary-dark: #6B12C7;
    --primary-light: #A855F7;

    /* Secondary Colors */
    --green: #0EF7A3;
    --blue: #3D4EF6;

    /* Accent Colors */
    --orange: #F9822C;
    --yellow: #FAFF00;
    --pink: #FB1073;

    /* Neutral Colors */
    --dark: #222222;
    --gray: #94A3B8;
    --light-gray: #F2F2F2;
    --white: #FFFFFF;

    /* Gradient */
    --gradient: linear-gradient(135deg, #8517F3 0%, #1F033A 100%);
    --gradient-light: linear-gradient(135deg, #A855F7 0%, #8517F3 100%);

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rethink Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
    color: #555;
}

.highlight {
    color: var(--primary);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(133, 23, 243, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
}

.navbar.scrolled .nav-link {
    color: var(--dark);
}

.navbar.scrolled .nav-link:hover {
    color: var(--primary);
}

.navbar.scrolled .logo-text {
    color: var(--primary);
}

.navbar.scrolled .logo-sub {
    color: var(--dark);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.navbar:not(.scrolled) .logo-icon {
    filter: brightness(0) invert(1);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--white);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--primary);
    padding: 10px 24px;
    border-radius: 50px;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background: var(--dark);
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: rgba(133, 23, 243, 0.3);
    border-radius: 50%;
    filter: blur(100px);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 80px;
}

.hero-text {
    color: var(--white);
}

.hero-title {
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

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

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-icon-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.hero-icon {
    width: 200px;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

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

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 0.875rem;
    opacity: 0.7;
    animation: bounce 2s 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); }
}

/* ===== Section Styles ===== */
.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(133, 23, 243, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    color: var(--dark);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== About Section ===== */
.about {
    background: var(--light-gray);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.about-content {
    font-size: 1.125rem;
}

.about-intro {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(133, 23, 243, 0.15);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(133, 23, 243, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
}

.about-card h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.about-card p {
    font-size: 0.95rem;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    background: var(--white);
    padding: 48px;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

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

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    display: block;
    margin-top: 8px;
    color: var(--gray);
    font-weight: 500;
}

/* ===== Services Section ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #eee;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(133, 23, 243, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--white);
}

.service-card h3 {
    margin-bottom: 16px;
    color: var(--dark);
}

/* ===== MegaQuest Section ===== */
.megaquest {
    background: var(--gradient);
    color: var(--white);
}

.megaquest .section-tag {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.megaquest .section-title {
    color: var(--white);
}

.megaquest-tagline {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 40px;
    text-align: center;
}

.megaquest-intro {
    max-width: 700px;
    margin: 0 auto 60px;
    text-align: center;
}

.megaquest-intro p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 24px;
}

.megaquest .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.megaquest .btn-primary:hover {
    background: var(--yellow);
    color: var(--dark);
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.feature-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--yellow);
    opacity: 0.5;
    margin-bottom: 12px;
}

.feature-card h4 {
    margin-bottom: 12px;
    font-size: 1.125rem;
}

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

/* ===== Achievements Section ===== */
.achievements {
    background: var(--light-gray);
}

.awards-highlight {
    display: flex;
    align-items: center;
    gap: 32px;
    background: var(--white);
    padding: 48px;
    border-radius: 20px;
    margin-bottom: 48px;
    border-left: 4px solid var(--yellow);
}

.award-badge {
    width: 80px;
    height: 80px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.award-badge svg {
    width: 40px;
    height: 40px;
    stroke: var(--dark);
}

.award-content h3 {
    color: var(--primary);
    margin-bottom: 4px;
}

.award-subtitle {
    color: var(--yellow);
    font-weight: 600;
    margin-bottom: 12px;
    background: var(--dark);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.achievement-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #eee;
}

.achievement-card h4 {
    color: var(--primary);
    margin-bottom: 12px;
}

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

.trusted-by h3 {
    color: var(--gray);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 32px;
}

.clients-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
}

.client-logo {
    padding: 16px 32px;
    background: var(--white);
    border-radius: 8px;
    font-weight: 700;
    color: var(--gray);
    font-size: 1.125rem;
}

/* ===== Team Section ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.team-card {
    background: var(--white);
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #eee;
    transition: var(--transition);
}

.team-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(133, 23, 243, 0.1);
}

.team-avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.team-card h4 {
    color: var(--dark);
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.team-role {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 16px;
}

.team-card p {
    font-size: 0.9rem;
}

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-info .section-tag {
    display: inline-block;
    margin-bottom: 16px;
}

.contact-info .section-title {
    margin-bottom: 20px;
}

.contact-info > p {
    font-size: 1.125rem;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-item strong {
    display: block;
    color: var(--dark);
    margin-bottom: 4px;
}

.contact-item a {
    color: var(--primary);
}

.contact-item a:hover {
    text-decoration: underline;
}

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

.social-link {
    width: 48px;
    height: 48px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--dark);
}

.social-link:hover {
    background: var(--primary);
}

.social-link:hover svg {
    fill: var(--white);
}

.contact-visual {
    display: flex;
    justify-content: center;
}

.contact-card {
    background: var(--gradient);
    padding: 60px 48px;
    border-radius: 24px;
    text-align: center;
    color: var(--white);
}

.contact-icon {
    width: 80px;
    margin-bottom: 24px;
}

.contact-card h3 {
    margin-bottom: 16px;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.contact-card .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.contact-card .btn-primary:hover {
    background: var(--yellow);
    color: var(--dark);
}

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-icon {
    width: 40px;
    height: 40px;
}

.footer-logo span {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-brand p {
    color: var(--gray);
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 24px;
    font-size: 1rem;
}

.footer-column a {
    display: block;
    color: var(--gray);
    margin-bottom: 12px;
}

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    color: var(--gray);
    font-size: 0.875rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-visual {
        display: none;
    }

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

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

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

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

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

    .contact-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu .nav-link {
        color: var(--dark);
        font-size: 1.25rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

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

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

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

    .awards-highlight {
        flex-direction: column;
        text-align: center;
    }

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

    .stats-grid {
        grid-template-columns: 1fr;
        padding: 32px;
    }

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .clients-grid {
        flex-direction: column;
        align-items: center;
    }
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
