:root {
    --primary: #0a192f;
    --primary-light: #112240;
    --primary-dark: #020c1b;
    --accent: #64ffda;
    --text-main: #1a1a1a;
    --text-muted: #666;
    --bg-light: #f4f5f7;
    --white: #ffffff;
    --border: #d1d5db;
    --danger: #e74c3c;
    --success: #27ae60;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.2s ease-in-out;
}

/* Skill: Admin Sync Button Style */
.btn-accent { 
    background: var(--accent); 
    color: var(--primary-dark); 
    border: none; 
    font-weight: 700; 
    padding: 0.6rem 1.2rem; 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    transition: all 0.3s ease; 
    cursor: pointer; 
}
.btn-accent:hover { 
    background: #52e5c6; 
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(100, 255, 218, 0.3); 
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.view-title {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 3rem;
    font-family: 'Merriweather', serif;
    font-weight: 800;
    border-left: 6px solid var(--accent);
    padding-left: 1.5rem;
}

.content-card {
    background: white;
    padding: 5rem;
    border-radius: 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.rich-text p {
    margin-bottom: 1.5rem;
}

.container { max-width: 1400px; margin: 0 auto; padding: 0 5%; }

/* ===== PREMIUM HEADER ===== */
.premium-header {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-top: 4px solid var(--primary);
}

.nav-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1.5rem 5%;
    gap: 4vw;
}

.nav-actions { margin-left: auto; }

.site-logo { width: 50px; height: 50px; border-radius: 2px; margin-right: 12px; }
.logo-link { display: flex; align-items: center; cursor: pointer; text-decoration: none; color: inherit; }
.logo-text h1 { font-size: 1.3rem; color: var(--primary); margin: 0; font-weight: 800; letter-spacing: -0.5px; }
.logo-text p { font-size: 0.7rem; color: var(--text-muted); font-weight: 700; margin: 0; text-transform: uppercase; letter-spacing: 1.5px; }

.nav-menu { display: flex; gap: 2rem; align-items: center; }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow);
    border-radius: 0;
    padding: 1rem 0;
    z-index: 1001;
    border-top: 3px solid var(--primary);
}

.nav-dropdown:hover .dropdown-content { display: block; animation: fadeIn 0.3s ease; }
.dropdown-content a {
    display: block;
    padding: 0.6rem 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}
.dropdown-content a:hover { background: var(--bg-light); color: var(--primary); padding-left: 1.8rem; }

/* ===== VIEWS (SPA LOGIC) ===== */
.view {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.view.visible {
    display: block;
    opacity: 1;
}

.view.hidden { display: none !important; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover, .nav-link.active { color: var(--primary); }

.nav-link:focus-visible,
.cat-card-home:focus-visible,
.category-arrow:focus-visible,
.slider-arrow:focus-visible,
.slider-dots .dot:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--primary); }

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    width: 100%;
    height: 95vh;
    min-height: 750px;
    background: var(--primary-dark);
    color: white;
    overflow: hidden;
    display: block;
    padding: 0;
}

.hero-slider {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    display: flex;
    align-items: center;
    padding: 0 5% 80px;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 5;
}

.slide-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1.05);
    transition: transform 6s ease-out;
}
.hero-slide.active .slide-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0, 30, 60, 0.9), rgba(0, 30, 60, 0.4));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 850px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease-out 0.3s;
}
.hero-slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.hero-title {
    font-family: 'Merriweather', serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #ffffff;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.title-highlight {
    color: var(--accent);
}

.hero-subtitle { font-size: 1.4rem; color: rgba(255,255,255,0.9); margin-bottom: 3.5rem; text-shadow: 0 2px 5px rgba(0,0,0,0.3); }

.hero-cta { display: flex; gap: 1.5rem; }
.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: transparent;
    color: white;
    border-radius: 0px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 2px solid white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== REFERENCES PAGE ===== */
.country-section {
    margin-bottom: 6rem;
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.country-header {
    padding: 2rem 3rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: white;
}

.country-header h3 {
    font-size: 1.8rem;
    font-family: 'Merriweather', serif;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.country-header i {
    font-size: 2rem;
}

.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 3rem;
}

.media-item {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-light);
    border: 1px solid var(--border);
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed to contain so full image shows */
    background: #020c1b; /* Dark background for empty areas */
    transition: transform 0.5s ease;
}

.media-item:hover img {
    transform: scale(1.08);
}

.media-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 25, 47, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.media-item:hover .media-overlay {
    opacity: 1;
}

.media-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(to top, rgba(7, 26, 52, 0.95), transparent);
    color: white;
    z-index: 100; /* Force it way up */
    transition: transform 0.3s ease;
}

.media-info-overlay h4 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.media-info-overlay span,
.media-info-overlay .ref-detail-btn {
    font-size: 0.85rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: auto; /* CRITICAL: Must be auto for clicking */
    background: rgba(44, 125, 160, 0.9);
    border: none;
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
}

.ref-detail-btn:hover {
    text-decoration: underline;
    opacity: 1;
}

.video-item .media-overlay {
    opacity: 0.85;
    background: rgba(44, 125, 160, 0.4);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-muted);
}

.video-placeholder i {
    font-size: 4rem;
    color: var(--primary);
}

