/* =====================================================
   ERGCELL ENERGY TECHNOLOGIES — Shared Stylesheet
   Deep Space Battery — Futurist Design System
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&family=Titillium+Web:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&display=swap');

/* ─── DESIGN TOKENS ─── */
:root {
  --bg-0:         #020810;
  --bg-1:         #07101F;
  --bg-2:         #0B1828;
  --bg-3:         #112038;
  --bg-card:      rgba(11, 24, 40, 0.80);

  --accent:       #00CFEB;
  --accent-bright:#00E5FF;
  --accent-dim:   rgba(0, 207, 235, 0.12);
  --accent-mid:   rgba(0, 207, 235, 0.35);

  --gold:         #F5A623;
  --gold-dim:     rgba(245, 166, 35, 0.12);

  --text:         #DFF0FA;
  --text-dim:     #5A7A9A;
  --text-mid:     #8AAABF;

  --border:       rgba(0, 207, 235, 0.18);
  --border-hover: rgba(0, 207, 235, 0.50);
  --glow-sm:      0 0 12px rgba(0, 207, 235, 0.25);
  --glow-md:      0 0 30px rgba(0, 207, 235, 0.30);
  --glow-lg:      0 0 60px rgba(0, 207, 235, 0.20);

  --radius:       6px;
  --radius-lg:    12px;
  --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Titillium Web', sans-serif;
  background-color: var(--bg-0);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ─── HEX GRID BACKGROUND ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='104' viewBox='0 0 60 104'%3E%3Cpath d='M30 2L58 18v36L30 70 2 54V18z' fill='none' stroke='%2300CFEB' stroke-width='0.4' stroke-opacity='0.07'/%3E%3Cpath d='M30 54l28 16v36L30 122 2 106V70z' fill='none' stroke='%2300CFEB' stroke-width='0.4' stroke-opacity='0.07'/%3E%3C/svg%3E");
  background-size: 60px 104px;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
  animation: hex-drift 40s linear infinite;
}

@keyframes hex-drift {
  from { background-position: 0 0; }
  to   { background-position: 60px 104px; }
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.1rem; }

p { max-width: 68ch; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-bright); }

/* ─── LAYOUT ─── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

/* ─── NAVIGATION ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  background: transparent;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(2, 8, 16, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-svg {
  height: 38px;
  width: auto;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--accent-dim);
  color: var(--text-mid);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-mid);
  box-shadow: var(--glow-sm);
}

.lang-btn .flag { font-size: 1rem; }

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg-0));
  pointer-events: none;
  z-index: 2;
}

.hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 207, 235, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-eyebrow {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--accent);
  box-shadow: var(--glow-sm);
}

.hero-title {
  font-weight: 700;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--accent) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 28px;
  animation: fade-up 1s ease both;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-mid);
  margin-bottom: 48px;
  font-weight: 300;
  animation: fade-up 1s ease 0.15s both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fade-up 1s ease 0.30s both;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-0);
  box-shadow: 0 0 20px rgba(0, 207, 235, 0.35);
}

.btn-primary:hover {
  background: var(--accent-bright);
  color: var(--bg-0);
  box-shadow: 0 0 35px rgba(0, 207, 235, 0.55);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-hover);
}

.btn-outline:hover {
  background: var(--accent-dim);
  color: var(--accent-bright);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ─── SECTION HEADERS ─── */
.section-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 16px;
}

.section-title .accent { color: var(--accent); }
.section-title .gold   { color: var(--gold); }

.section-lead {
  font-size: 1.1rem;
  color: var(--text-mid);
  font-weight: 300;
  margin-bottom: 60px;
}

/* ─── DIVIDER ─── */
.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-bottom: 32px;
  box-shadow: var(--glow-sm);
}

/* ─── CARDS ─── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--glow-md);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
  display: block;
}

.card-title {
  color: var(--text);
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.card-text {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ─── GRID LAYOUTS ─── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

/* ─── STAT ROW ─── */
.stats-row {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  margin: 60px 0;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.stat-item {}

.stat-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─── TECH SPEC LIST ─── */
.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spec-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-mid);
}

.spec-list li::before {
  content: '▸';
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─── CONTACT FORM ─── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-detail .icon {
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail .label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.contact-detail .value {
  color: var(--text);
  font-size: 0.95rem;
}

/* Form */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Titillium Web', sans-serif;
  font-size: 0.95rem;
  transition: all var(--transition);
  outline: none;
  appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
  background: var(--bg-3);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-dim);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-success {
  display: none;
  padding: 16px 20px;
  background: rgba(0, 207, 235, 0.08);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 0.95rem;
  margin-top: 16px;
  text-align: center;
}

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

/* ─── FOOTER ─── */
footer {
  position: relative;
  z-index: 1;
  padding: 60px 0 36px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 32ch;
  line-height: 1.7;
}

.footer-col h5 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(0,207,235,0.08);
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ─── BADGES (TÜBİTAK, KOSGEB, etc.) ─── */
.partner-logos {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding: 24px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.partner-badge {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
  border: 1px solid rgba(90,120,160,0.3);
  padding: 6px 14px;
  border-radius: 4px;
}

/* ─── ABOUT TIMELINE ─── */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.timeline-year {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.timeline-text {
  color: var(--text-mid);
  font-size: 0.95rem;
}

/* ─── TECHNOLOGY BAR ─── */
.tech-bar-wrap { margin-bottom: 24px; }

.tech-bar-label {
  display: flex;
  justify-content: space-between;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 8px;
}

.tech-bar {
  height: 4px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
}

.tech-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 2px;
  transform-origin: left;
  animation: bar-fill 1.5s ease both;
}

@keyframes bar-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ─── ANIMATIONS ─── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(0, 207, 235, 0.3); }
  50%       { box-shadow: 0 0 24px rgba(0, 207, 235, 0.7); }
}

/* ─── BATTERY ANIMATION ─── */
.battery-charge {
  animation: charge-cycle 3s ease-in-out infinite;
}

@keyframes charge-cycle {
  0%   { opacity: 0.2; width: 4px; }
  50%  { opacity: 1;   width: 27px; }
  100% { opacity: 0.2; width: 4px; }
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .grid-3   { grid-template-columns: 1fr; }
  .grid-2   { grid-template-columns: 1fr; }
  .contact-wrap    { grid-template-columns: 1fr; }
  .footer-inner    { grid-template-columns: 1fr; gap: 40px; }
  .stats-row       { gap: 32px; padding: 28px 20px; }
  .nav-links       { display: none; }
  .hamburger       { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 8, 16, 0.97);
    padding: 40px 32px;
    gap: 28px;
    align-items: flex-start;
    z-index: 999;
  }

  .nav-links.open a {
    font-size: 1.5rem;
  }
}

@media (max-width: 600px) {
  section { padding: 70px 0; }
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .partner-logos { gap: 16px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
