/* ============================================
   S&D360 Strateji Danışmanlık - Design System v3
   Montserrat | Trust Blue | PHP/MySQL Backend
   ============================================ */

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

:root {
  /* Trust Blue Palette — S&D360 brand */
  --blue-900: #0C2340;
  --blue-800: #12365A;
  --blue-700: #1A4F80;
  --blue-600: #1A6FB5;
  --blue-500: #2B8DD6;
  --blue-400: #4DA8E8;
  --blue-300: #7CC2F0;
  --blue-200: #B3DCF7;
  --blue-100: #DFF0FC;
  --blue-50: #F0F8FF;

  --dark-800: #111827;
  --dark-700: #1F2937;
  --dark-600: #374151;
  --dark-500: #4B5563;

  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;

  --success: #059669;
  --warning: #D97706;
  --error: #DC2626;
  --white: #FFFFFF;

  /* Font */
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  color: var(--dark-600);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

img,
svg {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font-family: var(--font);
}

/* Typography */
h1,
h2,
h3,
h4 {
  color: var(--blue-900);
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
}

p {
  color: var(--gray-500);
  line-height: 1.75;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--space-4xl) 0;
}

/* ============ SECTION ANIMATIONS ============ */
.page-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.page-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 14px 0;
  background: transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  padding: 8px 0;
}

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

.navbar-logo img {
  height: 182px;
  transition: height 0.3s;
  cursor: pointer;
  margin: -72px 0;
  filter: brightness(0) saturate(100%) invert(49%) sepia(52%) saturate(776%) hue-rotate(170deg) brightness(96%) contrast(89%);
}

.navbar.scrolled .navbar-logo img {
  height: 130px;
  margin: -48px 0;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navbar-menu a {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}

.navbar.scrolled .navbar-menu a {
  color: var(--dark-600);
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--blue-500);
  transition: all 0.3s;
  transform: translateX(-50%);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
  width: 100%;
}

.navbar-cta {
  background: var(--blue-600) !important;
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-full);
  font-weight: 700 !important;
  text-transform: none !important;
  font-size: 0.82rem !important;
  box-shadow: 0 2px 10px rgba(26, 111, 181, 0.3);
  transition: all 0.3s !important;
}

.navbar-cta:hover {
  background: var(--blue-500) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(26, 111, 181, 0.4);
}

.navbar-cta::after {
  display: none !important;
}

/* Language */
.lang-switch {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 2px;
  margin-left: 6px;
}

.navbar.scrolled .lang-switch {
  background: var(--gray-100);
}

.lang-switch button {
  padding: 4px 10px;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s;
  letter-spacing: 0.5px;
}

.navbar.scrolled .lang-switch button {
  color: var(--gray-400);
}

.lang-switch button.active {
  background: var(--white);
  color: var(--blue-900);
  box-shadow: var(--shadow-sm);
}

.navbar.scrolled .lang-switch button.active {
  background: var(--blue-800);
  color: var(--white);
}

/* Mobile menu */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.navbar-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
  border-radius: 2px;
}

.navbar.scrolled .navbar-toggle span {
  background: var(--blue-900);
}

.navbar-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.open span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(155deg, var(--blue-900) 0%, var(--blue-700) 50%, var(--blue-800) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(43, 141, 214, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 12s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, var(--white), transparent);
  z-index: 1;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-20px, -25px);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(43, 141, 214, 0.15);
  border: 1px solid rgba(43, 141, 214, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  color: var(--blue-200);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  animation: fadeUp 0.6s ease both;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  background: var(--blue-400);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-md);
  animation: fadeUp 0.6s ease 0.1s both;
}

.hero h1 .highlight {
  color: var(--blue-300);
}

.hero .subtitle {
  color: var(--blue-200);
  font-size: 1.05rem;
  margin-bottom: var(--space-xl);
  animation: fadeUp 0.6s ease 0.2s both;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeUp 0.6s ease 0.3s both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(26, 111, 181, 0.3);
}

.btn-primary:hover {
  background: var(--blue-500);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 111, 181, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--blue-700);
  border: 1.5px solid var(--blue-200);
}

.btn-outline:hover {
  background: var(--blue-50);
  border-color: var(--blue-400);
}

.btn-whatsapp {
  background: #128C7E;
  color: var(--white);
}

.btn-whatsapp:hover {
  background: #0D7A6E;
  transform: translateY(-2px);
}

/* ============ STATS ============ */
.stats {
  margin-top: -48px;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.stat-item {
  text-align: center;
  padding: 32px 20px;
  border-right: 1px solid var(--gray-100);
  transition: all 0.3s;
}

.stat-item:last-child {
  border-right: none;
}

.stat-item:hover {
  background: var(--blue-50);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue-900);
  line-height: 1;
}

.stat-number .accent {
  color: var(--blue-500);
}

.stat-label {
  font-size: 0.72rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-top: 8px;
}

