/* ==========================================================================
   CMX GROUP - MODERN "QUIET LUXURY" / ELITE MINIMALIST DESIGN SYSTEM
   ========================================================================== */

:root {
    /* Color Palette - White, Navy Blue (Lacivert), and Beige */
    --color-bg-primary: #ffffff;           /* Clean white background */
    --color-bg-secondary: #faf9f5;         /* Soft warm ivory / light beige */
    --color-bg-tertiary: #f3eee3;          /* Warm beige/sand accent background */
    --color-bg-dark: #051329;              /* Midnight navy contrast block */
    --color-bg-dark-accent: #0a1f3d;       /* Lighter midnight navy */
    
    --color-accent: #0a2540;               /* Elite Navy Blue / Lacivert */
    --color-accent-hover: #051329;         /* Darker navy */
    --color-accent-light: rgba(10, 37, 64, 0.08);
    --color-gold: #d5ae82;                 /* Warm luxury gold accent */
    
    --color-text-primary: #051329;          /* Elite Navy Blue text for headings */
    --color-text-muted: #4a5568;            /* Charcoal body text */
    --color-text-light: #718096;            /* Slate grey */
    --color-text-white: #ffffff;
    
    --color-anthracite: #262626;           /* Premium anthracite gray */
    --color-anthracite-hover: #4b5563;     /* Lighter gray for anthracite hover */
    
    --color-border: #ebdcd0;                /* Soft beige border */
    --color-border-light: rgba(10, 37, 64, 0.12);
    --color-border-dark: rgba(255, 255, 255, 0.08);
    
    --color-success: #22c55e;               /* Soft WhatsApp Green */
    --color-success-hover: #16a34a;
    
    /* Typography */
    --font-headings: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout Constants */
    --navbar-height: 96px;
    --navbar-height-scrolled: 76px;
    --border-radius-sm: 2px;               /* Clean sharp corners */
    --border-radius-md: 4px;
    --border-radius-lg: 6px;
    --border-radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets & styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

/* Headings typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--color-text-primary);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul, ol {
    list-style: none;
}

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

/* Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Sections */
section {
    padding: 100px 0;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: var(--border-radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-hover);
}

/* ===== BUTTONS (Elite styling, sharp architectural edges) ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-gold {
    background-color: var(--color-accent);
    color: var(--color-text-white);
}

.btn-gold:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--color-text-primary);
    background-color: transparent;
    color: var(--color-text-primary);
}

.btn-outline:hover {
    background-color: var(--color-text-primary);
    color: var(--color-text-white);
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
}

.btn-dark:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
}

/* Section Header (Thin Serif Title) */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 28px; /* Reduced from 34px for clean premium look */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    color: var(--color-text-primary);
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* ===== HEADER & NAVBAR (Light theme, floating card / modern pill style) ===== */
#navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px); /* 20px margin on left/right for floating look */
    max-width: 1200px;
    height: 76px;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px; /* elegant rounded corners */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition-smooth);
}

#navbar.scrolled {
    top: 10px;
    height: 66px;
    background-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    filter: invert(1) brightness(0.1); /* Inverts white logo to dark charcoal for the light navbar */
    transition: var(--transition-smooth);
}

#navbar.scrolled .logo-img {
    height: 46px;
}


/* Navigation Links (Desktop) */
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 100%;
}

.nav-links > a, 
.nav-dropdown-toggle {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--color-anthracite);
    padding: 8px 0;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    display: inline-flex;
    align-items: center;
}

.nav-links > a:hover, 
.nav-links > a.active,
.dropdown:hover .nav-dropdown-toggle {
    color: var(--color-anthracite-hover);
}

/* Standard Nav CTA Button */
.nav-cta {
    background-color: var(--color-anthracite) !important;
    color: var(--color-text-white) !important;
    padding: 10px 24px !important; /* Slightly wider for pill shape */
    border-radius: var(--border-radius-full) !important; /* Full rounded corners */
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase;
    transition: var(--transition-smooth) !important;
}

.nav-cta:hover {
    background-color: var(--color-anthracite-hover) !important;
    transform: translateY(-1px);
}

