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

body, html {
    max-width: 100vw;
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
    background-color: #0a0a0a; /* Un negru foarte închis */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}

/* Stil pentru Header la scroll */
#header.scrolled {
    background-color: rgba(17, 24, 39, 0.95); /* bg-gray-900 cu mai multă opacitate */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Stiluri pentru link-urile din meniu */
.nav-link {
    position: relative;
    color: #D1D5DB; /* text-gray-300 */
    transition: color 0.3s;
}

.nav-link:hover {
    color: #FFFFFF; /* text-white */
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #3B82F6; /* text-blue-500 */
    transition: width 0.3s ease-in-out;
}

.nav-link:hover::after {
    width: 100%;
}

/* Animație la apariția elementelor pe scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Carduri de servicii cu efect de hover */
.service-card {
    background-color: #1f2937;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.service-card img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover img {
    transform: scale(1.05);
}

.service-card .p-6 {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Stiluri pentru butoanele de navigare carousel */
.carousel-container {
    position: relative;
    overflow: hidden;
    padding: 0 1rem;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    padding: 1rem;
}

/* Elimin butoanele de navigare */
.carousel-button {
    display: none;
}

.carousel-dots-container {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 0.75rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-dot.active {
    background-color: #06b6d4;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .carousel-container {
        padding: 0 0.5rem;
    }
    
    .carousel-slide {
        padding: 0.5rem;
    }
}

/* Stil pentru servicii în versiune mobilă */
@media (max-width: 768px) {
    .service-card {
        margin: 0.5rem 0;
        background: none; /* Elimin fundalul */
        backdrop-filter: none; /* Elimin blurul */
        border: none; /* Elimin bordura */
        border-radius: 0; /* Elimin radiusul */
        overflow: hidden;
        transition: none; /* Elimin tranzițiile */
        box-shadow: none; /* Elimin umbra */
    }
    
    .service-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .service-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-bottom: none; /* Elimin bordura de jos */
    }
    
    .service-card h3 {
        padding: 1rem;
        margin: 0;
        font-size: 1.2rem;
        color: #fff;
        font-weight: bold;
        text-shadow: 0 0 8px #3B82F6, 0 0 16px #06b6d4; /* Adaug strălucire */
    }
    
    .service-card p {
        padding: 0 1rem 1rem;
        color: #9ca3af;
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* Stiluri pentru lista de cursuri */
.course-item {
    background-color: rgba(30, 64, 175, 0.2); /* bg-blue-800/20 */
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.3s;
    border: 1px solid #2563eb;
}

.course-item:hover {
    background-color: #2563eb; /* bg-blue-600 */
    color: white;
    transform: scale(1.05);
}

/* Animație introductivă pentru textul din Hero */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

/* Stiluri pentru carusel */
.carousel-container {
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

.carousel-track {
    width: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.carousel-slide {
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 639px) {
    .carousel-slide {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 0.25rem;
    }
}
@media (min-width: 640px) and (max-width: 1023px) {
    .carousel-slide {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 0.5rem;
    }
}
@media (min-width: 1024px) {
    .carousel-slide {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
        padding: 0 0.75rem;
    }
}

/* Elimin spațiul gol sub carousel pe mobil */
#servicii {
    overflow-x: hidden;
}

/* Modal cursuri */
#modal-cursuri {
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
}
#modal-cursuri.active {
  display: flex;
}
#modal-cursuri .animate-fade-in-up {
  animation: fadeInUp 0.4s cubic-bezier(.4,0,.2,1) both;
}
#modal-cursuri .fa-times {
  transition: color 0.2s;
}
#modal-cursuri .fa-times:hover {
  color: #3B82F6;
}
@media (max-width: 600px) {
  #modal-cursuri .max-w-lg {
    max-width: 95vw;
    padding: 1.5rem 0.5rem;
  }
  #modal-cursuri .text-2xl {
    font-size: 1.2rem;
  }
}

/* Modal academie */
#modal-academie {
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
}
#modal-academie.active {
  display: flex;
}
#modal-academie .animate-fade-in-up {
  animation: fadeInUp 0.4s cubic-bezier(.4,0,.2,1) both;
}
#modal-academie .fa-times {
  transition: color 0.2s;
}
#modal-academie .fa-times:hover {
  color: #3B82F6;
}
@media (max-width: 600px) {
  #modal-academie .max-w-lg {
    max-width: 95vw;
    padding: 1.5rem 0.5rem;
  }
  #modal-academie .text-2xl {
    font-size: 1.2rem;
  }
}

