@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Prevent horizontal overflow */
*,
*::before,
*::after {
  max-width: 100%;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

:root {
  --primary-green: #0b8a42;
  --dark-green: #06332b;
  --light-green: #0ea854;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --text-dark: #06332b;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 12px 40px rgba(0,0,0,0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  background: #ffffff;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* Force light mode even if browser is in dark mode */
@media (prefers-color-scheme: dark) {
  html {
    background: #ffffff !important;
    color-scheme: light !important;
  }
  
  body {
    background: #ffffff !important;
  }
}

body {
  font-family: 'Poppins', sans-serif;
  background: #ffffff;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
}

/* ========== ANIMATED BACKGROUND ========== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(11, 138, 66, 0.03) 0%,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(11, 138, 66, 0.02) 50%,
    rgba(255, 255, 255, 0.05) 75%,
    rgba(11, 138, 66, 0.03) 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Floating shapes */
body::after {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: #ffffff;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(11, 138, 66, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(11, 138, 66, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(11, 138, 66, 0.02) 0%, transparent 50%);
  animation: floatShapes 30s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes floatShapes {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(2%, 2%) rotate(5deg);
  }
  66% {
    transform: translate(-2%, -2%) rotate(-5deg);
  }
}

/* ========== HEADER ========== */
header {
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 9999;
  transition: var(--transition);
}

header.scrolled {
  padding: 0.7rem 0;
  box-shadow: var(--shadow-md);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.kirvaLogo {
  width: 80px;
  height: 80px;
  transition: var(--transition);
  cursor: pointer;
  display: block;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 10000;
  position: relative;
  pointer-events: auto !important;
  flex-shrink: 0;
  cursor: pointer;
}

.logo-link:active,
.logo-link:visited,
.logo-link:hover {
  text-decoration: none;
  outline: none;
}

.kirvaLogo:hover {
  transform: scale(1.05) rotate(5deg);
}

/* Navigation */
.navigation ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.navigation a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition);
}

.navigation a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-green), var(--light-green));
  transition: width 0.3s ease;
}

.navigation a:hover::before,
.navigation a.active::before {
  width: 100%;
}

.navigation a:hover,
.navigation a.active {
  color: var(--primary-green);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* ========== HERO SECTION ========== */
.hero {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 3rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  min-height: calc(100vh - 200px);
}

.hero-image {
  flex: 1;
  position: relative;
  animation: fadeInLeft 1s ease;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  object-fit: cover;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 6px solid var(--white);
  outline: 3px solid var(--primary-green);
  outline-offset: -9px;
  box-shadow: 
    0 10px 40px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.3);
  filter: brightness(1.02) contrast(1.05);
}

/* Rimosso overlay verde per mantenere l'immagine pulita */

.hero-image img:hover {
  transform: translateY(-12px) scale(1.04) rotate(-1deg);
  outline-color: var(--light-green);
  box-shadow: 
    0 25px 70px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.5);
  filter: brightness(1.05) contrast(1.08);
}

.hero-content {
  flex: 1;
  animation: fadeInRight 1s ease;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.name {
  font-size: 4.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.title {
  font-size: 2.5rem;
  color: var(--primary-green);
  font-weight: 600;
  margin-bottom: 2rem;
}

.hireMe {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--primary-green), var(--light-green));
  color: var(--white);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 8px 25px rgba(11, 138, 66, 0.3);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.hireMe::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.5s ease;
}

.hireMe:hover::before {
  left: 100%;
}

.hireMe:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(11, 138, 66, 0.4);
}

/* ========== ABOUT PAGE ========== */
.about-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  padding: 3rem 2rem;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
  animation: fadeInUp 0.8s ease;
}

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

.about-image-wrapper {
  flex: 1;
  position: relative;
}

.about-img {
  width: 100%;
  max-width: 450px;
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--white);
  transition: var(--transition);
}

.about-img:hover {
  transform: scale(1.03) rotate(2deg);
}

.about-content {
  flex: 1;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--light-green));
  border-radius: 2px;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--text-dark);
  opacity: 0.9;
}

/* Value Points */
.value-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-box {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-align: center;
  border: 2px solid transparent;
}

