/* ========================================
   ALACA Defense - Corporate Stylesheet
   Professional Defense Industry Design System
   ======================================== */

/* ========================================
   1. CSS VARIABLES - Corporate Color Palette
   ======================================== */
:root {
    /* Primary Colors - Professional Navy & Steel Blue */
    --primary-bg: #0F1419;              /* Dark navy - main background */
    --secondary-bg: #1A2332;            /* Mid navy - cards & sections */
    --accent-primary: #2E5C8A;          /* Steel blue - primary accent */
    --accent-secondary: #3D5A80;        /* Dark steel blue - secondary accent */

    /* Text Colors */
    --text-primary: #E8EAED;            /* Light gray - primary text */
    --text-secondary: #9BA3AF;          /* Mid gray - secondary text */
    --text-muted: #6B7280;              /* Muted gray - tertiary text */

    /* Border & Effects */
    --border-color: rgba(62, 92, 130, 0.2);     /* Subtle blue border */
    --border-color-light: rgba(62, 92, 130, 0.3); /* Lighter border for hover */
    --glass-bg: rgba(26, 35, 50, 0.6);          /* Glassmorphism background */
    --glass-bg-hover: rgba(26, 35, 50, 0.8);    /* Glassmorphism hover */

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);

    /* Responsive viewport height */
    --vh: 1vh;
}

/* ========================================
   2. BASE STYLES - Reset & Global
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--primary-bg);
    color: var(--text-primary);
}

body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    overflow: visible !important;
}

/* Remove global transition - apply only where needed */
button, a, .transition {
    transition: all 0.3s ease;
}

/* ========================================
   3. TYPOGRAPHY - Consistent Hierarchy
   ======================================== */
/* H1: 48-60px - Page Titles */
h1 {
    font-size: 3rem;
    line-height: 1.2;
}

/* H2: 30-36px - Section Titles */
h2 {
    font-size: 1.875rem;
    line-height: 1.3;
}

/* H3: 20-24px - Subsection Titles */
h3 {
    font-size: 1.25rem;
    line-height: 1.4;
}

/* Body: 16px - Paragraphs */
p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Small: 14px - Auxiliary Text */
small, .text-sm {
    font-size: 0.875rem;
    line-height: 1.5;
}

@media (min-width: 768px) {
    h1 { font-size: 3.75rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.5rem; }
}

/* ========================================
   4. COMPONENTS - Cards, Buttons, Forms
   ======================================== */

/* Glass Morphism Cards */
.glass-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border-radius: 0.75rem;
}

.glass-card:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(46, 92, 138, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}

/* Spec rows - prevent overlap with long translations (e.g. German) */
.glass-card .space-y-4 > .flex {
    gap: 1rem;
}

.glass-card .space-y-4 > .flex > span:last-child {
    flex-shrink: 0;
    text-align: right;
}

/* Glass Morphism Effect */
.glass {
    background: rgba(26, 35, 50, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

/* Button Styles - Corporate */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 92, 138, 0.4);
}

/* Icon Circle - Minimal Corporate Style */
.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(46, 92, 138, 0.2), rgba(61, 90, 128, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.icon-circle:hover {
    border-color: var(--border-color-light);
    box-shadow: 0 0 20px rgba(46, 92, 138, 0.3);
    transform: scale(1.05);
}

/* ========================================
   5. UTILITIES - Helper Classes
   ======================================== */

/* Hover Lift - Minimal */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-6px);
}

/* Hover Scale - Subtle */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.03);
}

/* Text Gradient - Static Corporate Blue */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   6. ANIMATIONS - Minimal & Professional
   ======================================== */

/* Fade In - Subtle Page Load */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Slide In Animations */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInFromLeft 0.6s ease-out;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInFromRight 0.6s ease-out;
}

/* Page Transition */
.page-transition {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu Slide Down */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   7. NAVBAR - Professional Header
   ======================================== */
.navbar-scrolled {
    backdrop-filter: blur(12px);
    background-color: rgba(15, 20, 25, 0.9);
    border-bottom: 1px solid var(--border-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    min-width: 200px;
    background-color: rgba(15, 20, 25, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-content.dropdown-right {
    left: auto;
    right: 0;
}

.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
    display: block;
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: rgba(46, 92, 138, 0.2);
    color: var(--accent-primary);
    padding-left: 24px;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i,
.dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu */
#mobileMenu {
    box-shadow: var(--shadow-lg);
}

#mobileMenu a,
#mobileMenu li,
#mobileMenu div {
    -webkit-tap-highlight-color: transparent;
}

#mobileMenu a:focus,
#mobileMenu a:active {
    outline: none;
    color: inherit;
}

#mobileMenu.block {
    display: block !important;
    animation: slideDown 0.3s ease-out;
}

/* Mobile Dropdown */
.mobile-dropdown-content {
    display: none;
    background-color: rgba(26, 35, 50, 0.5);
    padding-left: 20px;
}

.mobile-dropdown-content.show {
    display: block;
}

