﻿:root {
    --primary: #00bfff;
    /* Slightly darker/more saturated than #00f2ff for better visibility */
    /* Original Cyber Glass Cyan */
    --primary-light: rgba(0, 191, 255, 0.2);
    --primary-dark: #0066ff;
    --secondary: #000000;
    --accent-blue: #02050a;
    --text-light: #ffffff;
    --text-muted: rgba(0, 191, 255, 0.5);
    --bg-dark: #02050a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --glass: rgba(255, 255, 255, 0.01);
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent-gradient: linear-gradient(135deg, #00bfff 0%, #0066ff 100%);
    --liquid-gradient: linear-gradient(90deg, #00bfff, #ffffff, #0066ff, #00bfff);
    --transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    --container: 1280px;
    --header-bg: rgba(2, 5, 10, 0.9);
    --footer-bg: #010306;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Cursor */
.custom-cursor {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s cubic-bezier(0.23, 1, 0.32, 1);
}

.cursor-hover {
    transform: scale(3);
    background: rgba(0, 242, 255, 0.1);
    border: none;
}

/* Preloader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 100000;
    transition: opacity 0.5s ease;
    /* Faster transition */
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 5px;
    display: block;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    animation: loading 1.5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes loading {
    to {
        left: 100%;
    }
}

/* Theme Switcher */
.theme-switcher {
    position: fixed;
    bottom: 110px;
    right: 30px;
    z-index: 5000;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 10px;
    border-radius: 50%;
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.theme-switcher:hover {
    transform: scale(1.1);
    border-color: var(--primary);
}

/* Custom Dropdown */
.custom-dropdown {
    position: absolute;
    width: 0;
    height: 0;
}

.dropdown-trigger {
    display: none;
}

.dropdown-trigger i {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.custom-dropdown.open .dropdown-trigger i {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 200px;
    max-height: 300px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow-y: auto;
    display: none;
    flex-direction: column;
    padding: 10px;
    backdrop-filter: blur(30px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    animation: dropdownFadeIn 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes dropdownFadeIn {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

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

.custom-dropdown.open .dropdown-options {
    display: flex;
}

.dropdown-option {
    padding: 12px 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.dropdown-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}

.dropdown-option.active {
    background: var(--primary);
    color: var(--secondary);
    font-weight: 700;
}

/* Custom Scrollbar */
.dropdown-options::-webkit-scrollbar {
    width: 4px;
}

.dropdown-options::-webkit-scrollbar-track {
    background: transparent;
}

.dropdown-options::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

.theme-icon {
    width: 18px;
    height: 18px;
    stroke: var(--primary);
    color: var(--primary);
}

/* Theme 1: Cyber Glass */
body.tasarim-1 {
    --primary: #00f2ff;
    --accent-gradient: linear-gradient(135deg, #00f2ff 0%, #0066ff 100%);
    --bg-dark: #02050a;
    --text-muted: rgba(0, 242, 255, 0.5);
    --header-bg: rgba(2, 5, 10, 0.9);
    --footer-bg: #010306;
}

body.tasarim-1 .bento-item,
body.tasarim-1 .machinery-item {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
}

/* Theme 2: Neo-Brutalist */
body.tasarim-2 {
    --primary: #ffd700;
    --bg-dark: #ffffff;
    --text-light: #000000;
    --bg-card: #ffffff;
    --text-muted: rgba(0, 0, 0, 0.6);
    --glass-border: #000000;
    --header-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #f0f0f0;
}

body.tasarim-2 .bento-item,
body.tasarim-2 .machinery-item {
    border: 3px solid #000000;
    border-radius: 0;
    box-shadow: 8px 8px 0px #000000;
    background: #ffffff;
    color: #000000;
}

body.tasarim-2 .btn {
    border: 3px solid #000000;
    box-shadow: 4px 4px 0px #000000;
    border-radius: 0;
}

body.tasarim-2 .editorial-watermark {
    color: rgba(0, 0, 0, 0.03);
}

/* Theme 3: Midnight Minimal */
body.tasarim-3 {
    --primary: #ffffff;
    --bg-dark: #050505;
    --text-muted: #555555;
    --glass-border: rgba(255, 255, 255, 0.1);
    --header-bg: rgba(5, 5, 5, 0.9);
    --footer-bg: #000000;
}

body.tasarim-3 .editorial-watermark {
    display: none;
}

body.tasarim-3 .bento-item {
    border: none;
    border-left: 1px solid var(--glass-border);
    border-radius: 0;
    padding-left: 40px;
}

body.tasarim-3 .parallax-section {
    grid-template-columns: 1fr;
}

body.tasarim-3 .hero-image-wrap {
    display: none;
}

body.tasarim-3 .hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Theme 4: Liquid Nebula (Organic & Dreamy) */
body.tasarim-4 {
    --primary: #a855f7;
    /* Purple */
    --accent-gradient: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
    --bg-dark: #0f172a;
    --header-bg: rgba(15, 23, 42, 0.9);
    --footer-bg: #020617;
}

body.tasarim-4 .bento-item,
body.tasarim-4 .machinery-item {
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.tasarim-4 .bg-blob {
    opacity: 0.15;
    background: var(--accent-gradient);
    filter: blur(100px);
}

/* Theme 5: Blueprint Technical (Industrial Precision) */
body.tasarim-5 {
    --primary: #3b82f6;
    /* Technical Blue */
    --bg-dark: #001220;
    --text-light: #93c5fd;
    --glass-border: rgba(59, 130, 246, 0.2);
    --header-bg: rgba(0, 18, 32, 0.95);
    --footer-bg: #000914;
}

body.tasarim-5::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(var(--glass-border) 1px, transparent 1px), linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

body.tasarim-5 .bento-item,
body.tasarim-5 .machinery-item {
    border-radius: 0;
    background: rgba(0, 18, 32, 0.8);
    border: 1px solid var(--primary);
}

body.tasarim-5 h1,
body.tasarim-5 h2 {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 10px;
}

/* Theme 6: Avant-Garde (Radical Typography) */
body.tasarim-6 {
    --primary: #ff3e00;
    /* Radical Orange */
    --bg-dark: #000000;
    --text-light: #ffffff;
    --accent-gradient: linear-gradient(135deg, #ff3e00 0%, #ff0000 100%);
}

body.tasarim-6 h1 {
    font-size: clamp(4rem, 20vw, 15rem);
    line-height: 0.7;
    mix-blend-mode: difference;
    z-index: 20;
    position: relative;
}

body.tasarim-6 .hero-content {
    padding: 0;
}

body.tasarim-6 .hero-image-wrap {
    filter: grayscale(1) contrast(1.5);
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    z-index: 1;
}

.btn-primary {
    background: var(--primary);
    color: var(--secondary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 242, 255, 0.3);
}

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

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

/* Modal 3D Viewer */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

body.tasarim-6 .bento-item {
    border: none;
    background: #111;
    transform: skew(-5deg);
}

body.tasarim-4 .editorial-watermark {
    color: rgba(168, 85, 247, 0.05);
}

body.tasarim-5 .editorial-watermark {
    color: rgba(59, 130, 246, 0.05);
    font-family: monospace;
    letter-spacing: -20px;
}

body.tasarim-6 .editorial-watermark {
    color: rgba(255, 62, 0, 0.1);
    font-weight: 900;
    filter: blur(5px);
}

/* Theme 7: Quiet Luxury (2025 Trend) */
body.tasarim-7 {
    --primary: #c29d59;
    /* Premium Industrial Blue */
    --bg-dark: #fdfcf0;
    /* Off-White/Cream */
    --text-light: #1e293b;
    /* Slate */
    --text-muted: #64748b;
    --header-bg: rgba(253, 252, 240, 0.9);
    --footer-bg: #f8f5e6;
    --glass-border: rgba(30, 41, 59, 0.05);
}

body.tasarim-7 .bento-item,
body.tasarim-7 .machinery-item {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 20px 20px 60px #d7d6cc, -20px -20px 60px #ffffff;
    border: none;
}

body.tasarim-7 .editorial-watermark {
    color: rgba(194, 157, 89, 0.03);
}

/* Theme 8: Forest Aurora (Modern Dark) */
body.tasarim-8 {
    --primary: #d9f99d;
    /* Electric Lime */
    --bg-dark: #064e3b;
    /* Forest Green */
    --text-light: #ecfdf5;
    --header-bg: rgba(6, 78, 59, 0.95);
    --footer-bg: #022c22;
}

body.tasarim-8 .bento-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(217, 249, 157, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

body.tasarim-8 .btn-primary {
    background: var(--primary);
    color: #064e3b;
}

body.tasarim-8 .editorial-watermark {
    color: rgba(217, 249, 157, 0.02);
}

/* Theme 9: Tech Executive (Sophisticated Blue) */
body.tasarim-9 {
    --primary: #818cf8;
    /* Soft Indigo */
    --bg-dark: #0f172a;
    /* Slate 900 */
    --text-light: #f1f5f9;
    --header-bg: rgba(15, 23, 42, 0.9);
    --footer-bg: #020617;
    --accent-gradient: linear-gradient(135deg, #818cf8 0%, #4f46e5 100%);
}

body.tasarim-9 .bento-item {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid rgba(129, 140, 248, 0.1);
}

body.tasarim-9 .editorial-watermark {
    color: rgba(129, 140, 248, 0.04);
}

/* Theme 10: Kinetic HUD (Interactive Interface) */
body.tasarim-10 {
    --primary: #fbbf24;
    /* Amber HUD */
    --bg-dark: #000000;
    --text-light: #fbbf24;
    --glass-border: rgba(251, 191, 36, 0.2);
}

body.tasarim-10 .bento-item {
    border-radius: 0;
    border: 1px solid var(--primary);
    background: rgba(251, 191, 36, 0.02);
    clip-path: polygon(0 0, 100% 0, 100% 90%, 90% 100%, 0 100%);
    animation: float 4s ease-in-out infinite;
}

body.tasarim-10 .bento-item::after {
    content: 'SCAN_01';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.6rem;
    font-family: monospace;
    opacity: 0.5;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

body.tasarim-10 .editorial-watermark {
    font-family: monospace;
    letter-spacing: 20px;
    opacity: 0.05;
}

/* Theme 11: Hyper-Drive Glitch (Cyber-Aggressive) */
body.tasarim-11 {
    --primary: #f43f5e;
    /* Rose Neon */
    --bg-dark: #000000;
    --text-light: #ffffff;
    --accent-gradient: linear-gradient(135deg, #f43f5e 0%, #9f1239 100%);
}

body.tasarim-11 .bento-item {
    background: #000;
    border: none;
    box-shadow: 10px 10px 0px var(--primary);
    transition: 0.2s;
}

body.tasarim-11 .bento-item:hover {
    transform: translate(5px, 5px);
    box-shadow: -5px -5px 0px var(--primary);
    animation: glitch 0.3s infinite;
}

@keyframes glitch {
    0% {
        clip-path: inset(10% 0 30% 0);
    }

    20% {
        clip-path: inset(40% 0 10% 0);
    }

    40% {
        clip-path: inset(10% 0 60% 0);
    }

    60% {
        clip-path: inset(70% 0 20% 0);
    }

    80% {
        clip-path: inset(30% 0 50% 0);
    }

    100% {
        clip-path: inset(0% 0 0% 0);
    }
}

body.tasarim-11 h1 {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    font-style: italic;
}


/* Theme 13: Bioluminescent Abyss (Organic Pulse) */
body.tasarim-13 {
    --primary: #00d4ff;
    --bg-dark: #00040a;
    --text-light: #e0f7ff;
}

body.tasarim-13 .bento-item {
    border-radius: 100px;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.05), transparent);
    border: none;
    animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 0 60px rgba(0, 212, 255, 0.3);
    }
}

body.tasarim-13 .bg-blob {
    opacity: 0.2;
    filter: blur(150px);
    animation: moveBlob 15s infinite alternate;
}

@keyframes moveBlob {
    from {
        transform: translate(-20%, -20%);
    }

    to {
        transform: translate(20%, 20%);
    }
}


/* Theme 15: Zero-G Constellation (Broken Layout) */
body.tasarim-15 {
    --primary: #00ff00;
    --bg-dark: #050505;
}

body.tasarim-15 .services-bento,
body.tasarim-15 .machinery-grid {
    display: block;
    position: relative;
    min-height: 800px;
}

body.tasarim-15 .bento-item,
body.tasarim-15 .machinery-item {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    background: transparent;
    animation: drift 20s infinite alternate linear;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

body.tasarim-15 .bento-item:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

body.tasarim-15 .bento-item:nth-child(2) {
    top: 50%;
    left: 20%;
    animation-delay: -5s;
}

body.tasarim-15 .bento-item:nth-child(3) {
    top: 20%;
    left: 60%;
    animation-delay: -10s;
}

body.tasarim-15 .bento-item:nth-child(4) {
    top: 60%;
    left: 70%;
    animation-delay: -15s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(100px, 50px) rotate(360deg);
    }
}

/* Theme 16: Aura Refraction (2026 Meta) */
body.tasarim-16 {
    --primary: #fff;
    --bg-dark: #0a0a0c;
    --accent-gradient: linear-gradient(90deg, #ff00ea, #00d4ff, #ff00ea);
}

body.tasarim-16 .bento-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px);
    border: none;
    box-shadow: 2px 2px 0px rgba(255, 0, 234, 0.3), -2px -2px 0px rgba(0, 212, 255, 0.3);
    /* Chromatic aberration effect */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.tasarim-16 .bento-item:hover {
    transform: translateZ(50px) scale(1.05);
    box-shadow: 10px 10px 30px rgba(255, 0, 234, 0.2), -10px -10px 30px rgba(0, 212, 255, 0.2);
}

body.tasarim-16 .bg-noise {
    opacity: 0.2;
    mix-blend-mode: overlay;
}

body.tasarim-16 .editorial-watermark {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.1;
    filter: blur(10px);
}

/* Theme 17: Neural Fluid (2026 Meta) */
body.tasarim-17 {
    --primary: #00ffcc;
    --bg-dark: #020202;
}

body.tasarim-17 .bento-item {
    border-radius: 50% 20% 50% 20%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 255, 204, 0.1), transparent);
    border: 1px solid rgba(0, 255, 204, 0.2);
    animation: morph 10s infinite alternate ease-in-out;
}

@keyframes morph {
    0% {
        border-radius: 50% 20% 50% 20%;
        transform: rotate(0deg);
    }

    100% {
        border-radius: 20% 50% 20% 50%;
        transform: rotate(5deg);
    }
}

body.tasarim-17 .container {
    filter: drop-shadow(0 0 20px rgba(0, 255, 204, 0.3));
}

/* View Mode Toggles */
.theme-divider {
    width: 1px;
    height: 20px;
    background: var(--glass-border);
    margin: 0 5px;
}

.mode-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    color: var(--text-light);
    transition: var(--transition);
}

.mode-toggle-btn i {
    width: 20px;
    height: 20px;
}

body.light-mode .sun-icon {
    display: none;
}

body:not(.light-mode) .moon-icon {
    display: none;
}

/* Global Light Mode Overrides */
body.light-mode {
    --bg-dark: #ffffff;
    --bg-card: #f8fafc;
    --text-light: #0f172a;
    --text-muted: #64748b;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(15, 23, 42, 0.08);
    --header-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #f1f5f9;
}

body.light-mode .bg-noise {
    opacity: 0.03;
}

body.light-mode .bg-blob {
    opacity: 0.1;
}

body.light-mode .editorial-watermark {
    color: rgba(15, 23, 42, 0.02);
}

body.light-mode .bento-item,
body.light-mode .machinery-item,
body.light-mode .team-card,
body.light-mode .reference-item,
body.light-mode .stat-card,
body.light-mode .info-item {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

body.light-mode .btn-outline {
    border-color: #0f172a;
    color: #0f172a;
}

body.light-mode .btn-outline:hover {
    background: #0f172a;
    color: #ffffff;
}

body.light-mode .theme-switcher,
body.light-mode .dropdown-options {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-mode .dropdown-option:hover {
    background: #f1f5f9;
}

body.light-mode .hero-tag {
    background: rgba(15, 23, 42, 0.05);
    color: #0f172a;
}

body.light-mode .overlay {
    background: radial-gradient(circle, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 100%);
}

/* Ensure theme overrides don't break light mode background */
body.light-mode[class*="tasarim-"] {
    background-color: #ffffff !important;
}

/* Base Layout */
html {
    scroll-behavior: smooth;
    background: var(--bg-dark);
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--bg-dark);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 5%;
    /* Fluid padding */
}

@media (max-width: 768px) {
    .container {
        padding: 0 4%;
    }
}

.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Spacing Utilities */
.py-20 {
    padding-top: 20px;
    padding-bottom: 20px;
}

.py-40 {
    padding-top: 40px;
    padding-bottom: 40px;
}

.py-60 {
    padding-top: 60px;
    padding-bottom: 60px;
}

.py-80 {
    padding-top: 80px;
    padding-bottom: 80px;
}

.py-100 {
    padding-top: 100px;
    padding-bottom: 100px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-40 {
    margin-top: 40px;
}

.mt-60 {
    margin-top: 60px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-60 {
    margin-bottom: 60px;
}

.pt-20 {
    padding-top: 20px;
}

.pt-40 {
    padding-top: 40px;
}

.pt-80 {
    padding-top: 80px;
}

.pb-20 {
    padding-bottom: 20px;
}

.pb-40 {
    padding-bottom: 40px;
}

.pb-80 {
    padding-bottom: 80px;
}

.align-center {
    align-items: center;
}

.text-center {
    text-align: center;
}

.pt-120 {
    padding-top: 140px;
    /* Increased back to prevent navbar overlap */
}

@media (max-width: 992px) {
    .pt-120 {
        padding-top: 130px;
    }
}

@media (max-width: 768px) {
    .pt-120 {
        padding-top: 110px;
    }
}

.grid {
    display: grid;
    gap: 30px;
}

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

@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.contact-numbers-list p {
    font-size: 0.9rem !important;
    margin-bottom: 5px !important;
    font-weight: 500 !important;
}

.contact-numbers-list strong {
    color: var(--primary);
    font-weight: 700;
}

.w-100 {
    width: 100%;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: inherit;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 900;
    letter-spacing: -3px;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    margin-bottom: 10px;
    /* Reduced margin for all H2s */
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 800;
    margin-bottom: 20px;
    font-size: 0.7rem;
}

/* Header - Floating Island (Global Glassmorphism) */
#main-header {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 94%;
    max-width: 75rem;
    /* ~1200px equivalent but flexible */
    z-index: 99999;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 0 2%;
    /* Removed top/bottom padding to let flex center handle it */
    min-height: 4.5rem;
    /* Consistent height */
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.85) !important; /* Default: Dark Premium Glass for visibility on all pages */
    backdrop-filter: blur(1rem);
    -webkit-backdrop-filter: blur(1rem);
    border: 0.0625rem solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    border-radius: 3.125rem;
    pointer-events: auto !important;
}

/* Home Page Top State: Transparent White Glass over Video */
body.home-page #main-header:not(.scrolled) {
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Tablet & Mobile Visibility Fix - REMOVED FORCED WHITE */
@media (max-width: 1024px) {
    /* We now allow the glass effect on mobile too */
}

/* Make hamburger icon white on all pages due to global glassmorphism */
#main-header .mobile-menu-toggle span {
    background: #ffffff !important;
}

/* Make ALL mobile menu links dark inside the white mobile container */
@media (max-width: 1024px) {
    body #main-header .nav-links a {
        color: #1e293b !important;
    }
    body #main-header .nav-links .dropdown-menu a {
        color: #1e293b !important;
    }
}

/* GLOBAL UNBREAKABLE DROPDOWN TEXT COLOR FIX (MOBILE ONLY) */
@media (max-width: 1024px) {
    body #main-header .dropdown-menu a,
    body #main-header .dropdown-menu li a {
        color: #1e293b !important;
        -webkit-text-fill-color: #1e293b !important;
    }
}


/* Scrolled state only adjusts padding/top now, retains glassmorphism */
#main-header.scrolled {
    top: 0.625rem;
    padding: 0.5rem 2%;
}

#main-header nav {
    display: flex;
    justify-content: flex-start;
    /* Logo stays left */
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: translateY(6px);
    /* Stronger visual alignment for logo text */
}

.logo img {
    height: 3.2rem;
    /* Even larger logo */
    width: auto;
    display: block;
    transition: all 0.4s ease;
}

/* Scrolled: Shrink Logo (No dark filter, keep original colors) */
#main-header.scrolled .logo img {
    height: 2.8rem;
}



.btn-small {
    padding: 12px 25px;
    font-size: 0.75rem;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--primary) 0%, #0066ff 100%);
    color: white !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(0, 242, 255, 0.3);
    border: none;
    transition: all 0.3s ease;
}

.btn-small:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 25px rgba(0, 242, 255, 0.5);
    filter: brightness(1.1);
}

.btn-large {
    padding: 20px 50px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.2vw;
    align-items: center;
    position: relative;
    z-index: 5001;
    flex: 1;
    /* Take up all available space between logo and right edge */
    justify-content: flex-end;
    /* Push items to the far right */
}

.nav-links li {
    list-style: none !important;
}

.nav-links a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.65rem, 0.8vw, 0.72rem);
    /* Dynamic font scaling */
    line-height: 1;
    /* Fix vertical alignment */
    text-transform: uppercase;
    letter-spacing: 0.03rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 100000;
}

