/* ===== CSS Variables ===== */
:root {
  /* Brand colors from Apete logo */
  --primary-green: #4CAF50;
  --primary-green-dark: #2E7D32;
  --primary-green-light: #66BB6A;
  --premium-gold: #B8860B;
  --primary-blue: #006799;
  --dark-bg: #0f172a;
  --dark-card: #1e293b;
  --light-bg: #f8fafc;
  --white: #ffffff;
  --text-dark: #1e293b;
  --text-gray: #64748b;
  --yellow: #FFCC00;
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.section-subtitle {
  color: var(--text-gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--primary-green);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}

.btn-primary:hover {
  background: var(--primary-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(34, 197, 94, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
}

.btn-outline:hover {
  background: var(--primary-green);
  color: var(--white);
}

/* ===== Header/Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--white);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  background: var(--dark-bg);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(34, 197, 94, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 40%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 8px 16px;
  border-radius: 50px;
  color: var(--primary-green);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
}

.hero h1 span {
  color: var(--primary-green);
}

.hero-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.25rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Stats Section ===== */
.stats {
  background: var(--white);
  padding: 80px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-gray);
  font-size: 1rem;
}

/* ===== Features Section ===== */
.features {
  padding: 100px 0;
  background: var(--light-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.feature-card h3 {
  margin-bottom: 12px;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* ===== About Section ===== */
.about {
  padding: 100px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-content h2 {
  margin-bottom: 24px;
}

.about-content p {
  color: var(--text-gray);
  margin-bottom: 24px;
}

.about-list {
  margin-bottom: 32px;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.about-list .check-icon {
  width: 24px;
  height: 24px;
  background: var(--primary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.process-step {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--light-bg);
  padding: 24px;
  border-radius: var(--border-radius);
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 35px;
  bottom: -24px;
  width: 2px;
  height: 24px;
  background: var(--primary-green);
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.step-content h4 {
  margin-bottom: 4px;
  color: var(--text-dark);
}

.step-content p {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin: 0;
}

/* ===== Programs Section ===== */
.programs {
  padding: 100px 0;
  background: var(--light-bg);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.program-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 40px 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.program-card.featured {
  border: 2px solid var(--primary-green);
}

.program-card.featured::before {
  content: 'Najpopularniji';
  position: absolute;
  top: 16px;
  right: -32px;
  background: var(--primary-green);
  color: var(--white);
  padding: 4px 40px;
  font-size: 0.75rem;
  font-weight: 600;
  transform: rotate(45deg);
}

.program-level {
  color: var(--primary-green);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.program-card h3 {
  margin-bottom: 12px;
  font-size: 1.75rem;
}

.program-tagline {
  color: var(--text-gray);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 24px;
  min-height: 40px;
}

/* Premium package styling */
.program-card.premium {
  border: 2px solid var(--premium-gold);
}

.program-card.premium::before {
  content: 'VIP';
  position: absolute;
  top: 16px;
  right: -28px;
  background: linear-gradient(135deg, var(--premium-gold), #DAA520);
  color: var(--white);
  padding: 4px 40px;
  font-size: 0.75rem;
  font-weight: 600;
  transform: rotate(45deg);
}

.program-card.premium .program-level {
  color: var(--premium-gold);
}

.btn-premium {
  border-color: var(--premium-gold) !important;
  color: var(--premium-gold) !important;
}

.btn-premium:hover {
  background: var(--premium-gold) !important;
  color: var(--white) !important;
}

.program-features {
  margin-bottom: 32px;
}

.program-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text-gray);
}

.program-features li:last-child {
  border-bottom: none;
}

.program-features .check {
  color: var(--primary-green);
  font-weight: bold;
}

.program-card .btn {
  width: 100%;
}

/* ===== Testimonials Section ===== */
.testimonials {
  padding: 100px 0;
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  background: var(--light-bg);
  padding: 32px;
  border-radius: var(--border-radius);
}

.testimonial-text {
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--primary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  font-size: 1.25rem;
}

.author-info h4 {
  color: var(--text-dark);
  font-size: 1rem;
  margin-bottom: 2px;
}

.author-info p {
  color: var(--text-gray);
  font-size: 0.85rem;
  margin: 0;
}

/* ===== FAQ Section ===== */
.faq {
  padding: 100px 0;
  background: var(--light-bg);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--border-radius);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.faq-question {
  width: 100%;
  padding: 24px 32px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary-green);
}

.faq-icon {
  font-size: 1.5rem;
  transition: var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-content {
  padding: 0 32px 24px;
  color: var(--text-gray);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* ===== Contact Section ===== */
.contact {
  padding: 100px 0;
  background: var(--dark-bg);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-info h2 {
  margin-bottom: 16px;
}

.contact-info>p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
}

.contact-details {
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  font-size: 1.25rem;
}

.contact-item-content h4 {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  margin-bottom: 4px;
}

.contact-item-content p {
  margin: 0;
  font-size: 1.1rem;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary-green);
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: var(--border-radius);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--white);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-green);
  background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
}

/* ===== Footer ===== */
.footer {
  background: #0a0f1a;
  color: var(--white);
  padding: 80px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-about .logo {
  margin-bottom: 16px;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-column h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: var(--primary-green);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.footer-legal {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.footer-legal p {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.7rem;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid,
  .programs-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0f172a;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
    animation: slideDown 0.3s ease forwards;
  }

  .nav-links li a {
    font-size: 1.1rem;
    padding: 12px 0;
    display: block;
    width: 100%;
    text-align: center;
  }

  .mobile-menu-btn {
    display: block;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Horizontal scroll containers for mobile */
  .features-grid,
  .programs-grid,
  .testimonials-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 20px;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .features-grid::-webkit-scrollbar,
  .programs-grid::-webkit-scrollbar,
  .testimonials-grid::-webkit-scrollbar {
    display: none;
  }

  .features-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .programs-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .testimonials-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .feature-card,
  .program-card,
  .testimonial-card {
    flex: 0 0 280px;
    min-width: 280px;
    scroll-snap-align: start;
  }

  .program-card {
    flex: 0 0 300px;
    min-width: 300px;
  }

  /* Scroll indicator dots styling */
  .scroll-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
  }

  .scroll-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    transition: var(--transition);
  }

  .scroll-indicator span.active {
    background: var(--primary-green);
    width: 24px;
    border-radius: 4px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 {
  animation-delay: 0.1s;
}

.animate-delay-2 {
  animation-delay: 0.2s;
}

.animate-delay-3 {
  animation-delay: 0.3s;
}

/* ===== Labeled Social Links ===== */
.social-link-labeled {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--white);
  transition: var(--transition);
}

.social-link-labeled .social-icon-wrapper {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link-labeled span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.social-link-labeled.disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.social-link-labeled.disabled .social-icon-wrapper {
  background: rgba(255, 255, 255, 0.05);
}

/* ===== Desktop Hover Effects ===== */
@media (hover: hover) and (pointer: fine) {

  /* Card hover lift + glow */
  .feature-card:hover,
  .program-card:hover,
  .testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.15);
  }

  /* Feature icon zoom on card hover */
  .feature-card:hover .feature-icon {
    transform: scale(1.1);
    background: rgba(34, 197, 94, 0.2);
  }

  .feature-icon {
    transition: var(--transition);
  }

  /* Social link pop effect */
  .social-link-labeled:not(.disabled):hover .social-icon-wrapper {
    background: var(--primary-green);
    transform: scale(1.15);
  }

  .social-link-labeled:not(.disabled):hover span {
    color: var(--primary-green);
  }

  /* Contact item glow */
  .contact-item {
    transition: var(--transition);
  }

  .contact-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
  }

  /* Nav link underline animation */
  .nav-links a:not(.btn) {
    position: relative;
  }

  .nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
  }

  .nav-links a:not(.btn):hover::after {
    width: 100%;
  }

  /* FAQ question hover */
  .faq-question:hover {
    background: rgba(34, 197, 94, 0.05);
  }

  /* Button subtle pulse on hover */
  .btn-primary:hover {
    animation: subtle-pulse 1.5s infinite;
  }

  @keyframes subtle-pulse {

    0%,
    100% {
      box-shadow: 0 6px 25px rgba(34, 197, 94, 0.4);
    }

    50% {
      box-shadow: 0 6px 35px rgba(34, 197, 94, 0.6);
    }
  }

  /* Process step hover */
  .process-step:hover {
    background: rgba(34, 197, 94, 0.05);
  }

  .process-step:hover .step-number {
    transform: scale(1.1);
  }

  .step-number {
    transition: var(--transition);
  }

  /* Stat number hover */
  .stat-item:hover .stat-number {
    transform: scale(1.05);
  }

  .stat-number {
    transition: var(--transition);
  }
}