/* Font Declarations */
@font-face {
    font-family: 'Conthrax';
    src: url('/assets/Conthrax.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Antara';
    src: url('/assets/Antara.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SimpleLife';
    src: url('/assets/SimpleLife.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

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

html {
    height: 100%;
    overflow-x: hidden;
    width: 100%;
    background: #000; /* Prevent white flashing */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: #f5f5ff;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile browsers */
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    background: #000; /* Ensure black background */
}

/* Headers use Conthrax font */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Conthrax', sans-serif;
    font-weight: normal;
    text-transform: uppercase;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
}

/* Top Navigation Bar */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Conthrax', sans-serif;
    font-size: 12px;
    font-weight: normal;
    color: #FFD700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-family: inherit;
    color: rgba(245, 245, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: #FFD700;
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.05);
}

.nav-signin {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(192, 192, 192, 0.15) 100%);
    border: 2px solid #FFD700;
    color: #FFD700;
    font-weight: bold;
}

.nav-signin:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(192, 192, 192, 0.25) 100%);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

/* Background with overlay */
.bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport for mobile */
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.80) 0%, rgba(10, 10, 10, 0.90) 100%),
                url('/assets/tech-background.jpg') center/cover no-repeat;
    background-color: #000; /* Fallback solid black */
    background-attachment: fixed;
    -webkit-transform: translateZ(0); /* Force GPU acceleration to fix mobile artifacts */
    transform: translateZ(0);
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(192, 192, 192, 0.05) 0%, transparent 50%);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.container {
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    padding: 100px 20px 40px; /* Add top padding for fixed nav */
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 0 60px;
    margin-bottom: 80px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.hero h1 {
    font-size: 36px;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    letter-spacing: 4px;
    margin-bottom: 20px;
    font-weight: bold;
}

.tagline {
    font-size: 18px;
    color: rgba(245, 245, 255, 0.9);
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.subtitle {
    font-size: 14px;
    color: rgba(192, 192, 192, 0.8);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Content Sections */
.content {
    max-width: 1200px;
    margin: 0 auto;
}

.intro {
    text-align: center;
    margin-bottom: 80px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.intro h2 {
    font-size: 18px;
    margin-bottom: 25px;
    color: #FFD700;
    letter-spacing: 1px;
}

.intro p {
    font-size: 14px;
    color: rgba(245, 245, 255, 0.85);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.feature-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(20, 20, 20, 0.8) 100%);
    border: 2px solid rgba(192, 192, 192, 0.3);
    border-radius: 10px;
    padding: 30px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    border-color: #FFD700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
    transform: translateY(-8px);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 18px;
    color: #FFD700;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.feature-card p {
    font-size: 12px;
    color: rgba(245, 245, 255, 0.75);
    line-height: 1.6;
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 80px;
    width: 100%;
}

.stat-card {
    text-align: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(192, 192, 192, 0.3);
    border-radius: 10px;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #C0C0C0;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 12px;
    color: rgba(245, 245, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Section */
.cta {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(192, 192, 192, 0.1) 100%);
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 10px;
    margin-bottom: 60px;
}

.cta h2 {
    font-size: 28px;
    color: #FFD700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.cta p {
    font-size: 14px;
    color: rgba(245, 245, 255, 0.8);
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    padding: 18px 45px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(192, 192, 192, 0.2) 100%);
    border: 2px solid #FFD700;
    color: #FFD700;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    transition: all 0.3s;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    text-transform: uppercase;
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(192, 192, 192, 0.3) 100%);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(192, 192, 192, 0.3);
    color: rgba(245, 245, 255, 0.5);
    font-size: 14px;
    font-family: 'Antara', cursive;
    letter-spacing: 1px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-container {
        width: 95%;
    }

    .nav-logo {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-link {
        font-size: 12px;
        padding: 6px 12px;
    }

    .container {
        width: 95%;
        padding: 90px 10px 20px; /* Adjust for smaller nav */
    }

    .hero {
        padding: 60px 0 40px;
        margin-bottom: 60px;
    }

    .hero h1 {
        font-size: 24px;
        letter-spacing: 2px;
        white-space: nowrap;
    }

    .tagline {
        font-size: 14px;
    }

    .intro {
        padding: 30px 20px;
        margin-bottom: 60px;
    }

    .intro h2,
    .cta h2 {
        font-size: 16px;
        letter-spacing: 0.5px;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 60px;
    }

    .feature-card {
        padding: 25px;
    }

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

    .stat-card {
        padding: 20px 10px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 11px;
    }

    .cta {
        padding: 40px 20px;
        margin-bottom: 40px;
        background: rgba(0, 0, 0, 0.6);
        border: 2px solid rgba(255, 215, 0, 0.4);
    }

    .cta p {
        font-size: 13px;
        line-height: 1.6;
    }

    /* Disable fixed background on mobile to prevent scroll artifacts */
    .bg-wrapper {
        background-attachment: scroll;
    }
}

/* Extra Small Screens (phones in portrait) */
@media (max-width: 480px) {
    .nav-logo {
        font-size: 8px;
        letter-spacing: 0.5px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-link {
        font-size: 10px;
        padding: 5px 10px;
    }

    .hero h1 {
        font-size: 20px;
        letter-spacing: 1px;
    }

    .tagline {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .intro h2,
    .cta h2 {
        font-size: 14px;
        letter-spacing: 0.5px;
    }

    .intro {
        padding: 20px 15px;
    }

    .feature-card h3 {
        font-size: 16px;
    }

    .stat-number {
        font-size: 24px;
    }
}
