/* ===========================
   deepblue.ia — Redesign: Web3 Hero
   =========================== */

/* Import General Sans */
@import url('https://api.fontshare.com/v2/css?f[]=general-sans@700,600,500,400,300&display=swap');

:root {
    --bg-primary: #000000;
    --bg-secondary: #0d1424;
    --bg-tertiary: #111d33;
    --surface: rgba(17, 29, 51, 0.6);
    --surface-border: rgba(255, 255, 255, 0.15);
    /* Adjusted for Web3 dark mode */
    --accent-cyan: #00d4ff;
    --accent-blue: #0066ff;
    --accent-blue-deep: #003cb3;
    --gradient: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
    --gradient-soft: linear-gradient(135deg, rgba(0, 102, 255, 0.15) 0%, rgba(0, 212, 255, 0.15) 100%);
    --text-primary: #ffffff;
    /* Pure white for contrast on black */
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-glow: 0 0 40px rgba(255, 255, 255, 0.1);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'General Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   Utilities
   =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-glow);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

/* ===========================
   Web3 Navbar
   =========================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 120px;
    /* As requested: 120px horizontal padding */
    transition: all var(--transition);
    background: transparent;
    /* Initially transparent over video */
}

#navbar.scrolled {
    background: rgba(0, 0, 0, 0.85);
    /* Dark background on scroll */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px 120px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
    /* Space between logo and links */
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    width: 32px;
    /* Adjusted size */
    height: 32px;
    object-fit: contain;
    mix-blend-mode: lighten;
    /* Critical for black bg */
}

.nav-logo-text {
    font-weight: 600;
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: -0.02em;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    /* As requested */
    list-style: none;
}

.nav-links li a {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    /* Gap between label and arrow */
    opacity: 0.9;
    transition: opacity var(--transition);
}

.nav-links li a:hover {
    opacity: 1;
}

.nav-links li a i {
    font-size: 10px;
    /* Small chevron */
    padding-top: 1px;
    opacity: 0.7;
}

/* Right Side Button (Join Waitlist style) */
.nav-btn-pill {
    position: relative;
    padding: 1px;
    /* The border width simulation */
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    /* Outer border glow base */
    overflow: hidden;
    transition: transform var(--transition);
}

.nav-btn-pill::before {
    /* The subtle white glow streak at top */
    content: '';
    position: absolute;
    top: -50%;
    left: 20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 60%);
    filter: blur(10px);
    opacity: 0.5;
    pointer-events: none;
}

.nav-btn-inner {
    display: block;
    background: #000;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 11px 29px;
    border-radius: 999px;
    position: relative;
    z-index: 1;
}

.nav-btn-pill:hover {
    transform: translateY(-1px);
}

.nav-btn-pill:hover .nav-btn-inner {
    background: #111;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    color: #fff;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===========================
   Hero Section (Fullscreen Video)
   =========================== */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Vertically centered */
    padding-top: 160px;
    /* As requested desktop padding */
    padding-bottom: 140px;
    text-align: center;
    overflow: hidden;
    background: #000;
}

/* Video Background */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    /* 50-60% black overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    /* As requested */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

.hero-badge-dot {
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
}

.hero-badge strong {
    color: #fff;
    font-weight: 500;
    margin-left: 4px;
}

/* Heading */
#hero h1 {
    font-family: 'General Sans', sans-serif;
    font-size: 56px;
    font-weight: 600;
    line-height: 1.28;
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(144.5deg, #ffffff 28%, rgba(255, 255, 255, 0.4) 115%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* Subtitle */
.hero-subtitle {
    font-size: 16px;
    /* Slightly bumped for readability */
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    max-width: 680px;
    /* margin-top: -16px; handled by flex gap */
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.btn-pill-white {
    position: relative;
    padding: 1px;
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
    transition: transform var(--transition);
}

.btn-pill-white::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, transparent 60%);
    filter: blur(8px);
    opacity: 0.8;
}

.btn-pill-inner {
    display: block;
    background: #fff;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    padding: 11px 29px;
    border-radius: 999px;
    position: relative;
    z-index: 1;
}

.btn-pill-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        height: 40px;
    }

    50% {
        opacity: 1;
        height: 50px;
    }
}

