/* =========================================================================
   ENA GROUP - INSAAT (Premium Sector Theme)
   ========================================================================= */

:root {
  --bg-dark: #0a0a0a;
  --bg-darker: #050505;
  --bg-card: rgba(255, 255, 255, 0.03);
  --gold: #D4AF37;
  --gold-bright: #F5D77A;
  --gold-dim: rgba(212, 175, 55, 0.3);
  --text-main: #EFE7D2;
  --text-muted: rgba(239, 231, 210, 0.6);
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Inter', sans-serif;
  --glass-bg: rgba(10, 10, 10, 0.6);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.text-center { text-align: center; }
.bg-darker { background-color: var(--bg-darker); }
.muted { color: var(--text-muted); }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); font-weight: 400; line-height: 1.2; }
.section-heading { font-size: 2.5rem; color: var(--gold); margin-bottom: 1.5rem; position: relative; }
.section-heading.inline-block { display: inline-block; }
.section-heading::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 1px;
  background: var(--gold);
}
.text-center .section-heading::after { left: 50%; transform: translateX(-50%); }

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
  z-index: -1;
}
.btn-primary:hover { color: var(--bg-dark); }
.btn-primary:hover::before { transform: scaleX(1); transform-origin: left; }

/* Glass Panel */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 100;
  transition: var(--transition);
  padding: 24px 0;
}
.site-header.scrolled {
  padding: 16px 0;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }

/* Brand */
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-serif); letter-spacing: 0.14em; text-decoration: none; color: var(--text-main);
}
.brand-mark { color: var(--gold); font-weight: 600; font-size: 1.2rem; }
.brand-divider { width: 28px; height: 1px; background: var(--gold); opacity: 0.7; }
.brand-word { font-weight: 400; font-size: 1.1rem; }

/* Navigation */
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--text-main); text-decoration: none;
  font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 5px; }
.mobile-menu-btn span { display: block; width: 24px; height: 1px; background: var(--text-main); margin: 6px 0; transition: 0.3s; }

/* Hero Slider */
.hero-section {
  position: relative;
  height: 100vh; min-height: 600px;
  overflow: hidden;
}
.slider-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.2s ease-in-out;
  display: flex; align-items: center;
  z-index: 1;
}
.slide.active { opacity: 1; z-index: 2; }
.slide-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center;
  transform: scale(1.05); transition: transform 6s ease-out;
  background-color: #111;
}
.slide.active .slide-bg { transform: scale(1); }
.slide-bg::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
}

.slide-content {
  position: relative; z-index: 3;
  transform: translateY(30px); opacity: 0; transition: all 0.8s 0.4s ease-out;
}
.slide.active .slide-content { transform: translateY(0); opacity: 1; }
.slide-title { font-size: 4.5rem; margin-bottom: 10px; text-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.slide-subtitle { font-size: 1.2rem; color: var(--gold); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 30px; }

.slider-controls {
  position: absolute; bottom: 40px; right: 40px; z-index: 10;
  display: flex; align-items: center; gap: 24px;
}
.slider-btn {
  background: transparent; border: 1px solid var(--glass-border);
  width: 48px; height: 48px; border-radius: 50%;
  color: var(--text-main); cursor: pointer;
  display: flex; justify-content: center; align-items: center;
  backdrop-filter: blur(4px); transition: var(--transition);
}
.slider-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(255,255,255,0.05); }
.slider-dots { display: flex; gap: 12px; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.3); cursor: pointer; transition: 0.3s;
}
.dot.active { background: var(--gold); transform: scale(1.5); }

