:root {
    --accent: #931226;
    --accent-glow: rgba(147, 18, 38, 0.4);
    --bg: #050505;
    --status-blue: #00e5ff;
    --slate-400: #cbd5e1;
    --slate-500: #94a3b8;
    --footer-gray: #444;
    --flagship: #ffb300;
    --flagship-glow: rgba(255, 179, 0, 0.4);
}

.logo-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 40px auto 35px; /* Standardized margin for sub-pages */
}

/* Header centering wrapper for secondary pages */
.sub-page-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 20px;
}

.main-logo {
    height: 304px;
    width: auto;
    filter: none !important;
    display: block;
    margin-top: 35px;
    position: relative;
    z-index: 5;
}

.logo-glow-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 180px;
    background: radial-gradient(ellipse at center, rgba(147, 18, 38, 0.4) 0%, transparent 75%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    filter: blur(50px);
    animation: breathe-glow 6s infinite ease-in-out;
    opacity: 0.6;
}

@keyframes breathe-glow {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.15); }
}


.header-particles {
    position: absolute;
    right: -116px;
    top: calc(45% + 59px);
    transform: translateY(-50%);
}

.data-stream-red {
    position: relative;
    width: 160px;
    height: 81px;
    /* High area for vertical dispersion */
    display: block;
}

.particle-red {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: flow-red-organic 2s infinite ease-in-out;
    pointer-events: none;
}

/* ── Irregular Logo Info-Flow Particles ── */
.particle-red-strip {
    position: absolute;
    background: var(--accent);
    border-radius: 2px;
    opacity: 0;
    pointer-events: none;
    transform-origin: left center;
}

@keyframes flow-red-organic {
    0% {
        transform: translate(-20px, 0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(40px, 0);
        opacity: 0;
    }
}

/* trajectories for logo info-flow */
@keyframes logo-flow-A {
    0%   { transform: translateX(-20px); opacity: 0; }
    15%  { opacity: 0.85; }
    85%  { opacity: 0.7; }
    100% { transform: translateX(80px); opacity: 0; }
}
@keyframes logo-flow-B {
    0%   { transform: translate(-20px, 4px) rotate(5deg) scaleX(0.3); opacity: 0; }
    15%  { opacity: 1; }
    45%  { transform: translate(40px, -10px) rotate(-4deg) scaleX(1.4); opacity: 0.9; }
    80%  { opacity: 0.6; }
    100% { transform: translate(100px, 8px) rotate(-15deg) scaleX(0.4); opacity: 0; }
}
@keyframes logo-flow-C {
    0%   { transform: translate(-35px, -8px) rotate(12deg) scaleX(0.5); opacity: 0; }
    10%  { opacity: 0.75; }
    55%  { transform: translate(20px, 5px) rotate(-6deg) scaleX(0.9); opacity: 0.95; }
    90%  { opacity: 0.5; }
    100% { transform: translate(80px, -4px) rotate(20deg) scaleX(0.3); opacity: 0; }
}
@keyframes logo-flow-D {
    0%   { transform: translate(-50px, 2px) rotate(-3deg) scaleX(0.6); opacity: 0; }
    18%  { opacity: 0.8; }
    60%  { transform: translate(35px, -12px) rotate(8deg) scaleX(1.1); opacity: 1; }
    85%  { opacity: 0.55; }
    100% { transform: translate(110px, 6px) rotate(-10deg) scaleX(0.35); opacity: 0; }
}
@keyframes logo-flow-E {
    0%   { transform: translate(-28px, 6px) rotate(18deg) scaleX(0.45); opacity: 0; }
    8%   { opacity: 0.95; }
    40%  { transform: translate(15px, -4px) rotate(-12deg) scaleX(1.3); opacity: 0.8; }
    78%  { opacity: 0.65; }
    100% { transform: translate(95px, 10px) rotate(25deg) scaleX(0.3); opacity: 0; }
}

@media (max-width: 1024px) {
    .main-logo {
        height: 160px !important;
        margin-top: -15px;
    }

    .header-particles {
        transform: translateY(-50%) scale(0.53);
        right: -60px;
        top: calc(45% + 30px);
    }
}
@media (max-width: 768px) {
    .main-logo {
        height: 110px !important;
        margin-top: 60px !important; /* Unified top margin */
        width: auto !important;
    }

    .sub-page-header {
        padding-top: 80px !important; /* Unified header padding */
    }

    .logo-container {
        margin-top: 0 !important;
        margin-bottom: 50px !important; /* Unified bottom margin */
    }

    .logo-glow-wrap {
        width: 280px !important;
        height: 120px !important;
        top: 55% !important;
        left: 50% !important;
        opacity: 0.8 !important;
        visibility: visible !important;
    }



    .header-particles {
        transform: translateY(-50%) scale(0.28);
        right: -32px;
        top: calc(45% + 72px);
    }

    .logo-container span {
        top: 82px !important; /* Adjusted Beta position */
    }

    .logo-container {
        margin-bottom: 30px !important;
    }
}


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

body {
    background-color: var(--bg);
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Glassmorphism utility */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

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

header {
    padding: 65px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.header-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 40px;
    padding: 0 40px;
}

.logo-large {
    height: 140px;
    width: auto;
    opacity: 1;
    transition: transform 0.3s;
}

.logo-large:hover {
    transform: scale(1.05);
}

.back-link {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.back-link:hover {
    color: #fff;
    transform: translateX(-4px);
}

.hero-section {
    padding: 100px 0;
    text-align: center;
}

.hero-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(147, 18, 38, 0.2);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to bottom, #fff 40%, rgba(255, 255, 255, 0.5));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 700px;
    margin: 0 auto 48px;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    padding: 80px 0;
}

.card {
    padding: 48px;
    border-radius: 32px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.card p {
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
}

footer {
    padding: 80px 0;
    text-align: center;
    margin-top: 80px;
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    margin-top: 4rem;
}

.back-home-btn {
    display: inline-block;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    letter-spacing: 2px;
    transition: all 0.3s;
    border: none;
}

.back-home-btn:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

@keyframes blink {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* Professional Form Styles */
.form-container {
    max-width: 900px;
    margin: 60px auto;
    background: rgba(255, 255, 255, 0.02);
    padding: 60px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.78rem; /* Unified small label size */
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 24px;
    border-radius: 12px;
    color: #fff;
    font-size: 0.875rem; /* Reduced 2px (from 16px to 14px) */
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(147, 18, 38, 0.05);
    box-shadow: 0 0 20px rgba(147, 18, 38, 0.1);
}

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

.submit-btn {
    width: 100%;
    background: rgba(255, 74, 74, 0.15);
    color: #fff;
    border: 1px solid var(--accent);
    padding: 20px;
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 2px;
    margin-top: 20px;
    white-space: nowrap;
}

.submit-btn:hover {
    background: rgba(255, 74, 74, 0.25);
    box-shadow: 0 0 20px rgba(255, 74, 74, 0.3);
    transform: translateY(-2px);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.file-drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.01);
}

.file-drop-zone:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.03);
}

.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 40px 0;
}