.video-placeholder span {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Country Themes */
.usa-theme .country-header {
    background: linear-gradient(to right, #002868, #bf0a30);
    border-bottom: 4px solid #ffffff;
}
.usa-theme .media-item { border-bottom: 4px solid #002868; }

.germany-theme .country-header {
    background: linear-gradient(to right, #000000, #dd0000, #ffce00);
    color: #ffffff;
}
.germany-theme h3 { color: #ffffff; }
.germany-theme .media-item { border-bottom: 4px solid #dd0000; }

.kazakhstan-theme .country-header {
    background: #00afca;
    color: #fecb00;
}
.kazakhstan-theme .media-item { border-bottom: 4px solid #fecb00; }

.france-theme .country-header {
    background: linear-gradient(to right, #002395, #ffffff, #ed2939);
    color: #002395;
}
.france-theme .country-header h3 { color: #002395; }
.france-theme .media-item { border-bottom: 4px solid #002395; }

.turkey-theme .country-header {
    background: #e30a17;
}
.turkey-theme .media-item { border-bottom: 4px solid #e30a17; }

@media (max-width: 768px) {
    .country-header { padding: 1.5rem; }
    .country-header h3 { font-size: 1.4rem; }
    .media-gallery { padding: 1.5rem; grid-template-columns: 1fr; }
}

/* ===== REFERENCES (COUNTRY STACK / HORIZONTAL SCROLL) ===== */
.ref-country-stack {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

.ref-country-section {
    border: 1px solid var(--border);
    background: white;
    box-shadow: var(--shadow);
}

.ref-country-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 1.6rem;
    color: white;
}

.ref-country-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ref-flag {
    font-size: 1.9rem;
    filter: saturate(1.05);
}

.ref-country-text h3 {
    margin: 0;
    font-family: 'Merriweather', serif;
    font-size: 1.55rem;
    letter-spacing: -0.4px;
}

.ref-country-text p {
    margin: 0.15rem 0 0;
    opacity: 0.9;
    font-weight: 500;
    font-size: 0.95rem;
}

.ref-country-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 800;
}

.ref-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
}

.ref-country-body {
    padding: 1.4rem 1.6rem 1.8rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.ref-hscroll {
    display: flex;
    gap: 1.35rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.ref-hscroll::-webkit-scrollbar { height: 10px; }
.ref-hscroll::-webkit-scrollbar-thumb { background: rgba(10,25,47,0.18); border-radius: 999px; }
.ref-hscroll::-webkit-scrollbar-track { background: rgba(0,0,0,0.04); }

.ref-hitem {
    flex: 0 0 360px;
    scroll-snap-align: start;
}

/* Make the existing .media-item cards fit horizontal scroll nicely */
.ref-hitem .media-item {
    aspect-ratio: 16 / 10;
    border-radius: 0;
}

.ref-empty.small {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border: 1px dashed var(--border);
    color: var(--text-muted);
    background: #ffffff;
}

/* Flag color themes */
.ref-theme-usa .ref-country-header {
    background: linear-gradient(90deg, #002868 0%, #002868 55%, #bf0a30 100%);
}

.ref-theme-germany .ref-country-header {
    background: linear-gradient(90deg, #000000 0%, #000000 34%, #dd0000 34%, #dd0000 67%, #ffce00 67%, #ffce00 100%);
    color: #ffffff;
}

.ref-theme-france .ref-country-header {
    background: linear-gradient(90deg, #0055a4 0%, #0055a4 33%, #ffffff 33%, #ffffff 67%, #ef4135 67%, #ef4135 100%);
    color: #0a192f;
}
.ref-theme-france .ref-count { background: rgba(10,25,47,0.10); border-color: rgba(10,25,47,0.12); color: rgba(10,25,47,0.85); }
.ref-theme-france .ref-country-text p { opacity: 0.8; }

.ref-theme-kazakhstan .ref-country-header {
    background: linear-gradient(90deg, #00afca 0%, #00afca 70%, #fecb00 100%);
    color: #002868;
}
.ref-theme-kazakhstan .ref-count { background: rgba(255,255,255,0.24); border-color: rgba(255,255,255,0.26); }

.ref-theme-turkey .ref-country-header {
    background: linear-gradient(90deg, #e30a17 0%, #e30a17 100%);
}

    #homeView .cat-card-home {
        flex: 0 0 280px !important;
        max-width: 280px !important;
        padding: 1.5rem !important;
    }


/* ===== REFERENCE SCROLL ARROWS ===== */
.ref-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    background: var(--primary);
    color: white;
    display: none; /* Shown via JS if overflow */
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.ref-scroll-arrow:hover:not(:disabled) {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

.ref-scroll-arrow:disabled {
    cursor: default;
}

.ref-scroll-arrow.prev { left: -24px; }
.ref-scroll-arrow.next { right: -24px; }

@media (max-width: 768px) {
    .ref-country-header { padding: 1.15rem 1.1rem; flex-direction: column; align-items: flex-start; }
    .ref-country-body { padding: 1.1rem 1.1rem 1.4rem; }
    .ref-hitem { flex-basis: 78vw; }
    .ref-scroll-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
    .ref-scroll-arrow.prev { left: -10px; }
    .ref-scroll-arrow.next { right: -10px; }
}

/* ===== REFERENCES TABS (B DESIGN) ===== */
.ref-tabs-shell {
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.ref-tabs-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.4rem 1.6rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.ref-tabs-title {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.ref-tabs-title h3 {
    margin: 0;
    font-family: 'Merriweather', serif;
    color: var(--primary-dark);
    font-size: 1.4rem;
    letter-spacing: -0.3px;
}

.ref-tabs-title p {
    margin: 0;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.ref-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1.2rem 1.6rem 0.9rem;
}

.ref-tab {
    border: 1px solid var(--border);
    background: white;
    color: var(--primary);
    font-weight: 800;
    padding: 0.7rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    border-radius: 999px;
}

.ref-tab:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.ref-tab[aria-selected="true"] {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 53, 102, 0.18);
}

.ref-tab:disabled,
.ref-tab[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.ref-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: var(--bg-light);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 900;
    border: 1px solid rgba(0,0,0,0.06);
}

.ref-tab[aria-selected="true"] .ref-tab-badge {
    background: rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.92);
    border-color: rgba(255,255,255,0.18);
}

.ref-tab-panel {
    padding: 1.6rem;
}

.ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
}

.ref-empty {
    padding: 2.6rem 1.8rem;
    text-align: center;
    color: var(--text-muted);
    border: 1px dashed var(--border);
    background: #fbfdff;
}

.ref-empty strong {
    display: block;
    color: var(--primary-dark);
    margin-bottom: 0.45rem;
}

@media (max-width: 768px) {
    .ref-tabs-topbar { padding: 1.1rem 1.2rem; }
    .ref-tabs { padding: 1rem 1.2rem 0.6rem; }
    .ref-tab-panel { padding: 1.2rem; }
    .ref-grid { grid-template-columns: 1fr; }
}

/* ===== REFERENCES FEATURED (C DESIGN) ===== */
.ref-featured-shell {
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.ref-featured-card {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    min-height: 420px;
    border-bottom: 1px solid var(--border);
}

.ref-featured-media {
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: #071a34;
}

.ref-featured-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2,12,27,0.25) 0%, rgba(2,12,27,0.55) 55%, rgba(2,12,27,0.85) 100%);
}

.ref-featured-badges {
    position: absolute;
    left: 1.4rem;
    top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    z-index: 2;
}

.ref-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(2,12,27,0.78);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.92);
    font-weight: 800;
    font-size: 0.85rem;
    backdrop-filter: blur(6px);
}

.ref-badge.is-soft {
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.16);
}

.ref-featured-content {
    padding: 2.4rem 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.ref-featured-content h3 {
    margin: 0 0 1rem;
    font-family: 'Merriweather', serif;
    color: var(--primary-dark);
    font-size: 2rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.ref-featured-content p {
    margin: 0 0 1.6rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.ref-featured-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.ref-more {
    padding: 2.2rem;
}

.ref-more-head {
    margin-bottom: 1.6rem;
}

.ref-more-head h3 {
    margin: 0 0 0.35rem;
    color: var(--primary-dark);
    font-family: 'Merriweather', serif;
    font-size: 1.6rem;
}

.ref-more-head p {
    margin: 0;
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 1024px) {
    .ref-featured-card { grid-template-columns: 1fr; }
    .ref-featured-media { min-height: 320px; }
    .ref-featured-media-overlay { background: linear-gradient(180deg, rgba(2,12,27,0.12) 0%, rgba(2,12,27,0.55) 65%, rgba(2,12,27,0.88) 100%); }
}

@media (max-width: 768px) {
    .ref-featured-content { padding: 1.8rem 1.4rem; }
    .ref-featured-content h3 { font-size: 1.55rem; }
    .ref-more { padding: 1.6rem 1.2rem; }
}

/* ===== BEFORE/AFTER SLIDER ===== */
.ba-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ba-slider img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Full width */
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 2;
    clip-path: inset(0 50% 0 0); /* Initial clip */
    border-right: none; /* Removed old border */
}

.ba-range {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 4;
}

.ba-handle {
    position: absolute;
    top: 0; left: 50%; width: 4px; height: 100%;
    background: white;
    z-index: 3;
    pointer-events: none;
    transform: translateX(-50%);
}

.ba-handle::after {
    content: '\f337';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 40px; height: 40px;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

/* ===== REFERENCE DETAIL ===== */
.ref-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    padding: 1rem;
}

.main-ref-media-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.main-ref-media-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-ref-media-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ref-thumb-row {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.thumb-item {
    position: relative;
    width: 100px;
    height: 75px;
    flex-shrink: 0;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
    background: #000;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: var(--transition);
}

.thumb-item.active {
    border-color: var(--accent);
}

.thumb-item.active img, .thumb-item:hover img {
    opacity: 1;
}

.thumb-video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    pointer-events: none;
}

.ref-tags { display: flex; gap: 1rem; margin: 1.5rem 0; }
.ref-tags span {
    background: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

.ref-description h3, .ref-specs h3 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin: 2rem 0 1rem;
    font-family: 'Merriweather', serif;
}

.ref-specs ul {
    list-style: none;
    padding: 0;
}

.ref-specs li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ref-specs li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--success);
}

/* Video Lightbox */
.video-container-lb {
    width: 90vw;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    margin: 50px auto;
}

.video-container-lb iframe {
    width: 100%;
    height: 100%;
}

.lightbox-video {
    max-width: 90vw;
    max-height: 80vh;
    display: block;
    margin: 50px auto;
}

.media-item {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.ref-card-media-frame {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.ref-card-media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ref-card-media-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ref-slider-dots {
    position: absolute;
    bottom: 65px; /* Above the title overlay */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 15;
}

.ref-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.ref-dot.active {
    background: var(--accent);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}

.slider-arrow {
    background: rgba(10, 25, 47, 0.4) !important;
    backdrop-filter: blur(4px);
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    opacity: 0;
    visibility: hidden;
}

.media-item:hover .slider-arrow {
    opacity: 1;
    visibility: visible;
}

.slider-arrow:hover {
    background: var(--accent) !important;
    color: var(--primary-dark) !important;
}

@media (max-width: 992px) {
    .slider-arrow {
        opacity: 1;
        visibility: visible;
    }
    .ref-detail-grid { grid-template-columns: 1fr; }
    .interactive-map-container { padding: 1rem; }
}

/* Modals (Category/Product) */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}
.slider-arrow:hover { background: var(--accent); color: var(--primary-dark); border-color: var(--accent); }
.slider-arrow.prev { left: 2rem; }
.slider-arrow.next { right: 2rem; }

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}
.slider-dots .dot {
    width: 15px; height: 15px;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 0;
    border: none;
    padding: 0;
    appearance: none;
}
.slider-dots .dot.active { background: var(--accent); transform: scale(1.2); }

/* ===== MARQUEE SECTOR BAND ===== */
.marquee-container {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 1rem 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 2px solid var(--primary-light);
    border-bottom: 2px solid var(--primary-light);
}

.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.marquee-content span {
    margin: 0 1rem;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== LOGO MARQUEE ===== */
.logo-marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    padding: 2rem 0;
    position: relative;
}

.logo-marquee-container::before,
.logo-marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}
.logo-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}
.logo-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.logo-marquee-content {
    display: inline-flex;
    align-items: center;
    animation: marquee 40s linear infinite;
}

.logo-marquee-content:hover {
    animation-play-state: paused;
}

.ref-logo-item {
    flex: 0 0 auto;
    margin: 0 2rem;
    background: white;
    padding: 1.5rem;
    border: 1px solid var(--border);
    height: 120px;
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.ref-logo-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.ref-logo-item img {
    max-height: 70px;
    max-width: 160px;
    object-fit: contain;
}

/* ===== 3D SECTION ENHANCEMENTS ===== */
.three-d-section {
    background: #ffffff !important;
    position: relative;
    overflow: hidden;
    background-image: 
        linear-gradient(rgba(10, 25, 47, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 25, 47, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.three-d-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(255, 255, 255, 0.8) 100%);
    pointer-events: none;
}

.three-d-section::after {
    content: 'TECHNICAL DRAWING // REV 2026';
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 0.7rem;
    color: rgba(10, 25, 47, 0.1);
    font-weight: 900;
    letter-spacing: 5px;
    writing-mode: vertical-rl;
}

.three-d-main-box {
    background: white;
    border: 4px solid var(--primary);
    box-shadow: 0 40px 80px rgba(0, 53, 102, 0.25);
    padding: 6rem; /* Increased padding */
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    position: relative;
    z-index: 5;
    width: 100%;
}

.three-d-upper-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
}

.three-d-content-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left !important;
}

.three-d-content-left h2 {
    color: var(--primary-dark) !important;
    margin-bottom: 1.5rem !important;
    text-align: left !important;
}

.three-d-content-left p {
    color: var(--primary) !important; /* No more gray */
    font-size: 1.2rem !important;
    line-height: 1.8 !important;
    font-weight: 500 !important;
    margin-bottom: 2.5rem !important;
}

.three-d-stack-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.three-d-stack-img {
    width: 100%;
    height: 180px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.three-d-stack-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.three-d-marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    padding: 2rem 0;
    position: relative;
    z-index: 2;
}

.three-d-marquee-content {
    display: inline-flex;
    gap: 2rem;
    animation: marquee 60s linear infinite;
}

.three-d-marquee-content:hover {
    animation-play-state: paused;
}

.three-d-card-premium {
    flex: 0 0 450px;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    border: 4px solid var(--primary);
    box-shadow: 0 20px 40px rgba(0, 53, 102, 0.2);
    background: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.three-d-card-premium::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
    border-radius: 12px;
}

.three-d-card-premium:hover {
    transform: scale(1.05) translateY(-15px);
    border-color: #3498db; /* A slightly brighter blue for hover */
    box-shadow: 0 30px 60px rgba(0, 53, 102, 0.35);
}

.three-d-card-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.three-d-card-premium:hover img {
    transform: scale(1.1);
}

.three-d-help-text {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem 4rem;
    background: var(--primary);
    color: white;
    border-radius: 4px;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(0, 53, 102, 0.3);
    border: 1px solid var(--primary-light);
}

.three-d-help-text::before {
    content: '';
    position: absolute;
    inset: -10px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    opacity: 0.3;
    pointer-events: none;
}

.three-d-badge {
    background: white;
    padding: 0.8rem 1.5rem;
    border-radius: 0;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--primary);
    border: 2px solid var(--primary);
    transition: var(--transition);
    box-shadow: 4px 4px 0px var(--primary);
}

.three-d-badge:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--primary);
}

.ref-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 1.5rem;
    vertical-align: middle;
    background: white;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.5rem;
    width: 200px;
    height: 120px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.ref-link:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.ref-link img {
    max-height: 70px;
    max-width: 150px;
    filter: none;
    transition: var(--transition);
    object-fit: contain;
}

/* ===== STATS ===== */
.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    background: white;
    padding: 6rem 3rem;
    border-radius: 0;
    margin-top: 4rem;
    position: relative;
    z-index: 10;
    color: var(--primary-dark);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--primary);
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.stat-icon {
    font-size: 2.2rem;
    color: var(--primary);
}

.stat-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.stat-text {
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 260px;
}

.stat-value { display: flex; align-items: baseline; justify-content: center; gap: 5px; color: var(--primary); }
.stat-number { font-size: 4rem; font-weight: 800; margin: 0; }
.stat-suffix { font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 1rem; font-weight: 600; color: var(--text-muted); }

/* ===== WHY US ===== */
.why-us { padding: 8rem 0; background: var(--primary-dark); color: white; }
.why-us-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 5rem; align-items: center; }
.text-left { text-align: left; }
.why-us .section-title span { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; display: block; margin-bottom: 0.5rem; }
.why-us .section-title h2 { color: white; }
.why-us p { color: rgba(255,255,255,0.8); }

.check-list { list-style: none; padding: 0; margin-top: 2rem; }
.check-list li { margin-bottom: 1.2rem; display: flex; align-items: center; gap: 1rem; font-size: 1.1rem; color: rgba(255,255,255,0.9); }
.check-list i { color: var(--accent); font-size: 1.2rem; }

.why-us-image img { width: 100%; border-radius: 2px; box-shadow: var(--shadow); }

/* ===== PREMIUM CONTACT CARD ===== */

/* ===== REFERENCE MODAL SPLIT LAYOUT ===== */
.ref-modal-split {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2.5rem;
    align-items: center; /* Vertical center */
}

.ref-modal-media-side {
    position: relative;
    background: #020c1b;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    width: 100%;
    max-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

#refModalMediaDisplay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
#refModalMediaDisplay img, 
#refModalMediaDisplay video {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ref-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ref-nav-btn:hover {
    background: var(--accent);
    color: var(--primary-dark);
}

.ref-nav-btn.prev { left: 1.2rem; }
.ref-nav-btn.next { right: 1.2rem; }

.ref-modal-info-side {
    padding: 0.5rem;
}

.ref-modal-info-side h2 {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.ref-modal-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
    .ref-modal-meta-grid { grid-template-columns: 1fr; }
    .ref-modal-info-side h2 { font-size: 1.4rem; }
}

.ref-meta-item {
    background: var(--bg-light);
    padding: 0.8rem 1rem;
    border-radius: 12px;
}

.ref-meta-item label {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
}

.ref-meta-item span {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
    display: block;
}

.ref-modal-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-main);
}

.media-item video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

@media (max-width: 1024px) {
    .ref-modal-split { grid-template-columns: 1fr; gap: 2rem; }
}

.contact-card-premium {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow);
    max-width: 1100px;
    margin: 0 auto;
    border: 1px solid var(--border);
}

