/* ==========================================================================
   AETRIQ | Mid-2000s Classic Dark Red/Black Stylesheet
   ========================================================================== */

:root {
    --bg-body: #050505;
    --bg-card: #0c0c0c;
    --bg-hover: #141414;
    --accent-red: #c0392b;
    --accent-gold: #d4a017;
    --accent-grey: #868686;
    --primary-text: #ffffff;
    --body-text: #cccccc;
    --border-subtle: 1px solid #333333;
    --border-highlight: 1px solid #666666;
}

/* 1. Reset & Base Typography (Times New Roman Everywhere, No Animations) */
* { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0 !important; animation: none !important; transition: none !important; }
html, body {
    background-color: var(--bg-body);
    color: var(--body-text);
    font-family: "Times New Roman", Times, Georgia, serif;
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
    font-family: "Times New Roman", Times, Georgia, serif;
    color: var(--primary-text);
    font-weight: bold;
    margin-bottom: 12px;
}
h1 { font-size: 32px; }
h2 { font-size: 24px; border-bottom: 1px solid var(--accent-red); padding-bottom: 5px; margin-bottom: 20px; }
h3 { font-size: 19px; color: var(--primary-text); }

a { color: var(--accent-red); text-decoration: underline; }
a:hover { color: #ffffff; }

/* 2. Centered Page Layout (No Sidebar Offset) */
.main-content {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 65px);
}
.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}
.section { padding: 35px 0; }

