/* ============================================================
   COMET CNC – Ana Stil Dosyası
   ============================================================ */

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

:root {
  --blue:   #0a6ebd;
  --blue2:  #0d8fef;
  --dark:   #050d18;
  --darker: #030810;
  --mid:    #0c1a2e;
  --light:  #f0f4f8;
  --muted:  #7a93ae;
  --border: rgba(255,255,255,0.07);
  --font:   'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { background: var(--dark); color: var(--light); font-family: var(--font); overflow-x: hidden; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--darker); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* ── NAV ─────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 68px;
  background: rgba(3,8,16,0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.4s;
}

nav.scrolled { background: rgba(3,8,16,0.97); }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--light);
  font-size: 1.55rem; font-weight: 900; letter-spacing: 0.2em;
}

.nav-logo-icon {
  width: 36px; height: 36px;
  background: var(--blue);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex; align-items: center; justify-content: center;
}

.nav-logo-icon svg { width: 18px; height: 18px; fill: white; }

.nav-links {
  display: flex; gap: 2.2rem; list-style: none; align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.75); text-decoration: none;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; transition: color 0.25s;
}

.nav-links a:hover { color: #fff; }

.nav-cta {
  background: var(--blue) !important; color: #fff !important;
  padding: 0.48rem 1.3rem; border-radius: 3px;
}

.nav-cta:hover { background: var(--blue2) !important; }

/* ── HERO ────────────────────────────────────── */
#hero {
  position: relative; width: 100%; height: 100vh; min-height: 620px;
  overflow: hidden; display: flex; align-items: center;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('https://images.pexels.com/photos/7480241/pexels-photo-7480241.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1080&dpr=1');
  background-size: cover;
  background-position: center;
}

.hero-bg::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(3,8,16,0.97) 0%, rgba(3,8,16,0.85) 40%, rgba(3,8,16,0.35) 70%, rgba(3,8,16,0.2) 100%),
    linear-gradient(to top, rgba(3,8,16,0.7) 0%, transparent 40%);
}

.hero-orb {
  position: absolute; right: -8%; top: 50%; transform: translateY(-50%);
  width: min(700px, 80vw); height: min(700px, 80vw);
  z-index: 2;
}

.hero-orb::before {
  content: '';
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(80,180,255,0.18) 0%, rgba(10,80,180,0.25) 40%, rgba(5,20,60,0.9) 70%, transparent 100%);
  box-shadow:
    0 0 120px rgba(10,110,189,0.35),
    inset 0 0 80px rgba(10,60,180,0.15);
}

.hero-orb::after {
  content: '';
  position: absolute; inset: -5%; border-radius: 50%;
  border: 1px solid rgba(10,110,189,0.2);
  border-top-color: rgba(10,110,189,0.6);
  animation: spin 18s linear infinite;
}

.hero-ring2 {
  position: absolute; right: -8%; top: 50%;
  transform: translateY(-50%) rotate(35deg);
  width: min(700px, 80vw); height: min(700px, 80vw);
  border-radius: 50%;
  border: 1px solid rgba(10,110,189,0.1);
  border-right-color: rgba(80,180,255,0.4);
  animation: spin 30s linear infinite reverse;
  z-index: 3;
}

@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

.hero-machine {
  position: absolute; right: -8%; top: 50%;
  transform: translateY(-50%);
  width: min(700px, 80vw); height: min(700px, 80vw);
  z-index: 4;
  display: flex; align-items: center; justify-content: center;
}

.hero-machine img {
  width: 72%; height: 72%;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.38;
  filter: brightness(0.7) saturate(0.6) blur(0.4px);
  mask-image: radial-gradient(circle, black 55%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle, black 55%, transparent 75%);
}

.scan-line {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(10,110,189,0) 20%, rgba(80,200,255,0.7) 50%, rgba(10,110,189,0) 80%, transparent 100%);
  z-index: 5;
  animation: scan 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scan {
  0%   { top: 15%; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 0.6; }
  100% { top: 85%; opacity: 0; }
}