@media (max-width: 900px) {
    .contact-card-premium { grid-template-columns: 1fr; }
    .contact-visual { padding: 3rem 2rem; }
    .contact-form-premium { padding: 2.5rem 2rem; }
}

.contact-visual {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 4rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-items { margin: 3rem 0; }
.c-item { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 2rem; font-size: 1.1rem; }
.c-item i { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent); }

.social-links-circle { display: flex; gap: 1rem; }
.social-links-circle a { width: 45px; height: 45px; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; transition: var(--transition); }
.social-links-circle a:hover { background: white; color: var(--primary); border-color: white; transform: translateY(-5px); }

.contact-form-premium { padding: 4rem; }
.contact-form-premium h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.contact-form-premium p { color: var(--text-muted); margin-bottom: 2.5rem; }
.form-status {
    margin-bottom: 1.5rem;
    padding: 1rem 1.2rem;
    border: 1px solid transparent;
    font-weight: 600;
}
.form-status-success {
    background: #edf9f1;
    border-color: #b8e2c5;
    color: #1f6f43;
}
.form-honeypot {
    display: none !important;
}

.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.contact-form-premium input, .contact-form-premium textarea {
    background: var(--bg-light);
    border: 1px solid var(--border);
    padding: 1rem 1.2rem;
    border-radius: 0;
    margin-bottom: 1.5rem;
    width: 100%;
    display: block;
    font-family: inherit;
}

