/* 
 * Berkecan Alptekin Elektrik - Landing Page Styles
 * Modern, clean, and performance-focused.
 */

:root {
  /* Color Palette */
  --bg: #0B132B;
  /* Deep Navy */
  --primary: #FCA311;
  /* Electric Yellow */
  --text: #E5E7EB;
  /* Light Gray */
  --text-muted: #9CA3AF;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-hover: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.12);
  --success: #10B981;

  /* Spacing */
  --container-width: 1200px;
  --header-height: 70px;
  --section-spacing: 80px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Transitions */
  --transition: 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

button,
.btn {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.text-primary {
  color: var(--primary);
}

.text-center {
  text-align: center;
}

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: #000;
}

.btn-primary:hover {
  background-color: #e5940c;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #000;
}

.btn-whatsapp {
  background-color: #25D366;
  color: #fff;
}

.btn-whatsapp:hover {
  background-color: #20bd5a;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(11, 19, 43, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}

.logo svg {
  width: 32px;
  height: 32px;
  fill: var(--primary);
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text);
}

.nav-link:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  gap: 1rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  color: #fff;
  font-size: 1.5rem;
}

/* Hero Section */
.hero {
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero-badges {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  border: 1px solid var(--border);
}

.badge svg {
  width: 16px;
  height: 16px;
  fill: var(--primary);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

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

.hero-image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: var(--primary);
  filter: blur(100px);
  opacity: 0.2;
  border-radius: 50%;
  z-index: -1;
}

.hero-img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Services */
.section {
  padding: var(--section-spacing) 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  background: var(--surface-hover);
  border-color: var(--primary);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(252, 163, 17, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
}

.service-cta {
  margin-top: auto;
  padding-top: 1.5rem;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

/* Process */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 auto 1.5rem;
}

/* Areas */
.areas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.area-tag {
  background: var(--surface);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.project-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background-color: #000;
  transition: var(--transition);
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-content {
  padding: 1.5rem;
}

.project-location {
  font-size: 0.85rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.stars {
  color: var(--primary);
  margin-bottom: 1rem;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.avatar {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-btn {
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  background: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  transition: transform 0.3s;
}

.faq-btn[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: var(--text-muted);
}

.faq-inner {
  padding-bottom: 1.5rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background: var(--surface);
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(252, 163, 17, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  fill: var(--primary);
  width: 20px;
  height: 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* Footer */
.footer {
  background: #050a18;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  text-align: center;
  color: var(--text-muted);
}

/* Mobile Fixed Bar */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg);
  padding: 1rem;
  display: none;
  /* Shown on mobile via media query */
  gap: 1rem;
  border-top: 1px solid var(--border);
  z-index: 999;
}

.mobile-cta-bar .btn {
  flex: 1;
}

/* Responsive */
@media (max-width: 968px) {

  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero {
    text-align: center;
    padding-top: 6rem;
  }

  .hero-badges {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-menu.active {
    display: flex;
  }

  .header-actions {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-cta-bar {
    display: flex;
  }

  body {
    padding-bottom: 80px;
    /* Space for fixed bar */
  }

  .contact-grid {
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}