@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-color: #E8E2D8;
    --accent-color: #41644A;
    --accent-color-rgb: 65, 100, 74;
    --accent-color-hover: #314d38;
    --accent-color-light: #f0ede8;
    --text-dark: #2d2a26;
    --text-muted: #726b60;
    
    /* Neumorphism Shadows */
    /* Light source comes from top-left: light shadow top-left, dark shadow bottom-right */
    --nm-shadow-light: -8px -8px 16px rgba(255, 255, 255, 0.95);
    --nm-shadow-dark: 8px 8px 16px rgba(189, 178, 160, 0.7);
    
    --nm-shadow-light-sm: -4px -4px 8px rgba(255, 255, 255, 0.95);
    --nm-shadow-dark-sm: 4px 4px 8px rgba(189, 178, 160, 0.7);
    
    --nm-shadow-light-lg: -12px -12px 24px rgba(255, 255, 255, 0.95);
    --nm-shadow-dark-lg: 12px 12px 24px rgba(189, 178, 160, 0.7);

    /* Inset Shadows for Pressed/Concave states */
    --nm-inset-light: inset -8px -8px 16px rgba(255, 255, 255, 0.9);
    --nm-inset-dark: inset 8px 8px 16px rgba(189, 178, 160, 0.6);
    
    --nm-inset-light-sm: inset -4px -4px 8px rgba(255, 255, 255, 0.9);
    --nm-inset-dark-sm: inset 4px 4px 8px rgba(189, 178, 160, 0.6);

    /* Borders */
    --border-light: 1px solid rgba(255, 255, 255, 0.6);
    --border-dark: 1px solid rgba(189, 178, 160, 0.3);
    
    /* Layout & Styling */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 90px; /* Prevent fixed navbar from covering section headers on anchor navigation */
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: #d4cbbd;
    border-radius: var(--radius-full);
    border: 3px solid var(--bg-color);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Neumorphic Reusable Classes */
.nm-flat {
    background: var(--bg-color);
    box-shadow: var(--nm-shadow-light), var(--nm-shadow-dark);
    border: var(--border-light);
}

.nm-flat-sm {
    background: var(--bg-color);
    box-shadow: var(--nm-shadow-light-sm), var(--nm-shadow-dark-sm);
    border: var(--border-light);
}

.nm-flat-lg {
    background: var(--bg-color);
    box-shadow: var(--nm-shadow-light-lg), var(--nm-shadow-dark-lg);
    border: var(--border-light);
}

.nm-convex {
    background: linear-gradient(145deg, #f9f3e7, #d1cbbf);
    box-shadow: var(--nm-shadow-light), var(--nm-shadow-dark);
    border: var(--border-light);
}

.nm-concave {
    background: linear-gradient(145deg, #d1cbbf, #f9f3e7);
    box-shadow: var(--nm-shadow-light), var(--nm-shadow-dark);
    border: var(--border-light);
}

.nm-pressed {
    background: var(--bg-color);
    box-shadow: var(--nm-inset-light), var(--nm-inset-dark);
    border: var(--border-dark);
}

.nm-pressed-sm {
    background: var(--bg-color);
    box-shadow: var(--nm-inset-light-sm), var(--nm-inset-dark-sm);
    border: var(--border-dark);
}

/* Active Hover Raise State */
.nm-hover-raise {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.nm-hover-raise:hover {
    transform: translateY(-4px);
    box-shadow: var(--nm-shadow-light-lg), var(--nm-shadow-dark-lg);
}

/* Neumorphic Buttons */
.nm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    background: var(--bg-color);
    box-shadow: var(--nm-shadow-light-sm), var(--nm-shadow-dark-sm);
    border: var(--border-light);
    color: var(--text-dark);
    transition: all var(--transition-fast);
}

.nm-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--nm-shadow-light), var(--nm-shadow-dark);
}

.nm-btn:active, .nm-btn.active {
    transform: translateY(1px);
    box-shadow: var(--nm-inset-light-sm), var(--nm-inset-dark-sm);
}

