/* ==========================================================================
   ÇUKUROVA MÜHENDİSLİK - AWWWARDS LEVEL PREMIUM DESIGN
   Absolute Full Quality, High-End Luxury Agency Aesthetic
========================================================================== */

:root {
  --bg: #050507;
  --bg-alt: #0a0b0e;
  --bg-card: rgba(18, 19, 24, 0.7);
  
  --accent: #ff6b00;
  --accent-hover: #ff8c00;
  --accent-glow: rgba(255, 107, 0, 0.2);
  
  --text: #ffffff;
  --text-muted: #8b909c;
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(255, 107, 0, 0.3);
  
  --font-main: 'Manrope', sans-serif;
  --font-display: 'Syncopate', sans-serif;
  --font-serif: 'Playfair Display', serif;
  
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-slow: cubic-bezier(0.76, 0, 0.24, 1);
}

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

html { font-size: 16px; background-color: var(--bg); color: var(--text); overflow-x: hidden; }
body { font-family: var(--font-main); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; cursor: none; }
body.loading { overflow: hidden; }

::selection { background: var(--accent); color: var(--text); }
a, button { cursor: none; color: inherit; text-decoration: none; outline: none; border: none; background: none; }
img, video { max-width: 100%; display: block; }

/* UTILS */
.c-container { max-width: 1560px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 80px); }
.pad-section { padding: clamp(100px, 12vw, 200px) 0; }
.bg-darker { background-color: var(--bg-alt); }
.text-accent { color: var(--accent); }

/* NOISE OVERLAY */
.noise-overlay {
  position: fixed; inset: 0; z-index: 9997; pointer-events: none; opacity: 0.03;
  background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* CUSTOM CURSOR */
#cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 99999; pointer-events: none;
  width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
  transform: translate(-50%, -50%); transition: opacity 0.3s;
}
#cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 99998; pointer-events: none;
  width: 44px; height: 44px; border: 1px solid var(--border-accent); border-radius: 50%;
  transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center;
  transition: width 0.4s var(--ease), height 0.4s var(--ease), background 0.4s, border-color 0.4s;
}
#cursor-text { font-family: var(--font-display); font-size: 8px; font-weight: 700; letter-spacing: 1px; color: var(--bg); opacity: 0; transition: opacity 0.3s; }
body.hover-btn #cursor-ring { width: 0; height: 0; border: none; }
body.hover-btn #cursor-dot { transform: translate(-50%, -50%) scale(0); }
body.hover-link #cursor-ring { width: 64px; height: 64px; background: rgba(255,107,0,0.1); border-color: var(--accent); }
body.hover-drag #cursor-ring { width: 80px; height: 80px; background: var(--accent); border-color: var(--accent); }
body.hover-drag #cursor-text { opacity: 1; }

@media (pointer: coarse) { body, a, button { cursor: auto !important; } #cursor-dot, #cursor-ring { display: none !important; } }

/* PRELOADER */
#preloader { position: fixed; inset: 0; background: var(--bg); z-index: 100000; display: flex; align-items: center; justify-content: center; transition: transform 1.2s var(--ease-slow); }
.loader-content { text-align: center; width: 300px; }
.loader-logo { font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: 2px; margin-bottom: 32px; overflow: hidden; }
.loader-bar-wrap { width: 100%; height: 2px; background: var(--border); position: relative; overflow: hidden; margin-bottom: 16px; }
.loader-bar { position: absolute; top: 0; left: 0; height: 100%; width: 0; background: var(--accent); transition: width 0.2s; }
.loader-text { font-family: var(--font-main); font-size: 12px; font-weight: 500; color: var(--text-muted); }

/* HEADER */
#header { position: fixed; top: 0; left: 0; width: 100%; z-index: 9990; padding: 24px 0; transition: padding 0.4s, background 0.4s; }
#header.scrolled { padding: 16px 0; background: rgba(5,5,7,0.85); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.h-container { max-width: 1720px; margin: 0 auto; padding: 0 clamp(24px, 4vw, 48px); display: flex; justify-content: space-between; align-items: center; }

.h-logo { display: flex; align-items: center; gap: 12px; z-index: 9992; }
.h-logo img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.h-brand-text { display: flex; flex-direction: column; }
.h-brand-text span { font-family: var(--font-main); font-size: 16px; font-weight: 800; letter-spacing: 1.5px; line-height: 1.1; }
.h-brand-text .sub { font-size: 10px; color: var(--accent); font-weight: 700; letter-spacing: 2px; }

.h-nav { display: flex; gap: 40px; }
.h-link { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text); position: relative; overflow: hidden; }
.h-link::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 1px; background: var(--accent); transform: translateX(-101%); transition: transform 0.4s var(--ease); }
.h-link:hover::after { transform: translateX(0); }

