/* === VLERAT KRYESORE === */
:root {
  --bg-color: #f8f5f1;
  --text-dark: #2c2a28;
  --text-light: #6e6862;
  --bronze-dark: #7a5c3d;
  --bronze-light: #b89972;
  --warm-shadow: rgba(122, 92, 61, 0.15);
  --bronze-glow: rgba(184, 153, 114, 0.4);
}

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

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.serif {
  font-family: "Lora", serif;
  font-weight: 400;
}

.white-bg {
  background-color: #fff;
}
.accent-text {
  color: var(--bronze-light);
  margin-bottom: 20px;
}
.subtitle-text {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

img {
  /* border: 5px solid ; */
  border-radius: 30px !important;
}

/* === TRANZICIONET E TEKSTIT === */
.text-transition {
  transition:
    color 0.4s ease,
    transform 0.4s ease;
}
.text-transition:hover {
  color: var(--text-dark);
  transform: translateX(
    3px
  ); /* Lëvizje shumë e lehtë e tekstit djathtas për ndjesi interaktive */
}

/* === SHIRITI I PROGRESIT === */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--bronze-light);
  width: 0%;
  z-index: 2000;
  transition: width 0.1s ease-out;
}

/* === NAVIGACIONI === */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 25px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(248, 245, 241, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.4s ease;
}
nav.scrolled {
  padding: 15px 10%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.logo {
  font-family: "Lora", serif;
  font-size: 22px;
  color: var(--bronze-dark);
  text-decoration: none;
  letter-spacing: 1px;
  transition: transform 0.3s ease;
}
.logo:hover {
  transform: scale(1.05);
}
nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
}
nav ul li a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 14px;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}
nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--bronze-dark);
  transition: width 0.3s ease;
}
nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}
nav ul li a:hover,
nav ul li a.active {
  color: var(--bronze-dark);
  font-weight: 500;
}

