/* ======= PREMIUM CSS VARIABLES ======= */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;800&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root {
  --primary-color: #0c3923;
  --primary-light: #185e3b;
  --primary-dark: #03150b; /* Even darker for premium feel */
  --accent-1: #d4af37; /* Metallic Gold */
  --accent-2: #f3e5ab; /* Light Gold */
  --accent-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --text-dark: #1a1a1a;
  --text-light: #fdfdfd;
  --text-muted: #888888;
  --bg-main: #f9faf9; 
  --bg-card: #ffffff;
  --font-main: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --shadow-soft: 0 10px 30px rgba(12, 57, 35, 0.08);
  --shadow-hover: 0 20px 40px rgba(12, 57, 35, 0.2);
  --radius-sm: 8px;
  --radius-lg: 20px;
}

/* ======= RESET & BASICS ======= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  /* Prevent scroll while preloading */
}
body:not(.loaded) {
  overflow: hidden;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 90%; max-width: 1280px; margin: 0 auto; }

/* ======= PRELOADER (SIGNATURE ENTRANCE) ======= */
#preloader {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background-color: var(--primary-dark);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease, visibility 0.4s;
}
#preloader::before {
  content: '';
  position: absolute;
  width: 100%; height: 100%;
  background-image: 
    linear-gradient(rgba(212,175,55,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
}

.preloader-brand { position: relative; overflow: hidden; margin-bottom: 20px;}
.preloader-brand span {
  font-family: var(--font-serif);
  font-size: 4rem;
  letter-spacing: 5px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 175, 55, 0.3);
  position: relative;
  display: block;
}
.preloader-brand span::before {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 100%;
  color: var(--accent-1);
  overflow: hidden;
  border-right: 2px solid var(--accent-1);
  white-space: nowrap;
  animation: fillText 0.7s cubic-bezier(0.8, 0, 0.2, 1) forwards;
}
.preloader-line {
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  animation: drawLine 0.5s cubic-bezier(0.8, 0, 0.2, 1) 0.1s forwards;
}


@keyframes fillText {
  0% { width: 0; }
  100% { width: 100%; border-color: transparent;}
}
@keyframes drawLine {
  0% { width: 0; opacity: 1; }
  100% { width: 300px; opacity: 0; }
}

/* ======= HEADER ======= */
header {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transform: translateY(-100%); /* hidden initially */
}
body.loaded header {
  transform: translateY(0);
  transition-delay: 0.3s;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
  padding: 5px 0; border-bottom: none;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 0; transition: var(--transition); }