.contact-form-premium input:focus { border-color: var(--primary-light); background: white; }

/* ===== FOOTER REVAMP ===== */
.footer { background: var(--primary-dark); color: white; padding: 6rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 4rem; padding-bottom: 4rem; }
.footer-logo { width: 60px; border-radius: 10px; margin-bottom: 1.5rem; }
.footer-col h4 { font-size: 1.2rem; margin-bottom: 2rem; position: relative; padding-bottom: 0.5rem; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background: var(--primary-light); }
.footer-col p { opacity: 0.7; line-height: 1.8; margin-bottom: 1rem; }

.social-links { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-links a { font-size: 1.4rem; color: rgba(255,255,255,0.5); transition: var(--transition); }
.social-links a:hover { color: var(--accent); transform: scale(1.2); }

.footer-bottom { background: #001226; padding: 2rem 0; border: none; }
.footer-bottom-flex { display: flex; justify-content: space-between; align-items: center; opacity: 0.6; font-size: 0.9rem; }
.footer-cards { font-size: 2rem; display: flex; gap: 1rem; }

/* ===== BUTTONS ===== */
.btn {
    padding: 1rem 2.5rem;
    border-radius: 0;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary { background: var(--primary); color: white; box-shadow: 0 10px 25px rgba(0, 53, 102, 0.2); }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-3px); box-shadow: 0 15px 35px rgba(0, 53, 102, 0.3); }

.btn-secondary { background: white; color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary); color: white; }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; border-radius: 0; }

/* ===== CONTENT VIEWS (About, SSS, Contact) ===== */
.content-card {
    background: white;
    padding: 4rem;
    border-radius: 0;
    box-shadow: var(--shadow);
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid var(--border);
}

.view-title {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    border-left: 5px solid var(--primary-light);
    padding-left: 1.5rem;
}

.rich-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.faq-item h4 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info i { color: var(--primary-light); width: 20px; }

.map-placeholder {
    background: var(--bg-light);
    height: 200px;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    margin-top: 2rem;
    border: 1px solid var(--border);
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: white; padding-left: 5px; }

.search-bar-inline {
    background: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.search-bar-inline i { color: var(--text-muted); }
.search-bar-inline input { border: none; padding: 0; width: 100%; outline: none; }

.sort-select {
    border: none;
    background: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    outline: none;
    font-family: inherit;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
}

/* ===== SECTION TITLES ===== */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-family: 'Merriweather', serif;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ===== HOME CATEGORIES (SLIDER) ===== */
.home-categories {
    padding: 6rem 0;
}

.featured-category-highlight {
    margin-bottom: 2.5rem;
}

.featured-category-banner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(180px, 230px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
    padding: 2rem 2.4rem;
    border: 1px solid rgba(0, 53, 102, 0.12);
    border-left: 10px solid var(--accent);
    background: linear-gradient(135deg, #ffffff 0%, #eef8ff 100%);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--primary-dark);
    overflow: hidden;
}

.featured-category-banner::before {
    content: '';
    position: absolute;
    inset: auto -80px -90px auto;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.featured-category-media {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 160px;
    border: 2px solid rgba(0, 53, 102, 0.1);
    background-size: cover;
    background-position: center;
    transition: transform 0.45s ease;
}

.featured-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dff4ff 0%, #f7fcff 100%);
    color: var(--primary);
    font-size: 4rem;
}

.featured-category-content {
    position: relative;
    z-index: 1;
}

.featured-category-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    padding: 0.35rem 0.9rem;
    background: rgba(0, 53, 102, 0.08);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.featured-category-banner h3 {
    margin: 0 0 0.7rem;
    font-size: 2rem;
    line-height: 1.12;
}

.featured-category-banner p {
    margin: 0;
    max-width: 680px;
    color: var(--text-muted);
    line-height: 1.7;
}

.featured-category-cta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.95rem 1.25rem;
    background: var(--primary);
    color: white;
    font-weight: 700;
    white-space: nowrap;
}

.featured-category-banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 53, 102, 0.14);
}

