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

/* Hamburger ikon */
.hamburger {
    display: none; /* büyük ekranlarda gizli */
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: white;
    border-radius: 2px;
}

/* Navbar */
header {
      background-color: rgba(119, 178, 210, 0.5); /* 0.5 = %50 şeffaflık */
    color: white;
    padding: 15px 0;
    width: 100%;
    z-index: 1000;
}

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

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

header nav ul li a {
    font: bold;
    background-color: rgb(47, 47, 146);
    padding: 10px 20px;
    border-radius: 20px;
    color: white;
    text-decoration: none;
}


nav ul li a:hover {
    background-color: rgb(238, 226, 54);  /* hover arka plan rengi */
    color: black;                          /* yazı rengi */
    padding: 10px 20px;
    border-radius: 20px;
}

.logo img {
     border-radius: 5px;
    width: 100px;
    height: 80px;
}
.home-image{
   
    background-image: url('images/01.png');
    background-repeat: no-repeat;
    background-size: cover;
    height: 600px;
    width: 100%;
}
.home h1{
    font: bold;
    padding-top: 20px;
    text-align: center;
    color: white;
}
.home p{
    margin-top: 20px;
    text-align: center;
    color: white;   
}

.home-video {
  
  width: 700px;         
  height: 300px;        
  border-radius: 10px;
  margin-left: auto;    
  margin-right: 3%;     
  margin-top: 10%;       
  overflow: hidden;     
}

.home-video video {
  width: 100%;          
  height: 100%;          
  object-fit: cover;     
  display: block;
  background-color: black;
}

.Mechaton-text {
    text-align: center;
    background-color: #D7E5FA;
   
    position: relative;
}
.Mechaton-text h1 {
    display: inline-block;
    position: relative;
    font-size: 2.5rem;
    color: #000;
}
/* Çizgi */
.Mechaton-text h1::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: -200px;
    right: -200px;
    height: 2px;
    
    
    /* Işıltı için gradient */
    background: linear-gradient(
        90deg,
        transparent,
       black,
        transparent
    );
    background-size: 200% 100%; /* kayma alanı genişletildi */
    
    animation: shine 3s linear infinite;
}

/* Parıldama animasyonu */
@keyframes shine {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* card-container */
.cards-container {
    background-color: #D7E5FA;
    display: grid;
    grid-template-columns: repeat(3, 400px); /* her kutu sabit genişlikte */
    gap: 50px;
    padding: 20px;
    justify-content: center; /* tüm grid’i yatayda ortalar */
    
}

/* card-container2 */
.cards-container2 {
    background-color: #D7E5FA;
    display: grid;
    grid-template-columns: repeat(2, 400px); /* her kutu sabit genişlikte */
    gap: 50px;
    padding: 20px;
    justify-content: center; /* tüm grid’i yatayda ortalar */
    
}

.danısmanlik {
  background-color: #D7E5FA;
  padding-top: 20px;
  text-align: center;    /* yatay ortalama */
  max-width: 800px;
  margin: 0 auto;        /* ortalama bloğu merkeze almak için */
  justify-content: center;  /* yatay ortala */
  align-items: center;      /* dikey ortala */
}
.danısmanlik2 {
  background-color: #D7E5FA;
  padding: 10px;
  text-align: center;    /* yatay ortalama */
  max-width: 800px;
  margin: 0 auto;        /* ortalama bloğu merkeze almak için */
  justify-content: center;  /* yatay ortala */
  align-items: center;      /* dikey ortala */
}
.danısmanlik2 h3{
  margin-top: -20px;
}

.danismanlik-container{
  background-color: #D7E5FA;  
}

/* Card stili */
.card {
    background-color: #D7E5FA;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s;
    overflow: hidden; /* resim taşmasını engeller */
}

.card img {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: transform 0.3s ease; /* smooth büyüme */
}
/* Sadece resim hover */
.card img:hover {
    transform: scale(1.05); /* resim büyüsün */
}
.card h3{
  padding-top: 10px;
}
.card-text{
     transition: transform 0.3s ease; /* smooth büyüme */
}
.card-text:hover{
    transform: scale(1.05);
}

/* Card başlık ve paragraf */
.card h3 {
    color: red;
    margin-bottom: 8px;
}

.card p {
    font-size: 1rem;
    color: #000;
}

.cards-container .card a{
   text-decoration: none;   /* alt çizgiyi kaldırır */
    color: inherit;          /* yazı rengini korur */
    transition: transform 0.3s ease; /* animasyon */
}

.cards-container2 .card a{
   text-decoration: none;   /* alt çizgiyi kaldırır */
    color: inherit;          /* yazı rengini korur */
    transition: transform 0.3s ease; /* animasyon */
}


/* Footer */
footer {
background-color: #17223b;
  color: white;
  padding: 40px 0 20px 0; /* sadece üst/alt boşluk, sağ/sol sende */
  font-family: Arial, sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 4 eşit sütun */
  gap: 0; /* sütunlar arasında boşluk olmasın */
  padding-left: 300px;
  padding-right: 200px;
}


.footer-item {
  padding: 0 16px; /* sadece içerik için çok küçük iç boşluk */
     
}
.footer-item p, 
.footer-item ul {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}


.footer-item h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
  color: yellow;
}