.logo-area { display: flex; align-items: center; gap: 2.5rem; }
.logo img { height: 50px; border-radius: 8px; object-fit: contain; transition: var(--transition); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
header.scrolled .logo img { height: 46px; }
nav ul { display: flex; gap: 2rem; }
nav ul li a {
  font-size: 1rem; font-weight: 500; color: #fff; position: relative; padding-bottom: 5px; text-transform: uppercase; letter-spacing: 2px;
}
header.scrolled nav ul li a { color: var(--primary-dark); }
nav ul li a::after {
  content: ''; position: absolute; width: 5px; height: 5px; border-radius: 50%;
  bottom: -5px; left: 50%; transform: translateX(-50%) scale(0);
  background: var(--accent-1); transition: transform 0.3s ease;
}
nav ul li a:hover::after, nav ul li a.active::after { transform: translateX(-50%) scale(1); }
nav ul li a.active { color: var(--accent-1) !important; }

/* ===== DROPDOWN MENU ===== */
.has-dropdown { position: relative; }
.has-dropdown .arrow { font-size: 0.7rem; margin-left: 4px; transition: transform 0.3s ease; display: inline-block; }
.has-dropdown:hover .arrow { transform: rotate(180deg); }

.dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  background: var(--primary-dark);
  border: 1px solid rgba(212,175,55,0.2);
  border-top: 3px solid var(--accent-1);
  border-radius: 0 0 12px 12px;
  min-width: 240px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
  z-index: 9999;
  padding: 12px 0 0.5rem; /* 12px top padding replaces the gap */
  opacity: 0; visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.has-dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu li { border-bottom: 1px solid rgba(255,255,255,0.07); }
.dropdown-menu li:last-child { border-bottom: none; }
.dropdown-menu li a {
  display: block !important;
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.88rem !important;
  letter-spacing: 1px !important;
  padding: 0.85rem 1.5rem !important;
  text-transform: none !important;
  transition: background 0.2s, color 0.2s, padding 0.2s !important;
  white-space: nowrap;
}
.dropdown-menu li a:hover {
  background: rgba(212,175,55,0.12) !important;
  color: var(--accent-1) !important;
  padding-left: 2rem !important;
}
.dropdown-menu li a::after { display: none !important; }
header.scrolled .dropdown-menu { background: var(--primary-dark); }

/* ======= HERO & BLUEPRINT GRID ======= */
.hero { position: relative; height: 100vh; min-height: 800px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('https://images.unsplash.com/photo-1541888082-ce374c0c1b72?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
  background-size: cover; background-position: center; z-index: -3;
  transform: scale(1.2);
  filter: blur(5px);
  transition: transform 3s ease-out, filter 2s ease-out;
}
body.loaded .hero-bg {
  transform: scale(1);
  filter: blur(0);
  animation: bgZoom 30s infinite alternate linear 3s;
}
@keyframes bgZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

.hero-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(3, 21, 11, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: -2;
}

.blueprint-grid {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 60px 60px; z-index: -1;
  opacity: 0;
}

body.loaded .blueprint-grid {
  animation: revealGrid 2.5s cubic-bezier(0.25, 1, 0.5, 1) 0.5s forwards;
}

@keyframes revealGrid {
  from { opacity: 0; transform: perspective(500px) rotateX(20deg) scale(1.2); }
  to { opacity: 1; transform: perspective(500px) rotateX(0) scale(1); }
}

.hero-content {
  text-align: left; color: var(--text-light); max-width: 800px; padding: 0;
  z-index: 1;
}

.hero-subtitle {
  display: inline-flex; align-items: center; font-family: var(--font-main); color: var(--accent-1);
  font-weight: 600; letter-spacing: 5px; text-transform: uppercase; margin-bottom: 20px;
  overflow: hidden; white-space: nowrap; width: 0;
}
.hero-subtitle::before {
  content: ''; display: inline-block; width: 40px; height: 2px; background: var(--accent-1); margin-right: 15px;
}
body.loaded .hero-subtitle {
  animation: typing 0.8s steps(30, end) 0.3s forwards;
}
@keyframes typing {
  from { width: 0; }
  to { width: 100%; border-color: transparent;}
}

.hero-content h1 {
  font-family: var(--font-main); font-size: 5rem; line-height: 1.1; margin-bottom: 2rem;
  text-shadow: 2px 4px 10px rgba(0,0,0,0.5); font-weight: 800; letter-spacing: -2px;
  opacity: 0; transform: translateY(50px);
}
.hero-content h1 .h-italic {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; color: transparent; -webkit-text-stroke: 1.5px var(--accent-1);
}
body.loaded .hero-content h1 {
  animation: fadeUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.6s forwards;
}

.hero-text-wrap p {
  font-size: 1.25rem; opacity: 0.9; max-width: 650px; margin-bottom: 3rem; border-left: 3px solid rgba(255,255,255,0.2); padding-left: 1.5rem; line-height: 1.7;
  opacity: 0; transform: translateY(30px);
}
.hero-actions {
  display: flex; gap: 1.5rem; opacity: 0; transform: translateY(30px);
}
body.loaded .hero-text-wrap p {
  animation: fadeUp 0.7s cubic-bezier(0.25, 1, 0.5, 1) 0.8s forwards;
}
body.loaded .hero-actions {
  animation: fadeUp 0.7s cubic-bezier(0.25, 1, 0.5, 1) 1s forwards;
}

/* Shiny Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 1.2rem 3rem; font-size: 1.1rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; border-radius: 5px; /* sharp corners for construction feel */
  overflow: hidden; z-index: 1; color: var(--primary-dark);
  background: var(--accent-gradient); border: none; cursor: pointer;
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3); transition: var(--transition);
}
.btn::after {
  content: ""; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg); animation: shine 3s infinite 2s; z-index: -1;
}

