/* Base Styles */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: linear-gradient(to bottom, #000 0, #000 100px, #f5f5f5 100px);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, Arial, sans-serif;
}

/* Video Styles */
.video-container {
  position: relative;
  width: 100%;
  height: 100vh;
  margin-top: 80px;
  overflow: hidden;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.3);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.learn-more-button {
  margin-top: 20px;
  padding: 12px 24px;
  background: #fff;
  color: #013220;
  font-size: 16px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: buttonFadeIn 0.8s ease-out 2.3s forwards;
}

.learn-more-button:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.wave-divider {
  position: absolute;
  bottom: -1px;
  width: 100%;
  height: 120px;
  z-index: 3;
  pointer-events: none;
}

.wave-divider svg {
  width: 100%;
  height: 120px;
}

.mvvustuyazı {
  background: #f5f5f5;
}

.video-text {
  margin-top: -150px;
  font-size: 100%;
}

.animated-title {
  font-size: 3em;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
  margin-bottom: 20px;
  overflow: hidden;
}

.title-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100px) rotateX(90deg);
  animation: titleReveal 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.title-word:nth-child(1) { animation-delay: 0.2s; }
.title-word:nth-child(2) { animation-delay: 0.5s; }
.title-word:nth-child(3) { animation-delay: 0.8s; }