.mobile-dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.mobile-dropdown-content a:hover {
    color: var(--accent-primary);
    background-color: rgba(46, 92, 138, 0.1);
}

/* Language Switcher */
.lang-btn {
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: transparent;
    color: var(--text-primary);
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

/* Mobile dropdown language buttons - override active/focus blue */
#mobileLangDropdown .lang-btn {
    border: none;
    background: none !important;
    color: var(--text-secondary) !important;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

#mobileLangDropdown .lang-btn:focus,
#mobileLangDropdown .lang-btn:active,
#mobileLangDropdown .lang-btn:visited {
    background: none !important;
    color: var(--text-secondary) !important;
    outline: none;
}

#mobileLangDropdown .lang-btn.active {
    color: white !important;
    background: none !important;
    font-weight: bold;
}

.mobile-dropdown-content a {
    -webkit-tap-highlight-color: transparent;
}

.mobile-dropdown-content a:focus,
.mobile-dropdown-content a:active,
.mobile-dropdown-content a:visited {
    outline: none;
    color: var(--text-secondary);
    background: none;
}

.lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: var(--accent-primary);
    color: white;
}

.lang-btn.active:hover {
    transform: scale(1.05);
    color: white;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

/* ========================================
   8. SWIPER CAROUSEL - Product Galleries
   ======================================== */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero Swiper */
.heroSwiper .swiper-pagination {
    margin-top: 20px;
    position: relative;
    bottom: auto;
}

.heroSwiper .swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
}

.heroSwiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--accent-primary);
}

.heroSwiper .swiper-button-next,
.heroSwiper .swiper-button-prev {
    color: white;
    background-color: rgba(26, 35, 50, 0.7);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.heroSwiper .swiper-button-next:hover,
.heroSwiper .swiper-button-prev:hover {
    background-color: var(--accent-primary);
}

.heroSwiper .swiper-button-next::after,
.heroSwiper .swiper-button-prev::after {
    display: none;
}

.heroSwiper .swiper-button-next i,
.heroSwiper .swiper-button-prev i {
    font-size: 16px;
}

/* Bullet Swiper */
.bulletSwiper {
    padding: 40px 0;
}

.bulletSwiper .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

.bulletSwiper .swiper-slide > div {
    width: 100%;
}

.bulletSwiper .swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
}

.bulletSwiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--accent-primary);
}

.bulletSwiper .swiper-button-next,
.bulletSwiper .swiper-button-prev {
    color: white;
    background-color: rgba(26, 35, 50, 0.7);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.bulletSwiper .swiper-button-next:hover,
.bulletSwiper .swiper-button-prev:hover {
    background-color: var(--accent-primary);
}

.bulletSwiper .swiper-button-next::after,
.bulletSwiper .swiper-button-prev::after {
    font-size: 16px;
}

/* Product Swipers - VORTEX, YILDIRIM, TEMREN */
.vortexSwiper,
.yildirimSwiper,
.temrenSwiper {
    width: 100%;
    height: 500px;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: 0.75rem;
}

.vortexSwiper .swiper-slide,
.yildirimSwiper .swiper-slide,
.temrenSwiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.vortexSwiper .swiper-slide img,
.yildirimSwiper .swiper-slide img,
.temrenSwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.vortexSwiper .swiper-slide-active img,
.yildirimSwiper .swiper-slide-active img,
.temrenSwiper .swiper-slide-active img {
    transform: scale(1.02);
}

.vortexSwiper .swiper-button-next,
.vortexSwiper .swiper-button-prev,
.yildirimSwiper .swiper-button-next,
.yildirimSwiper .swiper-button-prev,
.temrenSwiper .swiper-button-next,
.temrenSwiper .swiper-button-prev {
    color: white;
    background: rgba(26, 35, 50, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.vortexSwiper .swiper-button-next:hover,
.vortexSwiper .swiper-button-prev:hover,
.yildirimSwiper .swiper-button-next:hover,
.yildirimSwiper .swiper-button-prev:hover,
.temrenSwiper .swiper-button-next:hover,
.temrenSwiper .swiper-button-prev:hover {
    background: var(--accent-primary);
    transform: scale(1.05);
}

.vortexSwiper .swiper-pagination-bullet,
.yildirimSwiper .swiper-pagination-bullet,
.temrenSwiper .swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
    width: 12px;
    height: 12px;
    transition: all 0.3s ease;
}

.vortexSwiper .swiper-pagination-bullet-active,
.yildirimSwiper .swiper-pagination-bullet-active,
.temrenSwiper .swiper-pagination-bullet-active {
    opacity: 1;
    width: 30px;
    border-radius: 6px;
    background: var(--accent-primary);
}

/* Product Page Swipers - Hide default ::after and show FontAwesome icons */
.vortexProductSwiper .swiper-button-next::after,
.vortexProductSwiper .swiper-button-prev::after,
.yildirimProductSwiper .swiper-button-next::after,
.yildirimProductSwiper .swiper-button-prev::after,
.temrenProductSwiper .swiper-button-next::after,
.temrenProductSwiper .swiper-button-prev::after,
.osdProductSwiper .swiper-button-next::after,
.osdProductSwiper .swiper-button-prev::after,
.apxProductSwiper .swiper-button-next::after,
.apxProductSwiper .swiper-button-prev::after {
    display: none;
}

.vortexProductSwiper .swiper-button-next,
.vortexProductSwiper .swiper-button-prev,
.yildirimProductSwiper .swiper-button-next,
.yildirimProductSwiper .swiper-button-prev,
.temrenProductSwiper .swiper-button-next,
.temrenProductSwiper .swiper-button-prev,
.osdProductSwiper .swiper-button-next,
.osdProductSwiper .swiper-button-prev,
.apxProductSwiper .swiper-button-next,
.apxProductSwiper .swiper-button-prev {
    color: var(--accent-primary);
    transition: color 0.3s ease;
}

.vortexProductSwiper .swiper-button-next:hover,
.vortexProductSwiper .swiper-button-prev:hover,
.yildirimProductSwiper .swiper-button-next:hover,
.yildirimProductSwiper .swiper-button-prev:hover,
.temrenProductSwiper .swiper-button-next:hover,
.temrenProductSwiper .swiper-button-prev:hover,
.osdProductSwiper .swiper-button-next:hover,
.osdProductSwiper .swiper-button-prev:hover,
.apxProductSwiper .swiper-button-next:hover,
.apxProductSwiper .swiper-button-prev:hover {
    color: white;
}

.vortexProductSwiper .swiper-button-next i,
.vortexProductSwiper .swiper-button-prev i,
.yildirimProductSwiper .swiper-button-next i,
.yildirimProductSwiper .swiper-button-prev i,
.temrenProductSwiper .swiper-button-next i,
.temrenProductSwiper .swiper-button-prev i,
.osdProductSwiper .swiper-button-next i,
.osdProductSwiper .swiper-button-prev i,
.apxProductSwiper .swiper-button-next i,
.apxProductSwiper .swiper-button-prev i {
    font-size: 32px;
}

/* ========================================
   9. THREE.JS 3D MODEL - Minimal Interaction
   ======================================== */
#threeCanvas {
    display: block;
    background: transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    position: relative;
    z-index: 10;
}

#threeCanvas:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.three-canvas-interactive {
    cursor: grab;
    transition: cursor 0.2s ease;
}

