/* Color palette */
:root {
  --color-bg: #F5F8FF; /* daha açık mavi taban */
  --color-text: #0F1B2E; /* koyu lacivert metin */
  --color-muted: #4A5B73; /* soğuk gri-mavi */
  --color-primary: #0E3A8A; /* lacivert/mavi */
  --color-accent: #3B82F6; /* vurgu mavisi */
  --overlay-dark: rgba(10,22,40,0.40); /* mavi tonlu kararma */
}

/* Reset & base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
}

/* Fluid media */
img, video { max-width: 100%; height: auto; display: block; }
iframe { max-width: 100%; }

h1, h2, h3 { font-family: 'Montserrat', 'Poppins', Arial, sans-serif; margin: 0 0 0.5rem; }
h1 { font-weight: 800; letter-spacing: -0.02em; }
h2 { font-weight: 700; letter-spacing: -0.01em; }
h3 { font-weight: 600; }
p { margin: 0 0 1rem; color: var(--color-muted); }

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(245,248,255,0.7);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(14,58,138,0.12);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 0; }
.brand { font-weight: 800; font-family: 'Montserrat', sans-serif; letter-spacing: 0.03em; }
.brand img { display: block; height: 56px; }
.nav { display: flex; gap: 1rem; align-items: center; }
.nav-link { text-decoration: none; color: var(--color-text); font-weight: 500; }
.nav-link:hover { color: var(--color-accent); }
/* Mobile nav toggle (hidden on desktop) */
.nav-toggle { display: none; background: rgba(59,130,246,0.15); color: #0E3A8A; border: 1px solid rgba(14,58,138,0.25); width: 42px; height: 42px; border-radius: 10px; font-size: 20px; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-accent); color: #06111f; }
.btn-primary:hover { background: #2563EB; color: #04101e; }
.btn-secondary { background: rgba(59,130,246,0.18); color: #E8F1FF; border: 1px solid rgba(59,130,246,0.35); }
.btn-secondary:hover { background: rgba(59,130,246,0.28); }
.btn-accent { background: var(--color-accent); color: #06111f; padding: 0.5rem 0.9rem; }
.btn-ghost { color: #E8F1FF; border: 1px solid rgba(168, 195, 255, 0.45); padding: 0.4rem 0.8rem; border-radius: 999px; }
.btn-ghost:hover { background: rgba(59,130,246,0.18); }

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  background: var(--color-primary) center/cover no-repeat;
  background-image: var(--hero-image);
  display: grid;
  align-items: center;
}
.hero-overlay {
  position: absolute; inset: 0; background: var(--overlay-dark);
}
.hero-content {
  position: relative;
  padding: 8rem 0 4rem; /* header offset */
  color: #fff;
}
.hero-title { font-size: clamp(2rem, 6vw, 4rem); line-height: 1.05; margin-bottom: 0.6rem; }
.hero-subtitle { font-size: clamp(1rem, 2.4vw, 1.25rem); color: #D8E6FF; margin-bottom: 1.2rem; }
.hero-ctas { display: flex; gap: 0.8rem; flex-wrap: wrap; }
/* Hero slider controls */
.hero-controls { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; padding: 1rem; pointer-events: none; }
.hero-arrow { pointer-events: auto; position: absolute; top: 50%; transform: translateY(-50%); background: rgba(8,24,60,0.45); color: #E6F0FF; border: 1px solid rgba(168,195,255,0.4); width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; font-size: 22px; cursor: pointer; }
.hero-arrow:hover { background: rgba(8,24,60,0.6); }
.hero-arrow.prev { left: 1rem; }
.hero-arrow.next { right: 1rem; }
.hero-dots { pointer-events: auto; margin: 0 auto 0.5rem; display: flex; gap: 6px; align-items: center; }
.hero-dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(221,233,255,0.6); border: 1px solid rgba(168,195,255,0.5); cursor: pointer; }
.hero-dot.active { background: #3B82F6; border-color: #3B82F6; }

/* Section head */
.section-head { text-align: center; padding: 4rem 0 2rem; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }

/* Values */
.values { padding-bottom: 3rem; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-bottom: 2rem;
}
.value-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.value-media {
  height: 140px;
  background: center/cover no-repeat;
  background-image: var(--card-image);
}
.value-body { padding: 1rem; }
.value-body h3 { margin-bottom: 0.25rem; font-size: 1.05rem; }

/* Projects */
.projects { padding-bottom: 3rem; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.project-card {
  position: relative;
  display: block;
  aspect-ratio: 16/10;
  border-radius: 18px;
  overflow: hidden;
  background: #111 center/cover no-repeat;
  background-image: var(--project-image);
  color: #fff;
}
.project-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,20,40,0.12), rgba(8,24,60,0.6)); }
.project-info {
  position: absolute; inset: auto 0 0 0;
  padding: 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
}
.project-card:hover .project-overlay { background: linear-gradient(180deg, rgba(8,24,60,0.15), rgba(6,20,50,0.7)); }

/* About */
.about {
  position: relative;
  min-height: 60vh;
  background: #0b1220 center/cover no-repeat;
  background-image: var(--about-image);
  display: grid; align-items: center;
}
.about-overlay { position: absolute; inset: 0; background: rgba(6, 18, 40, 0.50); }
.about-content { position: relative; color: #EAF2FF; padding: 4rem 0; max-width: 800px; }
.about-content h2 { color: #FFFFFF; margin-bottom: 0.6rem; }
.about-content p { color: #D8E6FF; }

/* Footer */
.site-footer {
  position: relative;
  color: #fff;
  background: #0E3A8A;
}
.footer-overlay { display: none; }
.footer-inner {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  padding: 3rem 0 1.5rem;
}
.footer-nav a { color: #DDE9FF; text-decoration: none; display: inline-block; margin-right: 0.8rem; }
.footer-nav a:hover { color: #BFD5FF; }
.footer-copy { position: relative; padding: 0 0 1.2rem; color: #C9DBFF; }
/* Force all footer texts to white */
.site-footer p { color: #fff; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-nav a { color: #fff; }
.site-footer .footer-nav a:hover { color: #fff; }
.footer-copy { color: #fff; }

/* Services */
.services { padding: 2rem 0 3rem; }
.services-intro { text-align: center; max-width: 800px; margin: 0 auto 1rem; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.service-card { background: #fff; border-radius: 16px; padding: 1.2rem; box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
.service-card h3 { margin-bottom: 0.4rem; }
.service-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(59,130,246,0.15); display: grid; place-items: center; color: #0E3A8A; margin-bottom: 0.6rem; font-weight: 700; }

/* References */
.references { padding: 2rem 0 3rem; }
.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ref-card { background: #fff; border-radius: 16px; padding: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
.ref-quote { font-style: italic; color: #334155; }
.ref-author { margin-top: 0.5rem; font-weight: 600; color: #0F1B2E; }

/* Contact */
.contact { padding: 2rem 0 3rem; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1rem; }
.contact-map { border-radius: 16px; overflow: hidden; min-height: 320px; box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
.contact-card { background: #fff; border-radius: 16px; padding: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
.contact-card a { color: #0E3A8A; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.contact-form { display: grid; gap: 0.6rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 0.7rem 0.8rem; border-radius: 10px; border: 1px solid #CBD5E1; font-family: inherit; }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .btn { width: fit-content; }

/* Social */
.social { display: flex; gap: 0.6rem; }
.social a { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; background: rgba(255,255,255,0.12); color: #fff; text-decoration: none; }
.social a:hover { background: rgba(255,255,255,0.2); }

/* Utilities */
@media (max-width: 1024px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .ref-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header-inner { padding: 0.6rem 0; }
  .nav { gap: 0.6rem; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  /* Collapse nav into overlay panel */
  .nav { position: fixed; top: 56px; left: 0; right: 0; background: rgba(245,248,255,0.98); backdrop-filter: blur(8px); flex-direction: column; align-items: flex-start; padding: 0.8rem; border-bottom: 1px solid rgba(14,58,138,0.12); transform: translateY(-120%); opacity: 0; pointer-events: none; transition: transform 0.25s ease, opacity 0.25s ease; z-index: 49; }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-link { width: 100%; padding: 0.5rem 0.25rem; }
  .values-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .about { min-height: 50vh; }
  .footer-inner { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .ref-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 6rem 0.5rem 3rem; }
  .brand img { height: 36px; }
  /* Hide hero arrows on small screens */
  .hero-arrow { display: none; }
}


