:root{
    --bg:#0b0f1a;
    --text:#eef2ff;
    --sub:#b9c0ff;
    --muted:#8b93ad;
    --badge-bg:rgba(255,255,255,.06);
    --badge-brd:rgba(255,255,255,.12);
    --glass:rgba(10,12,22,.45);
    --glow1:#7c5cff;
    --glow2:#00d4ff;
    --accent:#ff3d81;

    /* Mobile-friendly spacing variables */
    --nav-height: 70px;
    --container-padding: 20px;
}

/* Mobile-first approach */
@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
        --container-padding: 16px;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 12px;
    }
}

html,body{
    height:100%;
    margin:0;
    background:var(--bg);
    color:var(--text);
    font-family:Inter,ui-sans-serif,system-ui,'Segoe UI',Roboto,Ubuntu,Cantarell,'Noto Sans',Arial,sans-serif;
    /* Better font rendering on mobile */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Improved mobile scrolling */
@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;

    }
}

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

/* Remove duplicate body styles and consolidate */
body {
    line-height: 1.6;
    background: var(--bg);
    color: var(--text);
    /* Prevent horizontal scroll on mobile */
    overflow-x: hidden;
}

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

/* Mobile container adjustments */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 var(--container-padding);
    }
}

/* Navigation */
nav {
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: var(--nav-height);
    display: flex;
    align-items: center;
}

/* Mobile navigation adjustments */
@media (max-width: 768px) {
    nav {
        padding: 0.75rem 0;
        backdrop-filter: blur(8px);
    }
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--glow2);
    text-decoration: none;
    transition: color 0.3s ease;
    /* Prevent logo from shrinking */
    flex-shrink: 0;
}

/* Mobile logo adjustments */
@media (max-width: 768px) {
    .logo {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.3rem;
    }
}

.logo:hover {
    color: var(--glow2);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

/* Mobile navigation menu */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(15, 20, 25, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 2rem 0;
        gap: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1rem 2rem;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.mobile-menu-toggle:hover {
    color: var(--glow1);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--glow1);
}

/* Active link indicator */
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--glow1);
    border-radius: 50%;
}

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

    .nav-links a.active {
        background: rgba(255, 61, 129, 0.1);
    }
}

/* Main Content */
main {
    padding-top: var(--nav-height);
}

.page-section {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    padding: 4rem 0;
    color: var(--text);
}

/* Mobile page section adjustments */
@media (max-width: 768px) {
    .page-section {
        padding: 2rem 0;
        min-height: calc(100vh - var(--nav-height));
    }
}

@media (max-width: 480px) {
    .page-section {
        padding: 1.5rem 0;
    }
}

/* Icon styles */
.icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* Mobile icon adjustments */
@media (max-width: 768px) {
    .icon {
        width: 18px;
        height: 18px;
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 2rem;
    }
}

.section-header h1,
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--glow1), var(--glow2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

/* Mobile header typography */
@media (max-width: 768px) {
    .section-header h1,
    .section-header h2 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .section-header h1,
    .section-header h2 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
}

.section-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    color: var(--sub);
    max-width: 600px;
    margin: 0 auto;
}

/* Mobile header paragraph */
@media (max-width: 768px) {
    .section-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .section-header p {
        font-size: 0.9rem;
    }
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--glow1), var(--glow2));
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    gap: 0.5rem;
    font-size: 1rem;
    min-height: 44px; /* Minimum touch target */
}

/* Mobile CTA button */
@media (max-width: 768px) {
    .cta-button {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
        min-width: 160px;
    }
}

@media (max-width: 480px) {
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(124, 92, 255, 0.3);
}

/* Reduce hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
    .cta-button:hover {
        transform: none;
    }

    .cta-button:active {
        transform: translateY(1px);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Improved focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--glow1);
    outline-offset: 2px;
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    /* Improve touch scrolling */
    body {
        -webkit-overflow-scrolling: touch;
    }

    /* Prevent zoom on input focus */
    input, select, textarea {
        font-size: 16px;
    }

    /* Better tap targets */
    button, a, input, select, textarea {
        touch-action: manipulation;
    }
}

/* Handle very small screens */
@media (max-width: 320px) {
    .nav-container {
        padding: 0 12px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .section-header h1,
    .section-header h2 {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .page-section {
        min-height: auto;
        padding: 2rem 0;
    }

    nav {
        padding: 0.5rem 0;
    }
}

body {
    overflow-x: hidden;
    overflow-y: auto;
}

/* When modal/menu is open - disable scrolling temporarily */
body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
}
