/* ============================================
   Aida Halitaj — Portfolio
   Scandinavian Minimalist Design
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #FFFFFF;
  --color-bg-warm: #F5F7FA;
  --color-accent-warm: #E2E8F0;
  --color-text: #1A1A2E;
  --color-text-light: #64748B;
  --color-accent: #047857;
  --color-accent-hover: #065F46;
  --gradient: linear-gradient(135deg, #047857, #059669);
  --gradient-hover: linear-gradient(135deg, #065F46, #047857);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-height: 72px;
  --container-max: 1100px;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 6px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.04), 0 10px 24px rgba(0, 0, 0, 0.08);
  --shadow-elevated: 0 8px 16px rgba(0, 0, 0, 0.06), 0 20px 40px rgba(0, 0, 0, 0.1);
  --shadow-btn: 0 2px 4px rgba(4, 120, 87, 0.2), 0 6px 16px rgba(4, 120, 87, 0.15);
  --shadow-btn-hover: 0 4px 8px rgba(4, 120, 87, 0.25), 0 12px 28px rgba(4, 120, 87, 0.2);
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
}

ul, ol {
  list-style: none;
}

/* --- Utility --- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section__title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.bg-warm {
  background-color: var(--color-bg-warm);
}

/* --- Buttons --- */

.btn {
  display: inline-block;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-align: center;
  border: none;
  line-height: 1.4;
}

.btn--primary {
  background: var(--gradient);
  color: #FFFFFF;
  box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
  background: var(--gradient-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
}

.btn--secondary {
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  background: transparent;
}

.btn--secondary:hover {
  background: var(--gradient);
  color: #FFFFFF;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn);
}

/* --- Navigation --- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--color-bg);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.nav--scrolled {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav > nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
}

.nav__logo {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav__logo:hover {
  color: var(--color-accent);
}

.nav__hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--color-text);
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: color var(--transition);
}

.nav__hamburger:hover {
  color: var(--color-accent);
}

.nav__links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  background: var(--color-bg);
  padding: 16px 24px 24px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

.nav__links--open {
  display: flex;
}

.nav__links li {
  margin: 0;
}

.nav__links a {
  display: block;
  padding: 12px 0;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 400;
  border-bottom: 1px solid var(--color-accent-warm);
  transition: color var(--transition);
}

.nav__links li:last-child a {
  border-bottom: none;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--color-accent);
}

/* --- Hero --- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  background: var(--color-bg);
}

.hero__content {
  max-width: 640px;
  text-align: center;
}

.hero__content h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
  color: var(--color-text);
}

.hero__tagline {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 500;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
}

.hero__intro {
  font-size: 1.05rem;
  color: var(--color-text-light);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- About --- */

.about {
  padding: 80px 0;
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.about__photo {
  flex-shrink: 0;
}

.about__photo-img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 12px 28px rgba(0, 0, 0, 0.08);
  border: 3px solid var(--color-accent-warm);
}

.about__text p {
  margin-bottom: 16px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--color-text);
}

.about__text p:last-child {
  margin-bottom: 0;
}

/* --- Projects --- */

.projects {
  padding: 80px 0;
}

.projects__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-btn {
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 20px;
  border: 1.5px solid var(--color-accent-warm);
  border-radius: 24px;
  background: transparent;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.filter-btn.active {
  background: var(--gradient);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(4, 120, 87, 0.25);
}

.projects__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.project-card {
  background: var(--color-bg);
  border: 1px solid var(--color-accent-warm);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
}

.project-card.hidden {
  display: none;
}

.project-card__title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.project-card__desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.65;
  margin-bottom: 16px;
  flex-grow: 1;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tag {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 14px;
  background: var(--color-bg-warm);
  color: var(--color-text-light);
  border: 1px solid var(--color-accent-warm);
}

.project-card__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-card__link:hover {
  color: var(--color-accent-hover);
}

.projects__note {
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-style: italic;
  text-align: center;
}

/* --- Publications --- */

.publications {
  padding: 80px 0;
}

.publications__list {
  list-style: none;
  counter-reset: pub-counter;
}

.publication {
  border-left: 3px solid transparent;
  border-image: var(--gradient) 1;
  padding-left: 24px;
  margin-bottom: 36px;
  counter-increment: pub-counter;
}

.publication:last-child {
  margin-bottom: 0;
}

.publication__title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 6px;
  color: var(--color-text);
}

