* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  min-height: 100vh;
  background-color: #f5f5f5;
}

header {
  /* background-color: #333333; */
  /* background-color: rgb(26, 26, 46); */
  background-color: #545454;
  /* padding: 1rem 2rem; */

  /* display: flex; */
  padding: 10px 20px;
  /* justify-content: space-between; */
  /* align-items: center; */

  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 80%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
}

.logo img {
  height: 50px;
  width: auto;
  scale: 1.8;
}

.header-text-wrapper {
  text-align: center;
  padding: 10px 0;
  overflow: hidden;
  width: 40%;
}

.header-text-container {
  position: relative;
  height: 30px;
}

.header-text {
  font-size: 1.1em;
  margin: 0;
  position: absolute;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  color: lightgray;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.header-text.animate-text {
  animation: slideUp 24s infinite;
}

@keyframes slideUp {
  0%,
  2% {
    opacity: 0;
    transform: translateY(20px);
  }

  5%,
  22% {
    opacity: 1;
    transform: translateY(0);
  }

  25% {
    opacity: 0;
    transform: translateY(-20px);
  }

  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.header-text:nth-child(1) {
  animation-delay: 1s;
}

.header-text:nth-child(2) {
  animation-delay: 6s;
}

.header-text:nth-child(3) {
  animation-delay: 12s;
}

.header-text:nth-child(4) {
  animation-delay: 18s;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-icons a {
  color: #333;
  font-size: 1.5rem;
  margin-left: 1rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-icons a i:hover {
  color: #c3c876;
}

main {
  display: flex;
  /*justify-content: space-around; */
  align-items: stretch;
  width: 100%;
  margin: 0 auto;
  height: calc(100vh - 65.6px);
}

.section {
  width: 33.33%;
  background-color: #b5b5b5;
  /* background-color: transparent; */
  padding: 2rem;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  /* border-right: 0.5px solid gray; */
  position: relative;
}

.section:nth-child(1) {
  background-color: transparent;
  border-right: 7px solid #818181;
}

.section:nth-child(2) {
  background-color: transparent;
  border-right: 7px solid #545454;
  border-left: 7px solid #545454;
}

.section:nth-child(3) {
  background-color: transparent;
  border-left: 7px solid #818181;
}

.section p {
  color: white;
  margin-bottom: 1rem;
}

.section-education-title {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.1em;
  font-weight: normal;
  text-align: inherit;
}

/* .section p ile aynı görünüm için */
.section-about-title {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.1em;
  font-weight: normal;
  text-align: inherit;
}

/* .section p ile aynı görünüm için */
.section-arge-title {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.1em;
  font-weight: normal;
  text-align: inherit;
}

@media (max-width: 900px) {
  .section-education-title {
    font-size: 0.9em;
  }

  .section-about-title {
    font-size: 1em;
  }

  .section-arge-title {
    font-size: 1em;
  }
}

.section-content {
  width: 60%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.section-content .section-button a {
  background-color: transparent;
  color: white;
  width: 100%;
  border: 2px solid #c3c876;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  display: flex;
  justify-content: space-between;
}

.section-content a span {
  color: #c3c876;
  font-size: 16px;
  padding-right: 20px;
}

.section-content a i {
  color: #c3c876;
}

.section-content a:hover {
  background-color: #c3c876;
}

.section-content a:hover span,
i {
  color: white;
}

.section-content a:hover i {
  color: white;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

@media (max-width: 1000px) {
  .header-text {
    font-size: 14px;
  }

  .social-icons a {
    font-size: 20px;
  }

  main {
    flex-wrap: wrap;
  }

  .section {
    width: 50%;
  }

  main .section:nth-child(1) {
    width: 50%;
    /* height:50vh; */
    height: calc((100vh - 74px) / 2);
    /* border-top: 0.5px solid gray; */
    border: none;

    border-right: 5px solid #818181;
    border-bottom: 5px solid #818181;
  }

  main .section:nth-child(3) {
    width: 50%;
    /* height: 45vh; */
    height: calc((100vh - 74px) / 2);

    position: absolute;
    bottom: 0;
    left: 0;
    border: none;
    /* border-top: 0.5px solid gray; */
    border-right: 5px solid #818181;
  }

  main .section:nth-child(2) {
    width: 50%;
    /* border-top: 0.5px solid gray; */
    height: calc(100vh - 74px);
    border: none;
    border-left: 5px solid #545454;
  }
}

@media (max-width: 768px) {
  header .nav-container {
    max-width: 90%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .header-text-wrapper {
    width: 100%;
    order: 3;
  }

  .header-right {
    order: 2;
  }
  
  main {
    flex-wrap: wrap;
  }

  .section {
    width: 100%;
    height: 70vh;
    /* border-bottom: 0.5px solid gray; */
  }

  main .section:nth-child(1) {
    width: 100%;
    height: 70vh;
    /* border-top: 0.5px solid gray; */
    border: none;
    border-bottom: 5px solid #818181;
  }

  main .section:nth-child(3) {
    width: 100%;
    height: 70vh;
    position: relative;
    bottom: 0;
    left: 0;
    border: none;
    /* border-top: 0.5px solid gray; */
    border-bottom: 5px solid #818181;
    border-top: 5px solid #545454;
  }

  main .section:nth-child(2) {
    width: 100%;
    /* border-top: 0.5px solid gray; */
    height: 70vh;
    border: none;
    border-bottom: 5px solid #818181;
    border-top: 5px solid #545454;
  }
}

@media (max-width: 576px) {
  .header-text-wrapper {
    display: none;
  }

  .social-icons a {
    font-size: 20px;
  }
  .logo img {
    scale: 1.2;
  }
}

/* === Ultra Modern Header Entegreli Dil Degistirici === */
.language-switcher {
  position: relative;
  display: flex;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 4px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

.language-switcher:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  padding: 6px;
}

.lang-btn {
  position: relative;
  background: transparent;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  color: rgba(51, 51, 51, 0.9);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 2;
  min-width: 42px;
  text-align: center;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-btn:hover {
  color: #2d3436;
  transform: scale(1.1);
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.2);
}

.lang-btn.active {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  color: #2d3436;
  box-shadow: 
    0 4px 15px rgba(255, 255, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.lang-btn.active:hover {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  box-shadow: 
    0 6px 20px rgba(255, 255, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transform: scale(1.15);
}

/* Responsive Tasarim */
@media (max-width: 768px) {
  .header-right {
    gap: 1rem;
  }
  
  .language-switcher {
    padding: 3px;
    border-radius: 20px;
  }

  .lang-btn {
    padding: 6px 12px;
    font-size: 13px;
    min-width: 36px;
  }

  .lang-btn:hover {
    padding: 7px 14px;
    transform: scale(1.08);
  }

  .lang-btn.active:hover {
    transform: scale(1.12);
  }
}

@media (max-width: 480px) {
  .header-right {
    gap: 0.8rem;
  }
  
  .language-switcher {
    padding: 2px;
    border-radius: 18px;
  }

  .lang-btn {
    padding: 5px 10px;
    font-size: 12px;
    min-width: 32px;
  }

  .lang-btn:hover {
    padding: 6px 12px;
    transform: scale(1.05);
  }
}

@media (max-width: 360px) {
  .header-right {
    gap: 0.5rem;
  }
  
  .language-switcher {
    padding: 2px;
    border-radius: 16px;
  }

  .lang-btn {
    padding: 4px 8px;
    font-size: 11px;
    min-width: 28px;
  }

  .lang-btn:hover {
    padding: 5px 10px;
    transform: scale(1.03);
  }
}