.three-canvas-interactive:active {
    cursor: grabbing;
}

.loading-3d {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: white;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.three-model-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(46, 92, 138, 0.1), rgba(61, 90, 128, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.three-model-container .absolute {
    z-index: 0;
}

.three-model-container .absolute span {
    color: rgba(232, 234, 237, 0.15);
    text-shadow: none;
    pointer-events: none;
}

.three-model-hint {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    opacity: 0.8;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.three-model-hint:hover {
    opacity: 1;
}

/* ========================================
   10. PRODUCT SECTIONS - APX, VORTEX, etc.
   ======================================== */
.apx-block {
    position: relative;
    overflow: hidden;
}

.apx-block-bg {
    position: relative;
    overflow: hidden;
}

.apx-block-bg > div:first-child {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.apx-block-bg:hover > div:first-child {
    opacity: 0.6;
    transform: scale(1.05);
}

.apx-block-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    border-radius: 0.75rem;
}

/* Highlight effect for featured products */
.apx-highlight {
    box-shadow: 0 0 20px rgba(46, 92, 138, 0.3);
}

/* ========================================
   11. CUSTOM SCROLLBAR - Corporate Style
   ======================================== */
/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--primary-bg);
    overflow-y: auto;
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* ========================================
   12. ACCESSIBILITY - Focus States
   ======================================== */
button:focus,
a:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* ========================================
   13. RESPONSIVE DESIGN - Mobile First
   ======================================== */
@media (max-width: 768px) {
    .heroSwiper .swiper-button-next,
    .heroSwiper .swiper-button-prev,
    .bulletSwiper .swiper-button-next,
    .bulletSwiper .swiper-button-prev {
        width: 30px;
        height: 30px;
    }

    .heroSwiper .swiper-button-next::after,
    .heroSwiper .swiper-button-prev::after,
    .bulletSwiper .swiper-button-next::after,
    .bulletSwiper .swiper-button-prev::after {
        font-size: 12px;
    }

    .vortexSwiper,
    .yildirimSwiper,
    .temrenSwiper {
        height: 350px;
    }

    .apx-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .apx-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .vortexSwiper,
    .yildirimSwiper,
    .temrenSwiper {
        height: 250px;
    }
}

/* Responsive text sizes */
@media (max-width: 640px) {
    .text-responsive {
        font-size: 1rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .text-responsive {
        font-size: 1.125rem;
    }
}

@media (min-width: 1025px) {
    .text-responsive {
        font-size: 1.25rem;
    }
}
