/* 
   A-Zing Premium Design System
   Theme: Future Tech / Deep Space
*/

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

:root {
    /* Light Mode (Default) */
    --bg-dark: #f8fafc;
    /* actually light bg */
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 0.9);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-light: rgba(0, 0, 0, 0.08);
    --nav-bg: rgba(255, 255, 255, 0.85);

    --accent-primary: #3b82f6;
    /* Blue */
    --accent-secondary: #8b5cf6;
    /* Purple */
    --accent-glow: #60a5fa;

    /* Gradients */
    --gradient-main: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-text: linear-gradient(90deg, #2563eb, #7c3aed);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 70px;
    /* Reduced from 80px */
    --section-spacing: 60px;
    /* Reduced from 100px */

    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --logo-filter: none;
    --nav-text: #334155;
    /* Darker slate for light mode nav */
}

[data-theme="dark"] {
    /* Dark Mode */
    --bg-dark: #050507;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --border-light: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(5, 5, 7, 0.85);

    --gradient-text: linear-gradient(90deg, #60a5fa, #c084fc);

    --shadow-card: none;
    --logo-filter: brightness(0) invert(1);
    --nav-text: #e2e8f0;
    /* Lighter slate for dark mode nav */
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;

    /* Transition for theme switch */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    /* transition name conflict, handled in * or specific classes */
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.5rem;
}

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

/* Utility */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.align-items-center {
    align-items: center !important;
}

.text-center {
    text-align: center !important;
}

/* Navbar */
.navbar {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
}

.navbar .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 36px;
    width: auto;
    display: block;
    filter: var(--logo-filter);
    transition: filter 0.3s ease;
}

.nav-center {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.nav-right {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--nav-text);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Premium UI Components */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    border-radius: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .glass-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px 0 rgba(31, 38, 135, 0.2);
}

.product-badge {
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.2);
}

.use-case-tag {
    display: inline-block;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Hero Section */
.hero {
    min-height: 85vh;
    /* Reduced from 100vh */
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(5, 5, 7, 0) 70%);
    filter: blur(60px);
    z-index: -1;
    animation: pulse 10s infinite alternate;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.2rem;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

/* Features Grid */
.features-section {
    padding: var(--section-spacing) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    /* Reduced from 60px */
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    /* Reduced gap */
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 35px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    width: fit-content;
}

.card-title {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-link {
    font-weight: 600;
    color: var(--accent-primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.05) 0%, var(--bg-dark) 60%);
    padding: 20px;
}

.auth-card {
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.auth-form .form-group {
    margin-bottom: 15px;
}

.auth-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 12px 15px;
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: inherit;
    transition: 0.3s;
}

.auth-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.auth-btn {
    width: 100%;
    background: var(--gradient-main);
    color: white;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    margin-top: 15px;
    transition: 0.3s;
}

.auth-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-link {
    color: var(--accent-primary);
    font-weight: 500;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-light);
    padding: 50px 0 25px;
    background: var(--bg-dark);
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    /* Fixed contrast */
    font-size: 0.9rem;
    padding-top: 25px;
    border-top: 1px solid var(--border-light);
}

/* Aurora Background Animation */
.aurora-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    background: var(--bg-dark);
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: aurora-move 20s infinite alternate;
}

/* Blob Colors & Positions */
.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    animation-duration: 25s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--accent-secondary);
    animation-duration: 30s;
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: #06b6d4;
    /* Cyan */
    animation-duration: 22s;
    animation-delay: -10s;
    opacity: 0.3;
}

@keyframes aurora-move {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    100% {
        transform: translate(50px, 30px) rotate(20deg) scale(1.1);
    }
}



/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-light);
    color: var(--text-main);
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
}

/* Rest of Styles (Tables, Products) - Using Variables now */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
}

th,
td {
    padding: 12px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

th {
    background: rgba(127, 127, 127, 0.05);
    /* Neutral table header */
    font-weight: 600;
    color: var(--text-muted);
}

tr:hover {
    background: rgba(127, 127, 127, 0.03);
}

.product-header {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.1) 0%, var(--bg-dark) 100%);
    padding: 100px 0 50px;
    text-align: center;
}

.content-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 30px;
    margin-top: -30px;
    position: relative;
    backdrop-filter: blur(10px);
}