/* Hero Right Side Cinematic Image Group */
.hero-image-wrap {
  position: relative; flex-shrink: 0; width: 440px; height: 560px;
  opacity: 0; transform: translateY(50px); margin-top: 2rem;
}
body.loaded .hero-image-wrap {
  animation: fadeUp 1s cubic-bezier(0.25, 1, 0.5, 1) 0.9s forwards;
}

/* Main Arch Image */
.hero-image-main {
  width: 85%; height: 95%; margin: 0 auto;
  border-radius: 200px 200px 10px 10px; /* Big architectural arch */
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
  position: relative; z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.hero-image-main::after {
  content: ''; position: absolute; inset: 0;
  border-radius: 200px 200px 10px 10px;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.3); pointer-events: none;
}
.hero-image-main img {
  width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85);
  transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}
.hero-image-wrap:hover .hero-image-main img {
  transform: scale(1.08); filter: brightness(1);
}

/* Secondary Overlapping Image */
.hero-image-secondary {
  position: absolute; bottom: 0; right: -30px;
  width: 220px; height: 260px;
  border-radius: 110px 110px 10px 10px; /* Mini Arch */
  overflow: hidden;
  border: 5px solid var(--bg-main); /* solid border separating images */
  box-shadow: 0 15px 30px rgba(0,0,0,0.6);
  z-index: 3; transition: 0.5s;
}
.hero-image-wrap:hover .hero-image-secondary {
  transform: translateY(-15px);
}
.hero-image-secondary img { width: 100%; height: 100%; object-fit: cover; }

/* Glassmorphic Badge */
.hero-glass-badge {
  position: absolute; bottom: 40px; left: -20px;
  background: rgba(255,255,255,0.05); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2); border-left: 4px solid var(--accent-1);
  padding: 1.5rem; border-radius: 12px;
  color: #fff; display: flex; flex-direction: column; align-items: flex-start;
  z-index: 4; box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.hero-glass-badge span { font-size: 2rem; font-family: var(--font-serif); color: var(--accent-1); line-height: 1; margin-bottom: 5px;}
.hero-glass-badge small { font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 500;}

/* Decorative Rotating Ring */
.hero-deco-ring {
  position: absolute; top: 30px; left: 0;
  width: 140px; height: 140px;
  border-radius: 50%;
  border: 2px dashed rgba(212,175,55,0.5);
  z-index: 1; animation: rotateRing 25s linear infinite;
}
@keyframes rotateRing { 100% { transform: rotate(360deg); } }

.btn:hover {
  transform: translateY(-5px); box-shadow: 0 15px 30px rgba(212, 175, 55, 0.5); color: var(--primary-dark);
}
.btn-outline:hover {
  background: #fff !important; color: var(--primary-dark) !important; border-color: transparent !important; box-shadow: 0 10px 20px rgba(255,255,255,0.2) !important;
}

