/* ============================================
   MegaBliss Worldwide - Design System
   Colors: Deep Navy, Electric Purple, Crisp White
   ============================================ */

:root {
    --navy: #0a1929;
    --navy-dark: #051422;
    --navy-light: #1a2f47;
    --purple: #7c3aed;
    --purple-light: #a78bfa;
    --purple-dark: #5b21b6;
    --white: #ffffff;
    --gray-light: #f5f7fa;
    --gray: #e2e8f0;
    --gray-dark: #64748b;
    --text-primary: #0f172a;
    --text-secondary: #475569;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 25, 41, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--purple-light);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--purple-light);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--purple);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--navy);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 8px;
    margin-top: 10px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--white);
    text-decoration: none;
    transition: background 0.3s ease;
}

.dropdown-menu a:hover {
    background: rgba(124, 58, 237, 0.2);
    color: var(--purple-light);
}

.cta-button {
    background: var(--purple);
    color: var(--white) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 50%, var(--navy-light) 100%);
    z-index: -2;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(124,58,237,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 50%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 2rem;
    z-index: 1;
}

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--purple-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subheadline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--purple);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--purple);
}

.btn-secondary:hover {
    background: var(--purple);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--purple);
}

.btn-outline:hover {
    background: var(--purple);
    color: var(--white);
}

/* ============================================
   Ecosystem Section
   ============================================ */

.ecosystem {
    padding: 6rem 0;
    background: var(--gray-light);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--navy);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.15);
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.product-card.reverse .product-content {
    direction: rtl;
}

.product-card.reverse .product-content > * {
    direction: ltr;
}

.product-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(124, 58, 237, 0.1);
    color: var(--purple);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-info h3 {
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.product-tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-style: italic;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-item h4 {
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.detail-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.product-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.product-card:hover .product-image {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(124, 58, 237, 0.2);
}

.mockup-screen {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.mockup-content {
    padding: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mockup-header {
    height: 40px;
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
    border-radius: 8px;
}

.mockup-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mockup-card {
    height: 80px;
    background: var(--gray-light);
    border-radius: 8px;
    border: 1px solid var(--gray);
}

.mockup-map {
    flex: 1;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--gray) 100%);
    border-radius: 8px;
    position: relative;
}

.mockup-map::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--purple);
    border-radius: 50%;
    border: 4px solid var(--white);
}

.mockup-challenge {
    height: 100px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
    border-radius: 8px;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

/* ============================================
   About Preview Section
   ============================================ */

.about-preview {
    padding: 6rem 0;
    background: var(--white);
}

.about-preview-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-preview-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--navy);
    margin-bottom: 1rem;
}

.about-tagline {
    font-size: 1.5rem;
    color: var(--purple);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.about-preview-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* ============================================
   Page Header (for sub-pages)
   ============================================ */

.page-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: var(--white);
    text-align: center;
    margin-top: 70px;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   About Content
   ============================================ */

.about-content {
    padding: 4rem 0;
}

.content-section {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.content-section h2 {
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.section-tagline {
    font-size: 1.5rem;
    color: var(--purple);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.content-section p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--purple);
}

.info-card h3 {
    color: var(--navy);
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   Careers Content
   ============================================ */

.careers-content {
    padding: 4rem 0;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.status-card {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
    border: 2px solid var(--purple);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 3rem;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.status-header h2 {
    color: var(--navy);
    margin: 0;
}

.status-badge {
    background: var(--purple);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-card p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
}

.application-section {
    background: var(--white);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.application-section h2 {
    color: var(--navy);
    margin-bottom: 1rem;
}

.application-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.application-section a {
    color: var(--purple);
    text-decoration: none;
    font-weight: 600;
}

.application-cta {
    margin-top: 2rem;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.culture-card {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.culture-card:hover {
    transform: translateY(-5px);
}

.culture-card h3 {
    color: var(--navy);
    margin-bottom: 1rem;
}

.culture-card p {
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   Contact Content
   ============================================ */

.contact-content {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h2 {
    color: var(--navy);
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h3 {
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.contact-item address,
.contact-item p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.contact-item a {
    color: var(--purple);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form-wrapper {
    background: var(--gray-light);
    padding: 2.5rem;
    border-radius: 16px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    padding: 0.875rem;
    border: 2px solid var(--gray);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--purple);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   Legal Content
   ============================================ */

.legal-content {
    padding: 4rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.legal-intro {
    margin-bottom: 3rem;
}

.legal-intro h2 {
    color: var(--navy);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.legal-intro p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h3 {
    color: var(--navy);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-list {
    list-style: none;
    padding-left: 0;
}

.legal-list li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.legal-list li::before {
    content: '•';
    color: var(--purple);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.legal-section a {
    color: var(--purple);
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

.legal-contact {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
}

.legal-contact h3 {
    color: var(--navy);
    margin-bottom: 1rem;
}

.legal-contact address {
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: normal;
}

.legal-contact a {
    color: var(--purple);
    text-decoration: none;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--navy);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--purple-light);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-section address,
.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--purple-light);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--navy);
        width: 100%;
        padding: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        left: 0;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 0;
        border: none;
        background: rgba(124, 58, 237, 0.1);
    }

    .product-content {
        grid-template-columns: 1fr;
    }

    .product-card.reverse .product-content {
        direction: ltr;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .info-grid,
    .culture-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .product-card {
        padding: 2rem 1.5rem;
    }

    .app-mockup {
        max-width: 250px;
    }
}

