:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --secondary: #10B981;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --text-dark: #0f172a;
  --text-light: #64748b;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
}

.btn-contact {
  background: var(--primary);
  color: white !important;
  padding: 0.5rem 1.2rem;
  border-radius: 99px;
  font-weight: 700;
}
.btn-contact:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  padding: 12vh 5% 6rem; /* Yazıyı adamın yüzüne inmemesi için tekrar yukarı çektik */
  text-align: left;
  max-width: 100%;
  background-image: url('./bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start; /* İçeriği yukarı (tepeye) yaslar */
  justify-content: flex-start; /* İçeriği sola yaslar */
  min-height: 85vh; /* Resmin alt kısımları da görünsün diye alanı büyüttük */
  position: relative; /* İçindeki mutlak konumlandırmalar için gerekli */
}

.hero-content {
  padding: 2rem 0;
  max-width: 500px; /* Yazı çok genişleyip adamın üzerine sarkmasın diye daralttık */
  margin: 0; /* Kenar boşluklarını sıfırladık */
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  color: #1e293b;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.9), 0 0 4px rgba(255, 255, 255, 0.8);
}

.highlight {
  color: #14532d; /* Koyu yeşil (bitki yaprağı) */
  -webkit-text-stroke: 1.5px #ffffff; /* İnce beyaz kontur */
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  filter: drop-shadow(0 2px 4px rgba(255,255,255,0.9));
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #ffedd5; /* Çiğ beyaz yerine sıcak, canlı bir krem/fildişi tonu */
  font-weight: 700;
  max-width: 450px;
  position: absolute; /* Ana akıştan koparıp serbest bıraktık */
  bottom: 4rem; /* Sağ alta, dolabın üstüne yerleştirdik */
  right: 5%;
  text-align: right; /* Sağ altta olduğu için sağa dayalı okunması daha estetik */
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.5); /* Yazı kaybolmasın diye siyah gölge */
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem; /* Daha geniş ve dolgun */
  border-radius: 99px;
  font-weight: 800; /* Daha kalın yazı */
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase; /* Dikkat çekmesi için büyük harf */
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: white;
  box-shadow: 0 6px 15px -3px rgba(79, 70, 229, 0.4), 0 4px 6px -2px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 20px -5px rgba(79, 70, 229, 0.5), 0 8px 10px -5px rgba(79, 70, 229, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 3px solid var(--primary); /* Daha kalın ve belirgin çerçeve */
}

.btn-outline:hover:not([disabled]) {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px -3px rgba(79, 70, 229, 0.3);
}

.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 1.15rem;
}

.btn-block {
  width: 100%;
  padding: 1rem;
}

/* Sections */
.section {
  padding: 5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.bg-light {
  background-color: #f1f5f9;
  max-width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* App Grid */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.app-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(79, 70, 229, 0.3);
}

.app-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.app-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.app-desc {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* Modal (App Store Preview) */
.modal {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  background-color: rgba(15, 23, 42, 0.75); 
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.show {
  display: flex;
}

.modal-content {
  background-color: var(--bg-card);
  padding: 3rem;
  border-radius: 24px;
  max-width: 900px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4);
  animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.close-modal {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2.5rem;
  font-weight: 300;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.close-modal:hover {
  color: #0f172a;
}

.gallery-grid {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0 2rem 0;
  justify-content: flex-start;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) #f1f5f9;
}

.gallery-grid::-webkit-scrollbar {
  height: 8px;
}
.gallery-grid::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.gallery-grid::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: 4px;
}

.gallery-grid img {
  height: 380px;
  width: auto;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15);
  border: 1px solid var(--border);
  flex-shrink: 0;
  object-fit: contain;
}

@media (max-width: 768px) {
  .modal-content { padding: 2rem 1.5rem; }
  .gallery-grid img { height: 280px; }
  .close-modal { top: 1rem; right: 1.5rem; font-size: 2rem; }
}

.app-actions {
  margin-top: auto;
}

/* Contact Form */
.contact-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.form-control, input, textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--bg);
}

.form-control:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
  background: var(--bg-card);
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 768px) {
  .hero { 
    padding: 2rem 5% 3rem; 
    min-height: 85vh; 
    background-attachment: scroll;
    background-position: center; /* Merkeze hizala */
    background-size: cover; /* Yeni kırpılmış resim ekranı mükemmel kaplasın */
    align-items: flex-end; 
  }
  .hero-content {
    max-width: 100%;
    margin-bottom: 0;
  }
  .hero-title { 
    font-size: 2.8rem; 
  }
  .hero-subtitle { 
    font-size: 1.15rem; 
    position: relative; 
    bottom: auto;
    right: auto;
    text-align: left;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
  }
  .contact-container { 
    padding: 2rem 1.5rem; 
  }
}

/* Lightbox Zoom Feature */
.gallery-grid img {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 30px -5px rgba(0,0,0,0.25);
}

.lightbox-overlay {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: fadeIn 0.2s ease;
}

.lightbox-overlay.show {
  display: flex;
}

.lightbox-img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  animation: zoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