/* ============ SECTION HEADER ============ */
.section-header {
  text-align: center;
  max-width: 540px;
  margin: 0 auto var(--space-3xl);
}

.section-header .overline {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--blue-600);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 12px;
  background: var(--blue-50);
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.section-header h2 {
  margin-bottom: 12px;
}

/* ============ SERVICES ============ */
.services {
  background: var(--gray-50);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.4s ease;
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-100);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 50px;
  height: 50px;
  background: var(--blue-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
}

.service-card h3 {
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 72px;
  align-items: center;
}

.about-image-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 50%, var(--blue-800) 100%);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(43, 141, 214, 0.15), transparent 70%);
  border-radius: 50%;
}

.about-logo-img {
  width: 65%;
  max-width: 220px;
  height: auto;
  filter: brightness(1.8) drop-shadow(0 4px 24px rgba(0, 0, 0, 0.2));
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.about-image-wrapper:hover .about-logo-img {
  transform: scale(1.06);
}

.about-image {
  position: relative;
}

.floating-card {
  position: absolute;
  bottom: -12px;
  right: -12px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  z-index: 2;
  border: 1px solid var(--gray-100);
  transition: transform 0.3s ease;
}

.floating-card:hover {
  transform: translateY(-4px);
}

.floating-card-2 {
  bottom: auto;
  right: auto;
  top: -12px;
  left: -12px;
}

.floating-card .number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blue-500);
}

.floating-card .text {
  font-size: 0.72rem;
  color: var(--gray-400);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.about-content .overline {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--blue-600);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 12px;
  background: var(--blue-50);
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.about-content h2 {
  margin-bottom: 18px;
}

.about-content p {
  margin-bottom: 12px;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--blue-900);
  padding: 8px 12px;
  background: var(--blue-50);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.about-feature:hover {
  background: var(--blue-100);
  transform: translateX(4px);
}

.about-feature .check {
  color: var(--blue-500);
  font-size: 0.9rem;
}

.about-cta {
  margin-top: 28px;
}

/* ============ CTA ============ */
.cta-section {
  background: linear-gradient(145deg, var(--blue-900), var(--blue-700));
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -8%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(43, 141, 214, 0.1), transparent 70%);
  border-radius: 50%;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 580px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: 14px;
}

.cta-content p {
  color: var(--blue-200);
  margin: 0 auto var(--space-xl);
  font-size: 1.02rem;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ CONTACT ============ */
.contact {
  background: var(--gray-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
}

.contact-info {
  padding: 20px 0;
}

.contact-info h2 {
  margin-bottom: 10px;
}

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

.contact-item-icon {
  width: 42px;
  height: 42px;
  background: var(--blue-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item h4 {
  color: var(--blue-900);
  margin-bottom: 2px;
  font-size: 0.9rem;
}

.contact-item p {
  font-size: 0.85rem;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}

.form-card h3 {
  margin-bottom: 4px;
}

.form-card>p {
  margin-bottom: 24px;
  font-size: 0.88rem;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-900);
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--dark-600);
  transition: all 0.2s;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(43, 141, 214, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-submit {
  width: 100%;
  margin-top: 6px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 36px 20px;
}

.form-success.show {
  display: block;
}

.form-success .icon {
  font-size: 3rem;
  margin-bottom: 14px;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--gray-400);
  background: var(--gray-50);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-200);
  margin-top: 14px;
}

.security-badge svg {
  width: 14px;
  height: 14px;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--blue-900);
  padding: 64px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 50px;
  filter: brightness(1.8);
  cursor: pointer;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin-top: 14px;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
  padding: 4px 0;
  transition: all 0.2s;
}

.footer-col a:hover {
  color: var(--blue-300);
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
}

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

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  transition: all 0.3s;
}

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

/* ============ WHATSAPP WIDGET ============ */
.whatsapp-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.wa-label {
  background: var(--white);
  color: var(--dark-600);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  animation: waBounce 3s ease-in-out infinite;
}

@keyframes waBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #128C7E;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(18, 140, 126, 0.4);
  transition: all 0.3s;
  position: relative;
  -webkit-tap-highlight-color: rgba(0,0,0,.1);
  touch-action: manipulation;
}

.wa-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(18, 140, 126, 0.5);
}

.wa-btn svg {
  width: 28px;
  height: 28px;
}

.wa-btn::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(18, 140, 126, 0.3);
  animation: waRipple 2s ease infinite;
}

@keyframes waRipple {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* ============ PROGRAMS ============ */
.programs {
  background: var(--white);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.program-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px 20px;
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Status Tag */
.status-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
}

.status-tag.active {
  background: #dcfce7;
  color: #166534;
}

.status-tag.soon {
  background: #fef3c7;
  color: #92400e;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-100);
}

.program-card:hover::before {
  transform: scaleX(1);
}

.program-card .program-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.program-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.program-card p {
  font-size: 0.85rem;
  line-height: 1.65;
  margin-bottom: 14px;
}

.program-badge {
  display: inline-block;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.program-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue-600);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 8px;
  transition: gap 0.2s;
}

