/*
                  _   _             _ _ _ _ _        _ 
                 | | | |           | (_|_|_) |      | |
  _ __ ___  _   _| |_| |_   _    __| |_ _ _| |_ __ _| |
 | '_ ` _ \| | | | __| | | | |  / _` | | | | __/ _` | |
 | | | | | | |_| | |_| | |_| | | (_| | | | | || (_| | |
 |_| |_| |_|\__,_|\__|_|\__,_|  \__,_|_| |_|\__\__,_|_|
                                      _/ |             
                                     |__/
 SAMET MUTLU | +05422419932 | mutludijital.com.tr
*/

:root {
  --primary: #D90429; /* Dominant Red */
  --primary-light: #EF233C; 
  --primary-dark: #8d0219;
  --secondary: #0B132B; /* Dark Blue */
  --secondary-light: #1C2541;
  --white: #FFFFFF;
  --bg-main: #D90429; /* Red as main background */
  --text-main: #F8F9FA; /* Light text for red background */
  --text-muted: #d0d0d0;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--white);
}

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

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--secondary);
}

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

.nav-links a {
  color: var(--white);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  position: relative;
  padding-bottom: 5px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary);
  transition: var(--transition);
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--primary-dark); /* Fallback */
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(11, 19, 43, 0.65); /* Dark overlay to make video visible but text readable */
  z-index: 1;
}

/* Smoke Effect Background */
.smoke-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1; /* Changed to 1 to ensure it shows above section backgrounds */
  pointer-events: none;
}

.smoke {
  position: absolute;
  bottom: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 100, 50, 0.6) 0%, rgba(255, 50, 0, 0.4) 30%, transparent 70%);
  border-radius: 50%;
  filter: blur(25px);
  animation: floatUp 12s infinite ease-in-out;
  opacity: 0;
  will-change: transform, opacity;
  mix-blend-mode: screen;
}

/* Base variants */
.smoke-1 { left: 5%; animation-duration: 18s; animation-delay: 0s; width: 600px; height: 600px; background: radial-gradient(circle, rgba(255, 80, 0, 0.55) 0%, transparent 60%); }
.smoke-2 { left: 35%; animation-duration: 14s; animation-delay: -5s; background: radial-gradient(circle, rgba(255, 150, 0, 0.6) 0%, transparent 60%); filter: blur(35px); }
.smoke-3 { left: 65%; animation-duration: 20s; animation-delay: -10s; width: 550px; height: 550px; background: radial-gradient(circle, rgba(255, 60, 20, 0.5) 0%, transparent 65%); }
.smoke-4 { left: -5%; animation-duration: 16s; animation-delay: -2s; background: radial-gradient(circle, rgba(255, 100, 0, 0.6) 0%, transparent 60%); }

/* Alternate positions for other sections */
.smoke-5 { left: 75%; animation-duration: 22s; animation-delay: -7s; width: 700px; height: 700px; background: radial-gradient(circle, rgba(255, 120, 30, 0.45) 0%, transparent 60%); filter: blur(30px); }
.smoke-6 { left: 20%; animation-duration: 15s; animation-delay: -12s; width: 450px; height: 450px; background: radial-gradient(circle, rgba(255, 90, 10, 0.55) 0%, transparent 60%); }

@keyframes floatUp {
  0% { transform: translateY(0) scale(0.8) rotate(0deg); opacity: 0; }
  10% { opacity: 0.8; }
  50% { opacity: 1; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-120vh) scale(1.6) rotate(180deg); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 4.5rem;
  color: #FF9800; /* Light Orange */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8), -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; /* Black stroke/shadow for readability */
  margin-bottom: 20px;
  letter-spacing: 1px;
  line-height: 1.1;
  animation: fadeInUp 1s ease forwards;
}

.hero p {
  font-size: 1.25rem;
  color: #FFE0B2; /* Lighter Orange for paragraph */
  text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
  max-width: 700px;
  margin: 0 auto 40px;
  font-weight: 300;
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
}

.btn {
  display: inline-block;
  padding: 16px 45px;
  background: var(--white);
  color: var(--primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  animation: fadeInUp 1s ease 0.4s forwards;
  opacity: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(11, 19, 43, 0.4);
}

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

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

/* Services Section */
.services {
  padding: 120px 50px;
  background: var(--bg-main);
  position: relative;
  overflow: hidden;
  z-index: 1; /* Establish stacking context */
}

.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 70px;
  position: relative;
  color: var(--white);
  z-index: 2; /* Bring text above smoke */
}

.section-title::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background: var(--secondary);
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 50px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2; /* Bring cards above smoke */
  perspective: 1000px; /* For 3D effect */
}

.service-card {
  background: var(--secondary);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: block;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
  transform-style: preserve-3d;
}

.service-card:hover {
  transform: translateY(-15px) rotateX(5deg) rotateY(-2deg);
  box-shadow: -15px 30px 50px rgba(11, 19, 43, 0.6), inset 0 1px 0 rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.15);
}

.img-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding-top: 65%; /* Create a fixed aspect ratio container (approx 3:2) */
  background: var(--secondary-light);
}

.service-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* Prevents image from being cut off, scales it to fit */
  object-position: center;
  padding: 10px; /* Add slight padding so it doesn't touch edges */
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: var(--white); /* White background to frame the contained image cleanly */
}

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

.img-wrapper::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(11, 19, 43, 0.8) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.service-content {
  padding: 40px 35px;
  position: relative;
  z-index: 2;
  background: var(--secondary);
  transition: transform 0.5s ease;
}

.service-card:hover .service-content {
  transform: translateZ(30px); /* Pop out text on hover */
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--white);
  transition: var(--transition);
}

.service-card:hover .service-content h3 {
  color: var(--primary-light);
}

