@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #1A365D; /* Dark Blue */
  --secondary: #F97316; /* Energetic Orange */
  --secondary-hover: #EA580C;
  --bg-color: #F8FAFC;
  --text-dark: #0F172A;
  --text-light: #64748B;
  --white: #FFFFFF;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 12px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* Header & Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo img {
  height: 50px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links li a {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

.nav-links li a:hover {
  color: var(--secondary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgba(249, 115, 22, 0.39);
}

.btn-primary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.23);
}

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

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

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

.btn-whatsapp:hover {
  background-color: #1EBE5D;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px 0 rgba(37, 211, 102, 0.39);
}

.btn-phone {
  background-color: var(--primary);
  color: white;
}

.btn-phone:hover {
  background-color: #122643;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px 0 rgba(26, 54, 93, 0.39);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/hero_robotla_tikaniklik.webp');
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26,54,93,0.85) 0%, rgba(15,23,42,0.95) 100%);
  z-index: -1;
}

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

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* About Section */
.about {
  padding: 100px 0;
  background-color: var(--white);
}

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

.about-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}

.about-text h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* Services Section */
.services {
  padding: 100px 0;
  background-color: var(--bg-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-img {
  height: 220px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.05);
}

.service-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-content h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-content .btn {
  width: 100%;
}

/* Service Areas */
.areas {
  padding: 100px 0;
  background-color: var(--white);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.area-box {
  background: var(--bg-color);
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
  font-size: 0.9rem;
}

.area-box:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Reviews Section */
.reviews {
  padding: 100px 0;
  background-color: var(--bg-color);
}

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

.review-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  display: none; /* Hidden by default for logic */
}

/* Show only first 4 initially on desktop, handled by JS later, but let's give a default display */
.review-card.visible {
  display: block;
  animation: fadeIn 0.5s ease forwards;
}

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

.stars {
  color: #FFB800;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.review-text {
  color: var(--text-light);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 16px;
}

.review-author {
  font-weight: 700;
  color: var(--primary);
}

.show-more-container {
  text-align: center;
  margin-top: 40px;
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background-color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

.contact-info {
  background: var(--primary);
  color: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-top: 4px;
}

.info-text h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.info-text p {
  color: rgba(255,255,255,0.8);
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.05);
}

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

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--bg-color);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
  background-color: var(--white);
}

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

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.checkbox-group input {
  margin-top: 5px;
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.checkbox-group label {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

.checkbox-group a {
  color: var(--secondary);
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand img {
  height: 50px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

.footer-links h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: var(--secondary);
  border-radius: 2px;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--white);
  font-weight: 600;
}

/* Sticky Action Buttons */
.sticky-actions {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.sticky-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: white;
  font-size: 1.8rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.sticky-btn.phone {
  background-color: var(--secondary);
}

.sticky-btn:hover {
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 80px;
    left: -100%;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
  }

  .nav-links.active {
    left: 0;
  }

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

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .about-text {
    order: -1;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile Sticky Buttons */
  .sticky-actions {
    bottom: 0;
    right: 0;
    left: 0;
    flex-direction: row;
    gap: 0;
    width: 100%;
  }

  .sticky-btn {
    width: 50%;
    height: 60px;
    border-radius: 0;
    font-size: 1.4rem;
    gap: 8px;
  }
  
  .sticky-btn::after {
    content: attr(data-text);
    font-size: 1rem;
    font-weight: 600;
  }

  body {
    padding-bottom: 60px; /* Space for sticky buttons */
  }
}
