/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1f2937;
  line-height: 1.6;
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-weight: 600; line-height: 1.2; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.25rem; }

@media (min-width: 1024px) {
  h1 { font-size: 3.75rem; }
  h2 { font-size: 2.25rem; }
}

/* ===== Utilities ===== */
.container {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.text-blue { color: #2563eb; }
.text-green { color: #16a34a; }
.text-blue-icon { stroke: #2563eb; }
.text-green-icon { stroke: #16a34a; }
.bg-gray { background: #f9fafb; }

.section {
  padding: 4rem 0;
}
@media (min-width: 640px) { .section { padding: 5rem 0; } }
@media (min-width: 1024px) { .section { padding: 6rem 0; } }

.section-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3rem;
}
.section-header p {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: #4b5563;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}
.btn-primary {
  background: #2563eb;
  color: #fff;
}
.btn-primary:hover { background: #1d4ed8; }
.btn-outline {
  border-color: #2563eb;
  color: #2563eb;
  background: transparent;
}
.btn-outline:hover { background: #eff6ff; }
.btn-outline-green {
  border-color: #16a34a;
  color: #16a34a;
  background: transparent;
}
.btn-outline-green:hover { background: #f0fdf4; }
.btn-full { width: 100%; }
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5e7eb;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}
.nav-links {
  display: none;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  transition: color 0.2s;
}
.nav-links a:hover { color: #2563eb; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
}

/* Mobile menu */
.menu-toggle {
  cursor: pointer;
  color: #374151;
}
.menu-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid #e5e7eb;
}
.mobile-menu a {
  padding: 0.75rem 1rem;
  font-weight: 500;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}
.mobile-menu a:hover { color: #2563eb; background: #f9fafb; }
.menu-checkbox:checked ~ .mobile-menu {
  display: flex;
}

@media (min-width: 768px) {
  .mobile-menu { display: none !important; }
}

/* ===== Hero ===== */
.hero {
  padding-top: 4rem; /* nav height */
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom right, #eff6ff, #fff);
}
.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding: 5rem 0;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
}
.hero-subtitle {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: #4b5563;
}
.hero-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-image img {
  width: 100%;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}
@media (min-width: 1024px) {
  .hero-image img:hover { transform: scale(1.02); cursor: pointer; }
}

.features {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 639px) {
  .features { grid-template-columns: 1fr; }
}
.feature-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: scale(1.01);
}
.feature-card h3 {
  margin-top: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}
.feature-card p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #6b7280;
}
.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon.blue   { background: #dbeafe; color: #2563eb; }
.feature-icon.green  { background: #dcfce7; color: #16a34a; }
.feature-icon.purple { background: #f3e8ff; color: #9333ea; }
.feature-icon.red    { background: #fee2e2; color: #dc2626; }
.feature-icon.teal   { background: #ccfbf1; color: #0d9488; }
.feature-icon.amber  { background: #fef3c7; color: #d97706; }
.feature-icon.indigo { background: #e0e7ff; color: #4f46e5; }

/* ===== About ===== */
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}
.about-text p { margin-top: 1rem; color: #4b5563; }
.about-text h3 { margin-top: 2rem; }
.about-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.about-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}
.about-image {
  text-align: center;
}
.about-image img {
  max-width: 36rem;
  margin: 0 auto;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}
@media (min-width: 1024px) {
  .about-image img:hover { transform: scale(1.02); cursor: pointer; }
}

/* ===== Product Section ===== */
.product-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}
.product-badge.climate { background: #dbeafe; color: #2563eb; }
.product-badge.aurora  { background: #dcfce7; color: #16a34a; }

.product-intro {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2rem;
}
.product-intro p {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: #4b5563;
}
.product-intro .btn {
  margin-top: 1.5rem;
}

.subsection {
  margin-top: 4rem;
}
.subsection-header {
  margin-bottom: 2rem;
}
.subsection-header h3 {
  font-size: 1.5rem;
}
.subsection-header p {
  margin-top: 0.5rem;
  color: #4b5563;
}

.features-extended {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 2rem;
}
@media (min-width: 640px) {
  .features-extended { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .features-extended { grid-template-columns: 1fr 1fr 1fr; }
}

.cta-banner {
  text-align: center;
  margin-top: 2.5rem;
}

/* ===== Team ===== */
.team-grid {
  display: grid;
  gap: 2rem;
  max-width: 40rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
}
.team-card {
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.team-card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;
}
.img-tarkan {
  object-position: center 35%;
}
.img-kerem {
  object-position: center 45%;
}
.team-card-body { padding: 1.5rem; }
.team-role {
  color: #2563eb;
  font-weight: 500;
  margin-top: 0.25rem;
}
.team-bio {
  color: #6b7280;
  font-size: 0.875rem;
  margin-top: 0.75rem;
}

/* ===== Contact ===== */
.contact-form-wrap {
  max-width: 36rem;
  margin: 0 auto;
}
.contact-form {
  background: #fff;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s;
}
.contact-form:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #374151;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.contact-success {
  text-align: center;
  background: #fff;
  padding: 3rem 2rem;
  border-radius: 1rem;
  border: 1px solid #f3f4f6;
}
.contact-success svg { margin: 0 auto 1.5rem; }
.contact-success h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.contact-success p { color: #6b7280; margin-bottom: 1.5rem; }

/* ===== Footer ===== */
.footer {
  background: #111827;
  color: #fff;
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; }
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}
.footer-copy {
  color: #9ca3af;
  font-size: 0.875rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.footer-link {
  color: #60a5fa;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 0.875rem;
}
.footer-link:hover { color: #93c5fd; }

/* ===== Lightbox (CSS-only) ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox:target {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1rem;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.75rem;
  transform: scale(0.9);
  transition: transform 0.3s;
}
.lightbox:target .lightbox-overlay img {
  transform: scale(1);
}

/* Hide lightbox on mobile */
@media (max-width: 1023px) {
  .hero-image a,
  .about-image a { pointer-events: none; }
  .lightbox { display: none; }
}

/* ===== Print ===== */
@media print {
  .nav, .lightbox { display: none; }
  .hero { min-height: auto; padding-top: 0; }
  .section { padding: 2rem 0; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