.program-card:hover .learn-more {
  gap: 8px;
}

/* Program Modal */
.program-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.program-modal-overlay.active {
  display: flex;
}

.program-modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.program-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--gray-100);
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.program-modal-close:hover {
  background: var(--gray-200);
}

.program-modal h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  padding-right: 40px;
}

.program-modal .modal-subtitle {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.7;
}

.program-modal .modal-params {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.program-modal .param-item {
  background: var(--blue-50);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

.program-modal .param-item .param-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--blue-900);
}

.program-modal .param-item .param-label {
  font-size: 0.72rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  font-weight: 600;
}

.program-modal h3 {
  font-size: 1.1rem;
  margin: 20px 0 10px;
  color: var(--blue-800);
}

.program-modal ul {
  list-style: none;
  padding: 0;
}

.program-modal ul li {
  padding: 5px 0;
  font-size: 0.9rem;
  color: var(--gray-600);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.6;
}

.program-modal ul li::before {
  content: '✔';
  color: var(--blue-500);
  font-weight: 700;
  flex-shrink: 0;
}

.program-modal .modal-cta {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ============ BELGELENDIRME ============ */
.belgelendirme {
  background: var(--gray-50);
}

.belge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.belge-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  border: 1px solid var(--gray-100);
  transition: all 0.3s;
}

.belge-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-100);
}

.belge-card .belge-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.belge-card h4 {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.belge-card p {
  font-size: 0.78rem;
  line-height: 1.6;
}

/* ============ REFERENCES ============ */
.references {
  padding: 48px 0;
  background: var(--white);
  overflow: hidden;
}

.references .section-header {
  margin-bottom: 32px;
}

.ref-marquee {
  display: flex;
  overflow: hidden;
  position: relative;
}

.ref-marquee::before,
.ref-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
}

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

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

.ref-track {
  display: flex;
  gap: 16px;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
}

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

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

  100% {
    transform: translateX(-50%);
  }
}

.ref-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dark-600);
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}

.ref-item:hover {
  background: var(--blue-50);
  border-color: var(--blue-200);
  color: var(--blue-700);
}

.ref-item .ref-dot {
  width: 8px;
  height: 8px;
  background: var(--blue-400);
  border-radius: 50%;
  flex-shrink: 0;
}

.ref-approved {
  margin-top: 32px;
  text-align: center;
}

.ref-approved-card {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-lg);
  padding: 18px 28px;
}

.ref-approved-card .approved-icon {
  font-size: 1.6rem;
}

.ref-approved-card .approved-text h4 {
  font-size: 0.9rem;
  color: var(--blue-900);
}

.ref-approved-card .approved-text p {
  font-size: 0.78rem;
  color: var(--gray-500);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .program-modal {
    padding: 28px;
  }

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

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

  .stat-item {
    border-bottom: 1px solid var(--gray-100);
  }
}

@media (max-width: 768px) {
  .navbar-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--blue-900);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s ease;
  }

  .navbar-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .navbar-menu a {
    color: var(--white) !important;
    font-size: 1rem !important;
    letter-spacing: 2px;
  }

  .navbar-menu .navbar-cta {
    margin-top: 12px;
  }

  .lang-switch {
    margin-left: 0;
    margin-top: 12px;
  }

  .navbar-toggle {
    display: flex;
  }

  .hero {
    min-height: 100svh;
    padding-top: 80px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .programs-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .program-modal {
    padding: 22px;
    max-height: 90vh;
  }

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

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius-lg);
  }

  .stat-item {
    padding: 22px 14px;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .about-image-wrapper {
    aspect-ratio: 16/10;
  }

  .floating-card {
    bottom: -10px;
    right: 10px;
    padding: 12px 16px;
  }

  .floating-card-2 {
    top: -10px;
    left: 10px;
    bottom: auto;
    right: auto;
  }

  .floating-card .number {
    font-size: 1.3rem;
  }

  .about-features {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

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

  .form-card {
    padding: 24px 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Mobilde WA butonu share bar'ın üstünde kalmalı */
  .whatsapp-widget {
    bottom: 70px;
    right: 16px;
  }
  .wa-label {
    display: none;
  }
}

@media (max-width: 380px) {
  .container {
    padding: 0 16px;
  }

  h1 {
    font-size: 1.65rem;
  }

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

  .stat-item {
    border-right: none;
  }

  .form-card {
    padding: 20px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}
/* ============ FEATURED PROGRAM CARD ============ */
.program-card.featured-card {
  border: 2px solid #059669;
  position: relative;
  box-shadow: 0 0 20px rgba(5, 150, 105, 0.15);
}

.program-card.featured-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #059669, #34D399);
}

/* ============ MODAL NEW BADGE ============ */
.modal-new-badge {
  display: inline-block;
  background: linear-gradient(135deg, #059669, #34D399);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 9999px;
  letter-spacing: 1px;
  margin-bottom: 12px;
  font-family: var(--font);
}
