/* =====================================================
   home.css — Landing Page (index.html) Styles
   Used by: index.html only
   ===================================================== */

/* ===== MAIN NAV (landing page) ===== */
nav {
  position: fixed;
  top: 0;
  left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, backdrop-filter 0.3s;
}

nav.scrolled {
  background: rgba(5, 12, 18, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img { height: 36px; width: auto; }

.nav-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #ffffff;
  letter-spacing: 0.04em;
}

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

.nav-links a {
  color: #b0c0d0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* LANG DROPDOWN */
.lang-dropdown { position: relative; }

.lang-selected {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-light);
  transition: all 0.2s;
  user-select: none;
  white-space: nowrap;
}

.lang-selected:hover { border-color: var(--accent-border); color: var(--white); }

.lang-selected svg.lang-chevron {
  width: 12px; height: 12px;
  color: var(--gray);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.lang-dropdown.open .lang-chevron { transform: rotate(180deg); }

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #0a1520;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  overflow: hidden;
  min-width: 140px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  z-index: 200;
}

.lang-dropdown.open .lang-menu { display: block; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-light);
  transition: all 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.lang-option:hover { background: var(--accent-dim); color: var(--white); }
.lang-option.active { color: var(--accent); }

.lang-flag {
  width: 20px; height: 14px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
}

.lang-flag svg { width: 100%; height: 100%; }

/* 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(--white);
  transition: all 0.25s;
}

/* MOBILE MENU */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0; right: 0;
  background: rgba(5, 12, 18, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  padding: 24px;
  z-index: 99;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: var(--gray-light);
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  padding: 8px 0;
  border-bottom: 1px solid var(--card-border);
}

/* ===== STATUS BAND ===== */
.status-band {
  background: rgba(23, 230, 140, 0.05);
  border-bottom: 1px solid var(--accent-border);
  padding: 10px 0;
  overflow: hidden;
  position: relative;
  margin-top: 68px;
}

.status-band-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-light);
  font-weight: 400;
}

.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.status-sep { width: 1px; height: 14px; background: var(--card-border); }

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle at center, rgba(23, 230, 140, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-illustration {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/hero-bg-dark.png') no-repeat center center;
  background-size: cover;
  opacity: 0.25;
  pointer-events: none;
  mix-blend-mode: screen;
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  animation: pulseOpacity 10s ease-in-out infinite;
}

[data-theme="light"] .hero-illustration {
  background: url('../assets/hero-bg-light.png') no-repeat center center;
  background-size: cover;
  mix-blend-mode: multiply;
  opacity: 0.15;
}

@keyframes pulseOpacity {
  0%, 100% { opacity: 0.12; transform: translateY(-50%) scale(1); }
  50% { opacity: 0.18; transform: translateY(-53%) scale(1.02); }
}

.hex-deco {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.1;
  width: 560px; height: 560px;
  pointer-events: none;
  animation: rotateSlow 60s linear infinite;
}

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

.hero-content { max-width: 680px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 32px;
}

.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(44px, 7vw, 80px);
  margin-bottom: 24px;
  color: var(--white);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--gray);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--card-border);
}

.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--gray);
  margin-top: 4px;
  font-weight: 300;
}

/* ===== ABOUT ===== */
#about {
  padding: 120px 0;
  border-top: 1px solid var(--card-border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text h2  { font-size: clamp(32px, 4vw, 48px); margin-bottom: 24px; }
.about-text p   { color: var(--gray); line-height: 1.8; font-weight: 300; margin-bottom: 16px; }

.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-hex-container { position: relative; width: 280px; height: 280px; }

.about-hex-container img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(23, 230, 140, 0.2));
  animation: float 4s ease-in-out infinite;
}

.about-ring {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  border: 1px solid var(--accent-border);
  animation: spin 20s linear infinite;
}

.about-ring::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===== SERVICES ===== */
#services {
  padding: 120px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(23, 230, 140, 0.02) 50%, transparent 100%);
}

.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 64px;
  align-items: end;
}

.services-header h2 { font-size: clamp(32px, 4vw, 52px); }
.services-header p  { color: var(--gray); font-weight: 300; line-height: 1.8; font-size: 16px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 40px 36px;
  transition: all 0.3s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { 
  background: rgba(23, 230, 140, 0.05); 
  border-color: var(--accent);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(23, 230, 140, 0.05);
}

.service-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 24px;
}

.service-icon { width: 44px; height: 44px; margin-bottom: 24px; color: var(--accent); }