/* Simple Grid System (Bootstrap-like) */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-lg-7,
.col-lg-6,
.col-lg-5,
.col-lg-4,
.col-md-6 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 992px) {
    .col-lg-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .col-lg-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }

    .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-lg-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }

    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .col-md-10 {
        flex: 0 0 83.333333%;
        max-width: 83.333333%;
    }
}

.justify-content-center {
    justify-content: center !important;
}

/* Mobile Menu Button - Ensure Hidden on Desktop */
.mobile-menu-btn {
    display: none;
    /* Hidden by default */
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        /* Visible ONLY on mobile */
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--text-main);
    }

    .nav-center,
    .nav-right {
        display: none;
        width: 100%;
        text-align: center;
        flex-direction: column;
        gap: 15px;
    }

    .navbar.active {
        background: var(--bg-card);
        /* Solid background when open */
        height: 100vh;
        align-items: flex-start;
        overflow-y: auto;
    }

    .navbar.active .container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar.active .logo {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    .navbar.active .nav-center,
    .navbar.active .nav-right {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    .navbar.active .mobile-menu-btn {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .navbar .container {
        padding: 15px 20px;
    }

    /* Fixed Media Query Structure - Removed premature closing brace and duplicate rule */

    /* Contact Form Mobile */
    .auth-card {
        padding: 20px;
        margin-top: 20px !important;
        width: 100%;
    }

    .auth-input {
        width: 100%;
    }

    /* Solutions CTA Alignment */
    .cta-section {
        padding: 60px 20px !important;
        text-align: center !important;
    }

    .cta-section p.hero-desc {
        text-align: center !important;
        margin: 0 auto 30px auto !important;
        font-size: 1rem;
        width: 100%;
    }

    /* Terms & Legal Mobile */
    .section {
        padding-top: 80px !important;
        padding-bottom: 40px !important;
    }

    .content-box {
        padding: 20px !important;
    }

    /* Footer Mobile */
    .footer-bottom .row {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .mil-footer-menu {
        justify-content: center;
    }

    h1 {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
    }

    /* Product Page Mobile */
    .glass-card {
        margin-top: 30px;
        padding: 25px !important;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .hero-actions .btn-secondary {
        margin-left: 0 !important;
    }

}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product Modal */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 2rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-backdrop.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--accent-primary);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.modal-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.5rem;
}

.modal-text {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1rem;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-main);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Responsive Display Utilities (Custom) */
.d-none {
    display: none !important;
}

.d-flex {
    display: flex !important;
}

/* Desktop (>= 992px) */
@media (min-width: 992px) {
    .d-md-none {
        display: none !important;
    }

    .d-md-flex {
        display: flex !important;
    }

    .desktop-only {
        display: flex !important;
    }

    .mobile-only {
        display: none !important;
    }
}

/* Mobile (< 992px) */
@media (max-width: 991px) {
    .d-md-none {
        display: flex !important;
    }

    .d-md-flex {
        display: none !important;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }
}

/* Spacing */
.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

/* Premium Form Styles */
.form-control {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 12px 15px;
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: inherit;
    transition: 0.3s;
    display: block;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-control:disabled,
.form-control[readonly] {
    background: rgba(0, 0, 0, 0.03);
    /* Slightly darker for disabled */
    cursor: not-allowed;
    opacity: 0.7;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: white;
}

.btn-outline-danger {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
}

.btn-outline-danger:hover {
    background: #ef4444;
    color: white;
}

/* Utilities */
.w-100 {
    width: 100% !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.border-0 {
    border: none !important;
}

.fw-bold {
    font-weight: 600 !important;
}

.small {
    font-size: 0.875rem !important;
}

.uppercase {
    text-transform: uppercase !important;
}

.text-danger {
    color: #ef4444 !important;
}

.bg-light {
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Glassy light */
.bg-light-danger {
    background: rgba(254, 226, 226, 0.5) !important;
}

.border-secondary {
    border-color: var(--border-light) !important;
}

.border-danger {
    border-color: rgba(239, 68, 68, 0.3) !important;
}

/* Grid System (Minimal) */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.col-12,
.col-md-6 {
    padding: 10px;
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-6 {
        width: 50%;
    }
}

.h-100 {
    height: 100% !important;
}

.g-4 {
    gap: 1.5rem !important;
}

.g-4 {
    gap: 1.5rem !important;
}