/* Desktop links are always white due to global glassmorphism */
@media (min-width: 1025px) {
    #main-header .nav-links a {
        color: #ffffff;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Better readability on glass */
    }
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Redesign (Accordion Style) */
.mobile-menu-toggle {
    display: none;
    /* Hide by default on desktop */
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        margin-left: auto;
        /* Push to the far right */
        z-index: 100003;
    }

    .mobile-menu-toggle span {
        width: 1.5rem;
        height: 0.125rem;
        background: #1e293b;
        transition: all 0.3s ease;
        border-radius: 0.125rem;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(0.3rem, 0.3rem);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(0.3rem, -0.3rem);
    }

    .nav-links {
        position: fixed;
        top: 1rem;
        right: 3%;
        width: 94%;
        max-width: 24rem;
        background: #ffffff;
        flex-direction: column;
        padding: 4rem 1.5rem 2rem;
        border-radius: 1.5rem;
        box-shadow: 0 1.25rem 3.125rem rgba(0, 0, 0, 0.15);
        transform: translateY(-120%);
        transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
        opacity: 0;
        visibility: hidden;
        margin-left: 0;
        justify-content: center;
        z-index: 100001;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: 0.85rem !important;
        padding: 0.7rem 0;
        width: 100%;
        justify-content: center;
        color: #1e293b !important;
    }

    /* Specific style for Application Button in mobile menu */
    .nav-links a.btn {
        margin-top: 1rem;
        padding: 0.8rem 2rem !important;
        color: #ffffff !important;
        border-radius: 3rem !important;
        font-size: 0.8rem !important;
        width: 100% !important;
        background: linear-gradient(135deg, #00f2ff 0%, #007bff 100%) !important;
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3) !important;
    }

    /* Accordion Dropdown Premium Aesthetic */
    .nav-links a i {
        width: 16px;
        height: 16px;
        margin-left: 8px;
        transition: transform 0.3s ease;
        vertical-align: middle;
        display: inline-block;
    }

    .nav-item.active>a i {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        position: static;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        display: none;
        background: #f8fafc !important;
        /* Premium light gray */
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03) !important;
        border: 1px solid #e2e8f0 !important;
        min-width: 100%;
        padding: 0.5rem 0 !important;
        margin: 0.5rem 0 !important;
        border-radius: 12px !important;
    }

    .nav-item.active .dropdown-menu {
        display: block;
        animation: fadeInDown 0.3s ease forwards;
    }

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

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

    .dropdown-menu li a {
        padding: 0.8rem 1rem !important;
        text-align: center;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        color: #1e293b !important;
        background: transparent !important;
        text-shadow: none !important;
        -webkit-text-fill-color: #1e293b !important; /* Force text color rendering */
    }

    /* Ultimate fallback for all links inside mobile menu container */
    #main-header .nav-links a {
        color: #1e293b !important;
        -webkit-text-fill-color: #1e293b !important;
    }
}

