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

:root {
  --primary-blue: #0b4b8a;
  --secondary-blue: #1c75bc;
  --light-blue: #e3f2fd;
  --dark-gray: #333333;
  --mid-gray: #666666;
  --light-gray: #f5f5f5;
  --white: #ffffff;
  --border-color: #dddddd;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark-gray);
  background-color: var(--white);
  line-height: 1.6;
}

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

a:hover {
  color: var(--secondary-blue);
}

ul {
  list-style: none;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-blue);
  font-weight: 700;
  margin-bottom: 15px;
}

h1 { font-size: 2.5rem; line-height: 1.2; }
h2 { font-size: 2rem; margin-bottom: 30px; text-align: center; position: relative;}
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-blue);
    margin: 15px auto 0;
}
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 15px;
  color: var(--mid-gray);
}

/* Header & Navbar */
header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-bar {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 10px 0;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

/* Cold / Snow Animation for Top Bar */
.top-bar::before, .top-bar::after {
  content: '';
  position: absolute;
  top: -20px;
  width: 5px;
  height: 5px;
  background: white;
  border-radius: 50%;
  box-shadow: 
    5vw 10px 0 1px rgba(255,255,255,0.8), 
    15vw 30px 0 0 rgba(255,255,255,0.6), 
    25vw 5px 0 1px white, 
    35vw 45px 0 0 rgba(255,255,255,0.5),
    45vw 15px 0 1px white,
    55vw 25px 0 0 rgba(255,255,255,0.7),
    65vw 50px 0 1px white,
    75vw 20px 0 0 rgba(255,255,255,0.6),
    85vw 35px 0 1px white,
    95vw 10px 0 0 rgba(255,255,255,0.8);
  opacity: 0.7;
  animation: snowBar 4s linear infinite;
  pointer-events: none;
  z-index: 2;
}

.top-bar::after {
  width: 3px;
  height: 3px;
  box-shadow: 
    10vw -10px 0 0 white, 
    20vw 20px 0 1px rgba(255,255,255,0.7), 
    30vw 5px 0 0 rgba(255,255,255,0.5),
    40vw 35px 0 1px white,
    50vw 15px 0 0 rgba(255,255,255,0.8),
    60vw 40px 0 1px white,
    70vw 10px 0 0 rgba(255,255,255,0.6),
    80vw 30px 0 1px white,
    90vw 5px 0 0 rgba(255,255,255,0.7);
  animation: snowBar 6s linear infinite;
  animation-delay: -3s;
}

@keyframes snowBar {
  0% { transform: translateY(-10px) translateX(0); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(60px) translateX(20px); opacity: 0; }
}

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

.top-bar a {
  color: var(--white);
  margin-left: 15px;
}

.top-bar a:hover {
  color: var(--light-blue);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  width: 200px;
  overflow: hidden;
}

.logo img {
  height: 220px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: var(--dark-gray);
  font-weight: 500;
  font-size: 1rem;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary-blue);
}

.btn-quote {
  background-color: var(--secondary-blue);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
}

.btn-quote:hover {
  background-color: var(--primary-blue);
  color: var(--white) !important;
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-blue);
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 75, 138, 0.7);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 600px;
}

.hero-content h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 20px;
  animation: fadeUp 1s ease;
}

.hero-content p {
  color: var(--light-gray);
  font-size: 1.2rem;
  margin-bottom: 30px;
  animation: fadeUp 1s ease 0.2s;
  animation-fill-mode: both;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 5px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

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

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

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

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

/* Sections General */
.section {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--light-gray);
}

/* Services Overview (Home) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background: var(--white);
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-10px);
  border-bottom: 4px solid var(--secondary-blue);
}

.service-icon {
  font-size: 3rem;
  color: var(--secondary-blue);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

/* Stats Section */
.stats {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 10px;
}