.service-card h3 { font-size: 22px; margin-bottom: 12px; }
.service-card p  { color: var(--gray); font-size: 14px; line-height: 1.7; font-weight: 300; }

.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

.tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ===== WHY ===== */
#why { padding: 120px 0; }

.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.why-left h2 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 24px; }
.why-left p  { color: var(--gray); font-weight: 300; line-height: 1.8; margin-bottom: 36px; }

.why-items { display: flex; flex-direction: column; gap: 0; }

.why-item {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--card-border);
  transition: all 0.2s;
}

.why-item:first-child { border-top: 1px solid var(--card-border); }
.why-item:hover .why-item-icon { color: var(--accent); }

.why-item-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 2px;
  color: var(--gray);
  transition: color 0.2s;
}

.why-item h4 { font-size: 16px; margin-bottom: 6px; }
.why-item p  { color: var(--gray); font-size: 14px; line-height: 1.6; font-weight: 300; margin: 0; }

/* ===== PROJECTS ===== */
#projects {
  padding: 120px 0;
  border-top: 1px solid var(--card-border);
}

.projects-header {
  margin-bottom: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.header-actions {
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .projects-header { justify-content: center; text-align: center; }
  .projects-header .section-line { margin-left: auto; margin-right: auto; }
  .header-actions { width: 100%; justify-content: center; }
}

.projects-header h2 { 
  font-size: clamp(32px, 4vw, 52px); 
  max-width: 400px; 
}

.projects-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 24px; 
}

@media (max-width: 1100px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .projects-grid { grid-template-columns: 1fr; }
}
.project-card {
  background: var(--bg2);
  border: 1px solid var(--accent-border);
  border-radius: 16px;
  padding: 40px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.project-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at top right, rgba(23, 230, 140, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.project-card:hover {
  background: var(--bg3);
  border-color: var(--accent);
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.4), 0 0 30px rgba(23, 230, 140, 0.1);
}
.project-card:hover::after { opacity: 1; }
.project-card>*{position:relative;z-index:1}
.project-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  background: rgba(23, 230, 140, 0.12);
  border: 1px solid rgba(23, 230, 140, 0.3);
  color: #17E68C;
  width: fit-content;
  box-shadow: 0 0 12px rgba(23, 230, 140, 0.15);
}
.project-card h3 { font-size: 28px; margin-bottom: 16px; color: var(--white); font-weight: 800; font-family: 'Space Grotesk', sans-serif; }
.project-card p { color: var(--gray-light); font-size: 15px; line-height: 1.7; font-weight: 300; margin-bottom: 30px; flex: 1; }
.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--card-border);
}
.project-tech { display: flex; gap: 10px; flex-wrap: wrap; }
.tech-tag {
  font-size: 11px;
  color: var(--gray);
  background: rgba(255,255,255,0.04);
  padding: 5px 10px;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  font-weight: 500;
}
.project-arrow {
  width: 24px; height: 24px;
  color: var(--gray);
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.project-card:hover .project-arrow {
  color: var(--accent);
  transform: translate(5px, -5px);
}
@media (max-width: 768px) { .projects-grid { grid-template-columns: 1fr; } }
}

/* ===== TESTIMONIALS ===== */
#testimonials { padding: 120px 0; }

.testimonials-header { margin-bottom: 60px; }
.testimonials-header h2 { font-size: clamp(32px, 4vw, 52px); max-width: 480px; }

.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 36px;
  transition: border-color 0.3s;
}

.testimonial-card:hover { border-color: var(--accent-border); }

.quote-mark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 16px;
  font-weight: 800;
}

.testimonial-text {
  color: var(--gray-light);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 28px;
}

.testimonial-author { display: flex; align-items: center; gap: 12px; }

.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.author-name { font-size: 14px; font-weight: 600; color: var(--white); font-family: 'Space Grotesk', sans-serif; }
.author-role { font-size: 12px; color: var(--gray); font-weight: 300; }

/* ===== CONTACT ===== */
#contact {
  padding: 120px 0;
  border-top: 1px solid var(--card-border);
  position: relative;
}

.contact-glow {
  position: absolute;
  bottom: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(23, 230, 140, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-left h2 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 20px; }
.contact-left p  { color: var(--gray); font-weight: 300; line-height: 1.8; margin-bottom: 40px; }

.contact-info { display: flex; flex-direction: column; gap: 16px; }

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-light);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-info-item:hover { color: var(--accent); }
.contact-info-item svg  { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

/* FORM */
.contact-form { display: flex; flex-direction: column; gap: 16px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 14px 16px;
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 300;
  transition: border-color 0.2s;
  outline: none;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray); opacity: 0.6; }