/* Primary Highlight Button */
.nm-btn-primary {
    background: var(--accent-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    box-shadow: var(--nm-shadow-light-sm), var(--nm-shadow-dark-sm);
    transition: all var(--transition-fast);
}

.nm-btn-primary:hover {
    background: var(--accent-color-hover);
    transform: translateY(-2px);
    box-shadow: var(--nm-shadow-light), var(--nm-shadow-dark);
    color: #ffffff;
}

.nm-btn-primary:active {
    transform: translateY(1px);
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.3), inset -4px -4px 8px rgba(255, 255, 255, 0.1);
}

/* Neumorphic Forms */
.nm-input-group {
    margin-bottom: 20px;
    width: 100%;
}

.nm-input-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-muted);
    padding-left: 4px;
}

.nm-input {
    width: 100%;
    padding: 14px 20px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--bg-color);
    border-radius: var(--radius-md);
    border: var(--border-dark);
    box-shadow: var(--nm-inset-light-sm), var(--nm-inset-dark-sm);
    transition: all var(--transition-fast);
}

.nm-input:focus {
    box-shadow: var(--nm-inset-light), var(--nm-inset-dark);
    border-color: rgba(65, 100, 74, 0.5);
}

/* Select Dropdown styling */
select.nm-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2341644A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    padding-right: 48px;
    cursor: pointer;
}

/* Slider (Range) Styling */
.nm-range {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    background: var(--bg-color);
    border-radius: var(--radius-full);
    box-shadow: var(--nm-inset-light-sm), var(--nm-inset-dark-sm);
    outline: none;
    margin: 15px 0;
}

.nm-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-color);
    border: var(--border-light);
    box-shadow: var(--nm-shadow-light-sm), var(--nm-shadow-dark-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nm-range::-webkit-slider-thumb:hover {
    box-shadow: var(--nm-shadow-light), var(--nm-shadow-dark);
    transform: scale(1.1);
}

.nm-range::-webkit-slider-thumb:active {
    box-shadow: var(--nm-inset-light-sm), var(--nm-inset-dark-sm);
    background: var(--accent-color);
}

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

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    color: var(--accent-color);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Top Bar (Navbar) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-color);
    transition: all var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.0);
}

.navbar.scrolled {
    box-shadow: 0 10px 30px rgba(189, 178, 160, 0.25);
    border-bottom: var(--border-light);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap; /* Prevent logo text from wrapping */
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-dark) 30%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    white-space: nowrap; /* Prevent nav links from wrapping */
    flex-wrap: nowrap; /* Force single line layout */
}

.nav-item a {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
}

.nav-item a:hover {
    color: var(--accent-color);
}

.nav-item a.active {
    color: var(--accent-color);
    box-shadow: var(--nm-inset-light-sm), var(--nm-inset-dark-sm);
    border: var(--border-dark);
}

.nav-cta {
    margin-left: 16px;
}

/* Mobile Nav Menu Toggler */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 44px;
    height: 44px;
    padding: 13px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-dark);
    border-radius: var(--radius-full);
    transition: all var(--transition-smooth);
}

/* Hero Section */
.hero {
    padding-top: 110px;
    padding-bottom: 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 24px;
}