.h-actions { display: flex; align-items: center; gap: 24px; z-index: 9992; }
.lang-toggle { font-family: var(--font-display); font-size: 10px; letter-spacing: 1px; font-weight: 700; padding: 8px 16px; border: 1px solid var(--border); border-radius: 30px; transition: border-color 0.3s; }
.lang-toggle:hover { border-color: var(--accent); }
.tr-on, .en-on { transition: color 0.3s; }
[data-lang="tr"] .tr-on { color: var(--accent); }
[data-lang="en"] .en-on { color: var(--accent); }

/* MAGNETIC BUTTON */
.btn-magnetic { display: inline-flex; align-items: center; justify-content: center; padding: 16px 32px; background: var(--accent); color: var(--bg); font-family: var(--font-main); font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; border-radius: 40px; position: relative; transition: transform 0.2s linear, background 0.3s; }
.btn-magnetic:hover { background: var(--accent-hover); }
.btn-magnetic.outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-magnetic.outline:hover { border-color: var(--accent); color: var(--accent); }

/* MOBILE MENU */
.menu-trigger { display: none; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 50%; flex-direction: column; align-items: center; justify-content: center; gap: 4px; z-index: 9995; background: var(--bg); }
.menu-trigger span { width: 16px; height: 2px; background: var(--text); transition: 0.3s; }
.menu-trigger.active span:nth-child(1) { transform: translateY(3px) rotate(45deg); background: var(--accent); }
.menu-trigger.active span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); background: var(--accent); }

#mobile-menu { position: fixed; inset: 0; background: rgba(5,5,7,0.98); z-index: 9991; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease); }
#mobile-menu.active { opacity: 1; pointer-events: auto; }
.m-menu-inner { text-align: center; display: flex; flex-direction: column; gap: 60px; }
.m-links { display: flex; flex-direction: column; gap: 24px; }
.m-link { font-family: var(--font-display); font-size: clamp(24px, 5vw, 40px); font-weight: 700; color: var(--text); transition: color 0.3s; }
.m-link:hover { color: var(--accent); }
.m-footer p { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }

/* REVEAL ANIMATIONS */
.reveal-text .line-wrap { overflow: hidden; display: block; }
.reveal-text .line-inner { display: block; transform: translateY(110%); transition: transform 1.2s var(--ease-slow); }
.reveal-text.is-inview .line-inner { transform: translateY(0); }
.reveal-up { opacity: 0; transform: translateY(40px); transition: all 1s var(--ease-slow); }
.reveal-up.is-inview { opacity: 1; transform: translateY(0); }
.reveal-h { opacity: 0; transition: opacity 1.5s var(--ease-slow); }
.reveal-h.is-inview { opacity: 1; }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* HERO */
#hero { position: relative; height: 100vh; min-height: 800px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-vid { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%) contrast(1.1); }
.hero-overlay-grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,7,0.4) 0%, rgba(5,5,7,0.85) 60%, rgba(5,5,7,1) 100%); }

.hero-container { position: relative; z-index: 2; width: 100%; max-width: 1720px; margin: 0 auto; padding: 0 clamp(24px, 4vw, 48px); margin-top: 100px; }
.hero-top-badge { display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px; border: 1px solid var(--border-accent); border-radius: 30px; font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: 2px; margin-bottom: 40px; background: rgba(5,5,7,0.5); backdrop-filter: blur(8px); }
.blink-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: blink 1.5s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-title { font-family: var(--font-display); font-size: clamp(32px, 5vw, 72px); font-weight: 700; line-height: 1.1; letter-spacing: -1px; margin-bottom: 24px; }
.hero-bottom-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; border-top: 1px solid var(--border); padding-top: 40px; }
.hero-desc { font-size: clamp(15px, 1.2vw, 18px); color: var(--text-muted); max-width: 600px; line-height: 1.6; }

.hero-scroll-ind { display: flex; align-items: center; gap: 16px; font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: 2px; }
.scroll-wheel { width: 60px; height: 60px; border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.scroll-wheel::after { content: '↓'; font-size: 16px; color: var(--accent); animation: scrollDown 2s infinite; }
@keyframes scrollDown { 0% { transform: translateY(-20px); opacity: 0; } 50% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(20px); opacity: 0; } }

