/* ---------------------------------
  Genel Sıfırlamalar ve Temel Ayarlar
----------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(to bottom right, #001f3f, #004080);
  color: #f0f0f0;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ---------------------------------
  Header / Navbar
----------------------------------- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0,0,0,0.8);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #00d1ff;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  font-size: 1rem;
  transition: color 0.3s;
}

nav a:hover {
  color: #00ffea;
}

.menu-btn {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #00d1ff;
}

/* ---------------------------------
  Hero Section
----------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  background: linear-gradient(to bottom, rgba(0,31,63,0.85), rgba(0,64,128,0.85)), url('hero-bg.jpg') no-repeat center center/cover;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #00ffea;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin-bottom: 30px;
  line-height: 1.8;
}

.hero-btn {
  padding: 12px 25px;
  background: #00d1ff;
  color: #001f3f;
  font-weight: bold;
  border-radius: 5px;
  transition: transform 0.3s, background 0.3s;
}

.hero-btn:hover {
  background: #00ffea;
  transform: scale(1.1);
}

/* ---------------------------------
  Section Styles
----------------------------------- */
.section {
  padding: 100px 20px 50px 20px;
  max-width: 1200px;
  margin: auto;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: #00d1ff;
  border-bottom: 2px solid #00ffea;
  display: inline-block;
  padding-bottom: 5px;
}

.section p {
  margin-bottom: 20px;
  font-size: 1rem;
}

/* ---------------------------------
  Grid / Card Styles (Projeler)
----------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: rgba(0,0,0,0.7);
  border: 1px solid #00d1ff;
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0,255,234,0.4);
}

.card h3 {
  margin-bottom: 10px;
  color: #00ffea;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ---------------------------------
  Footer
----------------------------------- */
footer {
  background: #001f3f;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
  color: #00d1ff;
}

/* ---------------------------------
  Modal Styles
----------------------------------- */
#modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  background: #001f3f;
  padding: 30px;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  position: relative;
  color: #f0f0f0;
  overflow-y: auto;
  max-height: 80vh;
}

#closeModal {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #00ffea;
  transition: color 0.3s;
}

#closeModal:hover {
  color: #00d1ff;
}

/* ---------------------------------
  Responsive Design
----------------------------------- */
@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 60px;
    right: -100%;
    background: rgba(0,0,0,0.95);
    flex-direction: column;
    width: 200px;
    height: calc(100% - 60px);
    padding-top: 20px;
    transition: right 0.3s;
  }

  nav.show {
    right: 0;
  }

  nav a {
    padding: 15px 0;
    font-size: 1.2rem;
    text-align: center;
  }

  .menu-btn {
    display: block;
  }
}

/* ---------------------------------
  Extra Animasyonlar
----------------------------------- */
@keyframes fadeIn {
  from {opacity:0; transform: translateY(20px);}
  to {opacity:1; transform: translateY(0);}
}

.section {
  animation: fadeIn 1s ease-in-out;
}

.card {
  animation: fadeIn 0.7s ease-in-out;
}