.scroll-indicator {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 10;
}
.mouse {
  width: 24px; height: 36px; border: 1px solid var(--text-muted); border-radius: 12px; position: relative;
}
.mouse::after {
  content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
  animation: scrollAnim 2s infinite;
}
@keyframes scrollAnim {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* About Section */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.content-body { font-size: 1.05rem; color: var(--text-muted); }
.content-body p { margin-bottom: 1.5rem; }
.about-visual { position: relative; }
.about-visual::before {
  content: ''; position: absolute; top: -20px; left: -20px; width: 100px; height: 100px;
  border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); z-index: 0;
}
.about-visual .img-wrapper { position: relative; z-index: 1; padding: 12px; }
.about-visual img { width: 100%; height: auto; display: block; object-fit: cover; aspect-ratio: 4/3; background: #222 url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=1200&auto=format&fit=crop') center/cover; }

/* Projects Section */
.project-filters { display: flex; justify-content: center; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn {
  background: transparent; border: none; color: var(--text-muted);
  font-family: var(--font-sans); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; padding: 8px 16px; transition: 0.3s; position: relative;
}
.filter-btn.active, .filter-btn:hover { color: var(--gold); }
.filter-btn::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 1px; background: var(--gold); transition: 0.3s;
}
.filter-btn.active::after { width: 100%; }

.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px; transition: 0.4s;
}
.project-card {
  background: var(--bg-card); border: 1px solid var(--glass-border);
  transition: var(--transition); overflow: hidden;
}
.project-card:hover { transform: translateY(-5px); border-color: var(--gold-dim); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.project-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.project-card:hover .project-img img { transform: scale(1.05); }
.placeholder-img { width: 100%; height: 100%; display: grid; place-items: center; background: #1a1a1a url('https://images.unsplash.com/photo-1541888081600-47b7bc33b28f?q=80&w=800&auto=format&fit=crop') center/cover; color: transparent; }
.project-status {
  position: absolute; top: 16px; right: 16px; padding: 4px 12px;
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
}
.status-completed { color: #9adcb3; border-left: 2px solid #2e8b57; }
.status-ongoing { color: var(--gold-bright); border-left: 2px solid var(--gold); }
.project-info { padding: 24px; }
.project-title { font-size: 1.5rem; margin-bottom: 12px; }
.project-desc { font-size: 0.9rem; color: var(--text-muted); }

/* Hide filtered items */
.project-item.hide { display: none !important; }

/* Gallery Section */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px;
}
.gallery-item {
  position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 4px;
  display: block; cursor: pointer; border: 1px solid var(--glass-border);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5); opacity: 0; transition: 0.3s;
  display: flex; justify-content: center; align-items: center; color: var(--gold);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Materials Section */
.materials-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px;
}
.material-card {
  text-align: center; padding: 24px; transition: var(--transition);
}
.material-card:hover { border-color: var(--gold-dim); transform: translateY(-5px); }
.material-img { width: 100%; aspect-ratio: 1; overflow: hidden; margin-bottom: 20px; border-radius: 4px; }
.material-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.material-card:hover .material-img img { transform: scale(1.05); }
.material-title { font-size: 1.2rem; margin-bottom: 12px; color: var(--gold); }
.material-desc { font-size: 0.85rem; color: var(--text-muted); }

/* Partners Marquee */
.partners-section { border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); background: var(--bg-darker); }
.marquee-container { overflow: hidden; white-space: nowrap; position: relative; padding: 20px 0; }
.marquee-container::before, .marquee-container::after {
  content: ''; position: absolute; top: 0; width: 150px; height: 100%; z-index: 2;
}
.marquee-container::before { left: 0; background: linear-gradient(to right, var(--bg-darker), transparent); }
.marquee-container::after { right: 0; background: linear-gradient(to left, var(--bg-darker), transparent); }
.marquee-track { display: inline-flex; gap: 60px; animation: marquee 30s linear infinite; }
.partner-logo { width: 160px; height: 80px; display: inline-flex; align-items: center; justify-content: center; }
.partner-logo img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(100%) opacity(0.5); transition: 0.3s; }
.partner-logo:hover img { filter: grayscale(0%) opacity(1); }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Footer */
.site-footer { background: #000; padding: 80px 0 30px; position: relative; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dim), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 60px; margin-bottom: 60px; }
.footer-title { font-size: 1.5rem; margin-bottom: 24px; color: var(--gold); }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); font-size: 0.95rem; }
.contact-list svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.contact-list a { color: var(--text-muted); text-decoration: none; transition: 0.3s; }
.contact-list a:hover { color: var(--gold); }
.footer-map { height: 200px; padding: 4px; }
.footer-map iframe { width: 100%; height: 100%; border: none; filter: invert(90%) hue-rotate(180deg) contrast(80%); } /* Dark mode map effect */
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--glass-border); font-size: 0.85rem; color: var(--text-muted); }
.back-to-portal { color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; font-weight: 500; }

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 992px) {
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .slide-title { font-size: 3.5rem; }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 250px; height: 100vh;
    background: var(--bg-darker); border-left: 1px solid var(--glass-border);
    flex-direction: column; padding: 80px 30px; transition: 0.4s;
  }
  .nav-links.active { right: 0; }
  .mobile-menu-btn { display: block; position: relative; z-index: 101; }
  .slide-title { font-size: 2.5rem; }
  .slider-controls { right: 20px; bottom: 20px; }
}

/* =========================================================================
   KENTSEL DÖNÜŞÜM - PREMIUM VEKTÖR İNŞAAT VE BLUEPRINT ANİMASYONU
   ========================================================================= */