.value-box:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-green);
}

.value-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.8rem;
}

.value-box h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.value-box p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ========== WORKS MAIN PAGE (SPLIT LAYOUT) ========== */
.works-main-page {
  min-height: calc(100vh - 200px);
  padding: 3rem 2rem;
}

.works-header {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeInUp 0.8s ease;
}

.section-text {
  font-size: 1.15rem;
  max-width: 800px;
  margin: 0 auto 3rem;
  opacity: 0.85;
  text-align: center;
}

.works-split-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  animation: fadeInUp 1s ease;
}

.work-section {
  position: relative;
  height: 500px;
  border-radius: 25px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
}

.work-section-posts {
  background: linear-gradient(135deg, #0b8a42 0%, #0ea854 100%);
}

.work-section-videos {
  background: linear-gradient(135deg, #06332b 0%, #0b8a42 100%);
}

.work-section-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  z-index: 1;
}

.work-section:hover .work-section-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.work-section-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--white);
  text-align: center;
}

.work-icon {
  margin-bottom: 2rem;
  opacity: 0.95;
  transition: var(--transition);
}

.work-section:hover .work-icon {
  transform: scale(1.1) rotate(5deg);
  opacity: 1;
}

.work-section-content h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
}

.work-section-content p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  max-width: 400px;
}

.work-section-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  background: var(--white);
  color: var(--primary-green);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.work-section-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
  background: #f0f0f0;
}

.work-section-btn svg {
  transition: var(--transition);
}

.work-section-btn:hover svg {
  transform: translateX(5px);
}

.work-section:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

/* ========== POSTS GALLERY PAGE - CARD STACK SYSTEM ========== */
.posts-gallery-page {
  min-height: calc(100vh - 200px);
  padding: 3rem 2rem 5rem;
}

.gallery-header {
  max-width: 1200px;
  margin: 0 auto 4rem;
  text-align: center;
  animation: fadeInUp 0.8s ease;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: var(--white);
  color: var(--primary-green);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  margin-bottom: 2rem;
}

.back-btn:hover {
  transform: translateX(-5px);
  box-shadow: var(--shadow-md);
  background: var(--bg-light);
}

.back-btn svg {
  transition: var(--transition);
}

.back-btn:hover svg {
  transform: translateX(-3px);
}

/* CATEGORIES CONTAINER */
.categories-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  animation: fadeInUp 1s ease;
}

.category-section {
  animation: fadeInUp 1s ease;
}

.category-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.category-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.category-description {
  font-size: 1rem;
  color: var(--text-dark);
  opacity: 0.7;
  font-weight: 400;
}

/* CARD STACK */
.card-stack {
  position: relative;
  width: 100%;
  height: 550px;
  cursor: pointer;
  perspective: 1000px;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.card-stack:hover {
  transform: translateY(-5px);
}

.card-stack:active {
  transform: translateY(-2px) scale(0.98);
}

.stack-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  height: 90%;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}

.stack-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f5f5f5;
}

.stack-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

/* STACK POSITIONING - Cards sovrapposte con offset */
.stack-card[data-index="0"] {
  z-index: 3;
  transform: translate(-50%, -50%) scale(1);
}

.stack-card[data-index="1"] {
  z-index: 2;
  transform: translate(-50%, -50%) scale(0.95) translateX(-15px) rotate(-3deg);
  opacity: 0.8;
}

.stack-card[data-index="2"] {
  z-index: 1;
  transform: translate(-50%, -50%) scale(0.9) translateX(15px) rotate(3deg);
  opacity: 0.6;
}