.nav-links a:hover {
    color: var(--primary);
}

/* Navbar Dropdown */
.nav-item {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(15, 23, 42, 0.95); /* Premium Dark Glass for Dropdown globally */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 10px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    backdrop-filter: blur(20px);
    z-index: 200000;
    /* Ensure it is above the links */
    list-style: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
}

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

.dropdown-menu li a {
    padding: 12px 20px;
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8) !important; /* Globally light text for dark background */
    -webkit-text-fill-color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease;
    white-space: nowrap;
    z-index: 200001;
    pointer-events: auto !important;
}

.dropdown-menu li a:hover {
    background: rgba(0, 242, 255, 0.05);
    color: var(--primary) !important;
    padding-left: 25px;
}

#main-header.scrolled .dropdown-menu li a {
    color: #475569 !important;
    /* Dark text for white bg */
}

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary) !important;
}

#main-header.scrolled .dropdown-menu li a:hover {
    background: rgba(0, 242, 255, 0.05);
    color: var(--primary) !important;
}

.nav-item>a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-item>a i {
    width: 14px;
    height: 14px;
    transition: transform 0.3s;
}

.nav-item:hover>a i {
    transform: rotate(180deg);
}

/* Hero */
.parallax-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.parallax-section.mini {
    height: 50vh;
    padding-top: 0;
}