/* Language selector */
.lang-switch {
    display: flex;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-full);
    padding: 2px;
    background-color: rgba(0, 0, 0, 0.02);
}

.lang-btn {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--border-radius-full);
    color: var(--color-text-muted);
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    background: none;
}

.lang-btn.active {
    background-color: var(--color-accent);
    color: var(--color-text-white);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Mobile Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    z-index: 1001;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: var(--transition-fast);
}

/* ===== DROPDOWN NAV MECHANICS (Desktop) ===== */
.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 3px solid currentColor;
    margin-left: 6px;
    vertical-align: middle;
    transition: var(--transition-fast);
}

.dropdown:hover .nav-dropdown-toggle::after {
    border-top-color: currentColor;
    transform: rotate(180deg);
}

/* Dropdown Menu Box */
.dropdown-menu {
    position: absolute;
    top: calc(100% - 5px); /* Adjusted top since floating card sits higher */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px; /* rounded corners matching floating card */
    padding: 12px 0;
    min-width: 240px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-smooth), transform var(--transition-smooth), visibility var(--transition-smooth);
    z-index: 1100;
    max-height: 380px;
    overflow-y: auto;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    color: var(--color-anthracite);
    font-weight: 500;
    text-align: left;
    transition: var(--transition-fast);
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

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

.dropdown-menu a:hover {
    background-color: rgba(0, 0, 0, 0.03);
    color: var(--color-anthracite-hover);
    padding-left: 24px;
}

/* Scrollable dropdown subclass (for long yacht-services) */
.scrollable-dropdown {
    max-height: 320px;
}
.scrollable-dropdown::-webkit-scrollbar {
    width: 4px;
}
.scrollable-dropdown::-webkit-scrollbar-thumb {
    background: var(--color-accent);
}

/* ===== 1. HERO SECTION (Full Yacht Visual overlay) ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-dark);
    background-image: url('assets/cmx-com-tr-header-4.jpg'); /* New custom hero background */
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Rich darken overlay to ensure white serif text readability */
/* Rich darken overlay removed as requested */
.hero::before {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    margin: 0 auto;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--color-gold);
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.2s;
}

.hero-content h1 {
    font-size: 40px; /* Reduced from 46px for compact luxury feel */
    color: var(--color-text-white);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.4s;
}

/* Overlay script script font visual for "Seaferer / CMX" */
.hero-script-overlay {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 36px;
    color: var(--color-gold);
    text-transform: none;
    letter-spacing: 0;
    display: block;
    margin-top: 10px;
    font-weight: 300;
}

.hero-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 650px;
    margin: 0 auto 40px auto;
    font-weight: 300;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.6s;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.8s;
}

.hero-btns .btn-gold {
    background-color: var(--color-accent);
    color: var(--color-text-white);
    border-color: var(--color-accent);
}
.hero-btns .btn-gold:hover {
    background-color: transparent;
    color: var(--color-text-white);
    border-color: var(--color-text-white);
}

.hero-btns .btn-outline {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--color-text-white);
}
.hero-btns .btn-outline:hover {
    border-color: var(--color-text-white);
    background-color: var(--color-text-white);
    color: var(--color-text-primary);
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    cursor: pointer;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-full);
    position: relative;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--color-gold);
    border-radius: var(--border-radius-full);
    animation: scrollDot 2s infinite;
}

@keyframes scrollDot {
    0% { top: 8px; opacity: 1; }
    50% { top: 20px; opacity: 0.3; }
    100% { top: 8px; opacity: 1; }
}

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

/* ===== 2. FAST SALES / PROMO BANNER (SATILIKTEKNE.COM) ===== */
.promo-banner {
    background-color: var(--color-bg-primary);
    padding: 60px 0;
}

.promo-wrapper {
    background: linear-gradient(135deg, #051d3b 0%, #0a2540 100%),
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%230e355c' fill-opacity='0.35' d='M0,224L48,208C96,192,192,160,288,144C384,128,480,128,576,149.3C672,171,768,213,864,229.3C960,245,1056,235,1152,208C1248,181,1344,139,1392,117.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(213, 174, 130, 0.25);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 40px 60px;
    gap: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(5, 29, 59, 0.15);
}

.promo-logo-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.promo-logo {
    height: 38px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.95));
}