.particles { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.particle {
  position: absolute; border-radius: 50%;
  background: var(--blue2); opacity: 0;
  animation: pfloat var(--d) var(--dl) linear infinite;
}

@keyframes pfloat {
  0%   { transform: translateY(100vh); opacity: 0; }
  8%   { opacity: 0.5; }
  92%  { opacity: 0.2; }
  100% { transform: translateY(-5vh) translateX(var(--dx)); opacity: 0; }
}

.hero-content {
  position: relative; z-index: 10;
  padding: 0 6vw; max-width: 680px;
  animation: fadeUp 0.9s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--blue2);
  margin-bottom: 1.8rem;
}

.hero-tag::before {
  content: '';
  display: block; width: 28px; height: 2px;
  background: var(--blue2);
}

.hero-title {
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  font-weight: 900; line-height: 1.05;
  letter-spacing: 0.01em; color: #fff;
  text-shadow: 0 2px 40px rgba(10,80,160,0.4);
  margin-bottom: 1.5rem;
}

.hero-title .line2 { color: var(--blue2); }

.hero-desc {
  font-size: 1rem; color: rgba(255,255,255,0.6);
  line-height: 1.75; max-width: 480px;
  margin-bottom: 3rem;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-blue {
  background: var(--blue); color: #fff;
  padding: 0.9rem 2.2rem; border-radius: 3px; border: none;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; cursor: pointer; text-decoration: none;
  display: inline-block;
  transition: background 0.25s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 24px rgba(10,110,189,0.4);
}

.btn-blue:hover {
  background: var(--blue2); transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(10,110,189,0.55);
}

.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 10; display: flex; flex-direction: column;
  align-items: center; gap: 6px;
}

.hero-scroll span {
  font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
}

.arrow-down {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--blue2), transparent);
  animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

/* ── SECTION ORTAK ──────────────────────────── */
section { padding: 7rem 6vw; }

.section-header { margin-bottom: 4.5rem; }
.section-header.center { text-align: center; }
.section-header.center .divider { margin: 1.2rem auto 0; }
.section-header.center .section-desc { margin: 1rem auto 0; }

.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--blue2);
  margin-bottom: 0.9rem;
}

.section-tag::before {
  content: ''; display: block; width: 22px; height: 2px;
  background: var(--blue2);
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800; line-height: 1.15; letter-spacing: 0.02em;
}

.section-title span { color: var(--blue2); }

.section-desc {
  color: var(--muted); font-size: 0.95rem;
  max-width: 520px; line-height: 1.7; margin-top: 1rem;
}

.divider {
  width: 50px; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue2));
  margin-top: 1.2rem; border-radius: 2px;
}

/* ── MAKİNELER ──────────────────────────────── */
#makineler { background: var(--darker); }

.machines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.8rem; max-width: 1200px; margin: 0 auto;
}

.machine-card {
  background: var(--mid);
  border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
  position: relative;
}

.machine-card:hover {
  transform: translateY(-6px);
  border-color: rgba(10,110,189,0.5);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 50px rgba(10,110,189,0.07);
}

.machine-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue2));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s;
}

.machine-card:hover::after { transform: scaleX(1); }

.machine-visual {
  aspect-ratio: 16/10; position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.machine-visual img {
  width: 100%; height: 100%; object-fit: contain;
  padding: 1.2rem;
  background: #0e1825;
  transition: transform 0.5s ease, filter 0.4s ease;
  filter: brightness(0.92) saturate(0.9);
}

.machine-card:hover .machine-visual img {
  transform: scale(1.04);
  filter: brightness(1) saturate(1);
}

.machine-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(3,8,22,0.5) 0%, transparent 50%);
  pointer-events: none; z-index: 1;
}

.machine-badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: rgba(10,110,189,0.2);
  border: 1px solid rgba(10,110,189,0.4);
  color: var(--blue2); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.28rem 0.7rem; border-radius: 2px;
}

.machine-info { padding: 1.8rem; }

.machine-brand {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--blue2); margin-bottom: 0.3rem;
}

.machine-name {
  font-size: 1.5rem; font-weight: 800; letter-spacing: 0.05em;
  color: #fff; margin-bottom: 1.2rem;
}

.machine-specs { list-style: none; }