/* HOVER EFFECT - Le carte si separano leggermente */
.card-stack:hover .stack-card[data-index="0"] {
  transform: translate(-50%, -50%) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.card-stack:hover .stack-card[data-index="1"] {
  transform: translate(-50%, -50%) scale(0.97) translateX(-25px) rotate(-4deg);
  opacity: 0.9;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-stack:hover .stack-card[data-index="2"] {
  transform: translate(-50%, -50%) scale(0.92) translateX(25px) rotate(4deg);
  opacity: 0.75;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* STACK OVERLAY - NASCOSTO */
.stack-overlay {
  display: none;
}

/* PLACEHOLDER CATEGORY */
.category-placeholder {
  opacity: 0.6;
}

.placeholder-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 138, 66, 0.05);
  border: 2px dashed rgba(11, 138, 66, 0.3);
  border-radius: 20px;
  cursor: default;
}

.placeholder-content {
  text-align: center;
  color: var(--primary-green);
}

.placeholder-content svg {
  opacity: 0.4;
  margin-bottom: 1rem;
}

.placeholder-content p {
  font-size: 1.2rem;
  font-weight: 600;
  opacity: 0.6;
}

/* ========== MODAL PER VISUALIZZAZIONE ESPANSA ========== */
.stack-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.stack-modal.active {
  display: block;
}

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

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 10001;
}

.modal-image-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-image-container img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: #f5f5f5;
}

.modal-image-container video {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: #000;
}

.modal-counter {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.8rem 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-dark);
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 10002;
}

.modal-close:hover {
  transform: rotate(90deg) scale(1.1);
  background: var(--primary-green);
}

.modal-close:hover svg {
  stroke: var(--white);
}

.modal-close svg {
  stroke: var(--text-dark);
  transition: var(--transition);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 10002;
}

.modal-nav:hover {
  background: var(--primary-green);
  transform: translateY(-50%) scale(1.1);
}

.modal-nav:hover svg {
  stroke: var(--white);
}

.modal-nav svg {
  stroke: var(--text-dark);
  transition: var(--transition);
}

.modal-prev {
  left: 2rem;
}

.modal-next {
  right: 2rem;
}

.modal-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.modal-nav:disabled:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-50%) scale(1);
}

.modal-nav:disabled:hover svg {
  stroke: var(--text-dark);
}

/* ========== VIDEOS GALLERY PAGE ========== */
.videos-gallery-page {
  min-height: calc(100vh - 200px);
  padding: 3rem 2rem;
}

.videos-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Coming Soon Placeholder */
.coming-soon-wrapper {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  text-align: center;
  animation: fadeInUp 1s ease;
}

.coming-soon-icon {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-green), var(--light-green));
  border-radius: 50%;
  margin-bottom: 2rem;
  box-shadow: 0 8px 30px rgba(11, 138, 66, 0.3);
}

.coming-soon-icon svg {
  color: var(--white);
}

.coming-soon-wrapper h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.coming-soon-wrapper p {
  font-size: 1.2rem;
  color: var(--text-dark);
  opacity: 0.7;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.social-preview {
  margin-top: 2rem;
}

.social-preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #E4405F, #C13584);
  color: var(--white);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(225, 48, 108, 0.3);
}

.social-preview-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(225, 48, 108, 0.4);
}

/* ========== APPOINTMENT PAGE ========== */
.appointment-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
}

/* Canvas per network animation */
#networkCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.appointment-wrapper {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 25px;
  padding: 4rem 3rem;
  max-width: 700px;
  width: 100%;
  box-shadow: 
    0 20px 60px rgba(0,0,0,0.08),
    0 0 0 1px rgba(255,255,255,0.5);
  text-align: center;
  animation: fadeInUp 0.8s ease;
  border: 1px solid rgba(11, 138, 66, 0.15);
  position: relative;
  z-index: 1;
}

.appointment-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.appointment-text {
  font-size: 1.15rem;
  line-height: 1.8;
  margin: 1.5rem 0 2.5rem;
  opacity: 0.85;
}

.appointment-btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  background: linear-gradient(135deg, var(--primary-green), var(--light-green));
  color: var(--white);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
  box-shadow: 0 10px 30px rgba(11, 138, 66, 0.3);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.appointment-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.appointment-btn:hover::before {
  width: 300px;
  height: 300px;
}

.appointment-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(11, 138, 66, 0.4);
}