.form-group select option { background: #0d1f2d; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent-border); }

.form-success { display: none; text-align: center; padding: 40px; }
.form-success.show { display: block; }

.form-success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--accent);
}

.form-success h3 { font-size: 24px; margin-bottom: 8px; }
.form-success p  { color: var(--gray); font-size: 14px; font-weight: 300; }

/* FOOTER (landing-specific overrides) */
footer { padding: 48px 0; border-top: 1px solid var(--card-border); }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo img    { height: 28px; width: auto; }
.footer-logo-text   { font-size: 15px; }
.footer-copy        { font-size: 13px; color: var(--gray); font-weight: 300; }

.footer-socials { display: flex; gap: 16px; }

.footer-socials a {
  width: 36px; height: 36px;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  transition: all 0.2s;
  text-decoration: none;
  font-size: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

.footer-socials a:hover { border-color: var(--accent-border); color: var(--accent); }

/* ===== TERMINAL CARD ===== */
.terminal-card {
  background: #050c12;
  border: 1px solid rgba(23, 230, 140, 0.2);
  border-radius: 10px;
  overflow: hidden;
  font-family: 'Courier New', 'Fira Code', monospace;
  box-shadow: 0 0 40px rgba(23, 230, 140, 0.06), 0 24px 48px rgba(0, 0, 0, 0.4);
  margin-top: 40px;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.t-dot.red    { background: #ff5f57; }
.t-dot.yellow { background: #ffbd2e; }
.t-dot.green  { background: #28ca41; }

.terminal-title {
  font-size: 11px;
  color: var(--gray);
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.05em;
}

.terminal-body { padding: 20px 24px 24px; font-size: 13px; line-height: 1.8; }

.t-line {
  display: flex;
  align-items: flex-start;
  gap: 0;
  opacity: 0;
  animation: tFadeIn 0.1s forwards;
}

@keyframes tFadeIn { to { opacity: 1; } }

.t-prompt  { color: var(--accent); margin-right: 8px; flex-shrink: 0; }
.t-cmd     { color: #e0e8f0; }
.t-key     { color: #7dd3fc; }
.t-val     { color: #a5f3c8; }
.t-dim     { color: var(--gray); }
.t-comment { color: #4a6a80; }
.t-blank   { height: 6px; opacity: 1 !important; }

.t-cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ===== TECH STACK ===== */
#stack { padding: 80px 0; border-top: 1px solid var(--card-border); }

.stack-inner { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }

.stack-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.stack-divider { width: 1px; height: 40px; background: var(--card-border); flex-shrink: 0; }
.stack-logos   { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }

.stack-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.45;
  transition: opacity 0.2s;
  cursor: default;
}

.stack-item:hover { opacity: 1; }
.stack-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.stack-icon svg { width: 100%; height: 100%; }
.stack-name { font-size: 10px; color: var(--gray); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; }

/* ===== BLOG PREVIEW ===== */
#blog { padding: 120px 0; border-top: 1px solid var(--card-border); }

.blog-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; }
.blog-header h2 { font-size: clamp(28px, 3.5vw, 44px); }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }

.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 36px;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.blog-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.blog-card:hover::after { transform: scaleX(1); }
.blog-card:hover { background: rgba(23, 230, 140, 0.03); border-color: var(--accent-border); }

.blog-category {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}

.blog-card h3 { font-size: 18px; color: var(--white); line-height: 1.4; margin-bottom: 12px; }
.blog-card p  { color: var(--gray); font-size: 13px; line-height: 1.7; font-weight: 300; margin-bottom: 24px; }

.blog-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--gray); }
.blog-dot  { width: 3px; height: 3px; border-radius: 50%; background: var(--gray); }

/* ===== FAQ ===== */
#faq { padding: 120px 0; }

.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; }
.faq-left h2 { font-size: clamp(28px, 3.5vw, 44px); margin-bottom: 16px; }
.faq-left p  { color: var(--gray); font-weight: 300; line-height: 1.7; font-size: 15px; }

.faq-list { display: flex; flex-direction: column; }

.faq-item { border-bottom: 1px solid var(--card-border); overflow: hidden; }
.faq-item:first-child { border-top: 1px solid var(--card-border); }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  cursor: pointer;
  gap: 20px;
  transition: color 0.2s;
}

.faq-question:hover { color: var(--accent); }
.faq-question span  { font-size: 15px; font-weight: 500; line-height: 1.4; }

.faq-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  border: 1px solid var(--card-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: all 0.3s ease;
  font-size: 16px;
  line-height: 1;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--accent-dim);
  border-color: var(--accent-border);
}

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-answer-inner { padding: 0 0 22px; color: var(--gray); font-size: 14px; line-height: 1.8; font-weight: 300; }
.faq-item.open .faq-answer { max-height: 300px; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #25D366;
  color: #fff;
  border-radius: 50px;
  padding: 12px 20px 12px 14px;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  overflow: hidden;
}

.whatsapp-float:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(37, 211, 102, 0.4); }
.whatsapp-float svg { flex-shrink: 0; }
.whatsapp-label { white-space: nowrap; overflow: hidden; max-width: 120px; transition: max-width 0.4s ease, opacity 0.3s ease; }