/* ======= SECTIONS ======= */
.page-header {
  padding: 12rem 0 6rem; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  color: var(--text-light); text-align: center; position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-image: linear-gradient(rgba(212,175,55,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(212,175,55,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.page-header h1 { font-family: var(--font-serif); font-size: 4rem; position: relative; }

.section { padding: 8rem 0; position: relative; }
.section-bg-alt { background-color: var(--bg-card); }
.section-title-wrap { text-align: center; margin-bottom: 5rem; }
.section-subtitle { color: var(--accent-1); font-weight: 700; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 15px; display: block;}
.section-title { font-family: var(--font-serif); font-size: 3.5rem; color: var(--primary-dark); position: relative; display: inline-block; }

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }

/* Scroll Anim Class */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ======= LUXURY CARDS ======= */
.card {
  background: var(--bg-card); border-radius: 0; /* Modern, sharp architecture look */
  overflow: hidden; box-shadow: var(--shadow-soft); position: relative;
  transition: var(--transition); border: 1px solid rgba(0,0,0,0.05); border-bottom: 3px solid transparent;
}
.card:hover { border-bottom: 3px solid var(--accent-1); transform: translateY(-15px); box-shadow: var(--shadow-hover); }
.card-img { height: 320px; overflow: hidden; position: relative; }
.card-img::after {
  content:''; position: absolute; top:0; left:0; width:100%; height:100%;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent); opacity: 0; transition: 0.4s;
}
.card:hover .card-img::after { opacity: 1; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); }
.card:hover .card-img img { transform: scale(1.1); filter: brightness(1.1); }
.card-content { padding: 3rem 2.5rem; background: #fff; position: relative; z-index: 2; margin-top: -30px; margin-left: 20px; width: calc(100% - 40px); box-shadow: 0 -10px 20px rgba(0,0,0,0.05); }
.card-title { font-family: var(--font-serif); font-size: 1.8rem; margin-bottom: 1rem; color: var(--primary-dark); }
.card-text { color: var(--text-muted); margin-bottom: 1.5rem; }

/* Image wraps with architectural frames */
.about-img-wrap { position: relative; padding: 20px; }
.about-img-wrap::before {
  content: ''; position: absolute; top: 0; left: 0; width: 50%; height: 50%;
  border-top: 4px solid var(--accent-1); border-left: 4px solid var(--accent-1); z-index: 1; transition: 0.5s;
}
.about-img-wrap::after {
  content: ''; position: absolute; bottom: 0; right: 0; width: 50%; height: 50%;
  border-bottom: 4px solid var(--accent-1); border-right: 4px solid var(--accent-1); z-index: 1; transition: 0.5s;
}
.about-img-wrap:hover::before, .about-img-wrap:hover::after { width: 100%; height: 100%; }
.img-stylized { box-shadow: var(--shadow-hover); filter: contrast(1.05); }

/* Reference Cards */
.ref-card {
  padding: 3rem; display: flex; align-items: center; justify-content: center; height: 180px;
  background: #fff; box-shadow: var(--shadow-soft); transition: var(--transition); border-left: 2px solid var(--accent-1);
}
.ref-card:hover { background: var(--primary-dark); transform: scale(1.05); border-left: 8px solid var(--accent-1); }
.ref-card h3 { color: var(--primary-color); transition: var(--transition); }
.ref-card:hover h3 { color: var(--accent-1); }

/* Footer */
footer { background: var(--primary-dark); color: rgba(255,255,255,0.7); padding: 4rem 0 2rem; border-top: 5px solid var(--accent-1); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 4rem; margin-bottom: 4rem; }
.footer-col h3 { color: #fff; font-family: var(--font-serif); font-size: 1.6rem; margin-bottom: 2rem; position: relative; display: inline-block;}
.footer-col h3::after { content:''; position: absolute; bottom:-8px; left:0; width:30px; height:2px; background:var(--accent-1); }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

/* ======= NEW SECTIONS (Stats, Features, CTA) ======= */
.stats-section {
  background: var(--primary-dark);
  color: #fff;
  padding: 5rem 0;
  position: relative;
}
.stats-section::before {
  content:''; position:absolute; top:0; left:0; right:0; bottom:0;
  background-image: radial-gradient(rgba(212,175,55,0.05) 1px, transparent 1px);
  background-size: 30px 30px; z-index:0;
}
.stat-box {
  position: relative; z-index: 1;
}
.stat-number {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  color: var(--accent-1);
  margin-bottom: 0.5rem;
  line-height: 1;
  text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.stat-text {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.8);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.feature-list li {
  position: relative;
  padding-left: 3rem;
}
.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: -5px;
  font-size: 1.5rem;
  color: var(--accent-1);
  font-weight: bold;
}
.feature-list li strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}
.feature-list li p {
  color: var(--text-muted);
}

.cta-section {
  background: linear-gradient(rgba(3, 21, 11, 0.85), rgba(3, 21, 11, 0.85)), url('https://images.unsplash.com/photo-1541888082-ce374c0c1b72?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover fixed;
  padding: 8rem 0;
  text-align: center;
  color: #fff;
  margin-top: 0;
}
.cta-content {
  max-width: 800px;
  margin: 0 auto;
}
.cta-content h2 {
  font-family: var(--font-serif);
  font-size: 3rem;
  margin-bottom: 1.5rem;
}
.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  color: rgba(255,255,255,0.8);
}

/* ======= PROJECT DETAIL ======= */
.project-sidebar { background: #fff; padding: 2.5rem; border-radius: 0; box-shadow: var(--shadow-soft); border-top: 4px solid var(--accent-1); }
.project-sidebar h3 { font-family: var(--font-serif); font-size: 1.5rem; color: var(--primary-dark); margin-bottom: 1.5rem; }
.project-sidebar ul li { border-bottom: 1px solid #eee; padding: 1rem 0; display: flex; justify-content: space-between; font-size: 0.95rem;}
.project-sidebar ul li:last-child { border-bottom: none; }
.project-sidebar ul li strong { color: var(--primary-dark); }
.project-gallery img { border-radius: 0; margin-bottom: 2rem; box-shadow: var(--shadow-soft); transition: var(--transition); width: 100%; }
.project-gallery img:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); filter: brightness(1.05); }

/* ======= BLOG DETAIL ======= */
.blog-article { background: #fff; padding: 4rem; box-shadow: var(--shadow-soft); border-top: 4px solid var(--accent-1); }
.blog-article h1 { font-family: var(--font-serif); font-size: 2.5rem; color: var(--primary-dark); margin-bottom: 1rem; }
.blog-meta { display: flex; gap: 2rem; color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; border-bottom: 1px solid #eee; padding-bottom: 1.5rem; }
.blog-content p { font-size: 1.15rem; color: #555; margin-bottom: 1.5rem; line-height: 1.8; }
.blog-content h2 { font-family: var(--font-serif); font-size: 2rem; color: var(--primary-dark); margin: 3rem 0 1.5rem; }
.blog-content blockquote { font-family: var(--font-serif); font-size: 1.5rem; color: var(--accent-1); border-left: 4px solid var(--accent-1); padding-left: 2rem; margin: 3rem 0; font-style: italic; }
.blog-sidebar-widget { background: #fff; padding: 2.5rem; box-shadow: var(--shadow-soft); margin-bottom: 2rem; }
.blog-sidebar-widget h3 { font-family: var(--font-serif); font-size: 1.4rem; color: var(--primary-dark); margin-bottom: 1.5rem; position: relative; padding-bottom: 10px; }
.blog-sidebar-widget h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--accent-1); }
.blog-sidebar-list li { padding: 1rem 0; border-bottom: 1px dashed #eee; transition: 0.3s; }
.blog-sidebar-list li:hover { padding-left: 10px; color: var(--primary-color); }

/* ======= CONTACT FORM ======= */
.contact-card { background: #fff; padding: 3rem; box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-top: 4px solid var(--accent-1); position: relative; z-index: 2; margin-top: -3rem; }
.form-group { position: relative; margin-bottom: 2.5rem; }
.form-control { width: 100%; padding: 1rem 0; border: none; border-bottom: 2px solid #ddd; background: transparent; outline: none; font-size: 1.1rem; color: var(--primary-dark); transition: var(--transition); border-radius: 0; }
.form-control:focus { border-bottom-color: var(--accent-1); box-shadow: 0 10px 10px -10px rgba(212,175,55,0.2); }
.form-label { position: absolute; top: 1rem; left: 0; color: #999; font-size: 1.1rem; pointer-events: none; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.form-control:focus ~ .form-label, .form-control:not(:placeholder-shown) ~ .form-label { top: -1.2rem; font-size: 0.85rem; color: var(--accent-1); font-weight: 500; font-family: var(--font-serif); letter-spacing: 1px;}
.contact-info-list { list-style: none; margin-top: 2rem; }
.contact-info-list li { margin-bottom: 2rem; display: flex; gap: 1.5rem; align-items: flex-start; }
.contact-info-list li .icon { width: 50px; height: 50px; background: rgba(212,175,55,0.1); color: var(--accent-1); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-info-list li h4 { color: var(--primary-dark); font-family: var(--font-serif); margin-bottom: 0.5rem; font-size: 1.2rem; }
.contact-info-list li p { color: #666; line-height: 1.5; font-size: 1rem; }

/* Services 4-grid - responsive */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* ======= RESPONSIVENESS ======= */
.hamburger { display: none; cursor: pointer; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; margin-top: 1rem; }

@media (max-width: 1200px) {
  .hero-content h1 { font-size: 4rem; }
  .section-title { font-size: 3rem; }
  .container { width: 95%; max-width: 100%; }
  .hero-container { flex-direction: column; justify-content: center; text-align: center; gap: 3rem; padding-top: 7rem; padding-bottom: 4rem; }
  .hero { height: auto; min-height: 100vh; padding-bottom: 4rem; overflow-y: visible; }
  .hero-content { text-align: center; max-width: 100%; }
  .hero-actions { justify-content: center; }
  /* Fixed: was opacity:0 which caused blank space */
  .hero-image-wrap { width: 90%; max-width: 420px; height: 480px; margin: 0 auto; opacity: 1; transform: none; }
}

@media (max-width: 991px) {
  .section { padding: 4rem 0; }
  .page-header { padding: 9rem 0 4rem; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .grid-2 { grid-template-columns: 1fr; gap: 3rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; gap: 2rem !important; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; margin-bottom: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }

  .hero-content h1 { font-size: 3.5rem; }
  .stat-number { font-size: 3.5rem; }
  .section-title { font-size: 2.8rem; }

  .grid-2 > div { order: 1 !important; }
  .about-img-wrap { margin-top: 1rem; margin-bottom: 1rem; padding: 15px; }
}

@media (max-width: 768px) {
  /* Hamburger - 3 çizgi animasyonlu */
  .hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    cursor: pointer;
    z-index: 1010;
    position: relative;
    border: 1px solid rgba(255,255,255,0.2);
  }
  header.scrolled .hamburger { background: rgba(12,57,35,0.1); border-color: rgba(12,57,35,0.2); }
  .hamburger span {
    display: block;
    width: 20px; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  header.scrolled .hamburger span { background: var(--primary-dark); }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body:not(.loaded) .hamburger { display: none !important; }
  header { padding: 0.5rem 0; }

  /* Dark overlay */
  .nav-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
    z-index: 999;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .nav-overlay.active { opacity: 1; pointer-events: all; }

  /* Mobile Nav panel */
  nav ul {
    position: fixed; top: 0; right: -100%;
    width: min(300px, 82%);
    height: 100vh; height: 100dvh;
    background: linear-gradient(160deg, #02110a 0%, var(--primary-dark) 60%, #0e3a1e 100%);
    flex-direction: column; justify-content: flex-start;
    padding: 0; z-index: 1000;
    overflow-y: auto;
    box-shadow: -4px 0 30px rgba(0,0,0,0.5);
    transition: right 0.35s cubic-bezier(0.77,0,0.175,1);
    border-left: 3px solid var(--accent-1);
  }
  nav ul.active { right: 0; }

  /* Nav logo area */
  nav ul::before {
    content: 'MRL İNŞAAT';
    display: block;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--accent-1);
    letter-spacing: 3px;
    padding: 2.5rem 1.8rem 1.5rem;
    border-bottom: 1px solid rgba(212,175,55,0.2);
  }

  nav ul li { margin: 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  nav ul li:last-child { border-bottom: none; }
  nav ul li a {
    color: rgba(255,255,255,0.8) !important;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.1rem 1.8rem;
    transition: all 0.2s ease;
  }
  nav ul li a::before { content: '▸'; color: var(--accent-1); font-size: 0.7rem; opacity: 0; transition: opacity 0.2s; flex-shrink: 0; }
  nav ul li a:hover { color: #fff !important; background: rgba(255,255,255,0.05); padding-left: 2.2rem; }
  nav ul li a:hover::before { opacity: 1; }
  nav ul li a.active { color: var(--accent-1) !important; background: rgba(212,175,55,0.08); }
  nav ul li a.active::before { opacity: 1; }
  nav ul li a::after { display: none; }

  /* ===== Mobile Hizmetlerimiz Accordion ===== */
  .has-dropdown > a.dropdown-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100%;
  }
  .has-dropdown .arrow {
    font-size: 0.65rem;
    color: var(--accent-1);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    opacity: 0.8;
  }
  .has-dropdown.open > a.dropdown-toggle { color: var(--accent-1) !important; }
  .has-dropdown.open .arrow { transform: rotate(180deg); opacity: 1; }

  /* Dropdown listesi */
  .has-dropdown .dropdown-menu {
    display: block !important;
    position: static !important;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-height: 0;
    overflow: hidden;
    opacity: 1 !important;
    visibility: visible !important;
    transition: max-height 0.38s ease !important;
  }
  .has-dropdown.open .dropdown-menu { max-height: 480px !important; }

  /* Her link */
  .dropdown-menu li { border: none !important; margin: 0 !important; }
  .dropdown-menu li a {
    display: block !important;
    color: rgba(255,255,255,0.6) !important;
    font-size: 0.83rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.5px !important;
    text-transform: none !important;
    padding: 0.65rem 1.8rem 0.65rem 3rem !important;
    margin: 0 !important;
    border: none !important;
    border-left: 2px solid rgba(212,175,55,0.2) !important;
    margin-left: 2rem !important;
    background: transparent !important;
    transition: color 0.2s, border-color 0.2s !important;
    white-space: nowrap !important;
  }
  .dropdown-menu li:first-child a { padding-top: 0.8rem !important; }
  .dropdown-menu li:last-child a  { padding-bottom: 0.9rem !important; }
  .dropdown-menu li a:hover {
    color: var(--accent-1) !important;
    border-left-color: var(--accent-1) !important;
  }
  .dropdown-menu li a::before,
  .dropdown-menu li a::after { display: none !important; }

  /* Hero */
  .hero-content h1 { font-size: 2.4rem; margin-bottom: 1rem; letter-spacing: -1px; }
  .hero-subtitle { letter-spacing: 2px; font-size: 0.85rem; margin-bottom: 1rem; }
  .hero-text-wrap p { font-size: 1rem; padding-left: 0; border: none; margin-bottom: 2rem; }
  .hero-actions { flex-direction: column; gap: 0.8rem; align-items: center; }
  .btn { padding: 0.9rem 1.8rem; font-size: 0.95rem; width: 100%; max-width: 320px; margin-bottom: 0; }

  /* Hero image */
  .hero-image-wrap { height: 360px; width: 95%; max-width: 340px; }
  .hero-image-secondary { width: 140px; height: 170px; right: -10px; bottom: -10px; }
  .hero-glass-badge { padding: 0.8rem 1rem; left: -5px; bottom: 15px; }
  .hero-glass-badge span { font-size: 1.4rem; }
  .hero-deco-ring { display: none; }

  /* Grids */
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; gap: 1.5rem !important; }
  .grid-3 { grid-template-columns: 1fr; gap: 2rem; }
  .preloader-brand span { font-size: 2.5rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding-top: 0.5rem; }
  .footer-col h3::after { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }

  /* Sections */
  .cta-content h2 { font-size: 2rem; }
  .cta-section { padding: 4rem 0; }
  .card-img { height: 240px; }
  .card-content { padding: 1.5rem; margin-top: -15px; width: calc(100% - 20px); margin-left: 10px; }
  .section-title { font-size: 2.2rem; }
  .section-title-wrap { margin-bottom: 2.5rem; }
  .section { padding: 3.5rem 0; }

  /* Stats */
  .grid-4[style] { grid-template-columns: repeat(2, 1fr) !important; }

  /* Blog sidebar hide on mobile */
  .blog-article { padding: 2rem; }
}

@media (max-width: 576px) {
  .hero-content h1 { font-size: 2rem; }
  .hero-image-wrap { height: 300px; max-width: 300px; }
  .page-header h1 { font-size: 2.2rem; }
  .page-header { padding: 8rem 0 3rem; }
  .section { padding: 3rem 0; }
  .stat-number { font-size: 2.8rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem !important; }
  .btn { font-size: 0.9rem; padding: 0.8rem 1.5rem; }
  .section-title { font-size: 1.9rem; }
  .cta-content h2 { font-size: 1.8rem; }
  .footer-col h3 { font-size: 1.3rem; }
}