@media (max-width: 1024px) {
    #hero {
        height: 100vh !important;
        /* Reverted to 100vh as requested */
    }
}

.hero-content {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 5;
}

.hero-image-wrap {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    border-radius: 0 !important;
    /* Force remove any clip */
    overflow: hidden !important;
}


.parallax-bg {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
    transition: transform 0.1s linear;
}

.hero-video-bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    z-index: -1 !important;
    border-radius: 0 !important;
    /* Force remove any rounded corners */
}


.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 0;
}

.hero-btns {
    display: flex;
    gap: 30px;
    margin-top: 50px;
}

/* About Section */
#about .container {
    display: grid;
    gap: 60px;
    align-items: center;
}

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

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.info-card h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Bento Grid */
.services-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 260px);
    gap: 15px;
}

.bento-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    border-radius: 20px;
}

.bento-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item.medium {
    grid-column: span 2;
}

.bento-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(0, 242, 255, 0.06), transparent 40%);
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.bento-item:hover {
    border-color: var(--primary);
}

.bento-item:hover::before {
    opacity: 1;
}

.bento-item .card-icon i {
    width: 40px;
    height: 40px;
    color: var(--primary);
    margin-bottom: 30px;
    display: block;
}

.bento-item h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: var(--transition);
}

.read-more i,
.read-more svg {
    width: 18px;
    height: 18px;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.read-more:hover {
    color: var(--text-light);
}

.read-more:hover i,
.read-more:hover svg {
    transform: translate(3px, -3px);
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
    transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.read-more:hover::after {
    width: 100%;
}

.bento-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Watermark */
.editorial-watermark {
    position: absolute;
    font-size: 20vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    z-index: -1;
    white-space: nowrap;
    pointer-events: none;
    text-transform: uppercase;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: color 0.5s;
}

/* Machinery */
.machinery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 300px;
    gap: 20px;
}

.machinery-item {
    grid-column: span 2;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(15px);
    background: var(--bg-card);
    border-radius: 20px;
}

.machinery-item:nth-child(3n+1) {
    grid-column: span 3;
    grid-row: span 2;
}

.machinery-item:nth-child(3n+2) {
    grid-column: span 3;
}

.machinery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #fff;
    filter: grayscale(1);
    transition: var(--transition);
}