.featured-category-banner:hover .featured-category-media {
    transform: scale(1.04);
}

.category-slider-shell {
    position: relative;
    padding: 0;
    margin: 0 auto;
}

#homeView .category-grid-home {
    display: flex;
    overflow-x: auto;
    gap: 2.5rem;
    padding: 1.5rem 0 4rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    justify-content: center;
}

.category-grid-home::-webkit-scrollbar {
    display: none;
}

.category-arrow {
    position: absolute;
    top: calc(50% - 20px);
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 3;
    transition: var(--transition);
    border-radius: 50%;
}

.category-arrow.prev {
    left: -25px;
}

.category-arrow.next {
    right: -25px;
}

.category-arrow:hover {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

.category-arrow:disabled {
    opacity: 0;
    visibility: hidden;
}

#homeView .cat-card-home {
    flex: 0 0 380px !important;
    width: 380px !important;
    height: 320px !important;
    scroll-snap-align: start;
    background: white;
    border: 1px solid var(--border);
    border-bottom: 5px solid var(--primary);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary-dark);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

#homeView .cat-card-home:hover {
    transform: translateY(-8px);
    border-bottom-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

#homeView .cat-card-img, #homeView .cat-card-icon {
    width: 150px !important;
    height: 150px !important;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto;
    transition: var(--transition);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: 1px solid var(--border);
}

#homeView .cat-card-home h3 {
    margin: 1rem 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-incele {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--primary);
    color: white !important;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
}

.btn-incele span { display: inline; } /* Show text again */

#homeView .cat-card-home:hover .btn-incele {
    background: var(--accent);
    color: var(--primary-dark) !important;
}



/* ===== QUICK FEATURES ===== */
.quick-features {
    padding: 6rem 0;
    background: var(--white);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.feature-box {
    background: var(--white);
    padding: 3.5rem 2rem;
    border-radius: 0;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.feature-box:hover {
    transform: translateY(-10px);
    background: white;
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.feature-box i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: block;
}

.feature-box h3 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.feature-box p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== LAYOUTS (Catalog/Admin) ===== */
.main-layout { display: grid; grid-template-columns: 300px 1fr; gap: 3rem; padding: 4rem 0; }

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.clear-filter {
    background: var(--danger);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    transition: var(--transition);
}

.clear-filter:hover {
    background: #c0392b;
}

.category-menu { display: flex; flex-direction: column; gap: 0.5rem; }

.cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    border: 1px solid transparent;
}

.cat-item:hover, .cat-item.active {
    background: var(--primary);
    color: white;
}

.cat-item i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.cat-item.open i {
    transform: rotate(180deg);
}

.cat-children {
    display: none;
    margin-left: 1rem;
    border-left: 2px solid var(--border);
    padding-left: 0.5rem;
    margin-top: 0.5rem;
}

.cat-children.open {
    display: block;
}

/* Product Grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.product-card { background: white; border-radius: 0; overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); cursor: pointer; border: 1px solid var(--border); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-8px); }
.card-img { aspect-ratio: 4/3; background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%); padding: 1rem; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.card-img::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(6, 38, 68, 0.06); pointer-events: none; }
.card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.45s ease; }
.product-card:hover .card-img img { transform: scale(1.03); }
.card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body h4 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--primary-dark); }
.card-body .price { font-weight: 800; color: var(--primary); font-size: 1.3rem; }

/* Admin */
.admin-tabs { background: white; padding: 0.8rem; border-radius: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); border: 1px solid var(--border); }
.tab-btn { padding: 1rem 2rem; border: none; background: transparent; border-radius: 0; cursor: pointer; font-weight: 700; }
.tab-btn.active { background: var(--primary); color: white; }
.admin-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 1rem; }

.admin-storage-card {
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1rem 1.2rem;
    margin-bottom: 2rem;
}

.admin-storage-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.admin-storage-head h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    color: var(--primary-dark);
}

#adminStorageSummary {
    margin: 0;
    font-weight: 700;
    color: var(--text-main);
}

.admin-storage-meta {
    margin: 0.45rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.storage-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid transparent;
    border-radius: 999px;
}

.storage-badge.is-ok {
    background: #e9f9f0;
    border-color: #b8ebcb;
    color: #0b7a39;
}

.storage-badge.is-warn {
    background: #fff5e6;
    border-color: #ffd8a1;
    color: #a36100;
}

.storage-badge.is-danger {
    background: #fdebec;
    border-color: #f6b5ba;
    color: #ac1e2c;
}

.admin-storage-error {
    margin: 0.8rem 0 0;
    padding: 0.7rem 0.9rem;
    border: 1px solid #f6b5ba;
    background: #fdebec;
    color: #8f1f27;
    font-size: 0.92rem;
}

.admin-storage-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
    margin-top: 0.9rem;
}

.admin-storage-note {
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .admin-actions {
        margin-left: 0;
        width: 100%;
    }

    .admin-storage-head {
        flex-direction: column;
    }
}

/* Tables/Tree */
.table-wrapper { background: white; border-radius: 0; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 1.5rem; border-bottom: 1px solid var(--border); }
th { background: #f8fafc; font-weight: 800; color: var(--primary); }

.tree-node { display: flex; justify-content: space-between; padding: 1rem; background: var(--bg-light); margin-bottom: 0.8rem; border-radius: 0; border: 1px solid var(--border); }

/* Dropzone & Preview */
.dropzone { border: 2px dashed var(--border); border-radius: 0; padding: 3rem; text-align: center; cursor: pointer; transition: var(--transition); background: var(--bg-light); color: var(--text-muted); }
.dropzone:hover { border-color: var(--primary-light); background: var(--white); }
.dropzone.drag-over { border-color: var(--primary); background: var(--white); color: var(--primary-dark); }
.image-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.preview-item { position: relative; aspect-ratio: 1; border-radius: 0; overflow: hidden; border: 1px solid var(--border); background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%); display: flex; align-items: center; justify-content: center; padding: 0.6rem; }
.preview-item img { width: 100%; height: 100%; object-fit: contain; }
.remove-img { position: absolute; top: 5px; right: 5px; background: var(--danger); color: white; border: none; width: 25px; height: 25px; border-radius: 2px; cursor: pointer; }

