:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-color: #1e293b;
    --light-text: #64748b;
    --background: #ffffff;
    --section-bg: #f8fafc;
    --card-bg: #ffffff;
    --gradient-start: #1e40af;
    --gradient-end: #3b82f6;
    --dark-bg: #0f172a;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Accounts for fixed navbar */
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background: var(--section-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    scroll-snap-type: y proximity;
}

main {
    flex: 1;
    position: relative;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    background: linear-gradient(135deg, var(--gradient-end), var(--gradient-start));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    font-size: 1.8rem;
}

.logo img {
    display: block;
    padding: 0;
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.screen {
    min-height: 100vh;
    padding: 6rem 2rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: 100px 100px;
    background-repeat: repeat;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.screen:nth-child(even) {
    background: var(--section-bg);
}

/* Hero section background */
#vision::before {
    background-color: var(--gradient-start);
    background-image:
        linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.1) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.1) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Tech section background */
#tech {
    background: linear-gradient(135deg,
        rgba(240, 247, 255, 0.95) 0%,
        rgba(230, 240, 255, 0.95) 50%,
        rgba(220, 232, 255, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

#tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gradient-end);
    background-image:
        linear-gradient(30deg, rgba(255,255,255,0.08) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.08) 87.5%, rgba(255,255,255,0.08)),
        linear-gradient(150deg, rgba(255,255,255,0.08) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.08) 87.5%, rgba(255,255,255,0.08)),
        linear-gradient(30deg, rgba(255,255,255,0.08) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.08) 87.5%, rgba(255,255,255,0.08)),
        linear-gradient(150deg, rgba(255,255,255,0.08) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.08) 87.5%, rgba(255,255,255,0.08)),
        linear-gradient(60deg, rgba(255,255,255,0.05) 25%, transparent 25.5%, transparent 75%, rgba(255,255,255,0.05) 75%, rgba(255,255,255,0.05)),
        linear-gradient(60deg, rgba(255,255,255,0.05) 25%, transparent 25.5%, transparent 75%, rgba(255,255,255,0.05) 75%, rgba(255,255,255,0.05));
    background-size: 40px 40px, 40px 40px, 40px 40px, 40px 40px, 80px 80px, 80px 80px;
    background-position: 0 0, 0 0, 20px 20px, 20px 20px, 0 0, 40px 40px;
    opacity: 0.4;
    z-index: 0;
}

#tech::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 25px 25px, var(--primary-color) 2%, transparent 0%),
        radial-gradient(circle at 75px 75px, var(--primary-color) 2%, transparent 0%);
    background-size: 100px 100px;
    opacity: 0.1;
    z-index: 1;
}

#tech h2 {
    color: var(--text-color);
}

#tech .tech-description {
    color: var(--text-color);
    text-shadow: none;
}

#tech .content {
    position: relative;
    z-index: 2;
}


.tech-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 220px;
}

.tech-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.tech-icon:hover {
    transform: scale(1.1);
    height: 50px;
}

.tech-icon img {
    width: 50px;
    height: 50px;
}

.tech-description {
    color: #FFFFFF;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
    max-width: 220px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .tech-container {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Purpose section styling */
#purpose {
    background: linear-gradient(135deg,
        rgba(239, 246, 255, 0.95) 0%,
        rgba(219, 234, 254, 0.95) 50%,
        rgba(191, 219, 254, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

#purpose::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        /* Base subtle pattern */
        linear-gradient(45deg, rgba(255,255,255,0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.03) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.03) 75%),
        /* Overlay pattern for depth */
        linear-gradient(90deg, rgba(255,255,255,0.02) 50%, transparent 50%),
        linear-gradient(0deg, rgba(255,255,255,0.02) 50%),
        /* Accent pattern */
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(30, 64, 175, 0.04) 0%, transparent 50%);
    background-size:
        40px 40px, 40px 40px, 40px 40px, 40px 40px,
        80px 80px, 80px 80px,
        200px 200px, 300px 300px, 150px 150px;
    background-position:
        0 0, 0 20px, 20px -20px, -20px 0px,
        0 0, 0 0,
        0 0, 0 0, 0 0;
    opacity: 1;
    z-index: 0;
}

#purpose::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        /* Subtle grid overlay */
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px),
        /* Diagonal accent lines */
        linear-gradient(45deg, transparent 40%, rgba(37, 99, 235, 0.03) 40%, rgba(37, 99, 235, 0.03) 60%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(59, 130, 246, 0.03) 40%, rgba(59, 130, 246, 0.03) 60%, transparent 60%);
    background-size:
        50px 50px, 50px 50px,
        100px 100px, 100px 100px;
    background-position:
        0 0, 0 0,
        0 0, 0 0;
    opacity: 1;
    z-index: 1;
}