.machinery-item:hover img {
    filter: grayscale(0);
    transform: scale(1.1);
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(transparent, var(--secondary));
    color: var(--text-light);
}

/* Stats Section Premium Design */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 242, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.stat-icon i {
    width: 24px;
    height: 24px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 2px;
}

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

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

input,
select,
textarea {
    width: 100%;
    padding: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: #fff;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    border-radius: 8px;
}

input:focus,
textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.contact-form-wrapper {
    background: #0a0a0a;
    padding: 40px;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.info-text p {
    color: #ccc;
}

.info-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.info-text h4 {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* Footer - Elegant & Minimalist (Premium Dark Theme) */
footer {
    padding: 80px 0 40px;
    margin-top: 80px;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    padding: 60px 0;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 30px;
        padding: 40px 20px;
        text-align: center;
    }

    .footer-item:last-child {
        grid-column: span 2;
        max-width: 500px;
        margin: 0 auto;
    }



    .footer-logo {
        margin: 0 auto 20px;
    }

    .footer-about p {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-item:last-child {
        grid-column: span 1;
    }
}

.footer-item h4 {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    position: relative;
}


.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-about p {
    color: #cbd5e1 !important;
    max-width: 300px;
    line-height: 1.8;
}

footer p {
    color: #cbd5e1 !important;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-icons a {
    width: 44px;
    height: 44px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    transition: var(--transition);
    border: none;
    box-shadow: 0 4px 10px rgba(0, 191, 255, 0.2);
    text-decoration: none;
}

.social-icons a i,
.social-icons a svg {
    /* width: 50px !important; */
    /* height: 22px !important; */
    display: block;
    stroke: currentColor;
    /* For Lucide icons */
}

.social-icons a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 20px rgba(0, 191, 255, 0.4);
    filter: brightness(1.1);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    font-size: 0.9rem;
    text-align: center;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-bottom-content .social-icons {
    margin-top: 0;
    margin-bottom: 20px;
}

.footer-bottom-links a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

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

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: var(--transition);
}

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

/* Animations */
.reveal-container>* {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-container.visible>* {
    opacity: 1;
    transform: translateY(0);
}

.reveal-container.visible>*:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal-container.visible>*:nth-child(3) {
    transition-delay: 0.2s;
}

.reveal-container.visible>*:nth-child(4) {
    transition-delay: 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 18px 45px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}


/* ── MODAL: Split Layout ─────────────────────────── */
.modal-content {
    position: relative;
    width: 90%;
    max-width: 1400px;
    height: auto;
    max-height: 85vh;
    background: #0f172a;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalIn 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}

.modal-split {
    flex-direction: row !important;
    height: auto;
    position: relative;
}

/* LEFT image panel */
.modal-image-panel {
    width: 70%;
    aspect-ratio: 3 / 2;
    flex-shrink: 0;
    position: relative;
    background: #050d1a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-split.modal-split-portrait .modal-image-panel {
    width: 45%;
    aspect-ratio: 3 / 4;
}

.modal-image-panel .modal-header-hero {
    flex: 1;
    height: 100%;
    width: 100%;
}

.modal-header-hero {
    position: relative;
    width: 100%;
    height: 100%;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-header-hero img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #fff;
    display: block;
}

.modal-image-badge {
    display: none !important;
}

.modal-content-panel {
    width: 30%;
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    flex: none;
    overflow-y: auto;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: #0f172a;
    color: #e2e8f0;
    transition: all 0.3s ease;
}

.modal-split.modal-split-portrait .modal-content-panel {
    width: 55%;
}

.modal-content-panel::-webkit-scrollbar { width: 5px; }
.modal-content-panel::-webkit-scrollbar-track { background: transparent; }
.modal-content-panel::-webkit-scrollbar-thumb { background: #334155; border-radius: 99px; }

.modal-title-heading {
    font-size: 2rem;
    font-weight: 800;
    color: #f1f5f9;
    margin: 0;
    line-height: 1.2;
}

.modal-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 99px;
    padding: 6px 14px;
    font-size: 0.82rem;
    color: #94a3b8;
}

.meta-chip svg {
    width: 14px;
    height: 14px;
    color: var(--primary);
}

/* Legacy: keep for tarim page compatibility */
.modal-header-content {
    position: absolute;
    bottom: 30px;
    left: 40px;
    z-index: 2;
    color: white;
}

.modal-header-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.modal-header-content .category-tag {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    background: #f8fafc;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

.modal-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: white;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.sidebar-card h4 {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.info-item:last-child { margin-bottom: 0; }

.info-item i {
    color: var(--primary);
    font-size: 1rem;
}

.info-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
}

.modal-main-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.modal-content-panel .content-section h3,
.content-section h3 {
    font-size: 1.05rem;
    color: #f1f5f9;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-content-panel .content-section h3::after,
.content-section h3::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #1e293b;
}

.basis-list, .objectives-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.basis-list li, .objectives-list li {
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.5;
}

.basis-list li i, .objectives-list li i {
    color: #10b981;
    margin-top: 3px;
    flex-shrink: 0;
}

.desc-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.modal-close i {
    width: 20px;
    height: 20px;
}

@media (max-width: 900px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    .modal-sidebar {
        order: 2;
    }
    /* Split modal goes vertical on mobile */
    .modal-split {
        flex-direction: column !important;
        height: 92vh;
    }
    .modal-image-panel {
        width: 100% !important;
        height: 40vh !important;
        max-height: 40vh !important;
        aspect-ratio: auto !important;
        flex-shrink: 0;
    }
    .modal-image-panel .modal-header-hero {
        height: 100%;
    }
    .modal-content-panel {
        position: relative;
        width: 100% !important;
        flex: 1;
        overflow-y: auto;
        padding: 24px 20px 40px 20px;
    }
    .modal-title-heading {
        font-size: 1.4rem;
    }
    .nav-btn {
        top: 20vh !important; /* Center on the 40vh image */
    }
}

@keyframes modalIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.viewer-container {
    background: radial-gradient(circle at center, #111 0%, #000 100%);
    position: relative;
}

model-viewer {
    width: 100%;
    height: 100%;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    color: #0f172a;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nav-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 24px;
}

.next-btn {
    right: 24px;
}

@media (max-width: 1024px) {
    .nav-btn {
        width: 40px;
        height: 40px;
    }
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
}

@media (max-width: 992px) {
    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-info {
        display: none;
    }

    .next-btn {
        right: 20px;
    }
}

.ar-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--secondary);
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    z-index: 100;
}

.ar-btn:hover {
    transform: translateX(-50%) translateY(-5px);
    background: var(--text-light);
}

.ar-btn i {
    width: 18px;
    height: 18px;
}

#ar-prompt {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    opacity: 0.8;
    z-index: 10;
}

/* Hide prompt if AR button is visible (meaning AR is supported) */
model-viewer[ar-status='session-started'] #ar-prompt,
model-viewer:not([ar-status='not-presenting']) #ar-prompt {
    display: none;
}

/* Mobile Responsiveness & Refinement */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
    }

    h1 {
        font-size: 4rem;
    }
}

