/* ==========================================================================
   DENTINN Sakarya - Modern Stylesheet
   Brand Colors: Primary #345a96 | Accent #1085c0 | WhatsApp #25d366
   ========================================================================== */

:root {
  --primary: #345a96;
  --primary-dark: #1e365c;
  --primary-light: #eaf0f8;
  --accent: #1085c0;
  --accent-light: #e6f4fb;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe57;
  --text-main: #1e293b;
  --text-muted: #526077;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --border-subtle: rgba(52, 90, 150, 0.12);
  --shadow-sm: 0 4px 16px -2px rgba(29, 49, 87, 0.06);
  --shadow-md: 0 12px 32px -4px rgba(29, 49, 87, 0.1);
  --shadow-lg: 0 20px 45px -10px rgba(29, 49, 87, 0.16);
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --header-height: 84px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(52, 90, 150, 0.08);
  transition: all var(--transition);
}

.site-header.scrolled {
  height: 72px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1320px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  height: 58px;
  width: auto;
  transition: height var(--transition);
}

.site-header.scrolled .brand-logo img {
  height: 48px;
}

.nav-menu-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.nav-link svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  transition: transform var(--transition), color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.nav-link:hover svg {
  transform: translateY(-1px);
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--primary);
  background: var(--primary-light);
  transition: all var(--transition);
}

.social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

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

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.35rem;
  background-color: var(--whatsapp);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  transition: all var(--transition);
}

.btn-whatsapp svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: background-color var(--transition);
}

.menu-toggle:hover {
  background-color: var(--primary-light);
}

.hamburger-box {
  width: 24px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-box span {
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: var(--primary);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.menu-toggle[aria-expanded="true"] .hamburger-box span:nth-child(1) {
  transform: translateY(7.75px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger-box span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-box span:nth-child(3) {
  transform: translateY(-7.75px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  background-image: url('../images/hero-bg.webp');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.82) 45%,
    rgba(255, 255, 255, 0.35) 100%
  );
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.hero-content {
  max-width: 640px;
  animation: fadeUp 0.8s ease-out both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(52, 90, 150, 0.1);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 4.6vw, 3.75rem);
  line-height: 1.18;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.hero-title strong {
  font-weight: 800;
  display: inline-block;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 500;
  font-style: italic;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary);
  opacity: 0.75;
  transition: opacity var(--transition), transform var(--transition);
}

.scroll-indicator:hover {
  opacity: 1;
  transform: translateX(-50%) translateY(3px);
}

.scroll-indicator svg {
  width: 28px;
  height: 28px;
  animation: bounce 2s infinite;
}

/* ==========================================================================
   Section Common Styles
   ========================================================================== */

.section {
  position: relative;
  padding: 5.5rem 0;
  background-image: url('../images/section-bg.webp');
  background-size: cover;
  background-position: center;
}

@media (min-width: 1025px) and (hover: hover) {
  .section {
    background-attachment: fixed;
  }
}

.section-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.84);
  z-index: 1;
}

.section-alt .section-overlay {
  background: rgba(248, 250, 252, 0.9);
}

.section > .container {
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
  line-height: 1.2;
  display: inline-block;
  position: relative;
  padding-bottom: 0.85rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* ==========================================================================
   Ekibimiz (Team) Section
   ========================================================================== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.team-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.75rem 2rem;
  text-align: center;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(16, 133, 192, 0.3);
}

.team-avatar-wrap {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 25px rgba(52, 90, 150, 0.18);
  overflow: hidden;
  flex-shrink: 0;
}

.team-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #ffffff;
  transition: transform 0.4s ease;
}

.team-card:hover .team-avatar {
  transform: scale(1.05);
}

.team-name {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.team-role {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.4rem;
}

.team-social {
  margin-top: auto;
}

.team-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  transition: all var(--transition);
}

.team-social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.team-social-link:hover {
  background-color: var(--accent);
  color: #ffffff;
  transform: scale(1.08);
}

