@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    /* UCA Original Cyber Theme */
    --bg-color: #050505;
    --panel-bg: #0a0a0a;
    --primary: #00ff9f;
    /* Neon Green */
    --primary-hover: #00cc7e;
    --secondary: #ffaa00;
    /* Operational Orange */
    --border: #1a1a1a;
    --text-main: #e0e0e0;
    --text-muted: #666666;
    --heading-color: #ffffff;
    --glow: rgba(0, 255, 159, 0.5);

    /* Typography */
    --font-primary: 'Share Tech Mono', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --base-font-size: 16px;
    /* Default */
}

html {
    font-size: var(--base-font-size);
}

/* =========================================
   RESET & BASE
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.main-content {
    flex: 1;
}

h1,
h2,
h3,
h4 {
    color: var(--heading-color);
    font-weight: 600;
    margin-bottom: 15px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

video,
iframe,
embed,
object {
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
}

.media-container {
    max-width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    margin-bottom: 20px;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   HEADER & NAVIGATION
========================================= */
.main-header {
    background: rgba(13, 17, 23, 0.95);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    margin-right: 15px;
    object-fit: cover;
}

.brand-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--heading-color);
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
    max-width: calc(100vw - 140px);
}

.show-mobile {
    display: none;
}

.hide-mobile {
    display: inline;
}

@media (min-width: 768px) {
    .brand-name {
        font-size: 1.3rem;
        max-width: none;
        white-space: nowrap;
        line-height: inherit;
    }
}

@media (max-width: 768px) {
    .show-mobile {
        display: inline-block;
    }

    .hide-mobile {
        display: none !important;
    }

    .main-nav,
    .header-action {
        display: none !important;
    }

    .header-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }

    .mobile-toggle {
        display: block !important;
        margin-left: auto !important;
        position: relative;
        z-index: 1001;
    }
}

@media (max-width: 360px) {
    .brand-name {
        font-size: 0.7rem;
        max-width: calc(100vw - 130px);
    }
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 5px 0;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--heading-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.header-action {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
    font-size: 1.4rem;
    color: var(--primary);
    text-shadow: 0 0 10px var(--glow);
    transition: 0.3s;
}

.mobile-toggle:hover {
    transform: scale(1.1);
    color: #fff;
}

/* Dropdown Styles */
.dropdown-item {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #0d1117;
    border: 1px solid var(--border);
    border-radius: 8px;
    min-width: 220px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.dropdown-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: 0.2s;
}

.dropdown-menu li a i {
    width: 16px;
    color: var(--primary);
}

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--heading-color);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    width: 90%;
    max-width: 400px;
    transform: translateY(20px);
    transition: 0.4s 0.1s;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateY(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.close-menu {
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-links li a {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--heading-color);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-links li.divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 10px 0;
}

.hide-mobile {
    display: inline-block;
}

.show-mobile {
    display: none;
}

@media (max-width: 991px) {
    .nav-menu {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: inline-block !important;
    }

    .container {
        padding: 0 15px;
    }

    .main-header {
        padding: 10px 0;
    }
}

/* =========================================
   BUTTONS
========================================= */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--text-muted);
    color: var(--heading-color);
}

/* =========================================
   LAYOUT COMPONENTS (CARDS, GRIDS)
========================================= */
.section-padding {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-top: -30px;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
    border-color: #484f58;
}

.card-body {
    padding: 25px;
}

/* =========================================
   FOOTER
========================================= */
.main-footer {
    background: #010409;
    border-top: 1px solid var(--border);
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.footer-heading {
    color: var(--heading-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 768px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* =========================================
   CAROUSEL & SLIDER SYSTEM
   ========================================= */
.uca-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 30px;
}

.carousel-slide {
    flex: 0 0 calc(33.333% - 20px);
    width: calc(33.333% - 20px);
    min-width: 300px;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .carousel-slide {
        flex: 0 0 calc(50% - 15px);
        width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .carousel-slide {
        flex: 0 0 100%;
        width: 100%;
    }
}

.intel-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.intel-badge {
    background: rgba(88, 166, 255, 0.1);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(88, 166, 255, 0.2);
}

/* =========================================
   UTILITIES & COMPONENTS
========================================= */
.card-image-wrap {
    position: relative;
    overflow: hidden;
}

.card-share-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-share-btn:hover {
    background: var(--primary);
    color: #000 !important;
    border-color: var(--primary);
    transform: scale(1.15) rotate(12deg);
    box-shadow: 0 0 20px var(--glow);
}

.card-share-btn i {
    font-size: 0.85rem;
}

/* =========================================
   NAVIGATION UTILITIES
========================================= */
@media (min-width: 769px) {
    .floating-back-btn {
        display: none !important;
    }
}

.floating-back-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 15px rgba(0, 255, 159, 0.2);
    font-size: 1.2rem;
}

.floating-back-btn:hover {
    transform: scale(1.1) rotate(-5deg);
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 30px var(--glow);
    border-color: #fff;
}