.floating-widget { position: absolute; right: clamp(24px, 4vw, 48px); top: 30%; background: rgba(255,255,255,0.03); backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: 16px; padding: 24px; display: flex; align-items: center; gap: 20px; transform: translateY(0); animation: float 6s ease-in-out infinite; }
.fw-icon { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border-accent); display: flex; align-items: center; justify-content: center; }
.fw-content h4 { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--accent); }
.fw-content p { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* MARQUEE */
.marquee-section { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); overflow: hidden; display: flex; white-space: nowrap; }
.marquee-track { display: flex; animation: marqueeScroll 20s linear infinite; }
.marquee-content { display: flex; align-items: center; }
.marquee-content span { font-family: var(--font-display); font-size: clamp(20px, 3vw, 40px); font-weight: 700; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.4); }
.marquee-content span.sep { color: var(--accent); -webkit-text-stroke: 0; margin: 0 24px; font-size: clamp(16px, 2vw, 24px); }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* SECTION HEADERS */
.section-header { margin-bottom: 80px; }
.section-header.align-center { text-align: center; }
.sec-label { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--accent); display: block; margin-bottom: 24px; }
.sec-heading { font-family: var(--font-serif); font-size: clamp(28px, 3.5vw, 48px); font-weight: 400; line-height: 1.2; }

/* BENTO GRID */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 320px; gap: 24px; }
.bento-item { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--border); transition: border-color 0.4s; }
.bento-item:hover { border-color: var(--border-accent); }
.box-large { grid-column: span 2; grid-row: span 2; }
.box-small { grid-column: span 1; grid-row: span 1; }
.box-medium { grid-column: span 2; grid-row: span 1; }

.b-bg { position: absolute; inset: 0; z-index: 0; }
.b-bg img { width: 100%; height: 100%; object-fit: cover; }
.b-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,5,7,0.9) 0%, rgba(5,5,7,0.2) 100%); z-index: 1; }
.solid-dark { background: var(--bg-alt); }
.solid-accent { background: var(--accent); }
.blueprint-bg { background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px); background-size: 20px 20px; background-color: var(--bg-alt); }

.b-content { position: relative; z-index: 2; height: 100%; padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; }
.b-content.center-flex { justify-content: center; align-items: center; text-align: center; }
.b-content.flex-end { align-items: flex-end; text-align: right; justify-content: center; }
.text-dark { color: var(--bg); }

.box-large h3 { font-family: var(--font-serif); font-size: clamp(24px, 2.5vw, 32px); font-weight: 400; margin-bottom: 16px; max-width: 90%; line-height: 1.3; }
.box-large p { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; max-width: 80%; }
.b-link { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); border-bottom: 1px solid transparent; transition: 0.3s; }
.b-link:hover { border-color: var(--accent); }

.b-stat { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.b-stat span { font-size: 24px; vertical-align: top; }
.box-small p { font-size: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.b-icon { margin-bottom: 16px; }
.box-small.text-dark h4 { font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.3; }

.box-medium h3 { font-family: var(--font-serif); font-size: 32px; font-weight: 400; margin-bottom: 12px; }
.box-medium p { font-size: 15px; color: var(--text-muted); max-width: 60%; }

/* ACCORDION EXPERTISE */
.accordion-wrapper { border-top: 1px solid var(--border); }
.acc-item { border-bottom: 1px solid var(--border); overflow: hidden; }
.acc-header { padding: 40px 0; display: grid; grid-template-columns: 80px 1fr 60px; align-items: center; cursor: none; transition: 0.3s; }
.acc-header:hover { color: var(--accent); padding-left: 20px; }
.acc-num { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--text-muted); }
.acc-header h3 { font-family: var(--font-serif); font-size: clamp(24px, 3vw, 40px); font-weight: 400; }
.acc-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); position: relative; display: flex; align-items: center; justify-content: center; }
.acc-toggle::before, .acc-toggle::after { content: ''; position: absolute; background: currentColor; transition: 0.4s var(--ease); }
.acc-toggle::before { width: 16px; height: 2px; }
.acc-toggle::after { width: 2px; height: 16px; }
.acc-item.active .acc-toggle::after { transform: rotate(90deg); opacity: 0; }
.acc-item.active .acc-toggle { background: var(--accent); color: var(--bg); border-color: var(--accent); }

