/* Optimized CSS for Kodliva - Dijital Çözümler */
:root {
  --primary-color: #2d3250;
  --secondary-color: #424769;
  --accent-color: #676f9d;
  --light-color: #f9f9f9;
  --dark-color: #1b1b1b;
  --text-color: #333333;
  --text-muted: #6c757d;
  --font-primary: "Poppins", sans-serif;
  --font-secondary: "Inter", sans-serif;
}

/* Base Styles */
body {
  font-family: var(--font-secondary);
  line-height: 1.6;
  color: var(--text-color);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.btn,
.card-title,
.lead {
  font-family: var(--font-primary);
}

/* Navbar */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  background-color: var(--light-color) !important;
  font-family: var(--font-primary);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.navbar-brand .text-primary {
  color: var(--primary-color) !important;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
  color: var(--text-color) !important;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--accent-color) !important;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  overflow: hidden;
  padding: 80px 0;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    45deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: 0.95;
}

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

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
  position: relative;
}

.hero-content h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.hero-content .lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 90%;
}

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

.hero-image {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: perspective(1000px) rotateY(-5deg);
  transition: all 0.5s ease;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.05);
  transition: transform 0.5s ease;
  filter: brightness(1.05) contrast(1.05);
}

.hero-image:hover {
  transform: perspective(1000px) rotateY(0deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.hero-image:hover img {
  transform: scale(1.1);
}

.hero-btn {
  text-decoration: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  background: var(--secondary-color);
  color: white;
}

/* Services Section */
.services-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

.service-card {
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-image {
  position: relative;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
  height: 250px;
}

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

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

.card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.card-body {
  padding: 2rem;
}

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

.fa-3x {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Service Features */
.service-features {
  margin-top: 1.5rem;
}

.badge {
  margin: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  border-radius: 20px;
}

.service-card:hover .badge {
  background-color: var(--primary-color) !important;
  color: white !important;
}

/* Contact Section */
.contact-card {
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-info {
  border-radius: 15px;
  transition: all 0.3s ease;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateX(10px);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: white;
  transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
  background: var(--secondary-color);
  transform: scale(1.1);
}

.contact-text {
  flex: 1;
}

/* Form Styles */
.form-floating > .form-control {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 1rem 0.75rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-floating > textarea.form-control {
  min-height: 120px;
}

.form-floating > label {
  padding: 1rem 0.75rem;
  color: var(--text-muted);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(45, 50, 80, 0.25);
}

.btn-primary {
  background: var(--primary-color);
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

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

/* Footer */
footer {
  background: var(--dark-color);
  color: white;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-color),
    transparent
  );
}

footer .text-muted {
  color: #adb5bd !important;
}

footer a {
  color: #adb5bd;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

footer a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

footer a:hover {
  color: white;
}

footer a:hover::after {
  width: 100%;
}

/* About Section */
.about-images {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.about-images .image-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.about-images .image-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.about-images .main-image,
.about-images .overlay-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.about-images .image-card:hover img {
  transform: scale(1.05);
}

/* Typography */
h2 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.card-title {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.btn {
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

footer h5 {
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-section::before {
    width: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    opacity: 0.1;
  }

  .hero-content h1 {
    font-size: 2.8rem;
    color: var(--dark-color);
  }

  .hero-content .lead {
    color: var(--text-muted);
  }

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

@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content .lead {
    font-size: 1.1rem;
  }

  .navbar-brand {
    font-size: 1.3rem;
  }

  .services-slider {
    grid-template-columns: 1fr;
  }

  .service-image {
    height: 200px;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section .lead {
    font-size: 1rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero-image {
    transform: perspective(1000px) rotateY(0deg);
    margin-top: 2rem;
  }

  .hero-image:hover {
    transform: perspective(1000px) rotateY(0deg);
  }
}

@media (max-width: 480px) {
  .hero-image {
    border-radius: 15px;
  }

  .hero-image:hover {
    transform: perspective(1000px) rotateY(0deg);
  }

  .hero-image:hover img {
    transform: scale(1.05);
  }

  .about-images {
    grid-template-columns: 1fr;
  }

  .about-images .image-card {
    margin-bottom: 1rem;
  }

  .about-images .image-card:last-child {
    margin-bottom: 0;
  }

  .about-images .image-card:hover {
    transform: translateY(-5px);
  }
}

@media (max-width: 575.98px) {
  .about-images .image-card {
    margin-bottom: 1rem;
  }

  .about-images .image-card:last-child {
    margin-bottom: 0;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card,
.hero-section h1,
.hero-section p {
  animation: fadeIn 0.8s ease-out;
}