.construction-container {
  flex: 1 1 400px;
  position: relative;
  border-radius: 12px;
  background: radial-gradient(circle at center, rgba(30, 26, 18, 0.4) 0%, rgba(10, 10, 10, 0.8) 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  padding: 15px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 5/4;
}

.construction-svg {
  width: 100%;
  height: auto;
  max-width: 500px;
  display: block;
}

/* Blueprint Grid */
.grid-line {
  stroke: rgba(212, 175, 55, 0.05);
  stroke-width: 0.5;
}

/* Ground Line */
.ground-line {
  stroke: rgba(212, 175, 55, 0.3);
  stroke-width: 2;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawLine 8s ease-in-out infinite;
}

/* Blueprint Line Drawing */
.blueprint-line {
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawBlueprint 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.blueprint-line-secondary {
  stroke: rgba(212, 175, 55, 0.4);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawBlueprint 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: 0.6s;
}

/* Concrete Slabs & Blocks Rising */
.build-block {
  stroke-width: 0.8;
  transform-origin: bottom;
  animation: riseAndSolidify 8s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}
.build-block.left-face {
  fill: url(#facade-left);
  stroke: rgba(212, 175, 55, 0.2);
}
.build-block.right-face {
  fill: url(#facade-right);
  stroke: rgba(212, 175, 55, 0.4);
}

/* Floor Delays */
.floor-1 { animation-delay: 1.4s; }
.floor-2 { animation-delay: 1.8s; }
.floor-3 { animation-delay: 2.2s; }
.floor-4 { animation-delay: 2.6s; }
.floor-5 { animation-delay: 3.0s; }

/* Structural Beams */
.beam-element {
  stroke: rgba(212, 175, 55, 0.5);
  stroke-width: 1.2;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawLine 8s ease-in-out infinite;
  animation-delay: 1s;
}

/* Glass Panels Mounting */
.glass-facade {
  fill: rgba(212, 175, 55, 0.08);
  stroke: rgba(212, 175, 55, 0.35);
  stroke-width: 1;
  opacity: 0;
  animation: shineGlass 8s ease-in-out infinite;
  animation-delay: 3.5s;
}

/* Laser Scanline Effect */
.laser-scan {
  stroke: rgba(212, 175, 55, 0.8);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.8));
  animation: laserScanEffect 8s ease-in-out infinite;
}

/* Crane Elements */
.crane-cable {
  stroke: rgba(212, 175, 55, 0.4);
  stroke-width: 1;
  stroke-dasharray: 4,4;
  animation: drawLine 8s ease-in-out infinite;
}

.crane-boom {
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
  animation: drawLine 8s ease-in-out infinite;
}

/* Coordinates/Nodes Glowing */
.node-point {
  fill: var(--gold);
  opacity: 0;
  filter: drop-shadow(0 0 3px var(--gold));
  animation: glowNodes 8s ease-in-out infinite;
}

.node-1 { animation-delay: 1.5s; }
.node-2 { animation-delay: 2.0s; }
.node-3 { animation-delay: 2.5s; }
.node-4 { animation-delay: 3.0s; }

/* Keyframes */
@keyframes drawLine {
  0% { stroke-dashoffset: 100; opacity: 0; }
  10%, 85% { opacity: 1; stroke-dashoffset: 0; }
  95%, 100% { opacity: 0; }
}

@keyframes drawBlueprint {
  0% { stroke-dashoffset: 600; opacity: 0; }
  10%, 85% { opacity: 1; stroke-dashoffset: 0; }
  95%, 100% { opacity: 0; }
}

@keyframes riseAndSolidify {
  0%, 15% {
    transform: scaleY(0);
    opacity: 0;
  }
  35% {
    transform: scaleY(1);
    opacity: 0.5;
  }
  55%, 85% {
    transform: scaleY(1);
    opacity: 1;
  }
  95%, 100% {
    opacity: 0;
    transform: scaleY(0);
  }
}

@keyframes shineGlass {
  0%, 45% {
    opacity: 0;
  }
  60%, 85% {
    opacity: 1;
  }
  95%, 100% {
    opacity: 0;
  }
}

@keyframes laserScanEffect {
  0%, 10% {
    y1: 350; y2: 350;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  50% {
    y1: 80; y2: 80;
    opacity: 1;
  }
  55%, 100% {
    opacity: 0;
    y1: 80; y2: 80;
  }
}

@keyframes glowNodes {
  95%, 100% { opacity: 0; transform: scale(1); }
}

/* Ena Group Watermark & Billboard Visibility Enhancements */
.watermark-logo {
  opacity: 0.35;
  transition: opacity 0.5s ease;
  animation: glowPulse 4s ease-in-out infinite alternate;
}

.billboard-group {
  opacity: 0;
  animation: showBillboard 8s ease-in-out infinite;
  animation-delay: 1.5s;
}

@keyframes glowPulse {
  0% {
    opacity: 0.25;
    filter: drop-shadow(0 0 2px rgba(212, 175, 55, 0.4));
  }
  100% {
    opacity: 0.65;
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.95));
  }
}

@keyframes showBillboard {
  0%, 20% {
    opacity: 0;
  }
  35%, 85% {
    opacity: 1;
  }
  95%, 100% {
    opacity: 0;
  }
}


