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


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border:none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins',sans-serif;
}


 body{
    background-image: url(../images/bg.jpg)  ;
  
    color: var(--text-color);
   
}
:root{
    --bg-color: #ffffff;
    --second-bg-color: #ffffff96;
    --text-color:#ededed;
    --main-color:#997c45;
}
html{
    font-size:62.5%;
    overflow-x: hidden;
   
}



.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: top 0.3s ease;
}
.header.hide {
    top: -100px; /* Yukarı kaydırarak gizler */
    position: fixed;
    width: 100%;
    z-index: 10;
}

.header.sticky{
     background: var(--bg-color) 
}

.logo{
    position: relative;
    font-size: 2.5rem;
    color: var(--text-color);
    
    font-weight: 600;
    text-shadow: 
    0 0 5px blue;
}

.navbar{
    position: relative;
}

.navbar a{
    font-size: 1.7rem;
    color: var(--text-color);
    font-weight: 500;
    margin-left: 3.5rem;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active{
    color: var(--main-color);
}



section{
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}





.card h2{
    margin-bottom: 4rem;
}

.card-container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 2.5rem;
}

.card-container .card-box{
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 1rem var(--bg-color);
    overflow: hidden;    
    width: 100%; /* Kartın genişliği ayarlandı */
    height: 20rem; /* Yüksekliği resme göre otomatik olarak ayarlanacak */
}

.card-box img{
    border-radius: 8px;
    width: 100%; 
    height: 20rem; 
    object-fit: cover;
    transition: transform 0.5s ease; 
}

.card-box:hover img{
    transform: scale(1.1);
}

/*Denemelik*/
/* Sol alt köşedeki yazıyı sabitler, her zaman görünür */
.card-box h4.bottom-left {
    position: absolute;  /* Konumu sabitler */
    bottom: 1rem;        /* Alt kenardan uzaklık */
    left: 1rem;          /* Sol kenardan uzaklık */
    font-size: 1.5rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.5); /* Şeffaf bir arka plan */
    padding: 0.5rem;
    border-radius: 0.5rem;
    z-index: 2;          /* Diğer elementlerin üstünde olmasını sağlar */
}

/* Kart hover edildiğinde sol alttaki yazıyı gizler */
.card-box:hover .bottom-left {
    display: none;
}

/* Ortadaki yazı sadece hover sırasında görünür */
.card-layer h4 {
    font-size: 3rem;
    color: white;
    display: none; /* Varsayılan olarak gizli */
}


/*Denemelik bitiş*/
.card-box a {
    text-decoration: none;
    color: white;   
    position: relative;     /* İçindeki öğelerin yerleşimi için */
    display: block;         /* A etiketi tam alanı kaplayacak */
}

.card-box a:hover h4 {
    color: #ffffff;
}

/* Mobil cihazlar (max-width: 768px) */
@media (max-width: 768px) {
    .card-container {
        grid-template-columns: 1fr; /* Mobilde tek sütun */
        gap: 1.5rem;
    }

    .header {
        padding: 2rem 5%;
    }

    .navbar a {
        font-size: 1.4rem;
    }   
}

/* Tabletler (min-width: 768px ve max-width: 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr); /* Tabletlerde iki sütun */
        gap: 2rem;
    }

    .header {
        padding: 2rem 7%;
    }

    .navbar a {
        font-size: 1.6rem;
    }
    
}

/* Laptoplar ve masaüstü cihazlar (min-width: 1024px) */
@media (min-width: 1024px) {
    .card-container {
        grid-template-columns: repeat(3, 1fr); /* Masaüstünde üç sütun */
        gap: 2.5rem;
    }

    .header {
        padding: 2rem 9%;
    }

    .navbar a {
        font-size: 1.7rem;
    }
   
}

/* Hamburger ikonu başlangıçta gizli */
#menu-icon {
    display: none;    
    font-size: 3.6rem;
    cursor: pointer;
}

