/* ══════════════════════════════════════════
   CSS DEĞİŞKƏNLƏRİ
   Rəngləri, şriftləri burdan dəyiş.
   --bg       : arxa fon rəngi
   --text     : əsas mətn rəngi
   --muted    : solğun mətn (açıqlama, meta)
   --border   : xətt/kənar rəngi
   --card     : kart arxa fonu
   --pill     : bacarıq etiketlərinin fonu
══════════════════════════════════════════ */

/* Fon texture — noise effect */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  pointer-events: none;
}
/* Matrix canvas */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.3;
  pointer-events: none;
}
:root {
  --bg: #fafaf8;
  --text: #0f0f0e;
  --muted: #6b6b68;
  --border: #e4e4e0;
  --card: #ffffff;
  --pill: #f0f0ec;
  --heading: "Montserrat", sans-serif;
  --body: "Montserrat", sans-serif;
  --ease: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ── Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* Xüsusi kursor */
* { cursor: none !important; }

.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--text);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--text);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
  opacity: 0.4;
}

.cursor.grow, .cursor-ring.grow {
  width: 50px;
  height: 50px;
  opacity: 0.15;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

/* ══════════════════════════════════════════
   NAVİGASİYA
   Rəngini dəyişmək: --bg və --border dəyişənlərini yenilə
   Yüksəkliyi dəyişmək: padding dəyərini dəyiş
══════════════════════════════════════════ */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 60px;
  background: rgba(250, 250, 248, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--ease);
}
#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

/* Logo */
.logo {
  font-family: var(--heading);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 3px;
  color: var(--text);
  text-decoration: none;
}
.logo:hover {
  opacity: 0.7;
}

/* Desktop nav linkləri */
.nav-links {
  display: flex;
  gap: 40px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.3px;
  transition: color var(--ease);
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a.nav-active {
  color: var(--text);
  font-weight: 700;
}
/* Sağ blok: dil + hamburger */
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Dil düymələri */
.lang-switcher {
  display: flex;
  gap: 4px;
}
.lang-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--muted);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 4px 8px;
  cursor: pointer;
  transition: all var(--ease);
}
.lang-btn:hover {
  color: var(--text);
  border-color: var(--border);
}
.lang-btn.active {
  color: var(--text);
  border-color: var(--text);
}

/* ── Hamburger düyməsi (mobil) ── */
.ham-btn {
  display: none; /* Desktop-da gizlənir */
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.ham-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: var(--ease);
}

/* ── Mobil menyu ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  font-family: var(--heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}
.mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--muted);
}
.mobile-lang {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* ══════════════════════════════════════════
   HERO
   Min-height: ekranın hündürlüyünü dəyiş
   Profile şəklin ölçüsü: .profile-img width/height
══════════════════════════════════════════ */
/* ══════════════════════════════════════════
   HERO — şəkil solda, mətn sağda yan-yana
   Şəkil ölçüsü: .profile-img width/height
   Mətn tərəfinin genişliyi: .hero-text max-width
══════════════════════════════════════════ */
#hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 60px;
}

/* Yan-yana layout */
.hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 960px;
  width: 100%;
}

/* Profil şəkli — böyük, kvadrat, kənar radiusu az */
.profile-img {
  width: 260px;
  height: 320px;
  border-radius: 12px;          /* Tam dairə yox, yüngül radiuslu düzbucaqlı */
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;               /* Kiçilməsin */
  border: 2px solid var(--border);
  filter: grayscale(15%);       /* Hafif s/b — silmək üçün bu sətri sil */
}

/* Placeholder */
.profile-placeholder {
  width: 260px;
  height: 320px;
  border-radius: 12px;
  background: var(--pill);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading);
  font-weight: 800;
  font-size: 48px;
  color: var(--muted);
  flex-shrink: 0;
}

/* Mətn bloku — sağ tərəf */
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* Baş başlıq — 80px */
h1 {
  font-family: var(--heading);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 1.0;
  margin-bottom: 20px;
}

/* Bio mətni */
.bio {
  font-size: 18px;
  color: var(--muted);
  font-weight: 300;
  max-width: 440px;
  margin: 0 0 36px;
  line-height: 1.85;
}

/* Terminal yazı effekti */
.terminal-box {
  display: inline-block;
  background: #1a1a1a;
  color: #22c55e;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 6px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
/* Available badge */
.available-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: var(--muted);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
/* CTA düyməsi */
.cta-btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--heading);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: opacity var(--ease);
}
.cta-btn:hover { opacity: 0.75; }

/* ══════════════════════════════════════════
   BÖLMƏLƏRİN ÜMUMİ STİLİ
   Padding-i dəyişmək: 100px dəyərini yenilə
   Max-width-i dəyişmək: 880px dəyərini yenilə
══════════════════════════════════════════ */
section {
  max-width: 880px;
  margin: 0 auto;
  padding: 100px 40px;
}
h2 {
  font-family: var(--heading);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 48px;
  color: var(--text);
}