@media (max-width: 992px) {
    .parallax-section {
        grid-template-columns: 1fr;
        height: auto;
        padding: 120px 0 60px;
        text-align: center;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-image-wrap {
        display: block;
        height: 400px;
        margin-top: 30px;
        position: relative;
        width: 100%;
        overflow: hidden;
        border-radius: 20px;
    }

    .hero-btns {
        justify-content: center;
    }

    #about .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .about-image img {
        margin: 0 auto;
    }

    .grid-4,
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-bento {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-item.large,
    .bento-item.medium {
        grid-column: span 1;
        grid-row: span 1;
    }

    .machinery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 300px;
    }

    .machinery-item:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-info {
        padding: 30px;
        border-left: none;
        border-top: 1px solid var(--glass-border);
    }

    .next-btn {
        right: 20px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(2rem, 10vw, 2.8rem);
        letter-spacing: -1px;
    }

    h2 {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        flex-direction: column;
        padding: 20px;
        border-radius: 20px;
        border: 1px solid var(--glass-border);
        margin-top: 10px;
        backdrop-filter: blur(20px);
        max-height: 80vh;
        overflow-y: auto;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    }

    #main-header {
        width: 95%;
        padding: 6px 15px;
        top: 15px;
    }

    #main-header.scrolled {
        top: 10px;
        padding: 6px 15px;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
    }

    .mobile-menu-toggle span {
        width: 25px;
        height: 2px;
        background: var(--primary);
        transition: 0.3s;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: none;
        border: none;
        padding-left: 20px;
        display: none;
    }

    .nav-item.active .dropdown-menu {
        display: block;
    }

    .nav-item>a {
        justify-content: space-between;
    }

    .grid-4,
    .grid-3,
    .machinery-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .modal-close {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .grid-4,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Team Section Styles */
/* Team Section Styles */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 280px);
    gap: 30px;
    justify-content: center;
}

