/* style.css - 2026 Redesign for Korkmaz Yangın Söndürme */

:root {
  --color-primary: #e32322; /* Red from the new logo */
  --color-primary-dark: #c01c1b;
  --color-dark: #121212;
  --color-dark-glass: rgba(18, 18, 18, 0.85);
  --color-light: #f8f9fa;
  --color-white: #ffffff;
  --color-whatsapp: #25d366;
  --font-main: 'Inter', sans-serif;
  --transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  background-color: var(--color-light);
}

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

/* --- 1. Two-Tier Header Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.top-bar {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: var(--color-white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.top-bar a:hover {
  opacity: 0.8;
}

.top-bar-left {
  display: flex;
  gap: 25px;
}

.top-bar-right {
  display: flex;
  gap: 20px;
}

.main-nav {
  background-color: var(--color-white);
  padding: 15px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.nav-logo img {
  height: 75px;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-logo img:hover { transform: scale(1.05); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin-left: auto; /* Push to right since phone button is removed */
}

.nav-links a {
  text-decoration: none;
  color: var(--color-dark);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  transition: var(--transition);
}

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

.nav-links a:hover::after {
  width: 100%;
}
.nav-links a:hover { color: var(--color-primary); }

.nav-cta {
  position: relative;
  margin-left: 30px;
}

.nav-cta-tooltip {
  position: absolute;
  bottom: -45px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-dark);
  color: var(--color-white);
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  animation: bounceNavTooltip 2s infinite;
  letter-spacing: 0.5px;
}

.nav-cta-tooltip::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--color-dark);
}

.nav-cta-btn {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(227, 35, 34, 0.4);
  font-size: 15px;
}

.nav-cta-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(227, 35, 34, 0.6);
  color: var(--color-white);
}

@keyframes bounceNavTooltip {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}

/* --- 2. Hero Section (SLIDER 1) --- */
.hero-slider {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  padding-top: 110px; /* Adjusted for taller two-tier header */
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: var(--color-white);
  max-width: 900px;
  padding: 0 20px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s ease 0.3s;
}

.hero-slide.active .hero-content {
  transform: translateY(0);
  opacity: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 4px 10px rgba(0,0,0,0.5);
}

.hero-content p {
  font-size: 1.2rem;
  font-weight: 400;
  text-shadow: 1px 2px 5px rgba(0,0,0,0.5);
}

/* Slider Controls */
.hero-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 15px;
}
.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}
.hero-dot.active {
  background: var(--color-primary);
  transform: scale(1.3);
}

/* --- 3. Location Bar --- */
.location-bar {
  background-color: var(--color-primary);
  color: var(--color-dark);
  padding: 30px 0;
  position: relative;
  z-index: 10;
}

.location-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.location-text h3 {
  font-size: 22px;
  font-weight: 800;
}

/* --- 4. Services Accordion --- */
.services-section {
  padding: 100px 0;
  background-color: var(--color-white);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--color-dark);
  margin-bottom: 50px;
  text-transform: uppercase;
  font-weight: 800;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-primary);
  margin: 15px auto 0;
  border-radius: 2px;
}

.services-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

details {
  background: var(--color-light);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
  transition: var(--transition);
}

details[open] {
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border-color: var(--color-primary);
}

summary {
  list-style: none; /* Hide default arrow */
  padding: 20px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: var(--transition);
}

summary::-webkit-details-marker {
  display: none; /* Hide Safari default arrow */
}

.summary-title {
  display: flex;
  align-items: center;
  gap: 20px;
}

.summary-icon {
  color: var(--color-primary);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(251, 169, 25, 0.1);
  border-radius: 50%;
}

.toggle-icon {
  width: 24px;
  height: 24px;
  color: #888;
  transition: transform 0.4s ease;
}

details[open] summary .toggle-icon {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.accordion-content {
  padding: 0 30px 25px 90px; /* Aligned with title text */
  color: #666;
  font-size: 0.95rem;
  line-height: 1.7;
  animation: fadeInDown 0.4s ease-out;
}

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

/* --- 5. Auto Scrolling Portfolio (SLIDER 2) --- */
.portfolio-section {
  background-color: var(--color-dark);
  padding: 100px 0;
  color: var(--color-white);
  overflow: hidden;
}

.portfolio-section .section-title {
  color: var(--color-white);
}

.marquee-container {
  display: flex;
  width: 200%;
  animation: marquee 20s linear infinite;
}

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

.portfolio-item {
  width: 400px;
  height: 300px;
  margin: 0 15px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } 
}

/* --- 6. Who We Are --- */
.who-we-are {
  background-color: var(--color-light);
  padding: 100px 0;
  text-align: center;
}

.who-we-are p {
  max-width: 800px;
  margin: 0 auto;
  color: #555;
  font-size: 1.2rem;
  line-height: 1.8;
}

/* --- 7. Testimonials (SLIDER 3) --- */
.testimonials {
  padding: 100px 0;
  background-color: var(--color-white);
  overflow: hidden;
}

.testimonial-slider-wrap {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.testimonial-card {
  min-width: 100%;
  background: var(--color-light);
  padding: 50px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 100px;
  color: var(--color-primary);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 30px;
  font-family: serif;
}

.testimonial-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 25px;
  border: 4px solid var(--color-white);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  object-fit: cover;
}

.testimonial-card blockquote {
  font-size: 1.3rem;
  font-style: italic;
  color: #444;
  margin-bottom: 20px;
}

.testi-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.testi-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: var(--transition);
}
.testi-dot.active {
  background: var(--color-primary);
  transform: scale(1.3);
}

/* --- 8. Footer --- */
.main-footer {
  background-color: #0a0a0a;
  color: #ccc;
  padding: 80px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo img {
  max-width: 200px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.footer-col h4 {
  color: var(--color-white);
  margin-bottom: 25px;
  font-size: 1.2rem;
  text-transform: uppercase;
}

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

.footer-col ul li {
  margin-bottom: 15px;
}

.footer-col a {
  color: #aaa;
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
}

/* --- 9. Floating WhatsApp Button --- */
.floating-whatsapp {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 15px;
}

.wa-tooltip {
  background: var(--color-white);
  color: var(--color-dark);
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  position: relative;
  animation: bounceTooltip 2s infinite;
}

.wa-tooltip::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid var(--color-white);
}

.wa-button {
  background-color: var(--color-whatsapp);
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
  transition: var(--transition);
  position: relative;
  text-decoration: none;
}

.wa-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-whatsapp);
  border-radius: 50%;
  z-index: -1;
  animation: pulse 2s infinite;
}

.wa-button svg {
  width: 35px;
  height: 35px;
  fill: var(--color-white);
}

.wa-button:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.7);
}

@keyframes bounceTooltip {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-10px); }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* --- Scroll Reveal Classes --- */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .nav-links { display: none; } 
  .hero-content h1 { font-size: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
  .floating-whatsapp { bottom: 20px; right: 20px; }
  .wa-tooltip { display: none; }
  .wa-button { width: 55px; height: 55px; }
  .wa-button svg { width: 30px; height: 30px; }
  .accordion-content { padding-left: 20px; }
}