/* Modal servicii */
#modal-serviciu {
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
}
#modal-serviciu.active {
  display: flex;
}
#modal-serviciu .animate-fade-in-up {
  animation: fadeInUp 0.4s cubic-bezier(.4,0,.2,1) both;
}
#modal-serviciu .fa-times {
  transition: color 0.2s;
}
#modal-serviciu .fa-times:hover {
  color: #3B82F6;
}
@media (max-width: 600px) {
  #modal-serviciu .max-w-lg {
    max-width: 95vw;
    padding: 1.5rem 0.5rem;
  }
  #modal-serviciu .text-2xl {
    font-size: 1.2rem;
  }
}

/* Animație scriere pentru titlul principal */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}
@keyframes blink {
  0%, 100% { border-color: transparent }
  50% { border-color: #3B82F6 }
}
.typing-effect {
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid #3B82F6;
  width: 0;
  animation: typing 2.2s steps(30, end) forwards, blink 0.7s step-end infinite alternate;
}

@media (max-width: 768px) {
  .typing-effect {
    font-size: 2.5rem !important;
    animation: typing 2s steps(30, end) forwards, blink 0.7s step-end infinite alternate;
    max-width: 100%;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .typing-effect {
    font-size: 2rem !important;
    animation: typing 1.8s steps(30, end) forwards, blink 0.7s step-end infinite alternate;
    max-width: 100%;
    white-space: normal;
  }
}

/* Fade-in up pentru secțiuni */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s cubic-bezier(.4,0,.2,1) forwards;
}

/* Scale-in pentru butoane */
.scale-in {
  opacity: 0;
  transform: scale(0.95);
  animation: scaleIn 0.7s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes scaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Slide-in left pentru elemente */
.slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  animation: slideInLeft 1s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade-in + slide-up pentru text sub titlu */
.fade-in-slide {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s 0.7s cubic-bezier(.4,0,.2,1) forwards;
}

/* Buton premium: gradient, glow, pulsare la hover */
.btn-ultra {
  background: linear-gradient(90deg, #3B82F6, #06b6d4, #3B82F6);
  background-size: 200% 200%;
  color: #fff;
  font-weight: bold;
  border-radius: 0.7em;
  box-shadow: 0 4px 24px 0 #3B82F6aa;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.5s ease;
  position: relative;
  overflow: hidden;
}
.btn-ultra:hover {
  background-position: 100% 0;
  box-shadow: 0 8px 32px 0 #06b6d4cc, 0 0 16px 2px #fff3;
  transform: scale(1.05);
}

/* Glassmorphism pentru contact */
.contact-glass {
  background: rgba(17, 24, 39, 0.7);
  border-radius: 1.5em;
  box-shadow: 0 8px 32px 0 #0005;
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(59, 130, 246, 0.25);
  padding: 2.5em 2em;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1.2s 0.5s cubic-bezier(.4,0,.2,1) both;
}

/* Iconițe animate la hover */
.contact-glass .contact-icon {
  font-size: 2.2em;
  color: #3B82F6;
  margin-bottom: 0.5em;
  transition: transform 0.3s, color 0.3s;
}
.contact-glass .contact-link:hover .contact-icon {
  color: #06b6d4;
  transform: scale(1.01) rotate(-8deg);
}

/* Efect de glow pe email */
.contact-glass .contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-size: 1.2em;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s, text-shadow 0.3s;
}

.contact-glass .contact-link i {
  font-size: 1.2em;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1em;
}

.contact-glass .contact-link:hover {
  color: #06b6d4;
  text-shadow: 0 0 8px #3B82F6, 0 0 16px #06b6d4;
}

.contact-glass .contact-link:hover .contact-icon {
  color: #06b6d4;
  transform: scale(1.01) rotate(-8deg);
}

/* Tranziții moderne pentru secțiunea contact */
.contact-glass h2, .contact-glass p, .contact-glass .contact-link {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s cubic-bezier(.4,0,.2,1) forwards;
}
.contact-glass h2 { animation-delay: 0.2s; }
.contact-glass p { animation-delay: 0.5s; }
.contact-glass .contact-link { animation-delay: 0.8s; }