:root {
    --bg-color: #0a0a0a;
    --surface-color: #1a1a1a;
    --primary-color: #00f3ff;
    /* Neon Cyan */
    --secondary-color: #bc13fe;
    /* Neon Purple */
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition-speed: 0.3s;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

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

a:hover {
    color: var(--secondary-color);
}

/* Navigation */
nav {
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 520px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section--compact {
    height: 40vh;
    min-height: 300px;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 1rem;
    min-height: 12rem;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    min-height: 1.1em;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Sections */
.section {
    padding: 5rem 2rem;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: white;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.card {
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

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

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
    display: block;
}

.card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: var(--surface-color);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile Nav */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

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

    .nav-links li {
        margin: 1rem 0;
        text-align: center;
    }

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

    /* Mobile Dropdown adjustments */
    .dropdown-content {
        position: static;
        background: transparent;
        box-shadow: none;
        border: none;
        min-width: auto;
        padding-top: 0.5rem;
    }

    .dropdown-content a {
        padding: 8px;
        font-size: 0.85rem;
        color: var(--text-muted);
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.contact-info-list {
    list-style: none;
}

.contact-info-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info-icon {
    color: var(--primary-color);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: var(--bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: black;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-transform: uppercase;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.3);
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #00ff00;
}

.alert-danger {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff0000;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--surface-color);
    min-width: 200px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    top: 100%;
    left: 0;
    padding: 0.5rem 0;
}

.dropdown-content li {
    list-style: none;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color var(--transition-speed);
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown.dropdown-open .dropdown-content {
    display: block;
}

.nav-dropdown-trigger {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0;
}

.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.active {
    color: var(--primary-color);
}

.dropdown .nav-dropdown-trigger::after {
    content: ' ▼';
    font-size: 0.7em;
    margin-left: 5px;
}

/* Profile Dropdown */
.profile-icon-link {
    display: flex;
    align-items: center;
    padding: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
}

.profile-icon-link::after {
    display: none !important;
}

/* Trusted-by marquee */
.trusted-by-section {
    padding: 2.5rem 0;
    background: var(--bg-color);
}

.trusted-by-label {
    text-align: center;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
}

.trusted-by-marquee {
    overflow: hidden;
    min-height: 48px;
}

.trusted-by-marquee-row {
    display: flex;
    width: max-content;
}

.trusted-by-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding-right: 3rem;
    min-height: 48px;
}

.trusted-by-logo img {
    display: block;
    height: 48px;
    width: auto;
    max-width: 320px;
}

@media (prefers-reduced-motion: no-preference) {
    .trusted-by-marquee-row {
        animation: trusted-by-scroll 30s linear infinite;
    }
}

@keyframes trusted-by-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.profile-icon {
    width: 28px;
    height: 28px;
    color: var(--text-color);
    transition: color var(--transition-speed), filter var(--transition-speed);
}

.profile-icon-link:hover .profile-icon {
    color: var(--primary-color);
    filter: drop-shadow(0 0 6px rgba(0, 243, 255, 0.5));
}

.profile-dropdown-content {
    right: 0;
    left: auto;
    min-width: 180px;
}

.profile-name-item {
    padding: 12px 16px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-transform: none;
    letter-spacing: 0;
    list-style: none;
}

.profile-logout-btn {
    width: 100%;
    background: none;
    border: none;
    color: #ff4444;
    padding: 12px 16px;
    text-align: left;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color var(--transition-speed);
}

.profile-logout-btn:hover {
    background-color: rgba(255, 68, 68, 0.1);
}

.text-cyber-cyan {
    --tw-text-opacity: 1;
    color: rgb(0 243 255 / var(--tw-text-opacity, 1));
}

/* Product Hero */
.product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
    padding: 8rem 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-hero-content {
    text-align: left;
}

.product-hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.product-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-image-container {
    position: relative;
    perspective: 1000px;
}

.hero-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: rotateY(0) rotateX(0);
}

@media (max-width: 968px) {
    .product-hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 6rem;
        gap: 3rem;
    }

    .product-hero-content {
        text-align: center;
    }

    .product-hero-title {
        font-size: 3rem;
    }

    .hero-image {
        transform: none;
    }
}

/* Table Styles */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--text-color);
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    vertical-align: top;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    text-align: left;
    font-weight: 600;
}

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Django Form Styling defaults */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color var(--transition-speed);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.helptext {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 1rem;
    margin-top: -0.5rem;
}

/* Footer links */
.footer-links {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--text-muted);
}

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

.footer-link-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
}

.footer-link-btn:hover {
    color: var(--primary-color);
}

.footer-separator {
    color: var(--text-muted);
    margin: 0 0.5rem;
}

/* Legal pages */
.legal-page {
    max-width: 820px;
}

.legal-updated {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.legal-content h2 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
}

.legal-content h3 {
    color: var(--text-color);
    font-size: 1.05rem;
    margin: 1.5rem 0 0.5rem;
}

.legal-content p,
.legal-content li {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.legal-content ul {
    margin: 0 0 1rem 1.5rem;
}

/* Cookie consent banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    padding: 1rem;
    background: rgba(26, 26, 26, 0.98);
    border-top: 1px solid rgba(0, 243, 255, 0.25);
    backdrop-filter: blur(10px);
}

.cookie-consent-content {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-consent-text {
    flex: 1 1 420px;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.cookie-consent-text-short {
    display: none;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

@media (max-width: 640px) {
    .cookie-consent-banner {
        padding: 0.625rem 0.75rem;
        padding-bottom: max(0.625rem, env(safe-area-inset-bottom));
    }

    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 0.625rem;
    }

    .cookie-consent-text-short {
        display: inline;
    }

    .cookie-consent-text-full {
        display: none;
    }

    .cookie-consent-text {
        flex: none;
        font-size: 0.8125rem;
        line-height: 1.35;
    }

    .cookie-consent-actions {
        width: 100%;
        gap: 0.5rem;
    }

    .cookie-consent-actions .btn {
        flex: 1;
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        border-radius: 6px;
        text-transform: none;
    }
}