.publication__authors {
  font-size: 0.92rem;
  color: var(--color-text-light);
  margin-bottom: 4px;
}

.publication__venue {
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-style: italic;
  margin-bottom: 8px;
}

.publication__links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.publication__links a:hover {
  color: var(--color-accent-hover);
}

/* --- Resume --- */

.resume {
  padding: 80px 0;
  text-align: center;
}

.resume p {
  font-size: 1.02rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.resume .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* --- Blog --- */

.blog {
  padding: 80px 0;
}

.blog__placeholder {
  text-align: center;
  padding: 60px 20px;
  border: 2px dashed var(--color-accent-warm);
  border-radius: var(--radius);
  background: var(--color-bg);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.03);
}

.blog__placeholder i {
  font-size: 2.4rem;
  color: var(--color-accent);
  margin-bottom: 16px;
  display: block;
}

.blog__placeholder p:first-of-type {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.blog__placeholder p:last-of-type {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

/* --- Contact --- */

.contact {
  padding: 80px 0;
  text-align: center;
}

.contact > .container > p {
  font-size: 1.02rem;
  color: var(--color-text-light);
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.contact__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1.5px solid var(--color-accent-warm);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all var(--transition);
}

.contact__links a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.contact__links a i {
  font-size: 1.1rem;
}

/* --- Footer --- */

.footer {
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid var(--color-accent-warm);
}

.footer p {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* --- CV Request Modal --- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 24px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--color-bg);
  border-radius: 12px;
  padding: 36px 32px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 20px 48px rgba(0, 0, 0, 0.08);
  transform: translateY(12px) scale(0.97);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 4px;
  transition: color var(--transition);
}

.modal__close:hover {
  color: var(--color-text);
}

.modal__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-text);
}

.modal__desc {
  font-size: 0.92rem;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.modal__field {
  margin-bottom: 16px;
}

.modal__field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-text);
}

.modal__field .optional {
  font-weight: 400;
  color: var(--color-text-light);
}

.modal__field input,
.modal__field textarea {
  width: 100%;
  font-family: var(--font-family);
  font-size: 0.92rem;
  padding: 10px 14px;
  border: 1.5px solid var(--color-accent-warm);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.modal__field input:focus,
.modal__field textarea {
  border-color: var(--color-accent);
}

.modal__field input:focus,
.modal__field textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.1);
}

.modal__field textarea {
  resize: vertical;
  min-height: 72px;
}

.modal__submit {
  width: 100%;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* --- Fade-in Animation --- */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive: Tablet (768px+) --- */

@media (min-width: 768px) {
  body {
    font-size: 17px;
  }

  .about__content {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }

  .about__photo-img {
    width: 240px;
    height: 240px;
  }

  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact__links {
    gap: 20px;
  }

  .hero {
    padding: 140px 24px 100px;
  }
}

/* --- Responsive: Desktop (1024px+) --- */

@media (min-width: 1024px) {
  body {
    font-size: 18px;
  }

  .nav__hamburger {
    display: none;
  }

  .nav__links {
    display: flex;
    flex-direction: row;
    position: static;
    width: auto;
    background: transparent;
    padding: 0;
    box-shadow: none;
    gap: 8px;
  }

  .nav__links a {
    padding: 6px 14px;
    border-bottom: none;
    border-radius: 4px;
    font-size: 0.9rem;
  }

  .nav__links a:hover,
  .nav__links a.active {
    background: var(--color-bg-warm);
    color: var(--color-accent);
  }

  .projects__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about {
    padding: 100px 0;
  }

  .projects,
  .publications,
  .resume,
  .blog,
  .contact {
    padding: 100px 0;
  }

  .about__content {
    gap: 64px;
  }

  .about__photo-img {
    width: 260px;
    height: 260px;
  }
}