.promo-logo-area .badge {
    align-self: flex-start;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-gold);
    text-transform: uppercase;
}

.promo-text-area {
    z-index: 2;
}

.promo-text-area h2 {
    font-size: 26px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-white);
    margin-bottom: 8px;
}

.promo-text-area p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14.5px;
    line-height: 1.6;
}

.promo-action-area {
    z-index: 2;
}

.promo-action-area .btn {
    background-color: var(--color-gold);
    color: var(--color-text-primary);
    border: 1px solid var(--color-gold);
}

.promo-action-area .btn:hover {
    background-color: transparent;
    color: var(--color-text-white);
    border-color: var(--color-text-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(213, 174, 130, 0.3);
}

/* ===== 3. SUB-BRANDS (MARKALARIMIZ) SECTION ===== */
.brands {
    background-color: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.brand-card {
    background: linear-gradient(135deg, #051d3b 0%, #0a2540 100%),
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%230e355c' fill-opacity='0.25' d='M0,224L48,208C96,192,192,160,288,144C384,128,480,128,576,149.3C672,171,768,213,864,229.3C960,245,1056,235,1152,208C1248,181,1344,139,1392,117.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(213, 174, 130, 0.2);
    padding: 50px 40px;
    text-align: center;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    flex: 1 1 calc(33.333% - 27px);
    max-width: calc(33.333% - 27px);
    min-width: 320px;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(5, 29, 59, 0.25);
    border-color: var(--color-gold);
}

.brand-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-gold);
    text-transform: uppercase;
    margin-bottom: 24px;
    z-index: 2;
}

.brand-logo-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
    z-index: 2;
}

.brand-img-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: var(--transition-fast);
}

.brand-card h3 {
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-white);
    margin-top: 5px;
    z-index: 2;
}

.brand-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
    z-index: 2;
}

.brand-link {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
    transition: var(--transition-fast);
}

.brand-link::after {
    content: '→';
    transition: var(--transition-fast);
}

.brand-card:hover .brand-link::after {
    transform: translateX(4px);
}

/* ===== 4. SERVICES INTERACTIVE TABS (HİZMETLERİMİZ) ===== */
.services {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    background-color: var(--color-bg-secondary);
}

.services.lazy-bg {
    background-image: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)), url('assets/cmx-banner-.jpg');
}

