/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  scroll-behavior: smooth;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f8fa;
  color: #222;
  line-height: 1.6;
}

/* Sections full screen */
section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Headings */
h1, h2 {
  font-weight: 600;
  color: #0a3d62;
}

h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

h2 {
  font-size: 32px;
  margin-bottom: 30px;
  border-left: 5px solid #0a3d62;
  padding-left: 15px;
}

/* HEADER ve NAV */

header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #004a99; /* Menü arka planı */
  padding: 15px 40px;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between; /* Logo solda, menü sağda */
}

header .header-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .logo {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  user-select: none;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  margin-left: 30px;
  text-decoration: none;
  color: #fff; /* Beyaz linkler */
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #f6aa38; /* Hover rengi */
}

/* Hero Section */
#hero {
  background: linear-gradient(135deg, #0984e3, #74b9ff);
  color: #fff;
  text-align: center;
  justify-content: center;
  padding-top: 120px;
}

#hero p {
  font-size: 20px;
}

/* About Section */
#about {
  background-color: #fff;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.about-image {
  flex: 1;
  min-width: 320px;
}

.about-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(9,132,227,0.25);
}

.about-text {
  flex: 2;
  min-width: 320px;
  font-size: 18px;
  color: #333;
  line-height: 1.5;
  padding-left: 20px;
}

/* Projects Section */
#projects {
  background-color: #f0f4f8;
  padding-top: 100px;
  padding-bottom: 100px;
}

.project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.project-card {
  background-color: #fff;
  padding: 25px;
  border-radius: 12px;
  flex: 1 1 320px;
  max-width: 350px;
  box-shadow: 0 6px 15px rgba(9,132,227,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(9,132,227,0.3);
}

.project-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.project-card h3 {
  margin-bottom: 12px;
  color: #0a3d62;
  font-weight: 700;
}

.project-card p {
  color: #555;
  font-size: 16px;
  line-height: 1.4;
}

/* Contact Section */
#contact {
  background-color: #fff;
  padding-top: 100px;
  padding-bottom: 100px;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.contact-image {
  flex: 1;
  min-width: 320px;
}

.contact-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(9,132,227,0.25);
}

.contact-form {
  flex: 1;
  min-width: 320px;
  max-width: 480px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  background: #f7f9fc;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #0984e3;
  background: #fff;
}

.contact-form button {
  width: 100%;
  padding: 15px;
  background-color: #0984e3;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #065aab;
}

/* Scroll to Top Button */
#scrollToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #0984e3;
  color: #fff;
  padding: 12px 16px;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: none;
  z-index: 1100;
  box-shadow: 0 4px 12px rgba(9,132,227,0.3);
  transition: background-color 0.3s ease;
}

#scrollToTopBtn:hover {
  background-color: #065aab;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    justify-content: center;
  }

  nav a {
    margin: 0 12px;
  }

  .about-content,
  .contact-content {
    flex-direction: column;
  }

  .about-text {
    padding-left: 0;
    margin-top: 20px;
  }

  .project-grid {
    flex-direction: column;
    align-items: center;
  }
}



/* Genel mobil düzen */

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  flex-wrap: wrap;
}

.logo {
  max-height: 50px;
  margin: 0 auto;
}

.menu-toggle {
  font-size: 1.5rem;
  background: none;
  border: none;
  display: none;
  cursor: pointer;
  color:#fff;
}

/* Menü varsayılan hali */
.main-nav {
  display: flex;
  gap: 1.5rem;
}

/* Mobil uyumlu menü */
@media (max-width: 768px) {
  .logo {
    order: 1;
    margin: 0 auto;
  }

  .menu-toggle {
    display: block;
    order: 2;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
    order: 3;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 0.5rem 0;
    width: 100%;
    text-align: center;
    background: #0e366c;
  }
}

a{  text-decoration: none; }