/* =========================================
   VARIABLES & GLOBAL STYLES
   ========================================= */
:root {
    --bg-color: #030303;
    --surface-color: #0a0a0a;
    --surface-light: #141414;

    --text-primary: #ffffff;
    --text-secondary: #888888;

    --asena-red: #ff1a1a;
    --asena-red-dark: #660000;

    --turan-blue: #3388ff;
    --turan-blue-dark: #002255;

    --grid-color: rgba(255, 255, 255, 0.03);
    --border-color: #222222;
    --border-highlight: #444444;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

.pixel-font {
    font-family: 'Press Start 2P', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

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

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

/* =========================================
   SCANLINES & GRID BACKGROUND
   ========================================= */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.2));
    background-size: 100% 4px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.6;
}

.scanlines::before {
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
    animation: scanlineAnim 8s linear infinite;
}

@keyframes scanlineAnim {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 50px 50px;
    background-image:
        linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
    z-index: -1;
    pointer-events: none;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.2s ease;
    border-radius: 0;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-panel {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-highlight);
    position: relative;
    overflow: hidden;
    padding: 0.8rem 1.5rem;
}

.btn-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    transition: none;
    pointer-events: none;
}

.btn-panel:hover::after {
    animation: btnSweep 0.6s ease-in-out;
}

@keyframes btnSweep {
    0% {
        left: -150%;
    }

    100% {
        left: 150%;
    }
}

.btn-panel:hover {
    border-color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
    margin-top: 2rem;
}

.btn-outline-white:hover {
    background-color: var(--text-primary);
    color: var(--bg-color);
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-self: start;
}

.nav-actions {
    justify-self: end;
}

.nav-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
}

.beta-badge {
    position: absolute;
    top: -5px;
    right: -25px;
    background-color: var(--asena-red);
    color: var(--text-primary);
    font-size: 0.45rem;
    padding: 0.2rem 0.4rem;
    letter-spacing: 1px;
    pointer-events: none;
    box-shadow: 0 0 5px rgba(255, 26, 26, 0.5);
    border: 1px solid var(--text-primary);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 1);
}

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

/* =========================================
   SECTION TITLES
   ========================================= */
.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 3rem;
    color: var(--text-primary);
    text-transform: uppercase;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 2rem;
}

.hero-bg-logo-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: screen;
}

.hero-bg-logo {
    width: 600px;
    height: auto;
    filter: grayscale(100%) contrast(1.5);
}

.hero-content {
    max-width: 900px;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 4px;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 1);
}

.hero-desc {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 1);
}

/* =========================================
   TECH SECTION
   ========================================= */
.tech-section {
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color);
}

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

.tech-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    transition: border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.tech-card:hover {
    border-color: var(--text-primary);
}

.tech-header {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    min-height: 85px;
}

.tech-icon {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.tech-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
}

.tech-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* =========================================
   UAV SECTIONS (ASENA & TURAN)
   ========================================= */