.hero-badge span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-color);
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 1; }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-title span {
    color: var(--accent-color);
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-card {
    padding: 16px;
    border-radius: var(--radius-md);
    text-align: center;
}

.stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* Hero Visual Graphic (Neumorphic) */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-circle-outer {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-circle-inner {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-brand-symbol {
    width: 180px;
    height: 180px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-brand-symbol i {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.hero-brand-symbol span {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    color: var(--text-dark);
}

/* Feature Badges floating on Hero */
.floating-badge {
    position: absolute;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 20;
    animation: float 4s ease-in-out infinite;
}

.floating-badge.fb-1 {
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.floating-badge.fb-2 {
    bottom: 15%;
    right: -5%;
    animation-delay: 2s;
}

.fb-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.fb-text h4 {
    font-size: 0.85rem;
    font-weight: 700;
}

.fb-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Why Us Section */
.why-us {
    padding: 100px 0;
}

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

.why-card {
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    transition: transform var(--transition-fast);
}

.why-card:hover {
    transform: translateY(-8px);
}

.why-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--accent-color);
    margin-bottom: 28px;
}

.why-card h3 {
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.why-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Sector Overview & Anchor Sections */
.sector-section {
    padding: 100px 0;
    border-top: var(--border-dark);
}

.sector-header-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.sector-intro-text h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.sector-intro-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.sector-illustration-box {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-lg);
    padding: 40px;
    min-height: 340px;
    position: relative;
    overflow: hidden;
}

/* Grid layout for Services & Products */
.cards-headline {
    font-size: 1.5rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cards-headline::before {
    content: '';
    display: block;
    width: 6px;
    height: 24px;
    background-color: var(--accent-color);
    border-radius: var(--radius-full);
}

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

.service-card {
    padding: 30px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 24px;
}

.service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-features-list {
    list-style: none;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px dashed rgba(189, 178, 160, 0.4);
}

.service-features-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.service-features-list li i {
    color: var(--accent-color);
    font-size: 0.75rem;
}

.service-card .learn-more {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
}

.service-card .learn-more:hover {
    gap: 10px;
}

/* Product Showcases Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px;
}

.product-image-box {
    border-radius: var(--radius-md);
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.product-card:hover .product-image-placeholder {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    color: #ffffff;
    background-color: var(--accent-color);
    box-shadow: 0 4px 10px rgba(65, 100, 74, 0.2);
}

.product-details {
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-details h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.product-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-grow: 1;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.spec-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

.product-card .nm-btn {
    width: 100%;
    font-size: 0.85rem;
    padding: 10px;
}

/* ==========================================================================
   SECTOR CUSTOM SCROLL ANIMATIONS & ILLUSTRATIONS (CSS + INLINE SVG)
   ========================================================================== */

/* 1. Otomatik Kapı / Kepenk Animasyonu */
.illustration-shutter {
    width: 100%;
    height: 100%;
    max-width: 280px;
    max-height: 180px;
    position: relative;
    will-change: transform;
}

.shutter-slats {
    transition: transform var(--transition-slow);
    transform-origin: top;
    transform: scaleY(1); /* Default state: Closed */
    will-change: transform;
}

/* Once animated */
.illustration-shutter.animate .shutter-slats {
    transform: scaleY(0.12); /* Roll up, reveal behind */
}

/* Blinking Beacon Siren Alarm */
.illustration-shutter.animate #shutter-siren {
    animation: blink-siren 0.5s infinite alternate;
}

@keyframes blink-siren {
    0% { fill: #e74c3c; filter: drop-shadow(0 0 1px #e74c3c); }
    100% { fill: #f1c40f; filter: drop-shadow(0 0 6px #f1c40f); }
}

/* Garage Car outline fading in */
.garage-car-outline {
    transition: opacity 1.2s ease-in-out;
    transition-delay: 0.4s;
    will-change: opacity;
}

.illustration-shutter.animate .garage-car-outline {
    opacity: 1;
}

/* Car Headlights turning on after garage is fully open */
.car-headlight {
    transition: opacity 0.6s ease-in-out;
    transition-delay: 1.2s;
    will-change: opacity;
}

.illustration-shutter.animate .car-headlight {
    opacity: 0.85;
    filter: drop-shadow(0 0 12px #f1c40f);
}

/* 2. Cam Balkon Animasyonu */
.glass-bg-landscape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    max-width: 260px;
    max-height: 170px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    z-index: 1;
    border: var(--border-dark);
}

.landscape-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.illustration-glass {
    width: 100%;
    height: 100%;
    max-width: 260px;
    max-height: 170px;
    display: flex;
    gap: 4px;
    perspective: 1000px;
    position: relative;
    z-index: 2;
    will-change: transform;
}

.glass-panel {
    flex: 1;
    height: 100%;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 4px 15px rgba(189, 178, 160, 0.15);
    transform-origin: left center;
    transition: transform var(--transition-slow), opacity var(--transition-smooth), margin var(--transition-slow);
    opacity: 0.7;
    position: relative;
    overflow: hidden;
    will-change: transform, opacity, margin;
}

/* Elegant metal handles on glass panels */
.glass-handle {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-full);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* Shimmer Gleam Reflection Sweep across glass panels */
.glass-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-25deg);
    transition: left 0.8s ease;
    will-change: left;
}

.illustration-glass.animate .glass-panel::after {
    animation: shine-panel 2.8s infinite ease-in-out;
}

/* Staggered delay for panels folding & shining */
.glass-panel:nth-child(1) { transition-delay: 0s; }
.glass-panel:nth-child(2) { transition-delay: 0.12s; }
.glass-panel:nth-child(3) { transition-delay: 0.24s; }
.glass-panel:nth-child(4) { transition-delay: 0.36s; }

.glass-panel:nth-child(1)::after { animation-delay: 0.1s; }
.glass-panel:nth-child(2)::after { animation-delay: 0.3s; }
.glass-panel:nth-child(3)::after { animation-delay: 0.5s; }
.glass-panel:nth-child(4)::after { animation-delay: 0.7s; }

/* Inactive/Folded state: Open balcony panels stacked to the left */
.illustration-glass.animate .glass-panel {
    transform: rotateY(-72deg) translateX(-22px);
    opacity: 0.25;
    margin-right: -58px; /* Stack closely on top of each other */
}

/* Resting state: Balcony is closed */
.illustration-glass:not(.animate) .glass-panel {
    transform: rotateY(0deg) translateX(0px);
    opacity: 0.98;
    margin-right: 0;
}

@keyframes shine-panel {
    0% { left: -160%; }
    50% { left: 160%; }
    100% { left: 160%; }
}

/* 3. Tente Animasyonu */
.illustration-tente {
    width: 100%;
    height: 100%;
    max-width: 280px;
    max-height: 180px;
    position: relative;
    perspective: 800px;
    will-change: transform;
}

/* Default state: fully extended by default */
.tente-awning {
    transform-origin: top center;
    transition: transform var(--transition-slow);
    transform: rotateX(0deg) scaleY(1); /* Fully extended by default */
    will-change: transform;
    animation: sway-awning 3s infinite ease-in-out alternate;
}

.tente-arms {
    transform-origin: top center;
    transition: transform var(--transition-slow), opacity var(--transition-slow);
    transform: scaleY(1);
    opacity: 1;
    will-change: transform, opacity;
}

/* Volumetric Samsung LED lights casting glow cones */
.tente-lights {
    transition: opacity 0.8s ease-in-out;
    opacity: 1; /* Lights on by default */
    will-change: opacity;
}

/* Hovered state: Awning retracts/folds up */
.illustration-tente.animate .tente-lights {
    opacity: 0; /* Turn off lights on hover */
}

.illustration-tente.animate .tente-awning {
    transform: rotateX(-80deg) scaleY(0.1); /* Folded up on hover */
    animation: none; /* stop wind swaying when folded */
}

.illustration-tente.animate .tente-arms {
    transform: scaleY(0.1);
    opacity: 0;
}

/* Swaying wind motion for extended fabric */
@keyframes sway-awning {
    0% { transform: skewX(0deg) rotateX(0deg) scaleY(1); }
    50% { transform: skewX(1deg) rotateX(0.4deg) scaleY(1); }
    100% { transform: skewX(-1deg) rotateX(-0.4deg) scaleY(1); }
}

/* ==========================================================================
   HİZMET SEKTÖRLERİ PORTALI (3-Sectors Portal Grid)
   ========================================================================== */
.portal-section {
    padding: 100px 0;
    background: var(--bg-color);
}

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

.portal-card {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    border: var(--border-light);
    box-shadow: var(--nm-shadow-light), var(--nm-shadow-dark);
    padding: 30px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.portal-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--nm-shadow-light-lg), var(--nm-shadow-dark-lg);
}

.portal-card:active {
    transform: translateY(1px);
    box-shadow: var(--nm-inset-light), var(--nm-inset-dark);
}

.portal-illustration-wrapper {
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    border: var(--border-light);
    box-shadow: var(--nm-inset-light-sm), var(--nm-inset-dark-sm);
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

.portal-body {
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.portal-body h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-family: 'Outfit', sans-serif;
}

.portal-body p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.portal-btn {
    width: 100%;
    margin-top: auto;
    padding: 12px;
    font-size: 0.9rem;
}

/* Sub-page Specific Layout Styles */
.subpage-header {
    padding: 140px 0 80px 0;
    background: var(--bg-color);
    border-bottom: var(--border-dark);
}

.subpage-header-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 40px;
    align-items: center;
}

.subpage-breadcrumb {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    border: var(--border-light);
    box-shadow: var(--nm-inset-light-sm), var(--nm-inset-dark-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.subpage-breadcrumb a {
    color: var(--text-muted);
    font-weight: 500;
}

.subpage-breadcrumb a:hover {
    color: var(--accent-color);
}

.subpage-breadcrumb i {
    font-size: 0.7rem;
    opacity: 0.7;
}

.subpage-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
    font-family: 'Outfit', sans-serif;
}

.subpage-title span {
    color: var(--accent-color);
}

.subpage-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 28px;
}

.subpage-actions {
    display: flex;
    gap: 16px;
}

.subpage-header-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.subpage-header-visual .illustration-box {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-color);
    display: inline-flex;
}

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

.subpage-products-section {
    padding: 80px 0;
}

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

/* ==========================================================================
   REFERENCES SECTION
   ========================================================================== */
.references-section {
    padding: 100px 0;
}

.filter-menu-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.ref-filter-btn {
    border: var(--border-light);
}

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

.ref-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-fast);
}