/* ========== FOOTER ========== */
.footer {
  background: linear-gradient(135deg, var(--dark-green), #04261f);
  color: var(--white);
  padding: 3rem 2rem 1.5rem;
  margin-top: 5rem;
}

.footer-center {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  width: 80px;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  transition: var(--transition);
  filter: brightness(0) invert(1);
}

.footer-logo:hover {
  transform: scale(1.1);
  opacity: 1;
}

.footer-desc {
  max-width: 500px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  opacity: 0.85;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.footer-link {
  text-decoration: none;
  color: var(--white);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
}

.icon {
  font-size: 1.3rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ========== RESPONSIVE ========== */

/* ========== LOGIN PAGE ========== */
.login-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a4d2e 0%, #06332b 50%, #041f1a 100%);
  position: relative;
  overflow: hidden;
}

/* Animated Canvas Background */
#loginCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.4;
}

/* Login Container */
.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 2rem;
  animation: fadeInUp 0.6s ease;
}

/* Logo */
.login-logo-wrapper {
  text-align: center;
  margin-bottom: 2.5rem;
}

.login-logo {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 8px 24px rgba(11, 138, 66, 0.4));
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-logo:hover {
  transform: scale(1.05);
}

/* Login Card */
.login-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.login-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--dark-green);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.login-subtitle {
  color: rgba(6, 51, 43, 0.65);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  font-weight: 400;
}

/* Form Styles */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark-green);
  letter-spacing: -0.01em;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: rgba(6, 51, 43, 0.4);
  pointer-events: none;
  z-index: 2;
  transition: color 0.2s ease;
}

.input-field:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
  color: var(--primary-green);
}

.input-field {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  border: 1.5px solid rgba(6, 51, 43, 0.15);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
  transition: all 0.2s ease;
  background: var(--white);
  color: var(--dark-green);
}

.input-field:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(11, 138, 66, 0.08);
}

.input-field::placeholder {
  color: rgba(6, 51, 43, 0.35);
  font-weight: 400;
}

/* Toggle Password */
.toggle-password {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition);
  z-index: 2;
  color: rgba(6, 51, 43, 0.4);
}

.toggle-password:hover {
  color: var(--primary-green);
}

.toggle-password svg {
  display: block;
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -0.25rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--dark-green);
  cursor: pointer;
  font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary-green);
}

.forgot-link {
  font-size: 0.875rem;
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.forgot-link:hover {
  color: var(--light-green);
}

/* Login Button */
.login-btn {
  width: 100%;
  padding: 0.95rem;
  background: linear-gradient(135deg, var(--primary-green), var(--light-green));
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(11, 138, 66, 0.25);
  position: relative;
  margin-top: 0.75rem;
  letter-spacing: 0.01em;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(11, 138, 66, 0.35);
}

.login-btn:active {
  transform: translateY(0);
}

/* Button Loader */
.btn-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.loader-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  margin: 1.75rem 0 1.5rem;
  color: rgba(6, 51, 43, 0.4);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(6, 51, 43, 0.12);
}

.divider span {
  padding: 0 1rem;
}

/* Social Login */
.social-login {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-btn {
  width: 100%;
  padding: 0.875rem;
  border: 1.5px solid rgba(6, 51, 43, 0.15);
  border-radius: 10px;
  background: var(--white);
  color: var(--dark-green);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.social-btn:hover {
  border-color: rgba(6, 51, 43, 0.25);
  background: rgba(6, 51, 43, 0.02);
}

.social-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sign Up Text */
.signup-text {
  text-align: center;
  margin-top: 1.75rem;
  color: rgba(6, 51, 43, 0.65);
  font-size: 0.9rem;
}

.signup-link {
  color: var(--primary-green);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.signup-link:hover {
  color: var(--light-green);
}

/* Back to Home */
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
}

.back-home:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-3px);
}

.back-home svg {
  transition: transform 0.3s ease;
}

.back-home:hover svg {
  transform: translateX(-2px);
}

/* Login Page Responsive */
@media (max-width: 768px) {
  .login-container {
    padding: 1.5rem;
  }

  .login-card {
    padding: 2.5rem 2rem;
  }

  .login-title {
    font-size: 1.5rem;
  }

  .login-logo {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 2rem 1.5rem;
  }

  .login-title {
    font-size: 1.4rem;
  }

  .form-options {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
}

/* ========== END LOGIN PAGE ========== */

/* ========== DASHBOARD PAGE ========== */
.dashboard-page {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 2rem;
  min-height: calc(100vh - 300px);
}

.dashboard-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Welcome Section */
.dashboard-welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--light-green) 100%);
  border-radius: 16px;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.dashboard-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.dashboard-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 400;
}

.logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.logout-btn svg {
  stroke-width: 2;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  border: 1px solid rgba(6, 51, 43, 0.08);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(11, 138, 66, 0.2);
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.stat-svg {
  color: var(--primary-green);
  stroke-width: 2;
}

.stat-trend {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.stat-trend.positive {
  background: rgba(11, 138, 66, 0.1);
  color: var(--primary-green);
}

.stat-trend.negative {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.stat-trend.neutral {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}

.stat-label {
  color: rgba(6, 51, 43, 0.6);
  font-size: 0.9rem;
  font-weight: 400;
}

/* Dashboard Section */
.dashboard-section {
  background: var(--white);
  padding: 2rem;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(6, 51, 43, 0.08);
}

.section-header {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-green);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

/* Activity List */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(11, 138, 66, 0.02);
  border-radius: 10px;
  border-left: 3px solid var(--primary-green);
  transition: all 0.2s ease;
}

.activity-item:hover {
  background: rgba(11, 138, 66, 0.05);
  transform: translateX(4px);
}

.activity-icon-wrapper {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.activity-icon-wrapper svg {
  color: var(--primary-green);
  stroke-width: 2;
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-green);
  margin-bottom: 0.2rem;
}

.activity-content p {
  color: rgba(6, 51, 43, 0.6);
  font-size: 0.85rem;
}

.activity-time {
  font-size: 0.8rem;
  color: rgba(6, 51, 43, 0.5);
  white-space: nowrap;
  font-weight: 500;
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.action-card {
  padding: 1.75rem 1.5rem;
  background: rgba(11, 138, 66, 0.03);
  border-radius: 12px;
  text-decoration: none;
  color: var(--dark-green);
  transition: all 0.2s ease;
  border: 1.5px solid rgba(11, 138, 66, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.action-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-green);
  background: rgba(11, 138, 66, 0.06);
  box-shadow: var(--shadow-sm);
}

.action-icon {
  color: var(--primary-green);
  stroke-width: 2;
  margin-bottom: 0.25rem;
}

.action-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}

.action-card p {
  font-size: 0.85rem;
  opacity: 0.7;
  margin: 0;
}

/* Dashboard Responsive */
@media (max-width: 768px) {
  .dashboard-welcome {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
    padding: 2rem 1.5rem;
  }

  .dashboard-title {
    font-size: 1.75rem;
  }

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

  .activity-item {
    flex-wrap: wrap;
  }

  .activity-time {
    width: 100%;
    text-align: left;
    margin-left: 54px;
  }

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

@media (max-width: 480px) {
  .quick-actions {
    grid-template-columns: 1fr;
  }

  .dashboard-section {
    padding: 1.5rem;
  }
}

/* ========== END DASHBOARD PAGE ========== */

/* Tablet */
@media (max-width: 1024px) {
  .header-container {
    padding: 0 1.5rem;
  }

  .hero {
    gap: 3rem;
  }

  .name {
    font-size: 3.5rem;
  }

  .title {
    font-size: 2.2rem;
  }
}

/* Mobile Large */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    z-index: 10002;
  }

  .navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: #ffffff;
    backdrop-filter: blur(10px);
    padding: 6rem 2rem 2rem;
    transition: right 0.4s ease;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    z-index: 10001;
    overflow-y: auto;
  }

  .navigation.active {
    right: 0;
  }

  .navigation ul {
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
  }

  .navigation a {
    font-size: 1.2rem;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    margin: 2rem auto;
    min-height: auto;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }

  .hero-content {
    order: 2;
  }

  .hero-image {
    order: 1;
  }

  .hero-image img {
    max-width: 100%;
  }

  .name {
    font-size: 2.8rem;
  }

  .title {
    font-size: 1.8rem;
  }

  .hireMe {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }

  .about-container {
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
  }

  .about-content {
    text-align: center;
  }

  .about-img {
    max-width: 100%;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .value-points {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .works-split-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .work-section {
    height: 400px;
  }

  .work-section-content h3 {
    font-size: 2rem;
  }

  .work-section-content p {
    font-size: 1rem;
  }

  .categories-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .card-stack {
    height: 500px;
  }

  .modal-content {
    padding: 1rem;
  }

  .modal-nav {
    width: 45px;
    height: 45px;
  }

  .modal-prev {
    left: 1rem;
  }

  .modal-next {
    right: 1rem;
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }

  .appointment-wrapper {
    padding: 2.5rem 1.5rem;
  }

  .appointment-text {
    font-size: 1.05rem;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .footer-link {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* Mobile Small */
@media (max-width: 480px) {
  .header-container {
    padding: 0 1rem;
  }

  .kirvaLogo {
    width: 60px;
    height: 60px;
  }

  .hero {
    margin: 1.5rem auto;
    padding: 1rem;
  }

  .name {
    font-size: 2.2rem;
    line-height: 1.1;
  }

  .title {
    font-size: 1.5rem;
  }

  .hireMe,
  .appointment-btn {
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-text {
    font-size: 1rem;
  }

  .value-box {
    padding: 1.2rem;
  }

  .value-box h3 {
    font-size: 1rem;
  }

  .value-box p {
    font-size: 0.85rem;
  }

  .work-section {
    height: 350px;
  }

  .work-section-content {
    padding: 2rem 1.5rem;
  }

  .work-section-content h3 {
    font-size: 1.8rem;
  }

  .work-section-btn {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }

  .categories-container {
    gap: 2rem;
  }

  .card-stack {
    height: 450px;
  }

  .category-title {
    font-size: 1.6rem;
  }

  .category-description {
    font-size: 0.9rem;
  }

  .stack-count {
    font-size: 1rem;
  }

  .stack-hint {
    font-size: 0.85rem;
  }

  .modal-image-container {
    max-width: 100%;
  }

  .modal-counter {
    bottom: -40px;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }

  .modal-nav {
    width: 40px;
    height: 40px;
  }

  .modal-close {
    width: 40px;
    height: 40px;
  }

  .appointment-wrapper {
    padding: 2rem 1.2rem;
  }

  .appointment-icon {
    font-size: 3rem;
  }

  .appointment-text {
    font-size: 1rem;
  }

  .footer {
    padding: 2rem 1rem 1.5rem;
  }

  .footer-desc {
    font-size: 0.9rem;
  }

  .footer-link {
    font-size: 0.9rem;
    padding: 0.7rem 1.2rem;
  }

  .icon {
    font-size: 1.1rem;
  }
}

/* Mobile Extra Small */
@media (max-width: 360px) {
  .name {
    font-size: 1.9rem;
  }

  .title {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .navigation {
    width: 85%;
  }

  .appointment-wrapper {
    padding: 1.5rem 1rem;
  }
}
/* ========== PACKAGES PAGE ========== */
.packages-page {
  min-height: calc(100vh - 200px);
  padding: 3rem 2rem 5rem;
  background: linear-gradient(135deg, rgba(11, 138, 66, 0.02) 0%, rgba(255, 255, 255, 1) 50%, rgba(11, 138, 66, 0.02) 100%);
}

.packages-header {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
  animation: fadeInUp 0.8s ease;
}

.packages-container {
  max-width: 1200px;
  margin: 0 auto 4rem;
  display: grid;
  gap: 2rem;
}

/* Package Card */
.package-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.package-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-green), var(--light-green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.package-card:hover::before {
  transform: scaleX(1);
}

.package-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(11, 138, 66, 0.2);
}

/* Featured Package */
.package-featured {
  border-color: var(--primary-green);
  box-shadow: 0 8px 40px rgba(11, 138, 66, 0.15);
}

.package-featured::before {
  transform: scaleX(0);
  height: 6px;
}

/* Premium Package */
.package-premium {
  background: linear-gradient(135deg, rgba(11, 138, 66, 0.03) 0%, var(--white) 100%);
  border-color: var(--light-green);
}

.featured-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: linear-gradient(135deg, var(--primary-green), var(--light-green));
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(11, 138, 66, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

.premium-badge {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Package Icon */
.package-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-green), var(--light-green));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 25px rgba(11, 138, 66, 0.25);
  transition: var(--transition);
}

.package-card:hover .package-icon {
  transform: scale(1.1) rotate(5deg);
}

.package-icon svg {
  color: var(--white);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Package Header */
.package-header {
  margin-bottom: 1.5rem;
}

.package-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}


/* ===== PACKAGE PRICE ===== */
.package-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin: 0.6rem 0 0.8rem;
}

.price-amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary-green);
  letter-spacing: -1.5px;
  line-height: 1;
}

.price-period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  opacity: 0.55;
}

.package-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 0.5rem;
}