.footer-item p, 
.footer-item ul {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
  max-width: 300px;
  
}

.footer-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-item ul li {
  margin-bottom: 8px;
}
.footer-item ul li a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  display: inline-block;      /* transform düzgün çalışsın diye */
  transition: transform 0.3s, color 0.3s;
}
.footer-item ul li a:hover {
 color: white;
 transform: scale(1.2);
}

/* Alt copyright */
footer .copyright {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 12px;
}

/* Navbar responsive */


/* Mobil responsive */
@media (max-width: 768px) {
    header nav {
        flex-direction: row; /* yatay hizalama */
        justify-content: space-between; /* logo solda, hamburger sağda */
        align-items: center;
        width: 90%;
        margin: auto;
        position: relative;
    }

    .logo img {
        width: 80px;
        height: 60px;
    }

    .hamburger {
        display: flex; /* görünür */
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .nav-links {
        display: none; /* başta gizli */
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: rgba(47, 47, 146, 0.95);
        position: absolute;
        top: 100%; /* nav’in altına açılır */
        left: 0;
        padding: 10px 0;
        z-index: 1000;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .nav-links li a {
        color: white;
        font-size: 1rem;
        padding: 8px 0;
        display: block;
        border-radius: 0;
        background-color: transparent;
    }

    .nav-links li a:hover {
        background-color: rgba(238, 226, 54, 0.8);
        color: black;
    }

    .nav-links.active {
        display: flex; /* hamburger tıklanınca açılır */
    }
}

   /* Home-image ve video responsive */
    @media (max-width: 480px) {
    .home-image {
        height: auto;
        background-size: cover;
        background-position: center;
    }
}

@media (max-width: 480px) {
    .home-video {
        width: 50%;
        height: 80px;
       margin-left: auto;
       margin-right: 10px;
       padding-bottom: 10px;
    }
}

/* cards: tek sütun */
@media (max-width: 480px) {
.cards-container {
grid-template-columns: 1fr;
gap: 14px;
padding: 12px;
}

/* card-container2 */
.cards-container2{
grid-template-columns: 1fr;
gap: 14px;
padding: 12px;
}
.danısmanlik{
  font-size: 15px;
  padding-left: 20px;
  padding-right: 20px;
  text-align: left;
}
.danısmanlik2{
  
  font-size: 12px;
  padding-left: 20px; 
  padding-right: 20px;
  text-align: left;
 
}

.card {
padding: 12px;
}

.card img {
max-height: 180px;
object-fit: cover;
margin-bottom: 8px;
}

.card h3 {
font-size: 1rem;
margin-bottom: 6px;
}

.card p {
font-size: 0.92rem;
line-height: 1.45;
}

/* Başlık daha da küçült */
.Mechaton-text h1 {
font-size: 1.5rem;
padding: 16px 8px;
}
}


/* footer */
/* Tablet / küçük masaüstü: 900px altı -> 2 sütun */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding-left: 40px;   /* büyük paddingleri küçülttük */
    padding-right: 40px;
  }

  .footer-item {
    padding: 8px 12px;
  }

  .footer-item p,
  .footer-item ul {
    max-width: none;      /* genişlik sınırlamasını kaldır */
    font-size: 0.95rem;
  }

  .footer-item h3 {
    font-size: 1.05rem;
  }

  footer {
    padding: 30px 0 16px 0;
  }
}

/* Mobil: 480px altı -> 1 sütun, daha kompakt */
@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-item {
    padding: 10px 8px;
  }

  .footer-item p,
  .footer-item ul {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: none;
  }

  .footer-item h3 {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .footer-item ul li {
    margin-bottom: 6px;
  }

  .footer-item ul li a {
    display: inline; /* daha sıkışık görünüm için inline yeterli */
  }

  footer .copyright {
    padding-top: 10px;
    font-size: 0.85rem;
  }

  footer {
    padding: 20px 0 12px 0;
  }
}

/* Mobil uyumluluk - Mechaton-text */
@media (max-width: 480px) {
  .Mechaton-text h1 {
    font-size: 1.6rem; /* Başlık biraz küçülsün */
  }

  .Mechaton-text h1::after {
    left: 0;
    right: 0;
    width: 150px; /* Çizginin sabit genişliği */
    margin: 0 auto;
    display: block;
    bottom: -8px;
  }
}


/* Tablet görünüm (isteğe bağlı) */
@media (max-width: 768px) {
  .Mechaton-text h1 {
    font-size: 2rem;
  }

  .Mechaton-text h1::after {
    left: -50px;
    right: -50px;
  }
}