/* ══════════════════════════════════════════
   BACARIQLAR
══════════════════════════════════════════ */
#about {
  border-top: 1px solid var(--border);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Bacarıq progress barları */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px;
}
.skill-bar-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.skill-bar-track {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--text);
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ══════════════════════════════════════════
   LAYİHƏLƏR
   Kart ölçüsünü dəyişmək: minmax(250px, 1fr) içindəki 250px-i dəyiş
   Hover effekti: translateY dəyərini dəyiş
══════════════════════════════════════════ */
#projects {
  border-top: 1px solid var(--border);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition:
    transform var(--ease),
    box-shadow var(--ease);
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.07);
}

/* Texnologiya yazısı (HTML · CSS · JS) */
.project-meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.project-card h3 {
  font-family: var(--heading);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.project-card p {
  font-size: 14px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.75;
  flex: 1;
}

.project-links {
  display: flex;
  gap: 20px;
  margin-top: 6px;
}
.project-links a {
  font-size: 13px;
  font-weight: 600;
  transition: opacity var(--ease);
}
.project-links a:hover {
  opacity: 0.5;
}

/* ══════════════════════════════════════════
   ƏLAQƏ FORMU
   Input-ların hündürlüyü: padding dəyərini dəyiş
   Düymənin rəngi: background: var(--text) — dəyişmək üçün
     var(--text)-i özəl rənglə əvəz et
══════════════════════════════════════════ */
#contact {
  border-top: 1px solid var(--border);
}

.contact-sub {
  color: var(--text);        /* Solğun yox — tam qara */
  font-size: 17px;
  font-weight: 400;
  margin-top: -28px;
  margin-bottom: 40px;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 460px;
}

/* Input və textarea ümumi stili */
#contact-form input,
#contact-form textarea {
  padding: 13px 16px;
  border: 1px solid var(--border);
  background: var(--card);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 300;
  color: var(--text);
  outline: none;
  resize: none;
  transition: border-color var(--ease);
}
#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: #b0b0ac;
}
#contact-form input:focus,
#contact-form textarea:focus {
  border-color: var(--text);
}

/* Göndər düyməsi */
#contact-form button {
  padding: 13px 32px;
  background: var(--text);
  color: var(--bg);
  border: none;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity var(--ease);
}
#contact-form button:hover {
  opacity: 0.75;
}
#contact-form button:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Email hint xətti */
.email-hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.email-hint a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--ease);
}
.email-hint a:hover {
  opacity: 0.6;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
}
.social-links {
  display: flex;
  gap: 28px;
}
.social-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color var(--ease);
}
.social-links a:hover {
  color: var(--text);
}

/* ══════════════════════════════════════════
   SCROLL FADE-IN ANİMASİYASI
   Sürəti dəyişmək: 0.65s dəyərini yenilə
   Hərəkət məsafəsi: translateY(22px)-i dəyiş
══════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════
   MOBİL RESPONSIVE
   Breakpoint-i dəyişmək: max-width: 768px dəyərini yenilə
══════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .ham-btn   { display: flex; }
  #navbar    { padding: 16px 24px; }

  section { padding: 64px 24px; }

  /* Hero-da şəkil üstdə, mətn altda */
  #hero { padding: 60px 24px; }
  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
  }
  .hero-text { align-items: center; }
  .profile-img,
  .profile-placeholder {
    width: 180px;
    height: 220px;
  }
  .bio { margin: 0 auto 32px; }

  .projects-grid { grid-template-columns: 1fr; }

  footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 32px 24px;
  }

  .nav-right .lang-switcher { display: none; }
}

@media (max-width: 480px) {
  h1 {
    letter-spacing: -2px;
  }
  .cta-btn {
    width: 100%;
    text-align: center;
  }
  #contact-form button {
    width: 100%;
    text-align: center;
    align-self: stretch;
  }
}
/* Back to top düyməsi */
#back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease), transform var(--ease);
  z-index: 99;
}
#back-top.visible {
  opacity: 1;
  pointer-events: auto;
}
#back-top:hover {
  transform: translateY(-3px);
}
/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 40px;
  max-width: 480px;
  width: 90%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--muted);
}
.modal-meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.modal-box h3 {
  font-family: var(--heading);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.modal-box p {
  font-size: 15px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.75;
}
.modal-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--heading);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  align-self: flex-start;
  margin-top: 8px;
  transition: opacity var(--ease);
}
.modal-btn:hover { opacity: 0.75; }

.mail-btn {
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 2px solid var(--text);
  padding-bottom: 2px;
  transition: opacity var(--ease);
}
.mail-btn:hover { opacity: 0.5; }