.tabs-nav {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 50px;
    gap: 40px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 10px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-light);
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.5;
}

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

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transition: var(--transition-fast);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.tab-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.services-grid-inside {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-item-card {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    padding: 40px 30px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.service-item-card:hover {
    border-color: var(--color-accent);
    background-color: var(--color-bg-primary);
    transform: translateY(-3px);
}

.service-item-card h4 {
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.service-item-card p {
    font-size: 13.5px;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-item-card .btn-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
}

.service-item-card .btn-text::after {
    content: '→';
    transition: var(--transition-fast);
}

.service-item-card:hover .btn-text::after {
    transform: translateX(4px);
}

/* ===== 5. STATS SECTION (Big serif numbers inline) ===== */
.stats {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
    padding: 100px 0;
    background-color: var(--color-bg-dark);
}

.stats.lazy-bg {
    background-image: linear-gradient(rgba(5, 29, 59, 0.85), rgba(5, 29, 59, 0.85)), url('assets/stats-bg.jpg');
}

.stats-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.stat-item {
    text-align: center;
    flex: 1;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    height: 50px;
    width: 1px;
    background-color: rgba(213, 174, 130, 0.25); /* Subtle gold separator */
}

.stat-item:last-child::after {
    display: none;
}

.stat-num {
    font-family: var(--font-headings);
    font-size: 76px;
    font-weight: 800; /* Extra bold */
    color: var(--color-text-white); /* White text */
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Soft shadow for contrast */
}

.stat-lbl,
.stat-label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700; /* Bold label */
    color: var(--color-gold); /* Gold label matching the site theme */
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* ===== 6. ABOUT SUMMARY SECTION ===== */
.about {
    background-color: var(--color-bg-primary);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    padding-right: 20px;
}

.about-text .section-tag {
    margin-bottom: 12px;
}

.about-text h2 {
    font-size: 28px; /* Reduced from 34px to match section headers */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.about-text p {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
}

.about-image {
    position: relative;
    height: 450px;
}

.about-img-box {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
    padding: 24px 30px;
    border-left: 3px solid var(--color-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.about-badge .badge-years {
    font-family: var(--font-headings);
    font-size: 38px;
    font-weight: 400;
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: 4px;
}

.about-badge .badge-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 32px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 15px;
    color: var(--color-text-primary);
}

.value-item strong {
    font-family: var(--font-headings);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-gold);
    min-width: 95px;
    display: inline-block;
}

/* ===== 7. TESTIMONIALS / PEOPLE ABOUT US (Midnight Navy Block) ===== */
.testimonials {
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
    padding: 100px 0;
    overflow: hidden;
    position: relative;
}

/* Subtle vector contour lines overlay */
.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--color-border-dark) 1px, transparent 1px),
                      radial-gradient(var(--color-border-dark) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.4;
    z-index: 1;
}

.testimonials .container {
    position: relative;
    z-index: 2;
}

.testimonials .section-header h2 {
    color: var(--color-text-white);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-quote {
    font-family: var(--font-headings);
    font-size: 28px;
    font-style: italic;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
}

.testimonial-author {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
}

.testimonial-author span {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    margin-left: 10px;
    text-transform: none;
    letter-spacing: 0;
}

/* ===== 8. CONTACT FORM & INFO SECTION ===== */
.contact {
    background-color: var(--color-bg-secondary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h3 {
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
}

.contact-intro {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon-box {
    width: 48px;
    height: 48px;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-accent);
}

.contact-icon-box svg {
    width: 20px;
    height: 20px;
}

.contact-detail h4 {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 5px;
}

.contact-detail p, 
.contact-detail a {
    font-size: 14.5px;
    color: var(--color-text-primary);
    line-height: 1.5;
}

.contact-detail a:hover {
    color: var(--color-accent);
}

/* Form Styling (White paper on cream) */
.contact-form {
    background: linear-gradient(135deg, #051d3b 0%, #0a2540 100%),
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%230e355c' fill-opacity='0.25' d='M0,224L48,208C96,192,192,160,288,144C384,128,480,128,576,149.3C672,171,768,213,864,229.3C960,245,1056,235,1152,208C1248,181,1344,139,1392,117.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(213, 174, 130, 0.2);
    padding: 50px 45px;
    border-radius: var(--border-radius-sm);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

/* Style form elements directly (since HTML elements lack form-control class) */
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.05); /* Dark translucent background */
    border: 1px solid rgba(213, 174, 130, 0.2); /* Subtle gold border */
    color: var(--color-text-white); /* White text */
    font-family: var(--font-body);
    font-size: 13.5px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    background-color: rgba(255, 255, 255, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4); /* Clean readable placeholders */
}

.contact-form select option {
    background-color: #051d3b; /* Dark bg for dropdown options */
    color: var(--color-text-white);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button[type="submit"] {
    width: 100%;
    margin-top: 10px;
    background-color: var(--color-bg-secondary); /* Cream background */
    color: var(--color-accent); /* Navy text */
    border: 1px solid var(--color-bg-secondary);
}

.contact-form button[type="submit"]:hover {
    background-color: var(--color-bg-tertiary); /* Darker cream hover */
    color: var(--color-accent-hover); /* Navy text hover */
    border-color: var(--color-bg-tertiary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

/* ===== SUBPAGE PROMO BANNER (SATILIKTEKNE.COM) ===== */
.subpage-promo-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: linear-gradient(135deg, #051d3b 0%, #0a2540 100%);
    border: 1px solid rgba(213, 174, 130, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
    color: var(--color-text-white);
}

.promo-content-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.promo-logo-inline {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.95));
}

.promo-text-inline h4 {
    font-size: 18px;
    color: var(--color-text-white) !important;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.promo-text-inline p {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.6;
    margin-bottom: 0 !important; /* overrides standard paragraph margin */
}

.subpage-promo-banner .btn-gold {
    background-color: var(--color-gold);
    color: var(--color-text-primary);
    border-color: var(--color-gold);
    white-space: nowrap;
    padding: 10px 20px;
    font-size: 11px;
}

.subpage-promo-banner .btn-gold:hover {
    background-color: transparent;
    color: var(--color-text-white);
    border-color: var(--color-text-white);
}

@media (max-width: 767px) {
    .subpage-promo-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 20px;
    }
    .promo-content-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .subpage-promo-banner .btn-gold {
        width: 100%;
        text-align: center;
    }

    /* Corporate Services Tabs Mobile Redesign */
    .tabs-nav {
        flex-direction: column;
        border-bottom: none;
        gap: 10px;
        margin-bottom: 30px;
        align-items: stretch;
    }
    .tab-btn {
        justify-content: center;
        padding: 12px 20px;
        font-size: 12px;
        letter-spacing: 0.1em;
        border: 1px solid var(--color-border);
        border-radius: var(--border-radius-md);
        background-color: rgba(255, 255, 255, 0.5);
    }
    .tab-btn::after {
        display: none;
    }
    .tab-btn.active {
        background-color: var(--color-accent);
        color: var(--color-text-white);
        border-color: var(--color-accent);
    }
    .tab-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* ===== SUBPAGE TEMPLATE SPECIFICS ===== */
.subpage #navbar {
    background-color: var(--color-bg-primary);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.subpage-hero {
    padding-top: calc(var(--navbar-height) + 90px);
    padding-bottom: 90px;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--color-text-white);
}

.subpage-hero .section-tag {
    color: var(--color-gold);
}

.subpage-hero .container {
    position: relative;
    z-index: 2;
}

.subpage-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.subpage-hero h1 {
    font-size: 48px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    color: var(--color-text-white) !important;
}

.subpage-lead {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 300;
}

.subpage-main {
    background-color: var(--color-bg-primary);
    padding: 80px 0;
}

.subpage-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.subpage-img-box {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border: 1px solid var(--color-border);
    margin-bottom: 40px;
}

.subpage-body-text {
    font-size: 15.5px;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.subpage-body-text h3 {
    font-size: 24px;
    color: var(--color-text-primary);
    margin-bottom: 24px;
}

.subpage-body-text p {
    margin-bottom: 20px;
}

.subpage-body-text ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.credentials-badge {
    margin-top: 40px;
    padding: 24px;
    background-color: var(--color-bg-secondary);
    border-left: 3px solid var(--color-accent);
    border-top: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 14px;
    color: var(--color-text-primary);
}

.credentials-badge svg {
    color: var(--color-accent);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.subpage-sidebar {
    position: sticky;
    top: 110px;
}

.cta-card {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    padding: 35px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.cta-card h4 {
    font-size: 20px;
    color: var(--color-text-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.cta-card p {
    font-size: 13.5px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-whatsapp-cta {
    border-color: var(--color-success);
    color: var(--color-success);
    background-color: transparent;
}

.btn-whatsapp-cta:hover {
    background-color: var(--color-success);
    color: white;
}

/* ===== FOOTER (Midnight Navy block matching screenshot) ===== */
.footer {
    background-color: var(--color-bg-dark);
    border-top: 1px solid var(--color-border-dark);
    padding: 80px 0 40px 0;
    color: var(--color-text-white);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 420px;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 75px;
    width: auto;
    object-fit: contain;
}

.footer-logo-row .logo-brand {
    color: var(--color-text-white);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.7;
}

.footer-links-group h5 {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 24px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-links-group ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-group a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: var(--transition-fast);
}

.footer-links-group a:hover {
    color: var(--color-text-white);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--color-border-dark);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-credentials span {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 12px;
    margin-left: 12px;
}

.footer-credentials span:first-child {
    border: none;
    padding: 0;
    margin: 0;
}

/* ===== FLOATING WHATSAPP BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--color-success);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
    z-index: 999;
    color: white;
    transition: var(--transition-smooth);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-4px);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ===== CMX AI CHATBOT WIDGET ===== */
.chat-widget {
    position: fixed;
    bottom: 105px; /* Stacks directly above WhatsApp button */
    right: 30px;
    z-index: 1000;
    font-family: var(--font-body);
}

/* Floating Bubble */
.chat-bubble {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #051d3b 0%, #0a2540 100%);
    border: 1px solid rgba(213, 174, 130, 0.3);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(5, 29, 59, 0.3);
    transition: var(--transition-smooth);
    position: relative;
}

.chat-bubble:hover {
    transform: scale(1.1) translateY(-4px);
    border-color: var(--color-gold);
    color: white;
}

.chat-bubble svg {
    width: 26px;
    height: 26px;
}

.chat-bubble-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.bubble-notification {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #051d3b;
    animation: bounce 2s infinite;
}

/* Chat Window */
.chat-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 380px;
    height: 520px;
    background-color: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
}

.chat-widget.active .chat-window {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Header */
.chat-header {
    background: linear-gradient(135deg, #051d3b 0%, #0a2540 100%);
    border-bottom: 1px solid rgba(213, 174, 130, 0.2);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.chat-bot-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-bot-avatar {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-bot-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.chat-bot-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    color: white;
}

.chat-status {
    font-size: 10px;
    color: var(--color-gold);
    display: block;
}

.chat-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chat-close-btn:hover {
    color: white;
}

/* Messages Area */
.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #f8fafc;
}

.chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.chat-msg.bot {
    align-self: flex-start;
}

.chat-msg.user {
    align-self: flex-end;
}

.msg-bubble {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.5;
}

.chat-msg.bot .msg-bubble {
    background-color: white;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
    border-top-left-radius: 2px;
}

.chat-msg.user .msg-bubble {
    background-color: #0ea5e9;
    color: white;
    border-top-right-radius: 2px;
}

.chat-link {
    color: var(--color-gold);
    font-weight: 600;
    text-decoration: underline;
}

.chat-msg.user .chat-link {
    color: white;
}

/* Suggestions Tags */
.chat-suggestions {
    padding: 10px 15px;
    background-color: white;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestion-btn {
    background-color: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--border-radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
}

.suggestion-btn:hover {
    border-color: var(--color-gold);
    background-color: var(--color-bg-secondary);
    color: var(--color-accent);
}

/* Input Area */
.chat-input-area {
    padding: 12px 15px;
    background-color: white;
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input-area input {
    flex-grow: 1;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-full);
    padding: 10px 16px;
    font-size: 13px;
    outline: none;
    transition: var(--transition-fast);
}

.chat-input-area input:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 2px rgba(213, 174, 130, 0.1);
}

.chat-input-area button {
    background: linear-gradient(135deg, #051d3b 0%, #0a2540 100%);
    border: 1px solid rgba(213, 174, 130, 0.2);
    color: var(--color-gold);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chat-input-area button:hover {
    color: white;
    border-color: var(--color-gold);
    transform: scale(1.05);
}

.chat-input-area button svg {
    width: 16px;
    height: 16px;
    margin-left: 2px;
}

/* Typing Indicator Animation */
.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 4px 8px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background-color: #94a3b8;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transition-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -6px, 0);
    }
    70% {
        transition-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -3px, 0);
    }
    90% {
        transform: translate3d(0,-1px,0);
    }
}

/* Chat Mobile Media Queries */
@media (max-width: 575px) {
    .chat-window {
        position: fixed;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        border: none;
        z-index: 1002;
    }
    .chat-widget {
        bottom: 95px;
        right: 20px;
    }
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */

/* Desktop scale-down */
@media (max-width: 1199px) {
    .promo-wrapper {
        gap: 25px;
        padding: 35px;
    }
    .about-wrapper {
        gap: 40px;
    }
    .nav-links {
        gap: 16px;
    }
}

/* Tablet / Desktop Breakpoint */
@media (max-width: 991px) {
    #navbar {
        top: 10px;
        width: calc(100% - 20px); /* 10px margin on each side on tablets/mobiles */
        height: 66px;
    }

    #navbar.scrolled {
        top: 10px;
        height: 66px;
    }

    .nav-container {
        padding: 0 16px;
    }

    .nav-right {
        gap: 12px;
    }

    .logo-img, 
    #navbar.scrolled .logo-img {
        height: 44px; /* snug logo size on mobile */
    }

    section {
        padding: 80px 0;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    /* Mobile Drawer */
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-links.mobile-active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 290px;
        height: 100vh;
        background-color: #020817; /* Dark navy background */
        padding: 95px 30px 40px 30px;
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.5);
        z-index: 2500;
        gap: 16px;
        border-left: 1px solid rgba(213, 174, 130, 0.2); /* Gold border */
        overflow-y: auto;
    }
    
    .nav-links.mobile-active a, 
    .nav-links.mobile-active .nav-dropdown-toggle {
        font-size: 15px;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        color: var(--color-text-white) !important;
        font-family: var(--font-headings);
    }

    .nav-links.mobile-active a:hover, 
    .nav-links.mobile-active .nav-dropdown-toggle:hover {
        color: var(--color-gold) !important;
    }
    
    .nav-links.mobile-active .nav-dropdown-toggle::after {
        border-top-width: 5px;
        border-left-width: 4px;
        border-right-width: 4px;
        margin-top: 0;
        transform: none !important;
        transition: transform 0.3s ease;
    }

    /* Accordion Dropdowns on Mobile */
    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        height: auto !important;
        position: relative;
    }

    .dropdown-menu {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none; /* Toggled by JS */
        background-color: #0b1329 !important; /* Slightly lighter navy */
        border: none !important;
        border-left: 2px solid var(--color-gold) !important; /* Gold side border */
        padding: 8px 0 8px 16px !important;
        margin: 5px 0 10px 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        box-shadow: none !important;
        max-height: none !important;
        overflow: visible !important;
        flex-direction: column;
    }
    
    .dropdown.mobile-open .dropdown-menu {
        display: flex !important;
    }
    
    .dropdown.mobile-open .nav-dropdown-toggle::after {
        transform: rotate(180deg) !important;
        color: var(--color-gold);
    }

    .dropdown-menu a {
        display: block !important;
        width: 100% !important;
        padding: 8px 0 !important;
        font-size: 13.5px !important;
        color: rgba(255, 255, 255, 0.7) !important;
        border-bottom: none !important;
        transition: var(--transition-fast);
        font-family: var(--font-body);
    }

    .dropdown-menu a:hover {
        color: var(--color-gold) !important;
        padding-left: 5px !important;
        background-color: transparent !important;
    }

    /* Subpage Content Squeeze Fixes on Mobile */
    .subpage-content-wrapper {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    .credentials-badge {
        width: 100% !important;
        margin-top: 30px !important;
        box-sizing: border-box !important;
    }
    
    .subpage-sidebar {
        position: static !important;
        margin-top: 20px !important;
    }

    .hamburger.open span {
        background-color: var(--color-text-white) !important;
    }
    
    .hamburger.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    /* Hero section font sizing */
    .hero-content h1 {
        font-size: 46px;
    }
    
    /* Promo Banner Wrap */
    .promo-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px;
        gap: 24px;
    }
    .promo-logo-area {
        align-items: center;
    }
    .promo-action-area {
        justify-content: center;
        width: 100%;
    }
    .promo-action-area .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .brands-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .brand-card {
        padding: 40px 30px;
    }
    
    .services-grid-inside {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .stat-item::after {
        display: none;
    }
    
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-image {
        height: 350px;
    }
    .about-badge {
        bottom: -15px;
        left: 15px;
        right: 15px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Mobile Screen */
@media (max-width: 575px) {
    section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    .hero-content h1 {
        font-size: 34px;
    }
    .subpage-hero h1 {
        font-size: 32px;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 12px;
    }
    .hero-btns .btn {
        width: 100%;
    }
    
    .stats-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .stat-num {
        font-size: 54px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .footer-credentials span {
        display: block;
        border: none;
        padding: 0;
        margin: 8px 0 0 0;
    }
}

/* ===== ADDITIONAL REDESIGN OVERRIDES ===== */

/* Brands Section Details */
.brand-logo-display {
    height: 90px; /* Sıkı ve kareye yakın kutu boyutu */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    z-index: 2;
}

.brand-badge {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-gold) !important;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.brand-img-logo {
    height: auto !important; /* Base height: 50px kuralını geçersiz kılar */
    max-height: 85px; /* Kutuyu değiştirmeden logoyu olabildiğince kocaman yapar */
    max-width: 95%; /* Maksimum genişlik kullanımına izin verir */
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1) !important; /* Pure white directly by default */
    transition: transform var(--transition-smooth);
}

.brand-img-logo.colored {
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.95)) !important; /* Original color + white shadow */
}

.brand-card:hover .brand-img-logo {
    transform: scale(1.08); /* Zoom effect on hover */
}

/* Services Tabs Section Mismatch Fix */
.service-box {
    background: linear-gradient(135deg, #051d3b 0%, #0a2540 100%),
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%230e355c' fill-opacity='0.25' d='M0,224L48,208C96,192,192,160,288,144C384,128,480,128,576,149.3C672,171,768,213,864,229.3C960,245,1056,235,1152,208C1248,181,1344,139,1392,117.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(213, 174, 130, 0.2);
    padding: 45px 35px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius-sm);
    position: relative;
    overflow: hidden;
}

.service-box:hover {
    border-color: var(--color-gold);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(5, 29, 59, 0.25);
}

.service-box h4 {
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    color: var(--color-text-white);
    z-index: 2;
}

.service-box p {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    flex-grow: 1;
    z-index: 2;
}

/* Contact Details Mismatch Fix (Huge SVGs Fix) */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: linear-gradient(135deg, #051d3b 0%, #0a2540 100%),
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%230e355c' fill-opacity='0.25' d='M0,224L48,208C96,192,192,160,288,144C384,128,480,128,576,149.3C672,171,768,213,864,229.3C960,245,1056,235,1152,208C1248,181,1344,139,1392,117.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(213, 174, 130, 0.2);
    padding: 24px;
    transition: var(--transition-smooth);
    border-radius: var(--border-radius-sm);
}

.info-card:hover {
    border-color: var(--color-gold);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(5, 29, 59, 0.35);
}

.info-icon {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(213, 174, 130, 0.3);
    background-color: var(--color-bg-secondary); /* Cream background instead of white! */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-accent);
    border-radius: var(--border-radius-sm);
}

.info-icon svg {
    width: 20px;
    height: 20px;
    color: var(--color-accent) !important;
}

.info-text h4 {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 6px;
}

.info-text p, 
.info-text a {
    font-size: 14px;
    color: var(--color-text-white);
    font-weight: 500;
    line-height: 1.6;
}

.info-text a:hover {
    color: var(--color-gold);
}/* ===== LEGAL MODAL POPUP ===== */
.legal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 8, 23, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 3000;
    padding: 20px;
}

.legal-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.legal-modal-content {
    background-color: var(--color-bg-dark);
    border: 1px solid var(--color-gold);
    border-radius: 4px;
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    padding: 40px 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
}

.legal-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.legal-modal-close:hover {
    color: var(--color-gold);
}

.legal-modal-body {
    color: var(--color-text-muted);
    line-height: 1.7;
    font-size: 15px;
}

.legal-modal-body h3 {
    color: var(--color-gold);
    margin-bottom: 25px;
    font-family: var(--font-headings);
    font-size: 22px;
    border-bottom: 1px solid var(--color-border-dark);
    padding-bottom: 15px;
}

.legal-modal-body h4 {
    color: var(--color-text-white);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 16px;
}

.legal-modal-body p {
    margin-bottom: 15px;
}

.legal-modal-body ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.legal-modal-body li {
    margin-bottom: 5px;
    list-style: disc;
}