.ref-image-box {
    width: 100%;
    height: 240px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.ref-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.ref-card:hover .ref-img {
    transform: scale(1.06);
}

.ref-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(45, 42, 38, 0.9) 20%, rgba(45, 42, 38, 0));
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 120px;
}

.ref-overlay span {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 4px;
}

.ref-overlay h4 {
    color: #ffffff;
    font-size: 1.15rem;
}

.ref-body {
    padding: 16px 4px 8px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ref-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    flex-grow: 1;
}

.ref-meta-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px dashed rgba(189, 178, 160, 0.4);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.ref-meta-footer span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ref-meta-footer i {
    color: var(--accent-color);
}

/* Contact & Direct Info Section */
.contact-section {
    padding: 100px 0;
    background: var(--bg-color);
    border-top: var(--border-dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
}

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

.contact-item-box {
    padding: 24px;
    border-radius: var(--radius-lg);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent-color);
}

.contact-text-wrapper h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.contact-text-wrapper p, .contact-text-wrapper a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.social-links-row {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-dark);
    transition: all var(--transition-fast);
}

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

.contact-form-box {
    padding: 40px;
    border-radius: var(--radius-lg);
}

.contact-form-box h3 {
    font-size: 1.7rem;
    margin-bottom: 24px;
}

/* Footer styling */
footer {
    padding: 60px 0 30px;
    border-top: var(--border-dark);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h2 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.footer-links-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-links-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: var(--radius-full);
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.footer-links-list a:hover {
    color: var(--accent-color);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px dashed rgba(189, 178, 160, 0.4);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a:hover {
    color: var(--accent-color);
}

/* Developer Credit Styling */
.dev-credit-wrapper {
    display: inline-flex;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dev-credit-link {
    font-weight: 500;
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    border: var(--border-light);
    box-shadow: var(--nm-shadow-light-sm), var(--nm-shadow-dark-sm);
    transition: all var(--transition-fast);
    background: var(--bg-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dev-credit-link span {
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: 0.5px;
}

/* Pulsing heart animation */
.dev-credit-link .heart-icon {
    color: #e74c3c;
    animation: heart-beat 0.9s infinite alternate ease-in-out;
    display: inline-block;
    font-size: 0.9rem;
}

.dev-credit-link:hover {
    box-shadow: var(--nm-inset-light-sm), var(--nm-inset-dark-sm);
    transform: translateY(1px);
    color: var(--text-dark);
}

@keyframes heart-beat {
    0% { transform: scale(0.95); filter: drop-shadow(0 0 1px rgba(231,76,60,0.5)); }
    100% { transform: scale(1.15); filter: drop-shadow(0 0 3px rgba(231,76,60,0.8)); }
}

/* Custom CSS Scroll animations loaded via Intersection Observer */
.reveal-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-fade-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.reveal-fade-in {
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.reveal-fade-in.animate {
    opacity: 1;
}

/* Interactive WhatsApp floating icon */
.whatsapp-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
    background: #25D366;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    z-index: 999;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-float-btn:hover {
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-float-btn:active {
    transform: scale(0.95);
}

/* Responsive Breakpoints */
@media (min-width: 1025px) and (max-width: 1280px) {
    .navbar-container {
        height: 60px; /* Slimmer navbar */
    }
    .logo-text {
        font-size: 1.1rem; /* Smaller logo font size */
    }
    .nav-menu {
        gap: 8px; /* Compact link gaps */
    }
    .nav-item a {
        font-size: 0.78rem; /* Scaled down link text */
        padding: 4px 8px; /* Sleek padding */
    }
    .nav-cta {
        margin-left: 4px;
    }
    .nav-cta a {
        font-size: 0.78rem;
        padding: 6px 10px; /* Minimal button sizing */
    }
}

@media (max-width: 1024px) {
    /* Responsive navbar (triggered at 1024px to prevent overlapping) */
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 15px 30px rgba(189, 178, 160, 0.25);
        border-bottom: var(--border-light);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-smooth);
        padding: 0;
    }
    .nav-menu.active {
        max-height: 400px;
        padding: 24px 0;
    }
    .nav-item {
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }
    .nav-item a {
        display: inline-block;
        width: 80%;
    }
    .nav-cta {
        margin-left: 0;
        margin-top: 12px;
        width: 80%;
        text-align: center;
    }
    .nav-cta a {
        width: 100%;
    }
    
    /* Toggle active animation */
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .portal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-grid {
        gap: 30px;
    }
    .hero-circle-outer {
        width: 320px;
        height: 320px;
    }
    .hero-circle-inner {
        width: 240px;
        height: 240px;
    }
    .hero-brand-symbol {
        width: 150px;
        height: 150px;
    }
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ref-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-desc {
        max-width: 100%;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-stats {
        max-width: 500px;
        width: 100%;
    }
    .hero-visual {
        order: -1;
        margin-bottom: 20px;
    }

    /* Why and general cards */
    .why-grid {
        grid-template-columns: 1fr;
    }
    .sector-header-split {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .sector-illustration-box {
        order: -1;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .ref-grid {
        grid-template-columns: 1fr;
    }
    .portal-grid {
        grid-template-columns: 1fr;
    }
    .subpage-header-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .subpage-breadcrumb {
        justify-content: center;
    }
    .subpage-actions {
        justify-content: center;
    }
    .subpage-title {
        font-size: 2.2rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* ==========================================================================
   CUSTOM NEUMORPHIC CURSOR (PERFORMANCE OPTIMIZED)
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
    body {
        cursor: none;
    }
    
    a, button, select, input[type="range"], input[type="submit"], .option-card, .nav-toggle, .whatsapp-float-btn {
        cursor: none;
    }

    .custom-cursor-outline {
        width: 24px;
        height: 24px;
        border: 1.5px solid rgba(65, 100, 74, 0.4);
        border-radius: 50%;
        position: fixed;
        top: 0;
        left: 0;
        pointer-events: none;
        z-index: 10000;
        transform: translate3d(-50%, -50%, 0);
        transition: width 0.25s, height 0.25s, background-color 0.25s, border-color 0.25s;
        will-change: transform, width, height;
        background-color: rgba(65, 100, 74, 0.03);
        box-shadow: 2px 2px 5px rgba(189, 178, 160, 0.3), -2px -2px 5px rgba(255,255,255,0.8);
    }

    .custom-cursor-dot {
        width: 6px;
        height: 6px;
        background-color: var(--accent-color);
        border-radius: 50%;
        position: fixed;
        top: 0;
        left: 0;
        pointer-events: none;
        z-index: 10001;
        transform: translate3d(-50%, -50%, 0);
        will-change: transform;
    }

    /* Hover States (Magnetic Expand Effect) */
    .custom-cursor-outline.hovered {
        width: 38px;
        height: 38px;
        background-color: rgba(65, 100, 74, 0.12);
        border-color: var(--accent-color);
    }
    
    .custom-cursor-dot.hovered {
        transform: translate3d(-50%, -50%, 0) scale(0);
    }
}

/* ==========================================================================
   INITIAL INTRO PRELOADER (ROKK SPLIT REVEAL EFFECT)
   ========================================================================== */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s;
}

.preloader-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px; /* Initial tight gap for R-O-K-K */
    padding: 30px 60px;
    border-radius: var(--radius-lg);
    background: var(--bg-color);
    box-shadow: var(--nm-shadow-light), var(--nm-shadow-dark);
    border: var(--border-light);
    transform: scale(0.9);
    opacity: 0;
    animation: preloader-reveal 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    will-change: transform, opacity, gap;
    transition: gap 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    position: relative; /* Context for shutter gate */
    overflow: hidden;
}

/* Neumorphic Shutter Gate Covering ROKK initially */
.preloader-shutter-gate {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: none;
}

/* Gate slats style - Collapses upward slat-by-slat */
.ps-slat {
    flex: 1;
    border-bottom: 1.5px solid rgba(189, 178, 160, 0.4);
    background: linear-gradient(180deg, #f3ede2 0%, #ded7c9 100%);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.7);
    transform-origin: top center;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.6s ease;
    will-change: transform, opacity;
}

.ps-slat:last-child {
    border-bottom: none;
}

/* Staggered Bottom-to-Top rollup delay (Kepenk sarılma efekti) */
.preloader-shutter-gate.gate-open .ps-slat:nth-child(5) { transition-delay: 0s; transform: scaleY(0); opacity: 0; }
.preloader-shutter-gate.gate-open .ps-slat:nth-child(4) { transition-delay: 0.1s; transform: scaleY(0); opacity: 0; }
.preloader-shutter-gate.gate-open .ps-slat:nth-child(3) { transition-delay: 0.2s; transform: scaleY(0); opacity: 0; }
.preloader-shutter-gate.gate-open .ps-slat:nth-child(2) { transition-delay: 0.3s; transform: scaleY(0); opacity: 0; }
.preloader-shutter-gate.gate-open .ps-slat:nth-child(1) { transition-delay: 0.4s; transform: scaleY(0); opacity: 0; }

/* Mechanical lifting handle on preloader gate */
.ps-handle {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--bg-color);
    box-shadow: var(--nm-shadow-light-sm), var(--nm-shadow-dark-sm);
    border: var(--border-light);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.5s ease;
    will-change: transform, opacity;
}

/* Handle rolls up and disappears */
.preloader-shutter-gate.gate-open .ps-handle {
    transform: translate(-50%, -120px) scale(0);
    opacity: 0;
}

/* When spreading */
.preloader-logo-wrapper.spread {
    gap: 20px; /* Expands to make room for full words */
}

.preloader-word-container {
    display: flex;
    align-items: baseline;
    overflow: hidden;
}

.preloader-letter {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 4rem;
    letter-spacing: 1px;
    color: var(--text-dark);
    display: inline-block;
    filter: drop-shadow(2px 2px 4px rgba(189, 178, 160, 0.45));
}

/* Color first letters in brand green when fully resolved */
.preloader-logo-wrapper.spread .preloader-letter {
    color: var(--accent-color);
    transition: color 0.6s ease;
}

.preloader-suffix {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 3.2rem;
    color: var(--text-dark);
    opacity: 0;
    max-width: 0;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.6s ease;
    vertical-align: baseline;
}

/* Grow the letters smoothly */
.preloader-logo-wrapper.spread .preloader-suffix {
    max-width: 320px;
    opacity: 0.95;
    margin-left: 2px;
}

/* Slide top-left animation triggered by JS */
.preloader-logo-wrapper.slide-left {
    animation: preloader-slide-top-left 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* Fade out container */
.preloader-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

@keyframes preloader-reveal {
    0% {
        transform: scale(0.85);
        opacity: 0;
        box-shadow: var(--nm-shadow-light-sm), var(--nm-shadow-dark-sm);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: var(--nm-shadow-light-lg), var(--nm-shadow-dark-lg);
    }
}

@keyframes preloader-slide-top-left {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 1;
    }
    100% {
        /* Flies exactly towards the top-left brand logo and merges into it */
        transform: translate3d(-38vw, -41vh, 0) scale(0.28);
        opacity: 0.1;
    }
}