.package-tagline {
  font-size: 1rem;
  color: var(--text-dark);
  opacity: 0.8;
  line-height: 1.6;
}

/* Package Toggle Button */
.package-toggle {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-green), var(--light-green));
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(11, 138, 66, 0.2);
}

.package-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 138, 66, 0.3);
}

.package-toggle:active {
  transform: translateY(0);
}

.toggle-icon {
  transition: transform 0.3s ease;
}

.package-card.expanded .toggle-icon {
  transform: rotate(180deg);
}

.package-card.expanded .toggle-text::after {
  content: 'Close Details';
}

.toggle-text::after {
  content: 'View Details';
}

.package-card.expanded .toggle-text::after {
  content: 'Close Details';
}

/* Package Content (Expandable) */
.package-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 0;
}

.package-card.expanded .package-content {
  max-height: 2000px;
  opacity: 1;
  margin-top: 2rem;
}

.package-intro {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: rgba(11, 138, 66, 0.05);
  border-radius: 12px;
  border-left: 4px solid var(--primary-green);
}

.package-intro p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

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

/* Package Features List */
.package-features {
  list-style: none;
  margin-bottom: 2rem;
}

.package-features li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(11, 138, 66, 0.1);
  animation: fadeInLeft 0.5s ease backwards;
}