.machine-specs li {
  display: flex; justify-content: space-between;
  font-size: 0.82rem; color: var(--muted);
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.machine-specs li:last-child { border-bottom: none; }
.machine-specs li span:last-child { color: #d0e8ff; font-weight: 600; }

/* ── ÜRÜNLER ─────────────────────────────────── */
#urunler { background: var(--dark); }

.products-placeholder {
  max-width: 650px; margin: 0 auto; text-align: center;
  padding: 5rem 2rem;
  border: 1px dashed rgba(10,110,189,0.25);
  border-radius: 8px;
  background: rgba(10,110,189,0.03);
}

.products-placeholder svg {
  width: 56px; height: 56px; opacity: 0.2;
  display: block; margin: 0 auto 1.5rem;
}

.products-placeholder h3 {
  font-size: 1rem; font-weight: 600; color: var(--muted); margin-bottom: 0.6rem;
}

.products-placeholder p { font-size: 0.88rem; color: #3a5570; line-height: 1.65; }

/* ── HAKKIMIZDA ──────────────────────────────── */
#hakkimizda { background: var(--darker); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; max-width: 900px; margin: 0 auto;
}

.feature-card {
  padding: 2rem 1.8rem;
  background: var(--mid); border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
  border-color: rgba(10,110,189,0.35); transform: translateY(-4px);
}

.feature-icon {
  width: 44px; height: 44px; margin-bottom: 1.2rem;
  background: rgba(10,110,189,0.12);
  border: 1px solid rgba(10,110,189,0.25);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}

.feature-icon svg {
  width: 20px; height: 20px;
  stroke: var(--blue2); fill: none; stroke-width: 1.8;
}

.feature-card h3 { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 0.55rem; }
.feature-card p  { font-size: 0.83rem; color: var(--muted); line-height: 1.65; }

/* ── İLETİŞİM ────────────────────────────────── */
#iletisim { background: var(--dark); }

.contact-wrapper {
  display: flex; justify-content: center;
  max-width: 600px; margin: 0 auto;
}

.contact-info h2 {
  font-size: 1.9rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.2;
}

.contact-info h2 span { color: var(--blue2); }

.contact-info > p {
  color: var(--muted); line-height: 1.7; margin-bottom: 2.5rem; font-size: 0.93rem;
}

.contact-items { display: flex; flex-direction: column; gap: 1.4rem; }

.contact-item { display: flex; gap: 1rem; align-items: flex-start; }

.contact-item-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(10,110,189,0.12);
  border: 1px solid rgba(10,110,189,0.25);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}

.contact-item-icon svg {
  width: 17px; height: 17px;
  stroke: var(--blue2); fill: none; stroke-width: 1.8;
}

.contact-item-text strong {
  display: block; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.2rem;
}

.contact-item-text a,
.contact-item-text span {
  color: #c8dff0; text-decoration: none; font-size: 0.92rem;
  transition: color 0.25s;
}

.contact-item-text a:hover { color: var(--blue2); }

.contact-form {
  background: var(--mid);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 2.5rem;
}

.form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-bottom: 1rem;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.45rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 5px; padding: 0.82rem 1rem;
  color: var(--light); font-family: var(--font);
  font-size: 0.88rem; outline: none; resize: none;
  transition: border-color 0.25s, background 0.25s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue);
  background: rgba(10,110,189,0.05);
}

.form-group select option { background: #0c1a2e; }
.form-group textarea { min-height: 115px; }

.form-submit {
  width: 100%; background: var(--blue); color: #fff;
  border: none; border-radius: 5px; padding: 0.95rem;
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; margin-top: 0.5rem;
  transition: background 0.25s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 18px rgba(10,110,189,0.3);
}

.form-submit:hover {
  background: var(--blue2); transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(10,110,189,0.5);
}

/* ── FOOTER ──────────────────────────────────── */
footer {
  background: var(--darker); border-top: 1px solid var(--border);
  padding: 2.8rem 6vw;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1.5rem;
}

.footer-logo {
  font-size: 1.3rem; font-weight: 900; letter-spacing: 0.2em;
  color: rgba(255,255,255,0.85);
}

.footer-logo span { color: var(--blue2); }
.footer-copy { font-size: 0.78rem; color: var(--muted); text-align: center; }

.footer-links { display: flex; gap: 2rem; list-style: none; }

.footer-links a {
  font-size: 0.78rem; color: var(--muted); text-decoration: none;
  letter-spacing: 0.1em; transition: color 0.25s;
}

.footer-links a:hover { color: var(--blue2); }

/* ── REVEAL ANİMASYON ───────────────────────── */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ── MOBİL ───────────────────────────────────── */
@media (max-width: 820px) {
  .contact-wrapper { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