.stat-item p {
  color: var(--light-blue);
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* Contact CTA */
.cta-section {
  background-color: var(--light-blue);
  text-align: center;
  padding: 80px 0;
  border-radius: 10px;
  margin: 40px auto;
}

.cta-section h2 {
  text-align: center;
}
.cta-section h2::after { margin-left: auto; margin-right: auto; }

/* Footer */
footer {
  background-color: var(--dark-gray);
  color: var(--light-gray);
  padding: 80px 0 30px;
  position: relative;
  border-top: 4px solid var(--light-blue);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 30px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 10px;
}

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

.footer-col p {
  line-height: 1.7;
  margin-bottom: 20px;
  color: #cccccc;
}

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

.footer-col ul li a {
  color: #bbbbbb;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-col ul li a:hover {
  color: var(--light-blue);
  transform: translateX(5px);
}

.footer-contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  align-items: flex-start;
}

.footer-contact-item i {
  color: var(--light-blue);
  font-size: 1.1rem;
  margin-top: 3px;
}

/* Footer Logo Final Styling */
.footer-logo-img {
  height: 90px !important;
  width: auto !important;
  margin-bottom: 25px;
  display: block;
  /* Karanlık zeminde logonun parlaması için filtreler */
  filter: brightness(1.2) contrast(1.1) !important;
  transition: transform 0.3s ease;
}

.footer-logo-img:hover {
  transform: scale(1.05);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: #888;
}

.footer-social-links {
  display: flex;
  gap: 15px;
}

.footer-social-links a {
  width: 35px;
  height: 35px;
  background-color: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  transition: all 0.3s ease;
}

.footer-social-links a:hover {
  background-color: var(--light-blue);
  color: var(--white);
  transform: translateY(-3px);
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-logo-img {
    margin: 0 auto 25px;
  }
  .footer-contact-item {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
  }
}

/* Responsive Navbar */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 20px;
    box-shadow: 0 10px 10px rgba(0,0,0,0.1);
  }
  .nav-links.active {
    display: flex;
  }
  .hamburger {
    display: block;
  }
  .top-bar-container {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .btn-outline {
    margin-left: 0;
    margin-top: 15px;
    display: block;
  }
}

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

/* WhatsApp Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #FFF;
}

/* Photo Gallery */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 250px;
  gap: 20px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 75, 138, 0.6);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  font-size: 2rem;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay i {
  transform: translateY(0);
}

/* Ticker References */
.ticker-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px 0;
    width: 100%;
}
.ticker-wrapper {
    display: inline-flex;
    animation: ticker 40s linear infinite;
    align-items: center;
}
.ticker-wrapper:hover {
    animation-play-state: paused;
}
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ticker-item {
    padding: 15px 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin: 0 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
}
.ticker-item img {
    max-height: 50px;
    max-width: 140px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* ===================================
   FLOATING CONTACT WIDGET (Phone + WhatsApp)
   =================================== */

/* Eski .whatsapp-float'u gizle — artık float-widget kullanılıyor */
.whatsapp-float { display: none !important; }

.float-widget {
    position: fixed;
    bottom: 30px;
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    cursor: pointer;
    border: none;
    outline: none;
}

.float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
    color: white;
}

.float-btn-phone {
    background: #1c75bc;
}

.float-btn-wa {
    background: #25d366;
}

/* Pulse animation for WhatsApp */
.float-btn-wa::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25d366;
    opacity: 0;
    animation: wa-pulse 2.5s ease-out infinite;
    z-index: -1;
}

@keyframes wa-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Chat bubble popup — sola açılır */
.wa-bubble {
    position: absolute;
    bottom: 50%;
    right: 68px;
    transform: translateY(50%) translateX(10px) scale(0.92);
    background: white;
    border-radius: 12px 12px 12px 2px;
    padding: 14px 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    width: 230px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(.22,1,.36,1), transform 0.35s cubic-bezier(.22,1,.36,1);
    transform-origin: right center;
}

.float-btn-wa.active .wa-bubble {
    opacity: 1;
    transform: translateY(50%) translateX(0) scale(1);
    pointer-events: auto;
    animation: bubbleBounce 0.5s cubic-bezier(.22,1,.36,1);
}

@keyframes bubbleBounce {
    0%   { transform: translateY(50%) translateX(14px) scale(0.88); opacity: 0; }
    60%  { transform: translateY(50%) translateX(-3px) scale(1.03); opacity: 1; }
    100% { transform: translateY(50%) translateX(0) scale(1); opacity: 1; }
}

.wa-bubble-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #25d366;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.wa-bubble-text {
    font-size: 0.92rem;
    color: #1a1a2e;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.wa-bubble-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 14px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