.package-card.expanded .package-features li:nth-child(1) { animation-delay: 0.1s; }
.package-card.expanded .package-features li:nth-child(2) { animation-delay: 0.15s; }
.package-card.expanded .package-features li:nth-child(3) { animation-delay: 0.2s; }
.package-card.expanded .package-features li:nth-child(4) { animation-delay: 0.25s; }
.package-card.expanded .package-features li:nth-child(5) { animation-delay: 0.3s; }
.package-card.expanded .package-features li:nth-child(6) { animation-delay: 0.35s; }
.package-card.expanded .package-features li:nth-child(7) { animation-delay: 0.4s; }
.package-card.expanded .package-features li:nth-child(8) { animation-delay: 0.45s; }
.package-card.expanded .package-features li:nth-child(9) { animation-delay: 0.5s; }
.package-card.expanded .package-features li:nth-child(10) { animation-delay: 0.55s; }

.package-features li:last-child {
  border-bottom: none;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.check-icon {
  color: var(--primary-green);
  flex-shrink: 0;
  margin-top: 2px;
}

.package-features span {
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Package Highlight */
.package-highlight {
  background: linear-gradient(135deg, var(--primary-green), var(--light-green));
  color: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(11, 138, 66, 0.2);
}

.package-highlight p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

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

.package-note {
  opacity: 0.9;
  font-size: 0.9rem;
  font-style: italic;
}

/* Packages CTA */
.packages-cta {
  max-width: 600px;
  margin: 4rem auto 0;
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--primary-green), var(--light-green));
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(11, 138, 66, 0.25);
  animation: fadeInUp 1s ease;
}

.packages-cta h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.packages-cta p {
  font-size: 1.1rem;
  color: var(--white);
  opacity: 0.95;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--white);
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
  .packages-page {
    padding: 2rem 1rem 3rem;
  }

  .package-card {
    padding: 2rem 1.5rem;
  }

  .package-title {
    font-size: 1.5rem;
  }

  .package-subtitle {
    font-size: 1rem;
  }

  .package-icon {
    width: 60px;
    height: 60px;
  }

  .package-icon svg {
    width: 36px;
    height: 36px;
  }

  .featured-badge {
    top: 1rem;
    right: 1rem;
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
  }

  .packages-cta h3 {
    font-size: 1.5rem;
  }

  .packages-cta p {
    font-size: 1rem;
  }
}