/* Detail Slider & Features */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; background: white; padding: 4rem; border-radius: 0; box-shadow: var(--shadow); border: 1px solid var(--border); }
.detail-info { display: flex; flex-direction: column; }
.main-image-container { aspect-ratio: 4/3; background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%); border-radius: 0; overflow: hidden; position: relative; border: 1px solid var(--border); }
.main-image-container img { width: 100%; height: 100%; object-fit: contain; }
.slider-nav { position: absolute; top: 50%; width: 100%; display: flex; justify-content: space-between; padding: 0 1.5rem; }
.slider-nav button { background: white; border: 1px solid var(--border); width: 40px; height: 40px; border-radius: 0; box-shadow: var(--shadow); cursor: pointer; }
.thumbnail-row { display: flex; gap: 1rem; margin-top: 1.5rem; overflow-x: auto; }
.thumb-item { width: 80px; height: 80px; border-radius: 0; overflow: hidden; cursor: pointer; border: 3px solid transparent; flex-shrink: 0; background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%); display: flex; align-items: center; justify-content: center; padding: 0.35rem; }
.thumb-item.active { border-color: var(--primary); }
.thumb-item img { width: 100%; height: 100%; object-fit: contain; }

.detail-features {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 0;
    margin-top: 1.5rem;
    border: 1px solid var(--border);
}
.detail-features h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
    font-family: 'Merriweather', serif;
    font-weight: 800;
    font-size: 1.4rem;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.5rem;
    display: inline-block;
}
.desc-text {
    line-height: 1.8;
    color: var(--text-main);
    font-size: 1.15rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background: #020c1b;
    color: white;
    padding: 6rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 4rem;
    padding-bottom: 5rem;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.footer-logo-text h3 {
    font-size: 1.5rem;
    color: white;
    margin: 0;
    line-height: 1;
}

.footer-logo-text span {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-desc {
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.footer-heading {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 8px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-contact i {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 5px;
}

.footer-contact div span {
    display: block;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.footer-contact div a, .footer-contact div p {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 1rem;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.social-links a:hover {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    background: #010811;
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--accent);
}

/* Modal */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 30, 60, 0.7); backdrop-filter: blur(5px); z-index: 2000; justify-content: center; align-items: center; }
.modal-content { background: white; padding: 4rem; border-radius: 0; width: 800px; max-width: 95%; max-height: 90vh; overflow-y: auto; border: 1px solid var(--primary); }
.product-modal-content { width: min(960px, 95vw); }
#catForm .form-group,
#prodForm .form-group { margin-bottom: 1.35rem; }
#catForm .form-group:last-of-type,
#prodForm .form-group:last-of-type { margin-bottom: 0; }
#catForm .form-group label,
#prodForm .form-group label { display: block; margin-bottom: 0.65rem; color: var(--primary-dark); font-weight: 700; }
#catForm input[type="text"],
#catForm select,
#prodForm input[type="text"],
#prodForm select,
#prodForm textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-main);
    font: inherit;
    transition: var(--transition);
}
#catForm input[type="text"]:focus,
#catForm select:focus,
#prodForm input[type="text"]:focus,
#prodForm select:focus,
#prodForm textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(44, 125, 160, 0.12);
}
#prodForm textarea {
    min-height: 240px;
    line-height: 1.7;
    overflow-y: hidden;
    resize: vertical;
}
.field-help {
    display: block;
    margin-top: 0.65rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}
.modal-btns { display: flex; justify-content: flex-end; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

.hidden { display: none !important; }

.lazy-img { filter: blur(10px); transition: filter 0.5s; }
.lazy-img.loaded { filter: blur(0); }

/* ===== RESPONSIVENESS (MOBILE) ===== */
@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .stats-section { grid-template-columns: repeat(2, 1fr); margin-top: 2rem; padding: 2rem; }
    .why-us-grid { grid-template-columns: 1fr; gap: 3rem; }
    .contact-card-premium { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .main-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; margin-bottom: 2rem; width: 100%; }
    .product-detail { grid-template-columns: 1fr; padding: 2rem; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; cursor: pointer; }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 3rem 2rem;
        transition: var(--transition);
        z-index: 999;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active { left: 0; }
    
    .nav-dropdown .dropdown-content { position: static; box-shadow: none; border: none; padding-left: 1.5rem; display: block; }
    .nav-dropdown:hover .dropdown-content { animation: none; }

    .hero-title { font-size: 2.2rem; }
    .hero-section { padding: 6rem 5%; min-height: 70vh; }
    .hero-cta { flex-direction: column; }

    .featured-category-banner {
        grid-template-columns: 1fr;
        padding: 1.75rem;
        gap: 1.3rem;
    }
    .featured-category-media { height: 190px; }
    .featured-category-banner h3 { font-size: 1.65rem; }
    .featured-category-cta { justify-self: start; }

    .category-slider-shell { padding: 0 3.6rem; }
    .category-arrow { width: 44px; height: 130px; font-size: 1.4rem; }
    .cat-card-home { flex-basis: 280px; padding: 2.5rem 1.8rem; }
    
    .stats-section { grid-template-columns: 1fr; gap: 1.5rem; }
    .stat-number { font-size: 2.5rem; }
    
    .section-title h2 { font-size: 1.8rem; }
    
    .feature-grid { grid-template-columns: 1fr; }
    
    .contact-visual { padding: 2.5rem; }
    .contact-form-premium { padding: 2.5rem; }
    .input-grid { grid-template-columns: 1fr; gap: 0; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    .footer-bottom-flex { flex-direction: column; gap: 1rem; text-align: center; }
    
    .modal-content { padding: 2rem; width: 95%; }
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 12, 27, 0.95);
    backdrop-filter: blur(8px);
}

.lightbox-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-media {
    max-width: 90%;
    max-height: 85vh;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.lightbox-video {
    display: block;
    width: 90%;
    max-width: 1000px;
    max-height: 80vh;
    margin: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    background: black;
}

.video-container-lb {
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16/9;
    margin: auto;
}

.video-container-lb iframe {
    width: 100%;
    height: 100%;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(44, 125, 160, 0.5);
    border-radius: 50%;
    transition: 0.3s;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(44, 125, 160, 0.8);
    transform: rotate(90deg);
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #fff;
    text-decoration: none;
}

/* Modal Close Icon (for Ref Detail) */
.modal-close-icon {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: var(--primary-dark);
    cursor: pointer;
    z-index: 100;
    transition: 0.3s;
    line-height: 1;
}

.modal-close-icon:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.main-image-container img { cursor: zoom-in; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1);
}

/* ===== CORPORATE PAGE ENHANCEMENTS ===== */

/* Timeline */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-light);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid var(--accent);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left { left: 0; }
.right { left: 50%; }

.right::after { left: -10px; }

.timeline-content {
    padding: 2rem;
    background-color: white;
    position: relative;
    border-radius: 4px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.timeline-content h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-family: 'Merriweather', serif;
}

.timeline-content .year {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--primary);
    color: white;
    font-weight: 800;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Department Grid */
.department-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.dept-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-top: 4px solid var(--primary);
    transition: var(--transition);
}

.dept-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--accent);
    background: white;
    box-shadow: var(--shadow);
}

.dept-card h4 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.dept-card p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.dept-card i {
    color: var(--primary-light);
    margin-right: 8px;
}

/* Policy Section */
.policy-section {
    margin-bottom: 3rem;
}

.policy-section h3 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bg-light);
}

.policy-section ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.policy-section li {
    margin-bottom: 0.8rem;
}

/* Map Wrapper */
.map-wrapper {
    width: 100%;
    height: 400px;
    margin-top: 3rem;
    border: 1px solid var(--border);
    overflow: hidden;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(0.5);
}

