@media (max-width: 768px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 16px;
  }

  header, footer {
    width: 100%;
  }

  /* LOGO */
  .logo-img {
    max-width: 200px;
    height: auto;
    display: block;
    margin-left: auto !important;
  }

  /* BAŞLIKLAR */
  h1, h2 {
    font-size: 28px !important;
    text-align: center;
    word-wrap: break-word;
    margin-bottom: 70px !important;
  }

  /* Özellikle BEYKOZ yazısı gibi büyük yazılar */
  .principles{
    padding: 60px 30px !important;
  }

  .principles .gallery{
    margin-top: 90px !important;
    display: block !important;
  }

  .features {
    padding: 80px 30px !important;
  }
  .promotion{
    padding: 10px 20px !important;
    padding-top: 60px !important;
  }
  .home p,
  .promotion-img p:first-of-type {
    font-size: 26px !important;
    text-align: center;
    word-break: break-word;
    padding: 0 10px;
    margin-bottom: 35px !important;
  }

  /* TERAHİSAR yazısı gibi marka başlıkları */
  .intro img {
    max-width: 90%;
    height: auto;
    padding-top: 70px;
    display: block;
    margin-left: 10px;
  }

  /* Görseller */
  .promotion-img, img{
    width: 100%;
    height: auto;
    display: block;
  }

  .promotion-img p:last-of-type {
    font-size: 26px !important;
    text-align: center;
    word-break: break-all;
    margin: 60px auto !important;
  }

  .slider img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  /* Galeri görselleri eşit ve responsive */
  .about .gallery{
    display: block !important;
  }

  .gallery .photo {
    width: 100% !important;
    aspect-ratio: 3 / 5;
    object-fit: cover;
    margin-bottom: 20px !important;
    margin-top: 10px !important;
  }

  /* HAMBURGER MENÜ */
  .side-menu svg {
  fill: white;
}

  .hamburger {
    display: block;
    font-size: 30px;
    color: white !important;
    cursor: pointer;
    margin-left: auto;
    padding-left: 140px;
    margin-top: 10px;
    z-index: 1001;
  }

  #hamburgerIcon {
    transition: transform 0.4s ease;
  }

  #hamburgerIcon.rotate {
    transform: rotate(360deg);
  }

  .nav-links-container {
    display: none;
    flex-direction: column;
    background-color: #131936;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  .nav-links-container.active {
    display: flex;
  }

  .nav-links-container li {
    text-align: center;
    padding: 15px 0;
    width: 100%;
  }

  /* Genelde hizalama ve düzen */
  .feature-items,
  .principles-list,
  .gallery {
    flex-direction: column !important;
    align-items: center;
    gap: 20px;
  }

  .contact-container {
    flex-direction: column !important;
    align-items: center;
    gap: 80px !important;
  }

  .feature-item,
  .principle-card {
    min-width: 0 !important;
    flex: auto !important;
    height: 300px !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .rumeli {
    margin-top: 30px;
  }

  .rumeli-container {
    flex-direction: column !important;
    align-items: center;
    gap: 60px !important;
  }

  .rumeli-box {
    min-width: 0 !important;
    height: 300px !important;
    width: 100% !important;
    box-sizing: border-box;
    margin: auto !important;
    flex: auto !important;
    gap: 30px;
  }

  .rumeli-box h2 {
    margin-top: 20px !important;
    margin-bottom: 0px !important;
  }

  .rumeli-box p {
    margin-bottom: 20px !important;
  }

  .about {
    padding: 60px 30px !important;
  }

  .about h2 {
    margin-bottom: 40px !important;
  }

  .about p {
    font-size: 16px;
    padding: 10px 10px;
    text-align: justify;
    line-height: 1 !important;
    margin-bottom: 80px !important;
    word-break: break-all;
  }
  .principles p,
  .contact p,
  .form-box p {
    font-size: 16px;
    padding: 0 10px;
    text-align: justify;
    word-break: break-all;
  }

  .principles h2 {
    margin-bottom: 60px !important;
  }

  .form-box,
  .map-box {
    min-width: 0 !important;
    flex: auto !important;
    width: 90% !important;
    box-sizing: border-box;
  }

  .contact-section{
    padding: 0px !important;
    height: 153vh !important;
  }

  /* FOOTER */
  footer {
    flex-direction: column;
    align-items: center;
    padding: 30px 10px !important;
  }

  .footer-left,
  .footer-right {
    width: 100%;
    text-align: center;
    margin: 15px 0;
  }

  .footer-logo {
    display: block;
    margin: 20px auto;
    max-width: 200px;
    height: auto !important;
    margin-left: 50px !important;
    margin-top: auto !important;
  }

  .info-box {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .bas {
    padding-top: 25px !important;
  }

  .bas h2{
    margin-bottom: 55px !important;
  }

  .footer-bottom {
    position: relative !important;
    transform: translateX(-124%) !important;
    bottom: 0;
    margin-top: 50px;
  }

  /* CTA butonları */
  .cta-btn,
  .form-box button {
    font-size: 16px;
    padding: 10px 15px;
    width: 100%;
  }

  .terahisar,
  .terahisar1 {
    padding: 40px 16px;
  }

  .terahisar h2,
  .terahisar1 h2 {
    font-size: 24px;
    margin-bottom: 50px !important;
  }

  .terahisar-items {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }

  .terahisar-item {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0 !important;
    min-height: 10px !important;
    box-sizing: border-box;
  }

  .terahisar-item img {
    width: 100%;
    height: 400px !important;
    object-fit: cover;
  }

  .caption-wrapper {
    position: relative;
    height: auto;
    padding: 12px;
    background-color: rgba(19, 25, 54, 0.85);
  }

  .caption-title {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin: 0;
  }

  .caption-description {
    font-size: 14px;
    margin-top: 8px;
    color: #fff;
    opacity: 1;
    max-height: none;
  }

  .terahisar-item:hover .caption-title,
  .terahisar-item:hover .caption-description {
    transform: none;
    opacity: 1;
  }

  .terahisar-item:hover .caption-wrapper {
    height: auto;
    justify-content: flex-start;
  }
}

@media (min-width: 1024px) and (max-width: 1366px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 17px;
  }

  header, footer {
    width: 100%;
  }

  .logo-img {
    max-width: 250px;
    height: auto;
    display: block;
    margin-left: auto !important;
  }

  h1, h2 {
    font-size: 32px !important;
    text-align: center;
    word-wrap: break-word;
    margin-bottom: 70px !important;
  }

  .principles {
    padding: 80px 50px !important;
  }

  .principles .gallery {
    margin-top: 90px !important;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
  }

  .features {
    padding: 100px 50px !important;
  }

  .promotion {
    padding: 20px 30px !important;
  }

  .home p,
  .promotion-img p:first-of-type {
    font-size: 28px !important;
    text-align: center;
    word-break: break-word;
    padding: 0 20px;
    margin-bottom: 35px !important;
  }

  .intro img {
    max-width: 90%;
    height: auto;
    padding-top: 70px;
    display: block;
    margin-left: 20px;
  }

  .promotion-img, img {
    width: 100%;
    height: auto;
  }

  .promotion-img p:last-of-type {
    font-size: 28px !important;
    text-align: center;
    word-break: break-word;
    margin: 60px auto !important;
  }

  .slider img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .about .gallery {
    display: flex !important;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

  .gallery .photo {
    width: 100% !important;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    margin-bottom: 20px !important;
  }

  .side-menu svg {
    fill: white;
  }

  .hamburger {
    display: block;
    font-size: 34px;
    color: white !important;
    cursor: pointer;
    margin-left: auto;
    padding-left: 700px;
    margin-top: 10px;
    z-index: 1001;
  }

  #hamburgerIcon {
    transition: transform 0.4s ease;
  }

  #hamburgerIcon.rotate {
    transform: rotate(360deg);
  }

  .nav-links-container {
    display: none;
    flex-direction: column;
    background-color: #131936;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  .nav-links-container.active {
    display: flex;
  }

  .nav-links-container li {
    text-align: center;
    padding: 15px 0;
    width: 100%;
  }
    
  .feature-items,
  .principles-list,
  .gallery,
  .contact-container,
  .rumeli-container {
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }

  .feature-item,
  .principle-card,
  .rumeli-box {
    min-width: 45% !important;
    height: 300px !important;
    box-sizing: border-box;
  }

  .rumeli {
    margin-top: 40px;
  }

  .rumeli-box h2 {
    margin-top: 20px !important;
    margin-bottom: 0px !important;
  }

  .rumeli-box p {
    margin-bottom: 20px !important;
  }

  .about {
    padding: 80px 50px !important;
  }

  .about h2 {
    margin-bottom: 40px !important;
  }

  .about p {
    font-size: 17px;
    padding: 10px 20px;
    text-align: justify;
    line-height: 1.4 !important;
    margin-bottom: 60px !important;
    word-break: break-word;
  }

  .principles p,
  .contact p,
  .form-box p {
    font-size: 17px;
    padding: 0 20px;
    text-align: justify;
    word-break: break-word;
  }

  .form-box,
  .map-box {
    min-width: 45% !important;
    box-sizing: border-box;
  }

  .contact-section {
    padding: 20px !important;
    height: auto !important;
  }

  .footer {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 40px 30px !important;
  }

  .footer-left,
  .footer-right {
    width: 45%;
    text-align: center;
    margin: 15px 0;
  }

  .footer-right .info-box {
    margin-left: 120px;
    transform: translateX(0%);
  }
}

  .footer-logo {
    display: block;
    margin: 20px auto;
    max-width: 200px;
    height: auto !important;
  }

  .info-box {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
    
  .bas {
    padding-top: 25px !important;
  }

  .bas h2 {
    margin-bottom: 55px !important;
  }

  .cta-btn,
  .form-box button {
    font-size: 17px;
    padding: 12px 20px;
    width: 100%;
  }