/* ===========================
   Other Sections (Adapting to General Sans/Darker Theme)
   =========================== */
.section {
    position: relative;
    padding: 100px 0;
    z-index: 2;
    background: var(--bg-primary);
    /* Ensure explicit background */
}

.section-alt {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-cyan);
    margin-bottom: 12px;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.12);
}

.section-header h2 {
    font-family: 'General Sans', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
}

/* Cards & Components (reusing previous styles but updated) */
.about-grid,
.services-grid,
.projects-grid,
.contact-grid {
    display: grid;
    gap: 24px;
}

.about-grid {
    grid-template-columns: repeat(3, 1fr);
}

.services-grid {
    grid-template-columns: repeat(2, 1fr);
}

.projects-grid {
    grid-template-columns: repeat(3, 1fr);
}

.contact-grid {
    grid-template-columns: repeat(4, 1fr);
}

.project-card,
.service-card,
.about-card,
.team-card,
.contact-card {
    /* Base styles inherited from .glass-card */
}

.about-card {
    padding: 36px 28px;
    text-align: center;
}

.service-card {
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
}

.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.contact-card {
    padding: 28px 20px;
    text-align: center;
}

/* Icons & Details */
.about-icon,
.service-icon,
.contact-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--gradient-soft);
    border: 1px solid rgba(0, 212, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.4rem;
    color: var(--accent-cyan);
}

.service-icon-wrap {
    margin-bottom: 20px;
}

.service-icon {
    margin: 0;
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-category {
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    position: absolute;
    top: 12px;
    left: 12px;
}

.project-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.project-tech span {
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-cyan);
}

/* Team */
.team-section {
    max-width: 700px;
    margin: 0 auto;
}

.team-card {
    padding: 40px;
    text-align: center;
}

.team-role {
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 16px;
    display: block;
}

.team-social {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.team-social a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

/* Service Tags */
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin-top: auto;
}

.service-tags li {
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* Footer */
#footer {
    border-top: 1px solid var(--surface-border);
    padding: 60px 0 24px;
    background: #000;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.footer-bottom {
    border-top: 1px solid var(--surface-border);
    padding-top: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    mix-blend-mode: lighten;
    /* Critical */
}

/* Animations */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

[data-animate].animated {
    opacity: 1;
    transform: translate(0, 0);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
    #navbar {
        padding: 20px 40px;
    }

    #navbar.scrolled {
        padding: 15px 40px;
    }

    .about-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #navbar {
        padding: 20px 20px;
    }

    #navbar.scrolled {
        padding: 15px 20px;
    }

    /* Hide desktop nav */
    .nav-links,
    .nav-btn-pill {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-left {
        gap: 0;
    }

    #hero {
        padding-top: 120px;
        padding-bottom: 80px;
    }

    #hero h1 {
        font-size: 34px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 15px;
        padding: 0 10px;
    }

    .services-grid,
    .about-grid,
    .projects-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Mobile Nav Drawer CSS */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2000;
}

.mobile-nav-content {
    position: absolute;
    top: 70px;
    right: 20px;
    width: 280px;
    padding: 24px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: var(--transition);
    pointer-events: none;
}

.mobile-nav-overlay.active {
    pointer-events: auto;
}

.mobile-nav-overlay.active .mobile-nav-content {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.mobile-nav-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
}

.mobile-nav-list {
    list-style: none;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav-list a {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-list a:last-child {
    border-bottom: none;
}

.mobile-nav-list .btn {
    margin-top: 10px;
    justify-content: center;
    width: 100%;
    color: #000 !important;
    /* Force black text on white button */
    padding: 14px 24px;
    /* Restore padding */
    border-radius: 100px;
}

/* ===========================
   CTA Section
   =========================== */
.cta-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.cta-content {
    position: relative;
    text-align: center;
    padding: 80px 40px;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(13, 20, 36, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-lg);
}

.cta-bg-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

.cta-content h2 {
    position: relative;
    z-index: 1;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.cta-content p {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Base Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none !important;
    transition: all var(--transition);
    position: relative;
    z-index: 2;
    border: none;
}

.btn-primary {
    background: #fff;
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.4);
    background: #fff;
    color: #000;
}

.btn-lg {
    padding: 18px 48px;
    font-size: 1.1rem;
}