.team-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    padding: 16px;
    backdrop-filter: blur(10px);
    width: 280px;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.team-img {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 16px;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.team-card:hover .team-img img {
    transform: scale(1.05);
}

.team-info {
    padding: 20px 15px;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    position: absolute;
    bottom: 16px;
    left: 16px;
    width: calc(100% - 32px);
    border-radius: 0 0 15px 15px;
    backdrop-filter: blur(5px);
}

.team-info h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.team-info p {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Light Mode Specific Overrides for Team Info */
body.tasarim-light .team-info {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

body.tasarim-light .team-info h3 {
    color: #0f172a;
}

/* References Section Styles */
.references-slider {
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.references-track {
    display: flex;
    gap: 60px;
    /* More breathing room */
    width: max-content;
    animation: scroll 40s linear infinite;
}

@media (max-width: 768px) {
    .references-track {
        gap: 40px;
        animation-duration: 30s;
        /* Slightly faster for small screens */
    }
}

.reference-item {
    width: 160px;
    height: 80px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 2px;
    transition: var(--transition);
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.reference-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 25px));
    }
}

/* Responsive Fixes for Team & References */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 280px);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .team-card {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

/* Multi-row References */
.references-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.references-track.reverse {
    animation-direction: reverse;
}

.references-track.fast {
    animation-duration: 25s;
}

.references-track.slow {
    animation-duration: 50s;
}

/* Reference Logo Styling */
.reference-item img {
    max-width: 85%;
    max-height: 70%;
    object-fit: contain;
    transition: var(--transition);
}

.reference-item:hover img {
    transform: scale(1.05);
}

body.tasarim-light .reference-item img {
    filter: none;
}

/* Professional Contact Section Redesign */
.contact-card-wrapper {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 25px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-xl);
    max-width: 800px;
    margin: 0 auto;
}

.corporate-info h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.corporate-info p {
    font-size: 0.9rem;
}

.info-item-new {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--glass);
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.info-item-new.whatsapp .icon-box {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.info-item-new.whatsapp:hover {
    border-color: #25d366;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.2);
}

.info-item-new:hover {
    transform: translateX(10px);
    border-color: var(--primary);
}

.info-item-new .icon-box {
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.info-item-new .text-box span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.info-item-new .text-box p {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-light);
}

.info-item-new .text-box p a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.info-item-new .text-box p a:hover {
    color: var(--primary);
}

.info-item-new.address-link {
    cursor: pointer;
}

.info-item-new.address-link:hover {
    border-color: var(--primary);
    transform: translateX(10px);
}

.badge-direction {
    font-size: 0.7rem;
    background: rgba(245, 158, 11, 0.15);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

.map-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.map-container iframe {
    display: block;
    width: 100%;
    transition: filter 0.3s ease;
}

.map-container:hover iframe {
    filter: grayscale(0) opacity(1) !important;
}

.map-direction-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #0f172a;
    border: 1.5px solid rgba(245, 158, 11, 0.45);
    color: #ffffff !important;
    padding: 10px 18px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    min-width: 220px;
}

.map-direction-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #000000 !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.5);
}

.map-direction-btn .btn-icon {
    width: 42px;
    height: 42px;
    background: var(--accent-gradient, linear-gradient(135deg, #f59e0b 0%, #d97706 100%));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.map-direction-btn:hover .btn-icon {
    background: #000000;
    color: var(--primary);
}

.map-direction-btn .btn-icon svg,
.map-direction-btn .btn-icon i {
    width: 20px;
    height: 20px;
}

.map-direction-btn .btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.map-direction-btn .btn-text strong {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
    transition: color 0.3s ease;
}

.map-direction-btn:hover .btn-text strong {
    color: #000000;
}

.map-direction-btn .btn-text span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    transition: color 0.3s ease;
}

.map-direction-btn:hover .btn-text span {
    color: rgba(0, 0, 0, 0.85);
}

.form-card {
    background: var(--bg-dark);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-card input,
.form-card select,
.form-card textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-light);
    transition: var(--transition);
}

body.light-mode .form-card input,
body.light-mode .form-card select,
body.light-mode .form-card textarea {
    background: #f1f5f9;
    color: #0f172a;
}

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