/* ===== MODALS ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 12, 18, 0.92);
  backdrop-filter: blur(12px);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open { display: flex; }

.modal-box {
  background: #0a1520;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  max-width: 680px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
}

.modal-header {
  padding: 40px 40px 28px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.modal-close {
  width: 32px; height: 32px;
  border: 1px solid var(--card-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray);
  flex-shrink: 0;
  background: none;
  transition: all 0.2s;
  font-size: 18px;
}

.modal-close:hover { border-color: var(--accent-border); color: var(--accent); }

.modal-body { padding: 32px 40px 40px; }
.modal-body h4 { font-size: 13px; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; margin: 28px 0 12px; }
.modal-body h4:first-child { margin-top: 0; }
.modal-body p  { color: var(--gray-light); font-size: 14px; line-height: 1.8; font-weight: 300; }

.modal-features { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.modal-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--gray-light);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 300;
}

.modal-feature::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 7px;
}

.modal-footer {
  padding: 24px 40px;
  border-top: 1px solid var(--card-border);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== LOGO MARQUEE ===== */
#logos {
  padding: 0;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  overflow: hidden;
  position: relative;
}

#logos::before, #logos::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

#logos::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
#logos::after  { right: 0; background: linear-gradient(to left, var(--bg), transparent); }

.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 28s linear infinite;
  width: max-content;
}

#logos:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; align-items: center; }

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 48px;
  border-right: 1px solid var(--card-border);
  opacity: 0.4;
  transition: opacity 0.25s;
  cursor: default;
}

.logo-item:hover { opacity: 0.9; }
.logo-item-name { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray); font-weight: 500; white-space: nowrap; }
.logo-wordmark  { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; color: var(--white); letter-spacing: 0.05em; white-space: nowrap; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== KVKK BANNER ===== */
#kvkk-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(7, 15, 23, 0.97);
  border-top: 1px solid var(--card-border);
  backdrop-filter: blur(16px);
  z-index: 300;
  padding: 20px 24px;
  display: none;
}

#kvkk-banner.show { display: block; }

.kvkk-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.kvkk-text { flex: 1; font-size: 13px; color: var(--gray); line-height: 1.6; font-weight: 300; min-width: 240px; }
.kvkk-text a { color: var(--accent); text-decoration: none; }
.kvkk-actions { display: flex; gap: 10px; flex-shrink: 0; }

