/* === SOVANA HQ - MAIN STYLES === */
/* Mobile-first responsive design */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --black: #000000;
    --dark: #0a0a0a;
    --dark-secondary: #111111;
    --white: #ffffff;
    --gray-light: #a0a0a0;
    --gray-dark: #333333;
    --tiffany: #00CED1;
    --purple: #8B5CF6;
    --gold: #D4AF37;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === CIRCUIT BOARD BACKGROUND === */
.circuit-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.circuit-svg {
    position: absolute;
    width: 100%;
    height: 100%;
}

.circuit-line {
    fill: none;
    stroke: rgba(0, 206, 209, 0.05);
    stroke-width: 1;
}

.circuit-node {
    fill: rgba(0, 206, 209, 0.1);
}

.circuit-pulse {
    fill: none;
    stroke: url(#pulseGradient);
    stroke-width: 2;
    stroke-linecap: round;
}

.bg-gradient {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(0, 206, 209, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

/* === HEADER === */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    padding: 1rem 0;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    text-decoration: none;
}

.logo-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--tiffany) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

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

.nav-links a {
    color: var(--gray-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

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

/* Mobile-only nav actions (inside menu) - hidden by default */
.nav-actions.mobile-only {
    display: none;
    gap: 1rem;
    align-items: center;
}

/* Desktop-only nav actions (next to navigation) */
.nav-actions.desktop-only {
    display: none; /* Now hidden since we removed it */
    gap: 1rem;
    align-items: center;
}

/* === BUTTONS === */
.btn-primary, .btn-secondary, .btn-outline {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
    font-size: 0.95rem;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--tiffany) 0%, var(--purple) 100%);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 206, 209, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--tiffany);
}

.btn-outline {
    background: transparent;
    color: var(--tiffany);
    border: 2px solid var(--tiffany);
}

.btn-outline:hover {
    background: var(--tiffany);
    color: var(--black);
}

/* === PAGE CONTAINER === */
.page-container {
    padding-top: 80px;
    position: relative;
    z-index: 10;
    min-height: 100vh;
}

/* === HERO SECTION === */
.hero {
    padding: 60px 1.5rem;
    position: relative;
    overflow: hidden;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--gray-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.gradient-text {
    background: linear-gradient(135deg, var(--tiffany) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.dashboard-preview {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 206, 209, 0.3);
    border: 1px solid rgba(0, 206, 209, 0.3);
    transition: all 0.3s ease;
}

.dashboard-preview img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.dashboard-preview.zoomed {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    max-width: 95vw;
    max-height: 95vh;
    z-index: 10001;
    cursor: zoom-out;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    border-radius: 0;
}

.dashboard-preview.zoomed img {
    width: auto;
    height: auto;
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
}

/* Zoom overlay background */
.zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    backdrop-filter: blur(5px);
    display: none;
}

.zoom-overlay.active {
    display: block;
}

/* Close button for zoom */
.zoom-close {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10002;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.zoom-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.zoom-close.active {
    display: flex;
}

/* === SECTION STYLES === */
.section {
    padding: 60px 1.5rem;
    position: relative;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--gray-light);
}

/* === FORMS === */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--white);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--tiffany);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* === CARDS === */
.card {
    background: linear-gradient(135deg, rgba(0, 206, 209, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(0, 206, 209, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--tiffany);
    box-shadow: 0 10px 30px -10px rgba(0, 206, 209, 0.3);
}

/* === FOOTER === */
footer {
    padding: 3rem 1.5rem 2rem;
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 100px;
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand p {
    color: var(--gray-light);
    margin: 1rem 0;
    line-height: 1.7;
}

.footer-links h4 {
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--tiffany);
}

.footer-bottom {
    max-width: 1400px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--gray-light);
    font-size: 0.9rem;
}

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

.footer-bottom-links a {
    color: var(--gray-light);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: var(--tiffany);
}

.veteran-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 206, 209, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid var(--tiffany);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tiffany);
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .dashboard-preview {
        max-width: 100%;
    }

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

@media (max-width: 768px) {
    header {
        padding: 0.75rem 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

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

    .nav-links a {
        font-size: 1.125rem;
        display: block;
        padding: 0.5rem 0;
        color: var(--white); /* White text in mobile menu */
    }

    /* Hide desktop nav-actions on mobile */
    .nav-actions.desktop-only {
        display: none !important;
    }

    /* Show mobile nav-actions inside nav-links */
    .nav-links .nav-actions.mobile-only {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        margin-top: 1rem;
    }

    .nav-links .nav-actions .btn-primary,
    .nav-links .nav-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .hero {
        padding: 40px 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .section {
        padding: 40px 1.5rem;
    }

    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    /* Reset centering on mobile */
    .grid-3 > *:nth-last-child(1):nth-child(3n + 1) {
        grid-column: auto;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Tablet breakpoint for grids */
@media (max-width: 900px) and (min-width: 769px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Reset 3-column centering */
    .grid-3 > *:nth-last-child(1):nth-child(3n + 1) {
        grid-column: auto;
    }
}

/* Medium screens - prevent logo wrapping */
@media (max-width: 650px) {
    .logo-text {
        font-size: 1.3rem;
    }

    .logo-icon img {
        width: 36px;
        height: 36px;
    }
}

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

    .logo-icon img {
        width: 32px;
        height: 32px;
    }

    .btn-primary, .btn-secondary, .btn-outline {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .card {
        padding: 1.5rem;
    }
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

/* === UTILITY CLASSES === */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-items: center;
}

/* Center orphaned items in last row */
.grid-3 > *:nth-last-child(1):nth-child(3n + 1) {
    grid-column: 2 / 3;
}

.grid-3 > *:nth-last-child(2):nth-child(3n + 1),
.grid-3 > *:nth-last-child(1):nth-child(3n + 2) {
    grid-column: span 1;
}