@media (max-width: 992px) {
    .contact-card-wrapper {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

/* WhatsApp Chatbot Widget Styles */
.chatbot-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    max-width: calc(100vw - 60px);
    z-index: 2000;
    display: none;
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.chatbot-widget.active {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.close-chat {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-container {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    height: 500px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.chatbot-header {
    background: #25d366;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.bot-avatar {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #25d366;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(255, 255, 255, 0.02);
}

.chat-bubble {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: bubbleFade 0.3s ease-out forwards;
}

.bot-bubble {
    align-self: flex-start;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    border-bottom-left-radius: 2px;
}

.user-bubble {
    align-self: flex-end;
    background: #25d366;
    color: white;
    border-bottom-right-radius: 2px;
}

.chatbot-input-area {
    padding: 15px;
    background: var(--bg-card);
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 10px;
}

.chatbot-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 10px 15px;
    border-radius: 25px;
    color: var(--text-light);
    outline: none;
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    background: #25d366;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    flex-shrink: 0;
}

.chat-send-btn svg {
    width: 18px;
    height: 18px;
    stroke: #ffffff;
    display: block;
}

.bot-avatar svg {
    width: 22px;
    height: 22px;
    stroke: #25d366;
    display: block;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.close-chat svg {
    width: 18px;
    height: 18px;
    stroke: #ffffff;
    display: block;
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.chat-option-btn {
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid #25d366;
    color: #25d366;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.3s;
}

.chat-option-btn:hover {
    background: #25d366;
    color: white;
}

@keyframes bubbleFade {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

body.light-mode .bot-bubble {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0;
}

body.light-mode .chatbot-container {
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

body.light-mode .chatbot-messages {
    background: #f8fafc;
}

body.light-mode .chatbot-input-area {
    background: #ffffff;
}

body.light-mode .chatbot-input-area input {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

/* Gallery Normalization */
.gallery-grid .bento-item {
    height: 300px;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    border-radius: 20px;
}

.gallery-grid .bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-grid .bento-item:hover img {
    transform: scale(1.1);
}

.gallery-grid .bento-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transition: 0.3s;
    z-index: 2;
}

.gallery-grid .bento-item:hover::after {
    opacity: 1;
}

.gallery-grid .bento-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: 0.3s;
    z-index: 1;
}

.gallery-grid .bento-item:hover::before {
    opacity: 1;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 3001;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    font-size: 1.5rem;
    z-index: 3005; /* FIX: Bring buttons above the image */
}

.lightbox-nav:hover {
    background: var(--primary);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}


/* Modern WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 2001;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer !important;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0;
    outline: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Pulsing effect for visibility */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25d366;
    opacity: 0.5;
    z-index: -1;
    animation: wpPulse 2s infinite;
}

@keyframes wpPulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Course Program Card Styles */
.course-program-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 15px 30px;
    /* Even less top/bottom padding */
    backdrop-filter: blur(12px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    max-width: 1000px;
    margin: 15px auto;
    /* Minimal top margin */
}

.program-header {
    text-align: center;
    margin-bottom: 15px;
    /* Minimal space after header */
    padding-bottom: 10px;
    /* Minimal space before dashed line */
    border-bottom: 1px dashed var(--glass-border);
}

.program-header h3 {
    margin: 0;
    /* Remove default margins */
    font-size: 1.2rem;
    color: var(--text-dark);
}

.program-header i {
    font-size: 3rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.program-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
}

.program-group-title {
    background: var(--primary-gradient);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    display: inline-block;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.program-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.program-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.program-item:hover {
    background: #ffffff;
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 191, 255, 0.1);
}

.item-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
    padding-right: 1rem;
}

.item-main p {
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
}

.item-actions {
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.program-item:hover .item-actions {
    opacity: 1;
    transform: translateX(0);
}

.btn-action {
    padding: 0.5rem 0.9rem;
    border-radius: 0.6rem;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.detail-btn {
    background: #f1f5f9;
    color: #475569;
}

.detail-btn:hover {
    background: #e2e8f0;
}

.apply-btn {
    background: var(--primary);
    color: #ffffff;
}

.apply-btn:hover {
    filter: brightness(1.05);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .program-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .item-actions {
        opacity: 1;
        transform: none;
        width: 100%;
        justify-content: flex-end;
    }
}

.program-item span {
    width: 28px;
    height: 28px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.program-item:hover span {
    background: var(--primary);
    color: white;
}

.program-item p {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: #1e293b;
    transition: all 0.3s ease;
}

.program-item.selected {
    background: #f1f5f9;
    border-color: var(--primary);
}

.program-footer {
    text-align: center;
}

/* Fix for mobile */
@media (max-width: 768px) {
    .program-list {
        grid-template-columns: 1fr;
    }

    .course-program-card {
        padding: 20px;
        margin: 20px 10px;
    }

    .program-header h3 {
        font-size: 1.1rem;
    }
}

/* Enhanced Hero Section Styles */
#hero {
    position: relative !important;
    height: 92vh !important;
    min-height: 500px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #02050a !important;
    /* Prevent white flash */
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 20px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    border: none;
    box-shadow: none;
    max-width: 1000px;
    margin: 0 20px;
}

.hero-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.6rem, 5vw, 3.2rem);
    /* Slightly smaller base for very small screens */
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    text-transform: none;
}

.hero-content .highlight {
    color: var(--primary);
    font-weight: 800;
    display: inline-block;
}

@keyframes textShine {
    to {
        background-position: 200% center;
    }
}

.hero-image-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    /* Video full visibility */
}

.hero-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.5) 0%,
            rgba(0, 0, 0, 0.2) 30%,
            rgba(0, 0, 0, 0.2) 70%,
            rgba(2, 5, 10, 1) 100%);
    pointer-events: none;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-content {
        padding: 30px 20px;
        /* Removed border-radius so it doesn't look like a cut-off card on 100vh */
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 50vh;
    }

    .hero-content .thin {
        letter-spacing: 6px;
    }
}


/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    right: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 20;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    bottom: 45px;
    opacity: 0.8;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
    backdrop-filter: blur(5px);
}

.mouse::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 4px;
    transform: translateX(-50%);
    animation: mouseScroll 2s infinite;
}

@keyframes mouseScroll {
    0% { transform: translate(-50%, 0); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

.scroll-text {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Super Layer for Modals and Chat */
.lightbox,
#machinery-modal {
    z-index: 999999 !important;
    /* Modals always on top */
}

/* Chat stays ABOVE navbar on mobile */
.whatsapp-float,
.instagram-float,
.chatbot-widget,
.chatbot-container,
#chat-input-wrapper {
    z-index: 999999 !important;
}

/* Prevent iOS Zoom on Chat Input */
@media (max-width: 768px) {
    #chat-input {
        font-size: 16px !important;
    }
}

/* Instagram Floating Button */
.instagram-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: var(--accent-gradient);
    color: white !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 191, 255, 0.3);
    z-index: 999998 !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer !important;
    border: none;
    outline: none;
}

.instagram-float:hover {
    transform: scale(1.1) rotate(-8deg);
    box-shadow: 0 15px 30px rgba(0, 191, 255, 0.5);
}

.instagram-float i {
    font-size: 30px;
}

/* Basında Biz Page Styles */
.news-grid {
    margin-top: 40px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
}

.news-image {
    position: relative;
    height: 200px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.news-content {
    padding: 25px;
}

.news-content h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.4;
}

.news-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.read-more:hover {
    gap: 12px;
}