/* ==========================================================================
   Galeri (Gallery) Section
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background-color: #e2e8f0;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  border: 1px solid var(--border-subtle);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30, 54, 92, 0.65) 0%,
    rgba(30, 54, 92, 0.25) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-hover-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
  transition: transform var(--transition);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.gallery-hover-icon svg {
  width: 24px;
  height: 24px;
}

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

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

.gallery-item:hover .gallery-hover-icon {
  transform: scale(1);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.96);
  transition: transform 0.25s ease;
}

.lightbox.open .lightbox-img {
  transform: scale(1);
}

.lightbox-btn {
  position: fixed;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2010;
}

.lightbox-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.06);
}

.lightbox-btn svg {
  width: 24px;
  height: 24px;
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
}

.lightbox-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover {
  transform: translateY(-50%) scale(1.06);
}

.lightbox-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next:hover {
  transform: translateY(-50%) scale(1.06);
}

.lightbox-counter {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.65);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Bize Ulaşın (Contact) Section
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.contact-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(52, 90, 150, 0.25);
}

.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.contact-card:hover .contact-icon {
  background: var(--primary);
  color: #ffffff;
}

.contact-icon svg {
  width: 26px;
  height: 26px;
}

.contact-info {
  flex: 1;
  min-width: 0;
}

.contact-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.contact-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  overflow-wrap: break-word;
  word-break: break-word;
}

.contact-text a {
  color: var(--primary);
  font-weight: 600;
  border-bottom: 1px dashed rgba(52, 90, 150, 0.35);
  transition: color var(--transition), border-color var(--transition);
}

.contact-text a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.contact-text strong {
  color: var(--text-main);
  font-weight: 700;
}

/* ==========================================================================
   Map Section
   ========================================================================== */

.map-section {
  width: 100%;
  height: 460px;
  background: #e2e8f0;
  position: relative;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ==========================================================================
   Footer & Scroll To Top
   ========================================================================== */

.site-footer {
  background-color: var(--primary);
  color: #ffffff;
  padding: 1.5rem 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-credit a {
  display: inline-block;
  opacity: 0.92;
  transition: opacity var(--transition), transform var(--transition);
}

.footer-credit a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.footer-credit img {
  width: 100px;
  height: 30px;
  max-width: none;
  display: block;
}

.scroll-top-btn {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  box-shadow: 0 6px 20px rgba(52, 90, 150, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.scroll-top-btn svg {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   Animations
   ========================================================================== */

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(6px);
  }
  60% {
    transform: translateY(3px);
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .team-grid {
    gap: 1.5rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-menu-wrapper {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100svh - var(--header-height));
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1.5rem 1.5rem 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
  }

  .site-header.scrolled .nav-menu-wrapper {
    top: 72px;
  }

  .nav-menu-wrapper.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0.4rem;
  }

  .nav-link {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1rem;
    font-size: 1.15rem;
  }

  .nav-actions {
    flex-direction: column;
    width: 100%;
    gap: 1.25rem;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 72px;
  }

  .brand-logo img {
    height: 46px;
  }

  .hero-section {
    background-position: 65% center;
    min-height: 88vh;
    min-height: 88svh;
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.85) 60%,
      rgba(255, 255, 255, 0.68) 100%
    );
  }

  .hero-content {
    text-align: center;
    margin: 0 auto;
  }

  .section {
    padding: 4rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .lightbox-img {
    max-width: 92vw;
    max-height: 74vh;
    max-height: 74svh;
  }

  .lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 46px;
    height: 46px;
  }

  .lightbox-prev {
    left: 1rem;
    top: auto;
    bottom: 1.25rem;
    width: 46px;
    height: 46px;
    transform: none;
  }

  .lightbox-prev:hover {
    transform: scale(1.06);
  }

  .lightbox-next {
    right: 1rem;
    top: auto;
    bottom: 1.25rem;
    width: 46px;
    height: 46px;
    transform: none;
  }

  .lightbox-next:hover {
    transform: scale(1.06);
  }
}

@media (max-width: 576px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 1.5rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .map-section {
    height: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