.acc-body { height: 0; opacity: 0; transition: height 0.6s var(--ease), opacity 0.6s var(--ease); }
.acc-item.active .acc-body { height: auto; opacity: 1; }
.acc-content { padding: 0 0 40px 80px; display: flex; gap: 60px; }
.acc-content p { font-size: 16px; color: var(--text-muted); flex: 1; max-width: 600px; }
.tech-list { flex: 1; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.tech-list li { font-size: 14px; font-weight: 600; padding-left: 20px; position: relative; }
.tech-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }

/* HORIZONTAL SCROLL PROJECTS */
.horizontal-scroll-section { padding: 120px 0; background: var(--bg); overflow: hidden; }
.hs-header { padding: 0 clamp(24px, 5vw, 80px); margin-bottom: 60px; }
.hs-desc { font-size: 18px; color: var(--text-muted); max-width: 400px; margin-top: 16px; }
.hs-track-wrap { width: 100%; overflow: hidden; }
.hs-track { display: flex; gap: 40px; padding: 0 clamp(24px, 5vw, 80px); width: max-content; }
.hs-card { width: clamp(320px, 40vw, 700px); flex-shrink: 0; }
.hs-img-wrap { width: 100%; aspect-ratio: 4/3; overflow: hidden; border-radius: 16px; margin-bottom: 24px; position: relative; }
.hs-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-slow); }
.hs-card:hover .hs-img-wrap img { transform: scale(1.05); }
.hs-info h4 { font-family: var(--font-serif); font-size: 28px; font-weight: 400; margin-bottom: 8px; }
.hs-info p { font-size: 14px; color: var(--text-muted); }

/* MEGA FOOTER */
.mega-footer { border-top: 1px solid var(--border); background: var(--bg-alt); }
.mf-top { padding: 120px 0; }
.mf-content { display: flex; flex-direction: column; gap: 80px; }
.mf-title { font-family: var(--font-serif); font-size: clamp(32px, 5vw, 64px); font-weight: 400; line-height: 1.1; }
.mf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; border-top: 1px solid var(--border); padding-top: 60px; }

.mf-col h5 { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 32px; }
.mf-link { display: block; font-size: clamp(24px, 3vw, 40px); font-weight: 600; margin-bottom: 16px; border-bottom: 2px solid transparent; width: max-content; transition: 0.3s; }
.mf-link:hover { color: var(--accent); border-color: var(--accent); }
.mf-address { font-size: 16px; color: var(--text-muted); margin-top: 32px; line-height: 1.8; }

.mf-form { display: flex; flex-direction: column; gap: 32px; }
.input-line { border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.input-line::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: var(--accent); transform: translateX(-101%); transition: transform 0.4s var(--ease); }
.input-line:focus-within::after { transform: translateX(0); }
.input-line input, .input-line textarea { width: 100%; padding: 16px 0; background: transparent; color: var(--text); font-family: var(--font-main); font-size: 18px; outline: none; border: none; resize: none; }
.input-line input::placeholder, .input-line textarea::placeholder { color: var(--text-muted); }

.mf-bottom { padding: 32px 0; border-top: 1px solid var(--border); }
.mf-b-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; font-size: 13px; color: var(--text-muted); }
.mf-logo { font-family: var(--font-display); font-weight: 700; letter-spacing: 1px; color: var(--text); }
.mf-credit a { transition: color 0.3s; }
.mf-credit a:hover { color: var(--accent); }

/* RESPONSIVE */
@media (max-width: 1200px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .box-large { grid-column: span 2; }
  .box-small { grid-column: span 1; }
  .box-medium { grid-column: span 2; }
  .acc-header { grid-template-columns: 60px 1fr 40px; }
  .acc-content { padding: 0 0 32px 60px; flex-direction: column; gap: 32px; }
}

@media (max-width: 900px) {
  .h-nav { display: none; }
  .h-actions .btn-magnetic { display: none; }
  .menu-trigger { display: flex; }
  .hero-bottom-row { flex-direction: column; align-items: flex-start; }
  .floating-widget { display: none; }
  .mf-grid { grid-template-columns: 1fr; }
  .mf-b-flex { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .box-large, .box-small, .box-medium { grid-column: span 1; }
  .box-large h3 { font-size: 24px; max-width: 100%; }
  .b-content { padding: 24px; }
  .acc-header h3 { font-size: 20px; }
  .acc-content { padding: 0 0 24px 0; }
  .hs-card { width: 85vw; }
}

/* ================================================================
   GLOBAL RESPONSIVE SAFETY FIXES
================================================================ */
html, body { overflow-x: hidden !important; width: 100%; max-width: 100vw; }
h1, h2, h3, h4, h5, h6, p, span, a, div { overflow-wrap: break-word; }
img, video { max-width: 100%; }