/* 3. Classic Top Navigation Bar */
.navbar {
    width: 100%;
    background-color: #0a0a0a;
    border-bottom: 2px solid var(--accent-red);
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.navbar .logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.navbar .logo img { width: 36px; height: 36px; object-fit: contain; }
.navbar .logo-text { color: #fff; font-size: 22px; font-weight: bold; letter-spacing: 1px; text-transform: uppercase; }

.navbar .nav-links { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.navbar .nav-links a {
    color: var(--body-text);
    text-decoration: none;
    font-size: 16px;
    padding: 4px 8px;
    border: 1px solid transparent;
}
.navbar .nav-links a:hover { color: #fff; text-decoration: underline; }
.navbar .nav-links a.active {
    color: #fff;
    font-weight: bold;
    background-color: #1a0808;
    border: 1px solid var(--accent-red);
}
.navbar .nav-divider, .mobile-menu-btn { display: none; }

/* 4. Buttons & Forms */
.btn {
    display: inline-block;
    padding: 6px 14px;
    background-color: #141414;
    color: #ffffff;
    border: 1px solid #555555;
    font-family: "Times New Roman", Times, serif;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
}
.btn:hover { background-color: #2a0a0a; border-color: var(--accent-red); color: #fff; text-decoration: none; }
.btn-primary { background-color: var(--accent-red); border-color: #ff5555; color: #ffffff; font-weight: bold; }
.btn-primary:hover { background-color: #9e2a1f; }
.btn-outline { background-color: #111111; border-color: #555555; color: #ffffff; }
.btn-compact { padding: 5px 10px; font-size: 14px; }

.form-control {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 15px;
    background-color: #000000;
    border: 1px solid #444444;
    color: #ffffff;
    font-family: "Times New Roman", Times, serif;
    font-size: 16px;
}
.form-control:focus { border-color: var(--accent-red); outline: none; }

/* 5. Hero Banner with Seamless Bottom Black Fade */
.hero-banner-container { position: relative; width: 100%; max-width: 1000px; margin: 0 auto; height: 240px; overflow: hidden; }
.hero-banner-img { width: 100%; height: 100%; object-fit: cover; }
.hero-banner-fade {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 100px;
    background: linear-gradient(to bottom, transparent, var(--bg-body));
}

.system-banner {
    background: #1a0808;
    border-bottom: 1px solid var(--accent-red);
    color: var(--primary-text);
    padding: 10px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}
.system-banner.hidden { display: none !important; }
.close-banner-btn { background: transparent; border: 1px solid #fff; color: #fff; padding: 2px 8px; cursor: pointer; }

/* 6. Homepage Stacked Feature Boxes (Intrastice, Chimera, NICC) */
.feature-box {
    background-color: var(--bg-card);
    border: var(--border-subtle);
    margin-bottom: 25px;
}
.feature-box-banner { width: 100%; height: 220px; position: relative; border-bottom: 1px solid #222; }
.feature-box-banner img { width: 100%; height: 100%; object-fit: cover; }
.feature-box-body { padding: 20px 25px; }

/* 7. About Page Services Grid (Original Collapsible Cards) */
.about-text { color: var(--body-text); font-size: 17px; line-height: 1.6; margin: 0 auto 25px auto; max-width: 900px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px; margin-top: 25px; }
.service-card {
    background: var(--bg-card);
    border: var(--border-subtle);
    padding: 15px 20px;
    text-align: left;
    cursor: pointer;
    position: relative;
}
.service-card:hover, .service-card.expanded { border-color: var(--accent-red); background: var(--bg-hover); }
.service-header { display: flex; justify-content: space-between; align-items: center; }
.service-title { color: var(--accent-grey); font-size: 17px; margin: 0; }
.service-card.expanded .service-title { color: var(--accent-red); }
.service-arrow { color: var(--accent-red); flex-shrink: 0; }
.service-card.expanded .service-arrow { transform: rotate(180deg); color: var(--accent-red); }
.service-body { display: none; padding-top: 12px; margin-top: 12px; border-top: 1px dashed #333; }
.service-card.expanded .service-body { display: block; }
.service-desc { color: var(--body-text); font-size: 15px; line-height: 1.5; margin: 0; }

/* 8. Projects, 3D Models & Storefront Cards */
.highlight-container { display: flex; flex-direction: column; gap: 25px; }
.project-list, .store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}

.project-card {
    background: var(--bg-card);
    border: var(--border-subtle);
    display: flex;
    flex-direction: column;
}
.project-card:hover { border-color: var(--border-highlight); }

.card-image { width: 100%; position: relative; background: #000; border-bottom: var(--border-subtle); overflow: hidden; }
.project-list .card-image img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
}
.card-content { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; }
.card-title { font-size: 18px; margin-bottom: 10px; }

/* Description Popup Overlay for Standard Cards */
.desc-popup-overlay {
    position: absolute; inset: 0; background: rgba(5, 5, 5, 0.95);
    padding: 15px; display: none; flex-direction: column; justify-content: center;
    overflow-y: auto; z-index: 5; border-bottom: 2px solid var(--accent-red);
}
.project-card.show-desc .desc-popup-overlay { display: flex; }
.project-card.show-desc .desc-toggle-btn { background: var(--accent-red) !important; color: #fff !important; border-color: var(--accent-red) !important; }
.project-card.show-desc .toggle-arrow { transform: rotate(90deg); }

/* Highlight Card Special Styling */
.highlight-card .card-image { height: 280px; }
.highlight-card .card-image img { width: 100%; height: 100%; object-fit: cover; }
.highlight-body { padding: 25px; }
.highlight-desc-container .card-description-collapsible { display: none; padding-top: 15px; }
.highlight-desc-container.expanded .card-description-collapsible { display: block; }
.highlight-desc-container.expanded .toggle-arrow { transform: rotate(180deg); }

/* 9. Creative Work Channels & Videos */
.channels-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 35px; }
.channel-card { background: var(--bg-card); border: var(--border-subtle); text-decoration: none; display: block; }
.channel-card:hover { border-color: var(--accent-red); }
.channel-banner { width: 100%; height: 90px; object-fit: cover; border-bottom: var(--border-subtle); }
.channel-info { display: flex; align-items: center; gap: 12px; padding: 12px; }
.channel-avatar { width: 48px; height: 48px; border: 1px solid #444; }
.channel-name { font-size: 18px; margin: 0; color: #fff; }

.creative-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.creative-card { background: var(--bg-card); border: var(--border-subtle); padding: 12px; text-decoration: none; display: flex; flex-direction: column; }
.creative-card:hover { border-color: var(--accent-red); }
.creative-thumb { aspect-ratio: 16 / 9; background: #000; position: relative; overflow: hidden; border: 1px solid #222; margin-bottom: 10px; }
.creative-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play-overlay { display: none; }
.creative-info { display: flex; gap: 10px; align-items: flex-start; }
.video-channel-icon { width: 32px; height: 32px; border: 1px solid #333; flex-shrink: 0; }
.creative-title { font-size: 15px; color: #fff; margin-bottom: 4px; line-height: 1.3; }
.creative-date { font-size: 13px; color: #888; }

/* 10. Storefront Hero & Modal */
.trust-badge-grid { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; margin-top: 25px; }
.trust-badge { background: #0a0a0a; border: 1px solid #333; padding: 12px 20px; text-align: center; }
.tech-pill { border: 1px solid #444; padding: 4px 10px; font-size: 14px; background: #000; }

.modal-overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.92); z-index: 2000;
    display: none; justify-content: center; align-items: center;
}
.modal-overlay.active { display: flex; }
.modal-content { background: var(--bg-card); border: 1px solid var(--accent-red); width: 90%; max-width: 850px; max-height: 90vh; overflow-y: auto; padding: 20px; position: relative; }
.close-btn { position: absolute; top: 10px; right: 10px; background: var(--accent-red); border: 1px solid #fff; color: #fff; padding: 4px 10px; cursor: pointer; font-size: 16px; z-index: 10; }
.modal-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-top: 15px; }
.modal-image-container { position: relative; background: #000; border: 1px solid #333; }
.modal-image-container img { width: 100%; height: 320px; object-fit: contain; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.8); color: #fff; border: 1px solid #666; padding: 8px 12px; cursor: pointer; font-size: 18px; }
.prev-btn { left: 8px; }
.next-btn { right: 8px; }
.image-counter { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.8); color: #fff; padding: 3px 8px; font-size: 13px; border: 1px solid #444; }
.status-badge { display: inline-block; padding: 3px 8px; font-size: 13px; font-weight: bold; margin-bottom: 10px; }

/* 11. Footer */
.footer { border-top: 2px solid var(--accent-red); background: #080808; padding: 35px 0 20px 0; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 25px; }
.footer-brand-header { display: flex; align-items: center; gap: 12px; }
.footer-brand-header img { width: 42px; height: 42px; object-fit: contain; }
.footer-title { font-size: 20px; font-weight: bold; color: #fff; }

/* Temporarily Hide Tech Stack Link */
a[href="tech.html"], a[href="../tech.html"] { display: none !important; }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
    .navbar { flex-direction: column; align-items: flex-start; }
}