.service-content p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 25px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  color: var(--white);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.service-card:hover .read-more {
  color: var(--primary-light);
}

.read-more svg {
  width: 18px;
  height: 18px;
  transition: var(--transition);
}

.service-card:hover .read-more svg {
  transform: translateX(8px);
}

/* About Section */
.about-section {
  padding: 120px 50px;
  background: var(--white);
  position: relative;
  z-index: 2;
}

.about-section .section-title {
  color: var(--secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
}

.about-content h3 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 25px;
}

.about-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.vision-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.vm-card {
  background: var(--bg-main);
  padding: 30px;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.vm-card h4 {
  font-size: 1.3rem;
  color: var(--secondary);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vm-card p {
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 0;
}

/* Process Section */
.process-section {
  padding: 100px 50px;
  background: var(--bg-main);
  position: relative;
  z-index: 2;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.process-step {
  text-align: center;
  padding: 40px 30px;
  background: var(--secondary);
  border-radius: 12px;
  position: relative;
  transition: transform 0.4s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.process-step:hover {
  transform: translateY(-10px);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 10px 20px rgba(217, 4, 41, 0.4);
}

.process-step h4 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Branches Section */
.branches-section {
  padding: 100px 50px;
  background: var(--white);
  position: relative;
  z-index: 2;
}

.branches-section .section-title {
  color: var(--secondary);
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  perspective: 1000px;
}

.branch-card {
  background: var(--bg-main);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
  transform-style: preserve-3d;
}

.branch-card:hover {
  transform: translateY(-10px) rotateX(3deg);
  box-shadow: 0 20px 40px rgba(217, 4, 41, 0.15);
}

.branch-icon {
  width: 70px;
  height: 70px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 10px 20px rgba(217, 4, 41, 0.3);
  transition: transform 0.4s ease;
}

.branch-card:hover .branch-icon {
  transform: translateZ(30px) scale(1.1);
}

.branch-card h4 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 15px;
  transition: transform 0.4s ease;
}

.branch-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
  transition: transform 0.4s ease;
}

.branch-card:hover h4, .branch-card:hover p {
  transform: translateZ(20px);
}

/* SEO Districts Section */
.seo-districts {
  padding: 80px 50px;
  background: var(--secondary-light);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.seo-districts .section-title {
  font-size: 2rem;
  margin-bottom: 50px;
}

.districts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  max-width: 1400px;
  margin: 0 auto;
}

.district-item {
  background: var(--secondary);
  color: var(--text-muted);
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.02);
}

.district-item:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateX(5px);
}

.district-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

/* Responsive Updates for New Sections */
@media (max-width: 992px) {
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .vision-mission { grid-template-columns: 1fr; }
  .districts-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* Marquee Testimonials Section */
.testimonials {
  padding: 100px 0;
  background: var(--primary-dark); /* Darker Red for contrast against main red */
  position: relative;
  overflow: hidden;
  z-index: 1; /* Establish stacking context */
}

.testimonials .section-title {
  color: var(--white);
  z-index: 2; /* Bring above smoke */
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  display: flex;
  z-index: 2; /* Bring above smoke */
}

.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 250px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--primary-dark), transparent);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--primary-dark), transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll 40s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* Scrolls exactly half the width (which is one full set of items) */
}

.testimonial-card {
  width: 450px;
  margin: 0 20px;
  background: var(--secondary);
  padding: 40px;
  border-radius: 12px;
  border-top: 5px solid var(--white);
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card::before {
  content: '""';
  position: absolute;
  top: 20px;
  right: 30px;
  font-family: serif;
  font-size: 80px;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

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

.author-info h4 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 5px;
}

.author-info span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Service Detail Page */
.page-header {
  padding: 180px 50px 80px;
  background: var(--primary-dark);
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('../images/istanbulyangintesisati.jpeg') center/cover;
  opacity: 0.1;
}

.page-header h1 {
  font-size: 3.5rem;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.service-detail-content {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 20px;
}

.service-detail-content img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 50px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.service-detail-content p {
  font-size: 1.2rem;
  color: var(--white);
  line-height: 1.9;
  margin-bottom: 25px;
}

/* Footer */
footer {
  background: var(--secondary);
  padding: 80px 50px 30px;
  text-align: center;
  color: var(--white);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
  text-align: left;
}

.footer-col h4 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  color: var(--white);
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 2px;
  background: var(--white);
}

.footer-col p, .footer-col a {
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
  font-size: 1rem;
}

.footer-col a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-logo {
  color: var(--white);
}
.footer-logo span {
  color: var(--secondary);
}

.signature-container {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(0.65);
  transform-origin: center bottom;
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 { font-size: 3rem; }
  .section-title { font-size: 2.5rem; }
  .services-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .marquee-container::before, .marquee-container::after { width: 50px; }
}

@media (max-width: 768px) {
  header { padding: 20px; }
  .nav-links { display: none; }
  .hero h1 { font-size: 2.5rem; }
  .services { padding: 80px 20px; }
  .page-header h1 { font-size: 2.5rem; }
  .testimonial-card { width: 350px; }
  
  .floating-contact.left { left: 15px; }
  .floating-contact.right { right: 15px; }
  .float-btn { width: 45px; height: 45px; }
  .float-btn svg { width: 22px; height: 22px; }
}

/* Floating Contact Buttons */
.floating-contact {
  position: fixed;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 9999;
}

.floating-contact.left {
  left: 30px;
}

.floating-contact.right {
  right: 30px;
}

.float-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.float-btn:hover {
  transform: scale(1.15) translateY(-5px);
  color: var(--white);
}

.float-btn svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
}

.call-btn {
  background: #0056b3;
}

.wa-btn {
  background: #1ebe5d;
}