.kvkk-btn {
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.kvkk-accept  { background: var(--accent); color: var(--bg); }
.kvkk-accept:hover  { background: #1fffa0; }
.kvkk-decline { background: transparent; color: var(--gray); border: 1px solid var(--card-border); }
.kvkk-decline:hover { color: var(--white); border-color: rgba(255,255,255,0.2); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  
  /* Header Overcrowding Fix */
  .nav-right .btn, 
  .nav-right .lang-dropdown, 
  .nav-right .theme-toggle { display: none; }
  .nav-inner { height: 60px; padding: 0 15px; }

  .services-grid, .projects-grid, .blog-grid { 
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 8px !important; 
    width: 100%;
    margin: 0 auto;
  }
  
  .service-card { padding: 20px 15px; }
  .service-card h3 { font-size: 15px; }
  .service-icon { width: 30px; height: 30px; margin-bottom: 15px; }
  .service-tags { display: none; } /* Hide tags on 2x2 mobile for space */

  .form-row { grid-template-columns: 1fr !important; gap: 10px; margin-bottom: 10px; }
  
  .kvkk-inner { width: 100%; box-sizing: border-box; }
  .kvkk-text { min-width: 0; font-size: 11px; }

  .footer-inner { padding: 0 15px; box-sizing: border-box; width: 100%; }

  .container { padding-left: 15px; padding-right: 15px; width: 100%; box-sizing: border-box; overflow-x: hidden; }
  body { overflow-x: hidden; width: 100vw; position: relative; }
  html { overflow-x: hidden; }

  .about-grid,
  .why-grid,
  .contact-grid,
  .services-header,
  .projects-header { grid-template-columns: 1fr; gap: 40px; }
  
  .testimonials-container { 
    position: relative; 
    display: block; 
  }
  
  .slider-nav { display: none !important; }

  .testimonials-grid { 
    display: grid !important; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 8px; 
    padding: 0;
    overflow: visible;
  }
  
  .testimonial-card { 
    min-width: 0; 
    padding: 15px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
  }
  .testimonial-text { font-size: 11px !important; line-height: 1.4; margin-bottom: 12px; }
  .quote-mark { font-size: 24px; margin-bottom: 8px; }
  .author-name { font-size: 12px; }
  .author-role { font-size: 10px; }
  .author-avatar { width: 30px; height: 30px; font-size: 11px; }

  .project-card, .blog-card { padding: 20px; min-height: auto; }
  .project-card h3, .blog-card h3 { font-size: 15px; margin-bottom: 8px; }
  .project-card p, .blog-card p { font-size: 11px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .project-badge, .blog-category { font-size: 8px; padding: 2px 6px; margin-bottom: 12px; }
  .blog-meta { font-size: 9px; margin-top: 10px; }
  .contact-left h2 { font-size: 24px !important; margin-bottom: 10px; }
  .contact-left p { font-size: 13px; margin-bottom: 20px; }
  .contact-info { flex-direction: row; flex-wrap: wrap; gap: 15px; }
  .contact-info-item { font-size: 12px; }
  
  .contact-form { gap: 10px; }
  .form-group label { font-size: 10px; }
  .form-group input, .form-group select, .form-group textarea { padding: 10px 12px; font-size: 13px; }
  .btn-primary[type="submit"] { padding: 12px; font-size: 14px; }

  .hero-stats    { gap: 32px; flex-wrap: wrap; }
  .about-visual  { display: none; }

  .footer-inner  { flex-direction: column; text-align: center; }
  .projects-header { flex-direction: column; align-items: flex-start; gap: 16px; text-align: left; }
  .projects-header h2 { font-size: 24px !important; line-height: 1.2; text-align: left; }
  .section-line { width: 40px !important; margin: 0 0 12px 0 !important; }

  .blog-grid { grid-template-columns: 1fr; }
  .faq-grid  { grid-template-columns: 1fr; gap: 40px; }
  .blog-header { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 600px) {
  h1 { font-size: 34px !important; line-height: 1.2; letter-spacing: -0.02em; }
  h2 { font-size: 28px !important; line-height: 1.3; }
  .hero-subtitle { font-size: 15px; margin-bottom: 30px; }
  .section-label { font-size: 10px; }
  .stat-num { font-size: 26px; }
  
  #hero, #about, #services, #why, #projects, #testimonials, #blog, #faq, #contact {
    padding: 60px 0;
  }

  .modal-header, .modal-body, .modal-footer { padding-left: 24px; padding-right: 24px; }
  .whatsapp-label { max-width: 0; opacity: 0; }
  .whatsapp-float { padding: 14px; border-radius: 50%; }
  .kvkk-inner { flex-direction: column; align-items: flex-start; }
  .logo-item { padding: 22px 32px; }
  
  .project-card, .service-card { padding: 30px 24px; }
  .blog-card h3 { font-size: 18px; }
}

/* Light Theme Overrides */
[data-theme="light"] .hero-illustration {
  opacity: 0.45;
  filter: brightness(1.1) saturate(1.2);
}

[data-theme="light"] .hero-glow {
  background: radial-gradient(circle at center, rgba(13, 149, 88, 0.1) 0%, transparent 70%);
}

/* ===== BLOG ===== */
#blog {
  padding: 120px 0;
  border-top: 1px solid var(--card-border);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--bg2);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  background: var(--bg3);
  position: relative;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.1);
}

.blog-card-content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--gray);
}

.blog-card-cat {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.blog-card h3 {
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

.blog-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-light);
  font-weight: 300;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 992px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; gap: 20px; }
  .blog-card h3 { font-size: 18px; margin-bottom: 10px; }
  .blog-card p { font-size: 13px; line-height: 1.5; margin-bottom: 20px; }
  .blog-card-content { padding: 24px; }
  .blog-card-img { height: 180px; }
}