/* Responsive Fixes for New Styles */
@media (max-width: 768px) {
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item::after { left: 21px; }
    .right { left: 0%; }
    .department-grid { grid-template-columns: 1fr; }
}


/* Skill: Admin Sync Button Style */
.btn-accent { background: var(--accent); color: var(--primary-dark); border: none; font-weight: 700; padding: 0.6rem 1.2rem; display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s ease; cursor: pointer; }
.btn-accent:hover { background: #52e5c6; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(100, 255, 218, 0.3); }



/* ===== LANGUAGE SWITCHER STYLES ===== */
.nav-lang-dropdown { position: relative; display: inline-block; }
.lang-dropdown-content { 
    display: none; 
    position: absolute; 
    top: 100%; 
    right: 0; 
    background: white; 
    min-width: 180px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); 
    border-radius: 8px; 
    z-index: 9999; 
    padding: 0.5rem 0; 
    margin-top: 12px; 
    border: 1px solid rgba(0,0,0,0.08); 
    animation: fadeInDown 0.3s ease; 
}

/* Ok iÅŸareti stili */
.lang-dropdown-content::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-left: 1px solid rgba(0,0,0,0.08);
    border-top: 1px solid rgba(0,0,0,0.08);
}

.nav-lang-dropdown.active .lang-dropdown-content { display: block !important; }

.lang-dropdown-content a { color: #333; padding: 0.8rem 1.2rem; text-decoration: none; display: flex; align-items: center; gap: 12px; font-size: 0.95rem; font-weight: 600; transition: all 0.2s; border-bottom: 1px solid #f0f0f0; }
.lang-dropdown-content a:last-child { border-bottom: none; }
.lang-dropdown-content a img { width: 22px; height: auto; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.lang-dropdown-content a:hover { background-color: var(--bg-light); color: var(--primary); padding-left: 1.5rem; }

/* Mobil MenÃ¼ Ä°Ã§in Ã–zel Ayar */
@media (max-width: 768px) {
    .nav-lang-dropdown { width: 100%; margin-bottom: 1rem; }
    .lang-dropdown-content { position: static; width: 100%; margin-top: 10px; box-shadow: none; border: 1px solid #eee; }
    .lang-dropdown-content::before { display: none; }
}

/* ===== GOOGLE TRANSLATE HIDER (PREMIUM GHOST MODE) ===== */
#google_translate_element, .goog-te-banner-frame, .goog-te-balloon-frame, .goog-gt-tt, .goog-te-tooltip, .goog-te-menu-value span:nth-child(2), .goog-te-gadget-icon {
    display: none !important;
    visibility: hidden !important;
}

.goog-te-gadget {
    font-size: 0 !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
    box-decoration-break: clone;
}

body {
    top: 0 !important;
    position: static !important;
}

iframe.goog-te-banner-frame {
    display: none !important;
}

.skiptranslate {
    display: none !important;
}
/* ====================================================== */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== PUBLIC MOBILE POLISH (ADMIN HARIC) ===== */
:root {
    --mobile-header-offset: 84px;
}

body.mobile-menu-open {
    overflow: hidden;
}

@media (max-width: 1200px) {
    #homeView .three-d-section::after {
        display: none;
    }
}

@media (max-width: 1024px) {
    #homeView .three-d-section {
        padding: 5rem 0 !important;
    }

    #homeView .three-d-main-box {
        padding: 3rem;
        gap: 2.25rem;
    }

    #homeView .three-d-upper-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    #homeView .three-d-stack-right {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.85rem;
    }

    #homeView .three-d-stack-img {
        height: 150px;
    }

    #homeView .three-d-content-left p {
        font-size: 1.05rem !important;
        line-height: 1.7 !important;
    }

    #homeView .three-d-card-premium {
        width: 290px;
        height: 200px;
    }

    #homeView .stats-section {
        margin-top: 2rem;
        padding: 2.5rem 1.5rem;
    }

    #catalogView .main-layout {
        gap: 2rem;
    }

    #contactView .map-wrapper {
        height: 340px;
    }
}