.animated-underline {
  height: 4px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  margin: 0 auto 30px;
  width: 0;
  animation: underlineGrow 1.5s ease-out 1.3s forwards;
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.animated-subtitle {
  font-size: 1.2em;
  opacity: 0;
  transform: translateY(30px);
  animation: subtitleFadeIn 1s ease-out 1.8s forwards;
  margin-bottom: 30px;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
  font-weight: 300;
  letter-spacing: 1px;
}

.degisenseydivi {
  opacity: 0;
  transform: translateY(20px);
  animation: buttonFadeIn 0.8s ease-out 2.6s forwards;
}

/* Keyframes */
@keyframes titleReveal {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

@keyframes underlineGrow {
  to { width: 300px; }
}

@keyframes subtitleFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes buttonFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes underlineGrowMobile {
  to { width: 200px; }
}

@keyframes underlineGrowSmall {
  to { width: 150px; }
}

/* Content Styles */
.content-below {
  background: #f5f5f5;
  padding: 20px;
  text-align: center;
  z-index: 4;
  position: relative;
  justify-content: center;
}

.content-below h1 {
  color: #013220;
  margin-bottom: 50px;
}

.content-below h2 {
  color: #013220;
  margin-bottom: 20px;
}

.wave-gradient {
  position: relative;
  height: 60px;
  background: linear-gradient(to bottom, #013220, #f5f5f5);
  z-index: 3;
}

.container {
  display: flex;
  gap: 100px;
  max-width: 1000px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto;
}

.card {
  width: 350px;
  height: 300px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  padding: 25px;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.card-title {
  font-size: 24px;
  font-weight: 700;
  color: #013220;
  margin-bottom: 15px;
}

.card-content {
  font-size: 18px;
  line-height: 1.6;
  color: #2b323b;
}

/* Nine Button Section */
.ninebutton {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'TikTok Sans', Tahoma, Geneva, Verdana, sans-serif;
}

.container-nb {
  background: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.nb-h1 {
  color: #013220;
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

.card-nb {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  position: relative;
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-nb:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.card-image {
  height: 150px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.card-nb:hover .card-image img {
  transform: scale(1.1);
}

.card-content-nb {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.card-title-nb {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #013220;
}

.card-desc {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.card-btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #013220, #016b38);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.card-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #013220, #016b38);
}

/* Past Section */
.footer-buttons-space {
  height: 50px;
  background: #f5f5f5;
}

.gecmisimizyazısı {
  background: #f5f5f5;
  padding: 20px;
  text-align: center;
  color: #013220;
  font-family: 'TikTok Sans', sans-serif;
  margin-bottom: -20px;
}

.gecmisimizyazısı h1 {
  font-size: 2.5rem;
  margin: 0;
}

.pastcontainergecmis {
  background: #f5f5f5;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pastleft-columngec,
.pastmiddle-columngec,
.pastright-columngec {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pastcardgec {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.3s ease;
}

.pastslide-card {
  height: 300px;
  position: relative;
  touch-action: pan-y;
  user-select: none;
}

.butonustubosluk {
  height: 50px;
}

.pastslide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.pastslide.pastactive {
  opacity: 1;
  transform: translateX(0);
}

.pastslide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.pastdots-container {
  position: absolute;
  bottom: 15px;
  left: 15px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.pastdot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s;
}

.pastdot.pastactive {
  background: #fff;
}

.pastblur-bg-card {
  position: relative;
  padding: 30px;
  color: #333;
  background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pastblur-bg-card h2 {
  margin: 0 0 15px 0;
  font-size: 24px;
  font-weight: 600;
  color: #013220;
}

.pastblur-bg-card p {
  margin: 0;
  line-height: 1.6;
  color: #333;
}

.pasttext-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pasttext-card h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #013220;
}

.pasttext-card p {
  margin: 0;
  line-height: 1.6;
  color: #555;
}

.pastbtn {
  padding: 12px 24px;
  background: #016b38;
  color: #fff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.3s;
  align-self: flex-start;
}

.pastframed-image {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
}

.pastframed-image img {
  width: 100%;
  height: auto;
  display: block;
}

.modern-btn {
  background: linear-gradient(135deg, #103220, #016b38);
  color: white;
  padding: 15px 35px;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.modern-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.modern-btn svg {
  width: 20px;
  height: 20px;
  fill: white;
  transition: transform 0.3s ease;
}

.modern-btn:hover svg {
  transform: rotate(20deg);
}

/* Tablet Responsive */
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    padding: 0 1.5rem;
  }

  .pastcontainergecmis {
    padding: 60px 40px;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
      "left middle"
      "left right";
  }
  
  .pastleft-columngec { grid-area: left; }
  .pastmiddle-columngec { grid-area: middle; }
  .pastright-columngec { grid-area: right; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .gecmisimizyazısı { margin-bottom: -10px; }
  .degisenseydivi { display: none; }
  
  .video-overlay h1 { font-size: 2em; }
  .modern-btn {
    display: none;
  }
  .butonustubosluk {
    height: 0px;
    margin-top: -65px;
  }
  .video-text {
    margin-top: -200px;
    margin-right: 30px;
    font-size: 160%;
  }
  
  .learn-more-button {
    font-size: 14px;
    padding: 10px 20px;
  }
  
  .container {
    flex-direction: column;
    gap: 30px;
    padding: 0 20px;
  }
  
  .card {
    width: 88.5%;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 500px;
    padding: 0 1rem;
  }
  
  .container-nb {
    padding: 1.5rem;
    display: none;
  }
  
  .nb-h1 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
  
  .content-below {
    padding: 40px 20px;
  }
  
  .content-below h1 {
    font-size: 1.8rem;
  }

  .pastcontainergecmis {
    padding: 40px 20px;
    grid-template-columns: 1fr;
    grid-template-areas: "left" "middle" "right";
    max-width: 500px;
  }
  
  .pastleft-columngec { grid-area: left; }
  .pastmiddle-columngec { grid-area: middle; }
  .pastright-columngec { grid-area: right; }

  .animated-title { font-size: 2em; }
  
  .animated-subtitle {
    font-size: 1em;
    margin-bottom: 25px;
  }
  
  .animated-underline {
    animation: underlineGrowMobile 1.5s ease-out 1.3s forwards;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .video-overlay h1 { font-size: 1.5em; }
  
  .card {
    padding: 20px;
    height: auto;
    min-height: 250px;
  }
  
  .card-title { font-size: 20px; }
  .card-content { font-size: 16px; }
  .pastslide-card { height: 200px; }
  
  .grid {
    gap: 1rem;
    padding: 0 0.5rem;
  }
  
  .container-nb {
    padding: 1rem;
    display: none;
  }
  
  .nb-h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .card-nb { min-height: 260px; }
  .card-content-nb { padding: 1rem; }
  
  .card-title-nb {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }
  
  .card-desc {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }
  
  .card-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.7rem;
  }
  
  .card-image { height: 120px; }

  .pastcontainergecmis {
    padding: 30px 20px;
    max-width: calc(100vw - 40px);
  }
  
  .pastslide-card { height: 250px; }
  
  .pasttext-card,
  .pastblur-bg-card { padding: 20px; }
  
  .pasttext-card h2,
  .pastblur-bg-card h2 { font-size: 20px; }

  .animated-title { font-size: 1.5em; }
  .animated-subtitle { font-size: 0.9em; }
  
  .animated-underline {
    animation: underlineGrowSmall 1.5s ease-out 1.3s forwards;
  }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
  .grid {
    gap: 0.8rem;
    padding: 0 0.3rem;
  }
  
  .container-nb { padding: 0.8rem; }
  .nb-h1 { font-size: 1.3rem; }
  .card-nb { min-height: 240px; }
  .card-content-nb { padding: 0.8rem; }
  
  .card-title-nb {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
  }
  
  .card-desc {
    font-size: 0.75rem;
    margin-bottom: 0.8rem;
  }
  
  .card-btn {
    padding: 0.5rem 1rem;
    font-size: 0.65rem;
  }
  
  .card-image { height: 100px; }

  .pastcontainergecmis {
    padding: 20px 15px;
    max-width: calc(100vw - 30px);
  }
  
  .pastslide-card { height: 200px; }
  .gecmisimizyazısı h1 { font-size: 2rem; }
}