/* ----- MODERN DESIGN SYSTEM TOKENS ----- */
:root {
  /* Colors */
  --primary-color: #059669; /* Emerald Green */
  --primary-hover: #047857;
  --bg-dark: #0f172a; /* Slate 900 */
  --bg-light: #f8fafc; /* Slate 50 */
  --text-dark: #1e293b; /* Slate 800 */
  --text-muted: #64748b; /* Slate 500 */
  --white: #ffffff;
  
  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  
  /* Utilities */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- GLOBAL RESETS & TYPOGRAPHY ----- */
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
}

.max-w-700 { max-width: 700px; }

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 10px;
}

/* ----- NAVBAR ----- */
.custom-navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 15px 0;
  transition: var(--transition);
}

.brand-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-right: 10px;
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--bd-dark);
  letter-spacing: -0.5px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  margin: 0 10px;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color) !important;
}

/* Underline animation */
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  display: block;
  margin-top: 5px;
  right: 0;
  background: var(--primary-color);
  transition: width 0.3s ease;
  -webkit-transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
  left: 0;
  background: var(--primary-color);
}

.btn-get-quote {
  background-color: var(--primary-color);
  border: none;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 30px;
  transition: var(--transition);
  box-shadow: 0 4px 14px 0 rgba(5, 150, 105, 0.39);
}
.btn-get-quote:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.23);
}

.mt-navbar {
  margin-top: 86px; /* Offset for fixed navbar */
}

/* ----- TICKER (ŞERİT) ----- */
.serit-container {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, var(--bg-dark), #1e293b);
  padding: 10px 0;
  color: var(--white);
  position: relative;
  z-index: 10;
}

.serit {
  display: inline-flex;
  white-space: nowrap;
  animation: kayanSerit 25s linear infinite;
  align-items: center;
}

.serit span {
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0 40px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.serit span i {
  color: var(--primary-color);
}

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

/* ----- HERO SECTION ----- */
.hero-section {
  position: relative;
  height: 80vh;
  min-height: 600px;
  background-image: url('panel1.jpg'); /* fallback img */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.6));
  z-index: 1;
}

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

.hero-title {
  color: var(--white);
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-title span {
  color: var(--primary-color);
  display: block;
}

.hero-subtitle {
  color: #cbd5e1;
  font-size: 1.5rem;
  margin-bottom: 40px;
  font-weight: 400;
}

.custom-btn {
  padding: 15px 35px;
  border-radius: 30px;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  transition: var(--transition);
  background-color: var(--primary-color);
  border: none;
  box-shadow: 0 4px 14px 0 rgba(5, 150, 105, 0.39);
}
.custom-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.custom-btn-outline {
  background-color: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  box-shadow: none;
}
.custom-btn-outline:hover {
  background-color: var(--white);
  color: var(--bg-dark);
  transform: translateY(-3px);
}

/* ----- PAGE HEADERS (INNER PAGES) ----- */
.page-header {
  background: linear-gradient(135deg, var(--bg-dark), #1e293b);
  padding: 80px 0;
  text-align: center;
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; 
  height: 50px;
  background: var(--bg-light);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

/* ----- SECTION UTILITIES ----- */
.section-title {
  font-size: 2.5rem;
  color: var(--bg-dark);
}
.divider {
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
  margin-top: 10px;
}

/* ----- SLIDER SECTION ----- */
.gallery-slider {
  overflow: hidden;
}
.slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.slider-container {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.slide {
  min-width: 100%;
}
.slide img {
  width: 100%;
  height: 60vh;
  min-height: 400px;
  max-height: 600px;
  object-fit: cover;
  display: block;
}
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: var(--bg-dark);
  border: none;
  width: 50px; height: 50px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.nav:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-50%) scale(1.1);
}
.nav.left { left: 20px; }
.nav.right { right: 20px; }

/* ----- ABOUT SECTION ----- */
.feature-list {
  list-style: none;
  padding: 0;
}
.feature-list li {
  font-size: 1.1rem;
  margin-bottom: 12px;
  font-weight: 500;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}
.map-container iframe {
  border-radius: var(--border-radius-md);
  transition: var(--transition);
}

.about-image-wrapper {
  position: relative;
}
.hover-scale {
  transition: var(--transition);
}
.hover-scale:hover {
  transform: scale(1.02);
}
.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  padding: 20px;
  border-radius: var(--border-radius-md);
  border-left: 5px solid var(--primary-color);
}

/* ----- SERVICES COMPONENT ----- */
.service-card {
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.05);
}
.service-img-container {
  height: 250px;
  overflow: hidden;
  position: relative;
}
.service-card img {
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.service-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
  opacity: 0;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg) !important;
}
.service-card:hover img {
  transform: scale(1.1);
}
.service-card:hover .service-overlay {
  opacity: 1;
}
.service-content h4 {
  color: var(--bg-dark);
  transition: var(--transition);
}
.service-card:hover .service-content h4 {
  color: var(--primary-color);
}

/* ----- CONTACT COMPONENT ----- */
.contact-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--border-radius-lg);
  transition: var(--transition);
  border-top: 5px solid transparent;
}
.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg) !important;
  border-top-color: var(--primary-color);
}
.contact-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto;
  box-shadow: 0 10px 20px rgba(5, 150, 105, 0.2);
}
.contact-link {
  text-decoration: none;
  transition: var(--transition);
}
.contact-link:hover {
  color: var(--primary-color) !important;
}

/* ----- FOOTER ----- */
.modern-footer {
  background-color: var(--bg-dark);
  padding-top: 40px;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}
.footer-links a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}
.footer-contact li {
  color: var(--text-muted);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-contact i {
  color: var(--primary-color);
  font-size: 1.2rem;
}
.footer-bottom {
  background-color: #0b1120;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ----- ANIMATIONS & WIDGETS ----- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  transition: var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover {
  background: #128C7E;
  color: white;
  transform: scale(1.1);
}
.pulse-animation {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.phone-float {
  position: fixed;
  bottom: 105px;
  right: 30px;
  background: var(--bg-dark);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.3);
  z-index: 1000;
  transition: var(--transition);
  text-decoration: none;
}
.phone-float:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}
.pulse-animation-phone {
  animation: pulsePhone 2s infinite;
  animation-delay: 1s; /* makes it alternate with whatsapp pulse */
}
@keyframes pulsePhone {
  0% { box-shadow: 0 0 0 0 rgba(15, 23, 42, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(15, 23, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 23, 42, 0); }
}

.text-primary {
  color: var(--primary-color) !important;
}
.bg-primary {
  background-color: var(--primary-color) !important;
}
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .hero-title { font-size: 3rem; }
  .custom-navbar { padding: 10px 0; }
  .btn-get-quote { margin-top: 15px; display: inline-block; }
  .experience-badge { display: none; }
}
@media (max-width: 576px) {
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .hero-buttons { display: flex; flex-direction: column; gap: 15px; }
  .hero-buttons .btn { margin: 0 !important; width: 100%; }
}