/* === BUTONAT === */
.btn {
  display: inline-block;
  padding: 14px 35px;
  text-decoration: none;
  font-size: 15px;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.4s ease;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn-primary {
  background-color: var(--bronze-dark);
  color: #fff;
  border: 1px solid var(--bronze-dark);
  box-shadow: 0 8px 20px var(--warm-shadow);
}
.btn-primary:hover {
  background-color: var(--bronze-light);
  border-color: var(--bronze-light);
  box-shadow: 0 12px 25px var(--bronze-glow);
  transform: translateY(-3px);
}
.btn-outline {
  background-color: transparent;
  color: var(--text-dark);
  border: 1px solid var(--text-dark);
}
.btn-outline:hover {
  background-color: var(--text-dark);
  color: #fff;
  transform: translateY(-3px);
}

/* === HERO SECTION === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 120px 10% 60px;
  gap: 120px;
}
.hero-content {
  flex: 1;
  max-width: 600px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s forwards;
}
.hero-subtitle {
  color: var(--bronze-light);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  display: block;
}
.hero h1 {
  font-size: clamp(35px, 5vw, 39px);
  line-height: 1.1;
  margin-bottom: 30px;
  color: var(--text-dark);
  font-weight: 600;
}
.hero-quote {
  font-family: "Lora", serif;
  font-style: italic;
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 40px;
  border-left: 2px solid var(--bronze-light);
  padding-left: 20px;
}
.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) 0.5s forwards;
}
.floating-img {
  width: 100%;
  max-width: 450px;
  border-radius: 8px;
  box-shadow: 0 20px 50px var(--warm-shadow);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* === SECTIONS GENERAL (Imazhet më të vogla) === */
.section {
  padding: 100px 10%;
  overflow: hidden;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-title {
  font-size: 36px;
  color: var(--bronze-dark);
  margin-bottom: 15px;
}

.split-section {
  display: flex;
  align-items: center;
  gap: 60px;
}
.split-section.reverse {
  flex-direction: row-reverse;
}
.split-content {
  flex: 1;
}
.split-content p {
  margin-bottom: 20px;
  font-size: 16px;
  color: var(--text-light);
}
.left-padding {
  padding-left: 40px;
}
.right-padding {
  padding-right: 40px;
}

.split-image {
  flex: 1;
  display: flex;
  justify-content: center;
} /* Qendërzon imazhin */
.img-container {
  width: 80%; /* Imazhi është zvogëluar për elegancë */
  max-width: 400px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 15px 40px var(--warm-shadow);
  transition:
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.6s ease;
}
.img-container img {
  width: 100%;
  display: block;
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.img-container:hover {
  box-shadow: 0 25px 50px rgba(122, 92, 61, 0.3);
  transform: translateY(-8px);
}
.img-container:hover img {
  transform: scale(1.08);
}

/* === GRID KARTAT === */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.card {
  background: #fff;
  padding: 35px 25px;
  border-top: 3px solid var(--bronze-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px var(--warm-shadow);
  border-top-color: var(--bronze-dark);
}
.card h3 {
  color: var(--bronze-dark);
  margin-bottom: 15px;
  font-size: 22px;
}

/* === SEKSIONI I CITATIT === */
.quote-moment {
  background-color: #f2eee9;
}
.quote-box {
  padding: 40px;
  border-right: 4px solid var(--bronze-light);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0 15px 15px 0;
}
.emotional-quote {
  font-family: "Lora", serif;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.6;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 20px;
}
.quote-context {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--bronze-dark);
  font-weight: 600;
}

/* === ANIMACIONET E SCROLLIT === */
.fade-element {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.slide-left {
  opacity: 0;
  transform: translateX(-60px);
  transition:
    opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.slide-right {
  opacity: 0;
  transform: translateX(60px);
  transition:
    opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.visible {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === QIRIU INTERAKTIV (NDEZJE REALE) === */
.memorial-section {
  background-color: #efebe4;
  text-align: center;
  padding: 120px 10%;
}
.candle-container {
  margin: 50px auto 20px;
  cursor: pointer;
  width: 100px;
  height: 150px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s;
}
.candle-container:hover {
  transform: scale(1.05);
}

.flame {
  width: 20px;
  height: 35px;
  background: radial-gradient(
    ellipse at bottom,
    #f31717 10%,
    #ffb03a 40%,
    transparent 80%
  );
  border-radius: 50% 50% 20% 20%;
  opacity: 0;
  filter: blur(2px);
  margin-bottom: 5px;
  transform-origin: bottom center; /* Siguron që zjarri të rritet nga poshtë-lart */
}

.candle-body {
  width: 40px;
  height: 100px;
  background: linear-gradient(to right, #e0e0e0, #ffffff, #e0e0e0);
  border-radius: 4px;
  box-shadow: inset 0 -5px 10px rgba(0, 0, 0, 0.1);
}

/* Animacioni dyshe: Së pari ndizet (ignite), pastaj dridhet (flicker) */
.candle-container.lit .flame {
  opacity: 1;
  animation:
    ignite 0.6s ease-out forwards,
    flicker 3s infinite 0.6s;
}

@keyframes ignite {
  0% {
    transform: scale(0.1) translateY(20px);
    opacity: 0;
    filter: brightness(2);
  }
  50% {
    transform: scale(1.4) translateY(-5px);
    opacity: 1;
    filter: brightness(1.5);
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
    filter: brightness(1);
  }
}

@keyframes flicker {
  0%,
  100% {
    transform: scale(1) rotate(-1deg);
    opacity: 0.9;
  }
  25% {
    transform: scale(1.05) rotate(2deg);
    opacity: 1;
  }
  50% {
    transform: scale(0.95) rotate(-2deg);
    opacity: 0.8;
  }
  75% {
    transform: scale(1.02) rotate(1deg);
    opacity: 1;
  }
}

.memorial-text {
  font-size: 18px;
  color: var(--text-light);
  font-style: italic;
  transition: 0.5s;
}

/* === FOOTER === */
footer {
  background-color: var(--text-dark);
  color: #fff;
  padding: 60px 10%;
  text-align: center;
}
.footer-logo {
  font-family: "Lora", serif;
  font-size: 24px;
  color: var(--bronze-light);
  margin-bottom: 20px;
  display: block;
}
.footer-links {
  margin-bottom: 30px;
}
.footer-links a {
  color: #aaa;
  text-decoration: none;
  margin: 0 15px;
  font-size: 14px;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: #fff;
}
.footer-copyright {
  font-size: 13px;
  color: #777;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero,
  .split-section,
  .split-section.reverse {
    flex-direction: column;
    text-align: center;
    padding-top: 150px;
  }
  .hero-quote {
    border-left: none;
    padding-left: 0;
  }
  .left-padding,
  .right-padding {
    padding: 0;
    margin-top: 30px;
  }
  nav ul {
    display: none;
  }
  .hero-buttons {
    justify-content: center;
  }
  .slide-left,
  .slide-right {
    transform: translateY(40px);
  }
  .img-container {
    width: 90%;
    max-width: 350px;
  }
}