/* Ekran genişliği 600px ve altına düştüğünde */
@media (max-width: 600px) {
    .navbar {
        display: none; /* Menü gizlenir */
        flex-direction: column; /* Açılınca dikey görünsün */
    }
    
    #menu-icon {
        display: block; /* Hamburger ikonu göster */
    }
    
    .navbar.active {
        display: flex; /* İkon tıklanınca menü görünür hale gelir */
        position: absolute;
        top: 100%; /* Üst menünün hemen altına gelir */
        left: 0;
        background-color: white;
        width: 100%;
        padding: 1rem 0;
    }

    .navbar a {
        padding: 1rem;
        text-align: center;
        width: 100%;
        color: #000;
    }
}

@import url('https://fonts.googleapis.com/css?family=Pacifico');



 /* === ANİMASYONLAR === */

/* Metin animasyonu - h1 */
@-webkit-keyframes blinkH1 {
    0%, 19%, 21%, 60%, 62%, 64%, 100% {
        color: #fff;
        text-shadow: 0px 0px 20px #00aad4;
    }
    20%, 61%, 63% {
        color: #9E9E9E;
        text-shadow: none;
    }
}

@keyframes blinkH1 {
    0%, 19%, 21%, 60%, 62%, 64%, 100% {
        color: #fff;
        text-shadow: 0px 0px 20px #00aad4;
    }
    20%, 61%, 63% {
        color: #9E9E9E;
        text-shadow: none;
    }
}

/* After pseudo-element animasyonu - h1::after */
@-webkit-keyframes blinkH1After {
    0%, 19%, 21%, 60%, 62%, 64%, 100% {
        color: #00aad4;
    }
    20%, 61%, 63% {
        color: transparent;
    }
}

@keyframes blinkH1After {
    0%, 19%, 21%, 60%, 62%, 64%, 100% {
        color: #00aad4;
    }
    20%, 61%, 63% {
        color: transparent;
    }
}

/* Before pseudo-element animasyonu - h1::before */
@-webkit-keyframes blinkH1Before {
    0%, 19%, 21%, 60%, 62%, 64%, 100% {
        background: #00aad4;
    }
    20%, 61%, 63% {
        background: transparent;
    }
}

@keyframes blinkH1Before {
    0%, 19%, 21%, 60%, 62%, 64%, 100% {
        background: #00aad4;
    }
    20%, 61%, 63% {
        background: transparent;
    }
}

/* === UYGULAMA === */

h1 {
    font-size: 48px;
    color: #fff;
    animation: blinkH1 2s infinite;
    -webkit-animation: blinkH1 2s infinite;
    position: relative;
}

h1::before {
    content: '';
    display: block;
    height: 5px;
    width: 100%;
    background: #00aad4;
    position: absolute;
    bottom: -10px;
    left: 0;
    animation: blinkH1Before 2s infinite;
    -webkit-animation: blinkH1Before 2s infinite;
}

h1::after {
    content: 'BLINK!';
    color: #00aad4;
    position: absolute;
    right: -80px;
    top: 0;
    animation: blinkH1After 2s infinite;
    -webkit-animation: blinkH1After 2s infinite;
}

  
  .txt-ne{
      font-family: 'Poppins', sans-serif;
      font-weight: 100;
      margin: 0px;
      position: absolute;
      top: 50%;
      left: 32%;
      transform: translate(-50% ,-50%);
      color: #fff;
      font-size: 40px;
      text-shadow: 0px 0px 20px #00aad4;
      -webkit-animation: blinkH1 5s  infinite;
      animation: blinkH1 5s  infinite;
  }
  
  .txt-ne:after{
      content: attr(data-text);
      position: absolute;
      top: 0;
      left: 0;
      color: #00aad4;
      z-index: -1;
      filter: blur(15px);
      -webkit-animation: blinkH1After 5s  infinite;
      animation: blinkH1After 5s  infinite;
  }
  
  .txt-ne:before{
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: #00aad4;
      z-index: -2;
      opacity: 0.7;
      filter: blur(50px);
      -webkit-animation: blinkH1Before 5s  infinite;
      animation: blinkH1Before 5s  infinite;
  }
  
  
  
  .txt-ne{
      top: calc(50% + 5px);
      text-align: center;
      line-height: 1;
      margin-top: 15px;
  }