.uav-section {
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.asena-theme {
    background: linear-gradient(135deg, var(--bg-color) 30%, rgba(102, 0, 0, 0.4) 100%);
}

.turan-theme {
    background: linear-gradient(135deg, rgba(0, 34, 85, 0.5) 0%, var(--bg-color) 70%);
}

.asena-text {
    color: var(--asena-red);
}

.turan-text {
    color: var(--turan-blue);
}

.uav-header {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.badges {
    display: flex;
    gap: 1rem;
}

.badge {
    padding: 0.4rem 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid;
}

.asena-badge {
    border-color: var(--asena-red);
    color: var(--asena-red);
    background: rgba(255, 26, 26, 0.1);
}

.turan-badge {
    border-color: var(--turan-blue);
    color: var(--turan-blue);
    background: rgba(51, 136, 255, 0.1);
}

.uav-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.reverse-grid {
    direction: rtl;
    grid-template-columns: 1fr 1.2fr;
}

.reverse-grid>* {
    direction: ltr;
}

.uav-image-wrapper {
    position: relative;
    padding: 1.5rem;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
}

.uav-image {
    width: 100%;
    height: auto;
    display: block;
    filter: contrast(1.2) grayscale(20%);
}

.hud-corners::before,
.hud-corners::after,
.hud-crosshair::before,
.hud-crosshair::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.hud-corners::before {
    top: -5px;
    left: -5px;
    width: 30px;
    height: 30px;
    border: 2px solid;
    border-right: none;
    border-bottom: none;
}

.hud-corners::after {
    bottom: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    border: 2px solid;
    border-left: none;
    border-top: none;
}

.asena-theme .hud-corners::before,
.asena-theme .hud-corners::after {
    border-color: var(--asena-red);
}

.turan-theme .hud-corners::before,
.turan-theme .hud-corners::after {
    border-color: var(--turan-blue);
}

/* TAB SYSTEM IN UAV */
.uav-details {
    display: flex;
    flex-direction: column;
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 1rem 0;
    margin-right: 2rem;
    cursor: pointer;
    font-size: 0.65rem;
    transition: color 0.2s, border-bottom 0.2s;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

.asena-theme .tab-btn.active {
    border-bottom-color: var(--asena-red);
    color: var(--asena-red);
}

.turan-theme .tab-btn.active {
    border-bottom-color: var(--turan-blue);
    color: var(--turan-blue);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

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

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

.stats-title {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: 1px;
}

/* DATA TABLES */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table tr {
    border-bottom: 1px solid var(--border-color);
}

.data-table tr:last-child {
    border-bottom: none;
}

.data-table td {
    padding: 1rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.data-table td:first-child {
    font-weight: 700;
    text-transform: uppercase;
    width: 60%;
}

.data-table td:last-child {
    text-align: right;
    color: var(--text-primary);
    font-size: 0.75rem;
}

.asena-table td:last-child {
    color: var(--asena-red);
}

.turan-table td:last-child {
    color: var(--turan-blue);
}

.uav-prose {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.comp-item {
    padding: 1rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--border-highlight);
}

.asena-theme .comp-item {
    border-left-color: var(--asena-red);
}

.turan-theme .comp-item {
    border-left-color: var(--turan-blue);
}

.comp-item h4 {
    font-size: 0.75rem;
    margin-bottom: 0.8rem;
}

/* =========================================
   ROADMAP / TIMELINE SECTION
   ========================================= */
.roadmap-section {
    padding: 6rem 0;
    background-color: var(--surface-light);
    border-top: 1px solid var(--border-color);
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
}

.timeline-line {
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 0.3rem;
    width: 14px;
    height: 14px;
    background-color: var(--bg-color);
    border: 2px solid var(--text-primary);
    z-index: 1;
}

.timeline-content {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 2rem;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 1rem;
    width: 1rem;
    height: 2px;
    background-color: var(--border-color);
}

.timeline-date {
    display: inline-block;
    font-size: 0.6rem;
    color: var(--text-primary);
    background-color: var(--border-color);
    padding: 0.3rem 0.6rem;
    margin-bottom: 1rem;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.timeline-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* =========================================
   TEAM SECTION
   ========================================= */
.team-section {
    padding: 6rem 0;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.team-department {
    margin-bottom: 5rem;
}

.team-department:last-child {
    margin-bottom: 0;
}

.department-title {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.team-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.team-card {
    width: 280px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.captain-highlight {
    border-color: var(--asena-red-dark);
    box-shadow: 0 0 10px rgba(102, 0, 0, 0.5);
}

.captain-highlight:hover {
    border-color: var(--asena-red);
}

.dept-captain-highlight {
    border-color: rgba(51, 136, 255, 0.4);
    box-shadow: 0 0 12px rgba(51, 136, 255, 0.15);
}

.dept-captain-highlight:hover {
    border-color: var(--turan-blue);
    box-shadow: 0 0 20px rgba(51, 136, 255, 0.3);
}

.team-card:hover {
    border-color: var(--border-highlight);
}

.team-img-wrapper {
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.team-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    filter: contrast(1.2);
    display: block;
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-name {
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.team-role {
    font-size: 0.55rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.team-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    min-height: 4.8rem;
}

.progress-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.progress-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-label {
    font-size: 0.55rem;
    width: 75px;
    color: var(--text-secondary);
}

.progress-track {
    flex-grow: 1;
    height: 6px;
    background-color: var(--surface-light);
    border: 1px solid var(--border-color);
    position: relative;
}

.progress-fill {
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.progress-value {
    font-size: 0.55rem;
    width: 35px;
    text-align: right;
    font-weight: bold;
    color: var(--text-primary);
}

.asena-fill {
    background-color: var(--asena-red);
}

.turan-fill {
    background-color: var(--turan-blue);
}

/* =========================================
   GALLERY SECTION
   ========================================= */
.gallery-section {
    padding: 6rem 0;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

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

.gallery-item {
    position: relative;
    border: 1px solid var(--border-color);
    background-color: var(--surface-color);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    transition: border-color 0.2s;
}

.gallery-item:hover {
    border-color: var(--text-primary);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%) contrast(1.2);
    transition: filter 0.3s, transform 0.3s;
}

.gallery-item:hover .gallery-img {
    filter: grayscale(0%) contrast(1.1);
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--text-primary);
    font-size: 1rem;
    font-style: normal;
    letter-spacing: 2px;
    border: 1px solid var(--text-primary);
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
}

/* =========================================
   LIGHTBOX MODAL
   ========================================= */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.lightbox-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content-wrapper {
    position: relative;
    max-width: 80%;
    max-height: 80vh;
    border: 2px solid var(--border-highlight);
    background: var(--bg-color);
    padding: 1rem;
}

.modal-img {
    max-width: 100%;
    max-height: 75vh;
    display: block;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    padding: 1rem;
    margin-top: 0;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 1rem;
    margin-top: 0;
    background: var(--bg-color);
}

.modal-nav.prev {
    left: 2rem;
}

.modal-nav.next {
    right: 2rem;
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-section {
    padding: 6rem 0;
    background-color: var(--surface-light);
    border-top: 1px solid var(--border-color);
}

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

.contact-info-panel,
.contact-form-panel {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 3rem;
}

.contact-subtitle {
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.contact-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    font-size: 1rem;
    color: var(--text-primary);
    width: 30px;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.contact-value {
    font-size: 0.95rem;
    font-weight: 500;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-secondary);
}

.sharp-input {
    background-color: var(--surface-light);
    border: 1px solid var(--border-color);
    padding: 1rem;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    border-radius: 0;
    transition: border-color 0.2s;
}

.sharp-input:focus {
    border-color: var(--text-primary);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    padding: 4rem 0 1rem;
    background-color: #000;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo img {
    height: 60px;
    filter: grayscale(100%);
    opacity: 0.7;
}

.footer-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 400px;
}

.footer-title {
    font-size: 0.8rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a,
.footer-links span {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .uav-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .reverse-grid {
        direction: ltr;
    }

    .nav-links {
        display: none;
    }

    .nav-container {
        grid-template-columns: 1fr auto;
    }
}