:root {
    --bg-color: #050505;
    --card-bg: rgba(20, 20, 25, 0.7);
    --primary: #00d4ff;
    --secondary: #00f5d4;
    --accent: #7209b7;
    --text-main: #f8f9fa;
    --text-muted: #adb5bd;
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Grid Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    transform: perspective(500px) rotateX(60deg) translateY(-50%);
    opacity: 0.5;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    from {
        transform: perspective(500px) rotateX(60deg) translateY(-50%);
    }

    to {
        transform: perspective(500px) rotateX(60deg) translateY(-40%);
    }
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: inline-block;
    width: fit-content;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Fallback for older browsers */
    color: var(--primary);
    text-decoration: none;
}

/* Specific fix for browsers where background-clip: text might fail */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .logo {
        background: none;
        -webkit-text-fill-color: var(--primary);
        color: var(--primary);
    }
}

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

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 100dvh;
    /* Better handling for mobile browser address bars */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 10% 0;
    /* Added top padding to account for fixed navbar */
    position: relative;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    background: linear-gradient(to bottom, #fff, #bbb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff;
    /* Fallback */
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 3rem;
}

.cta-button {
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

/* Glass Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 5rem 10%;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.card:hover::before {
    transform: translateX(100%);
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.3);
}

.card h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--primary);
}

/* Footer */
footer {
    padding: 5rem 10%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Roadmap Section */
.roadmap-section {
    padding: 8rem 10%;
    background: linear-gradient(to bottom, transparent, rgba(0, 212, 255, 0.03));
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.roadmap-item {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 15px;
    position: relative;
    transition: transform 0.3s;
}

.roadmap-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.step-num {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.roadmap-item h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.roadmap-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Contact Card */
.contact-container {
    padding: 5rem 10% 10rem;
}

.contact-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 4rem;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.email-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    word-break: break-all;
}

/* Form Styles */
input,
textarea,
select {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    color: #fff;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300d4ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

option {
    background-color: #1a1a1a;
    color: #fff;
    padding: 10px;
}

/* Technical Enhancements */

/* About Page Classes */
.about-hero {
    padding: 15rem 10% 10rem;
    text-align: center;
}
.about-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 2rem;
}
.about-hero p {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

.about-content {
    padding: 5rem 10%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.about-content-text h2 {
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}
.about-content-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}
.about-partnership {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}
.about-partnership h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: clamp(1.3rem, 3vw, 1.75rem);
}
.about-partnership ul {
    list-style: none;
    color: var(--text-main);
}
.about-partnership li {
    margin-bottom: 1.5rem;
}
.about-partnership li:last-child {
    margin-bottom: 1rem;
}
.mb-1-5 {
    margin-bottom: 1.5rem;
}
.text-sm {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.about-cta {
    padding: 10rem 10%;
    text-align: center;
}
.about-cta h2 {
    font-family: var(--font-heading);
    margin-bottom: 3rem;
    font-size: clamp(2rem, 5vw, 3rem);
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 1rem 5%;
        flex-direction: column;
        gap: 0.5rem;
    }

    .logo {
        font-size: 1.2rem;
    }

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

    .nav-links a {
        font-size: 0.75rem;
    }

    .hero {
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    body::before {
        opacity: 0.2;
        /* Lighten grid on mobile */
    }

    .contact-container {
        padding: 2rem 5% 5rem;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }

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

    /* About Page Mobile Fixes */
    .about-hero {
        padding: 10rem 5% 5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3rem 5%;
    }
    
    .about-partnership {
        padding: 2rem;
    }

    .about-cta {
        padding: 5rem 5%;
    }
}