.copyright {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

/* Custom Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #111;
    border: 1px solid var(--accent);
    padding: 48px;
    border-radius: 32px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(147, 18, 38, 0.4);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #fff;
}

.modal-text {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32px;
}

.modal-close {
    background: rgba(255, 74, 74, 0.15);
    color: #fff;
    border: 1px solid var(--accent);
    padding: 12px 32px;
    border-radius: 100px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(255, 74, 74, 0.25);
    box-shadow: 0 0 20px rgba(255, 74, 74, 0.3);
    transform: translateY(-2px);
}

/* Hardcore decorative element */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    animation: scan 4s linear infinite;
    opacity: 0.3;
}

@keyframes scan {
    from {
        left: -10%;
    }

    to {
        left: 110%;
    }
}

/* Global Mobile Adaptation */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    header {
        padding: 40px 0;
        gap: 20px;
    }

    .logo-large {
        height: 110px;
    }

    .header-top {
        padding: 0 20px;
        top: 25px;
    }

    .hero-section {
        padding: 60px 0;
    }

    h1 {
        font-size: 2.2rem;
    }

    .hero-desc {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .section-grid {
        grid-template-columns: 1fr !important;
        padding: 40px 0;
    }

    .card {
        padding: 30px 20px;
    }

    .form-container {
        padding: 30px 20px;
        border-radius: 24px;
    }

    .footer-divider {
        margin: 40px 0;
    }

    footer {
        padding: 60px 20px 100px !important;
        text-align: center !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .copyright {
        padding: 0 10px !important;
        line-height: 1.8 !important;
        white-space: normal !important;
        opacity: 1 !important;
        color: rgba(255, 255, 255, 0.45) !important;
        font-size: 0.85rem !important;
        width: 100% !important;
    }
}

/* ── Language Toggle (Sub-pages) ── */
.lang-toggle {
    position: absolute;
    top: 24px;
    right: 32px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    z-index: 1000;
}

.lang-toggle:hover {
    color: #fff;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
    min-width: 160px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.lang-toggle.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s;
    white-space: nowrap;
 white-space: nowrap !important; }

.lang-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}