:root {
  --dark: #0a1628;
  --steel: #1e3a5f;
  --accent: #2e8bc0;
  --accent-2: #4fc3f7;
  --accent-dark: #1c6690;
  --light: #f4f6f8;
  --text: #1c2530;
}

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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--light);
}

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

/* Navbar */
.navbar {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.logo span { color: var(--accent); font-weight: 800; }
.logo small {
  display: block;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 2px;
  color: #7d93ab;
  margin-top: -2px;
}

nav a {
  color: #cfd8e3;
  text-decoration: none;
  margin-left: 28px;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover { color: var(--accent); }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--dark), var(--steel) 60%, var(--accent-dark));
  color: #fff;
  padding: 120px 0 100px;
  overflow: hidden;
}

.scan-line {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.scan-line::after {
  content: "";
  position: absolute;
  left: 0%;
  top: 92%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px 2px rgba(79,195,247,0.7);
  animation: glow-travel 22s ease-in-out infinite;
}

@keyframes glow-travel {
  0% { left: 0%; top: 92%; opacity: 0; width: 7px; height: 7px; }
  4.5% { opacity: 1; }
  22.7% { left: 80%; top: 92%; width: 7px; height: 7px; opacity: 1; }
  25% { width: 12px; height: 12px; box-shadow: 0 0 14px 4px rgba(79,195,247,0.85); }
  29.5% { left: 80%; top: 32%; opacity: 1; }
  31% { left: 80%; top: 32%; width: 7px; height: 7px; opacity: 0; }
  100% { left: 80%; top: 32%; width: 7px; height: 7px; opacity: 0; }
}

.burst {
  position: absolute;
  left: 80%;
  top: 32%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,195,247,0.9), transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  animation: burst-pop 22s ease-out infinite;
}

@keyframes burst-pop {
  0%, 29% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  31% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
  37% { transform: translate(-50%, -50%) scale(7); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
}

.logo-flash {
  position: absolute;
  left: 80%;
  top: 32%;
  width: 170px;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  filter: drop-shadow(0 0 20px rgba(79,195,247,0.45));
  animation: logo-flash-show 22s ease-in-out infinite;
}

@keyframes logo-flash-show {
  0%, 31% { transform: translate(-50%, -50%) scale(0.6); opacity: 0; }
  38.6% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  84.1% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.08); opacity: 0; }
}

@media (max-width: 760px) {
  .logo-flash { width: 100px; }
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-text { max-width: 650px; text-align: left; }

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero p {
  max-width: 550px;
  margin: 0 0 32px;
  color: #d6dde6;
  font-size: 1.1rem;
}

@media (max-width: 760px) {
  .hero-text { text-align: center; margin: 0 auto; }
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.btn:hover { background: var(--accent-dark); }

/* Sections */
.section {
  padding: 80px 0;
}

.section.alt {
  background: #e9edf1;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--dark);
  border-left: 5px solid var(--accent);
  padding-left: 14px;
}

.section p {
  margin-bottom: 16px;
  max-width: 800px;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card {
  background: #fff;
  padding: 28px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border-top: 4px solid var(--accent);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: #f0f3f6;
  border: 1px solid #e1e7ec;
}

.card-icon svg { width: 38px; height: 38px; }
.card-icon img { width: 44px; height: 44px; object-fit: contain; }

.card h3 {
  margin-bottom: 12px;
  color: var(--dark);
}

.contact-list {
  list-style: none;
  margin-top: 20px;
  font-size: 1.1rem;
}

.contact-list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.btn-whatsapp {
  display: inline-block;
  margin-top: 12px;
  background: #25d366;
  color: #fff !important;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-whatsapp:hover { background: #1ebe5d; }

/* References */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.ref-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}

.ref-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.ref-thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2f5;
}

.ref-thumb img { width: 80px; height: 80px; object-fit: contain; }

.ref-body {
  padding: 18px 20px;
}

.ref-body h4 {
  color: var(--dark);
  margin-bottom: 6px;
}

.ref-body p {
  font-size: 0.92rem;
  color: #586575;
  margin-bottom: 0;
}

/* Footer */
footer {
  background: var(--dark);
  color: #9fb0c0;
  text-align: center;
  padding: 24px 0;
}

@media (max-width: 640px) {
  nav a { margin-left: 14px; font-size: 0.9rem; }
  .hero h1 { font-size: 1.8rem; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.card.reveal { transition-delay: 0.1s; }
.card:nth-child(2).reveal { transition-delay: 0.22s; }
.ref-card.reveal { transition-delay: 0.1s; }
.ref-card:nth-child(2).reveal { transition-delay: 0.22s; }

/* Navbar scroll effect */
.navbar { transition: background 0.3s, box-shadow 0.3s; }
.navbar.scrolled {
  background: rgba(10, 22, 40, 0.97);
  box-shadow: 0 2px 18px rgba(0,0,0,0.35);
}

/* Hero animated gradient */
.hero {
  background-size: 200% 200%;
  animation: hero-gradient 12s ease infinite;
}
@keyframes hero-gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Card border glow on hover */
.card:hover { border-top-color: var(--accent-2); }

/* Section accent line animation */
.section h2 {
  transition: padding-left 0.3s;
}
.section h2:hover { padding-left: 20px; }

/* Service blocks */
.service-block {
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  border-left: 5px solid var(--accent);
}

.service-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.service-header .card-icon {
  flex-shrink: 0;
  margin-bottom: 0;
}

.service-header h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.service-header p { margin-bottom: 0; }

/* Media grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.media-item {
  position: relative;
  border-radius: 6px;
  overflow: visible; /* zoom taşabilsin */
  cursor: pointer;
  background: #e9edf1;
  aspect-ratio: 4/3;
  transition: transform 0.35s cubic-bezier(.25,.8,.25,1), box-shadow 0.35s ease;
  z-index: 1;
}

/* Video: hover'da büyü */
.media-item.hovered {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(0,0,0,0.22);
  z-index: 10;
}

/* Resim: tıklanınca büyü */
.media-item.zoomed {
  transform: scale(1.18);
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
  z-index: 10;
}

.media-item img,
.media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

.media-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(10,22,40,0.82));
  color: #fff;
  font-size: 0.82rem;
  padding: 22px 10px 8px;
  border-radius: 0 0 6px 6px;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.media-item:hover .media-caption,
.media-item.zoomed .media-caption {
  opacity: 1;
}

/* Button pulse */
.btn {
  animation: btn-pulse 3s ease-in-out infinite;
}
@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46,139,192,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(46,139,192,0); }
}