#purpose .content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.purpose-text {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 4rem;
    color: var(--text-color);
    text-align: center;
}

.purpose-image {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.purpose-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    z-index: -1;
}

/* Join section styling */
#join {
    background: linear-gradient(135deg,
        rgba(240, 249, 255, 0.95) 0%,
        rgba(224, 242, 254, 0.95) 50%,
        rgba(186, 230, 253, 0.95) 100%);
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    padding-bottom: 0;
}

#join .content {
    padding-bottom: 0;
    margin-bottom: 0;
}

.content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.hero {
    text-align: center;
    background: linear-gradient(135deg,
        var(--gradient-start) 0%,
        #1e40af 50%,
        var(--gradient-end) 100%);
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.1) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.1) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.3;
    z-index: 1;
}

.hero .content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.hero-image {
    max-width: 800px;
    margin: 0 auto;
}

.hero-image img {
    width: 100%;
    height: auto;
}

/* Common section text styles */
.screen h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
    line-height: 1.2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Tech section text styles */
#tech .content {
    max-width: 1000px;
}

#tech p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 0 1rem;
}

.tech-card {
    text-align: left;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 1.5rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(37, 99, 235, 0.05) 0%,
        rgba(59, 130, 246, 0.05) 100%);
    z-index: -1;
}

.tech-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%);
    z-index: -1;
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.9);
}

.tech-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.tech-card h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg,
        rgba(37, 99, 235, 0.5) 0%,
        rgba(59, 130, 246, 0.5) 100%);
    border-radius: 2px;
}

.tech-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--light-text);
    margin: 0;
}

.tech-visual {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 1rem;
}

/* Purpose section text styles */
#purpose .content {
    max-width: 900px;
    text-align: center;
}

.purpose-text {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 4rem;
    color: var(--text-color);
}

.purpose-image {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Join section text styles */
#join .content {
    max-width: 800px;
    text-align: center;
}

#join h2 {
    margin-bottom: 1.5rem;
}

#join p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background: var(--secondary-color);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

/* Footer styling */
.footer {
    background: var(--dark-bg);
    color: #fff;
    padding: 3rem 0;
    margin-top: auto;
}

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

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-link-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link-group h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link-group h4 i {
    color: var(--accent-color);
}

.footer-link-group a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-link-group a:hover {
    color: var(--accent-color);
}

.footer-copyright {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* Update main content to ensure footer visibility */
main {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Ensure proper stacking context */
.screen {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .footer-content {
        padding: 0 1rem;
    }

    .footer-links {
        gap: 2rem;
        flex-wrap: wrap;
    }

    .footer-link-group {
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .screen {
        padding: 4rem 1rem 2rem;
    }

    .screen h2 {
        font-size: 2rem;
        padding: 0 1rem;
    }

    .purpose-text {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }
}

.worlds-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.world-item {
    text-align: center;
    max-width: 200px;
    transition: transform 0.3s ease;
}

.world-item:hover {
    transform: translateY(-10px);
}

.world-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.world-icon img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.world-item h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.world-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .worlds-container {
        gap: 2rem;
    }

    .world-item {
        max-width: 150px;
    }

    .world-icon {
        width: 100px;
        height: 100px;
    }
}

/* Tech section styling */
#tech h2, #purpose h2, #join h2 {
    color: var(--text-color);
}

#tech p, #purpose p, #join p {
    color: var(--light-text);
}

/* Update content positioning for all sections */
.screen .content {
    position: relative;
    z-index: 1;
}

/* Update card styles for better contrast */
.tech-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Add subtle hover effects to cards */
.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #tech .content,
    #purpose .content {
        padding: 0 1rem;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .purpose-text {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
}

.lang-selector {
    background: none;
    border: none;
    color: var(--text-color);
    padding: 0;
    cursor: pointer;
    font-size: 1rem;
    margin-right: 1.5rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    position: relative;
}

.lang-selector:hover {
    color: var(--accent-color);
}

.lang-selector:focus {
    outline: none;
}

.lang-selector::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.lang-selector:hover::after {
    transform: scaleX(1);
}