@media (max-width: 768px) {
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .container {
        padding-left: 4%;
        padding-right: 4%;
    }

    .nav-container {
        padding: 0.85rem 4%;
        gap: 0.9rem;
    }

    .site-logo {
        width: 42px;
        height: 42px;
        margin-right: 8px;
    }

    .logo-text h1 {
        font-size: clamp(0.85rem, 4vw, 1.05rem);
        line-height: 1.2;
        max-width: 180px;
        word-wrap: break-word;
    }

    .menu-toggle {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu {
        position: fixed;
        top: var(--mobile-header-offset);
        left: -100%;
        width: 100%;
        height: calc(100svh - var(--mobile-header-offset));
        background: var(--white);
        flex-direction: column;
        padding: 1.2rem 1rem calc(1.4rem + env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        transition: left 0.3s ease-in-out, visibility 0.3s;
        z-index: 1000;
        visibility: hidden;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
        visibility: visible;
    }

    .nav-menu .nav-link {
        width: 100%;
        padding: 0.65rem 0.2rem;
        font-size: 0.95rem;
    }

    .nav-link::after {
        bottom: -3px;
    }

    .hero-section {
        min-height: 300px;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .hero-slide {
        align-items: center;
        padding: 0 4% 1rem;
    }

    .slide-bg {
        background-size: cover;
        background-position: center;
    }

    .hero-slide-first .slide-bg {
        background-size: contain;
        background-repeat: no-repeat;
        background-color: var(--primary-dark);
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-badge {
        font-size: 0.72rem;
        padding: 0.45rem 0.85rem;
        letter-spacing: 0.06em;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: clamp(1.7rem, 7vw, 2.15rem);
        line-height: 1.18;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: clamp(0.95rem, 3.6vw, 1.05rem);
        line-height: 1.5;
        margin-bottom: 1.4rem;
        max-width: 34ch;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-section .slider-arrow {
        display: none;
    }

    .slider-dots {
        bottom: 14px;
        gap: 0.65rem;
    }

    .slider-dots .dot {
        width: 12px;
        height: 12px;
    }

    #homeView .home-categories {
        padding: 4.2rem 4% !important;
    }

    #homeView .section-title {
        margin-bottom: 2.4rem;
    }

    #homeView .section-title h2 {
        font-size: clamp(1.45rem, 6vw, 1.8rem);
    }

    #homeView .section-title p {
        font-size: 0.96rem;
        line-height: 1.55;
    }

    #homeView .category-slider-shell {
        padding: 0;
    }

    #homeView .category-arrow {
        display: none !important;
    }

    #homeView .category-grid-home {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
        padding: 1rem 0;
        overflow-x: visible;
        flex-wrap: wrap;
    }

    #homeView .cat-card-home {
        flex: none !important;
        width: 100% !important;
        max-width: none !important;
        padding: 1.25rem 1rem !important;
        margin: 0 !important;
    }

    #homeView .cat-card-home.cat-card-featured {
        grid-column: 1 / -1;
        width: 100% !important;
        max-width: none !important;
        text-align: center;
        gap: 1rem;
    }

    #homeView .cat-card-home h3 {
        font-size: 1.1rem !important;
        margin: 0.8rem 0 !important;
    }

    #homeView .cat-card-home .cat-card-icon,
    #homeView .cat-card-home .cat-card-img {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }

    #homeView .cat-card-home.cat-card-featured .cat-card-icon,
    #homeView .cat-card-home.cat-card-featured .cat-card-img {
        width: 92px;
        height: 92px;
        margin: 0 auto;
    }

    #homeView .cat-card-home.cat-card-featured h3 {
        font-size: 1.35rem;
    }

    #homeView .three-d-section {
        padding: 3.6rem 0 !important;
    }

    #homeView .three-d-main-box {
        border-width: 2px;
        padding: 1.2rem;
        gap: 1.35rem;
    }

    #homeView .three-d-content-left h2 {
        font-size: clamp(1.35rem, 6.4vw, 1.8rem);
        margin-bottom: 1rem !important;
    }

    #homeView .three-d-content-left p {
        font-size: 0.96rem !important;
        line-height: 1.65 !important;
        margin-bottom: 1.2rem !important;
    }

    #homeView .three-d-badge {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 0.65rem 0.75rem;
    }

    #homeView .three-d-stack-right {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    #homeView .three-d-stack-img {
        height: 190px;
    }

    #homeView .three-d-marquee-container {
        margin-top: 0.8rem !important;
        padding-top: 1.15rem !important;
    }

    #homeView .three-d-card-premium {
        width: 230px;
        height: 160px;
    }

    #homeView .stats-section {
        margin-top: 1.5rem;
        gap: 1.25rem;
        padding: 1.45rem 1rem;
    }

    #homeView .stat-title {
        font-size: 1.08rem;
    }

    #homeView .stat-text {
        max-width: 100%;
        font-size: 0.94rem;
    }

    #catalogView .main-layout {
        grid-template-columns: 1fr;
        padding: 2.1rem 0;
        gap: 1.3rem;
    }

    #catalogView .sidebar {
        padding: 0;
        border: none;
        background: transparent;
        margin-bottom: 1rem;
        display: none; /* Hidden by default on mobile */
    }

    #catalogView .sidebar.active {
        display: block; /* Shown when toggled */
        animation: fadeIn 0.3s ease;
    }

    #catalogView .sidebar-header {
        display: flex;
        padding: 1rem;
        background: var(--bg-light);
        border-radius: 8px 8px 0 0;
    }

    #catalogView .category-menu {
        display: flex;
        flex-direction: column;
        background: white;
        padding: 0.5rem;
        border: 1px solid var(--border);
        border-top: none;
        border-radius: 0 0 8px 8px;
    }

    #catalogView .cat-item {
        width: 100%;
        padding: 0.8rem 1rem !important;
        font-size: 0.95rem !important;
        border-radius: 4px;
        margin-bottom: 2px;
    }

    #catalogView .cat-item.active {
        background: var(--primary);
        color: white !important;
    }

    #catalogView .cat-item i {
        display: inline-block;
        transition: transform 0.3s;
    }

    #catalogView .cat-item.open i {
        transform: rotate(180deg);
    }

    #catalogView .cat-children {
        display: none;
        padding-left: 1rem;
        margin-bottom: 0.5rem;
    }

    #catalogView .cat-children.open {
        display: block;
    }

    /* Mobile Category Toggle Button */
    .mobile-cat-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 1rem;
        background: var(--primary);
        color: white;
        border: none;
        border-radius: 8px;
        font-weight: 700;
        margin-bottom: 1rem;
        cursor: pointer;
    }

    #catalogView .search-bar-inline {
        padding: 0.75rem 1rem;
        gap: 0.7rem;
        margin-bottom: 1rem;
    }

    #catalogView .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    #catalogView .product-card h4 {
        font-size: 0.95rem !important;
        margin-bottom: 0.3rem !important;
    }

    #catalogView .product-card .btn-primary {
        padding: 0.5rem !important;
        font-size: 0.75rem !important;
    }

    #catalogView .card-img {
        aspect-ratio: 4 / 3;
    }

    #catalogView .card-body {
        padding: 1rem;
    }

    #detailView .product-detail {
        grid-template-columns: 1fr;
        padding: 1.1rem;
        gap: 2rem;
    }

    #detailView .detail-features {
        padding: 1rem;
    }

    #detailView .desc-text {
        font-size: 1rem;
        line-height: 1.65;
    }

    #referencesView .ref-country-header {
        gap: 0.75rem;
    }

    #referencesView .ref-country-text h3 {
        font-size: 1.3rem;
    }

    #referencesView .ref-country-text p {
        font-size: 0.9rem;
    }

    #referencesView .ref-hitem {
        flex: 0 0 80vw;
    }

    #aboutView > .container,
    #sssView > .container,
    #contactView > .container,
    #policyView > .container,
    #termsView > .container {
        padding: 3.2rem 0 !important;
    }

    #aboutView .content-card,
    #sssView .content-card,
    #policyView .content-card,
    #termsView .content-card {
        padding: 1.35rem;
    }

    #aboutView .view-title,
    #sssView .view-title,
    #contactView .view-title,
    #policyView .view-title,
    #termsView .view-title {
        font-size: clamp(1.35rem, 6vw, 1.85rem);
        padding-left: 0.85rem;
        margin-bottom: 1.2rem;
    }

    #aboutView .rich-text p,
    #sssView .rich-text p,
    #policyView .rich-text p,
    #termsView .rich-text p {
        font-size: 0.98rem;
        line-height: 1.7;
    }

    #aboutView .timeline {
        margin-top: 2rem;
        padding: 1rem 0;
    }

    #aboutView .timeline-content {
        padding: 1.1rem;
    }

    #contactView .contact-card-premium {
        max-width: 100%;
    }

    #contactView .contact-visual,
    #contactView .contact-form-premium {
        padding: 1.25rem;
    }

    #contactView .contact-items {
        margin: 1.3rem 0;
    }

    #contactView .c-item {
        font-size: 0.98rem;
        margin-bottom: 1rem;
    }

    #contactView .department-grid {
        margin-top: 1.8rem;
        gap: 1rem;
    }

    #contactView .dept-card {
        padding: 1.2rem;
    }

    #contactView .map-wrapper {
        height: 280px;
        margin-top: 1.8rem;
    }

    .footer {
        padding-top: 4rem;
    }

    .footer-grid {
        gap: 2rem;
        padding-bottom: 2.2rem;
    }

    .footer-desc {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .footer-bottom {
        padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 540px) {
    .nav-menu {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    #homeView .hero-section {
        min-height: 72svh;
    }

    #homeView .hero-slide {
        padding-bottom: 3.8rem;
    }

    #homeView .featured-category-banner {
        padding: 1.1rem;
        gap: 0.95rem;
    }

    #homeView .featured-category-media {
        height: 148px;
    }

    #homeView .featured-category-banner h3 {
        font-size: 1.28rem;
    }

    #homeView .category-slider-shell {
        padding: 0 1.8rem;
    }

    #homeView .category-arrow {
        width: 31px;
        height: 84px;
    }

    #homeView .cat-card-home {
        flex: 0 0 280px !important;
        max-width: 280px !important;
        padding: 1.5rem !important;
    }

    #homeView .cat-card-home.cat-card-featured {
        flex: 0 0 320px !important;
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    #homeView .three-d-upper-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.desktop-hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .desktop-hidden {
        display: flex !important;
    }
}


