/* ==================== RESET & FONTS ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

:root {
  /* Light Mode Colors */
  --primary-color: #6366f1;
  --secondary-color: #ec4899;
  --accent-color: #8b5cf6;
  --bg-color: #f8fafc;
  --card-bg: rgba(255, 255, 255, 0.8);
  --text-color: #1e293b;
  --text-secondary: #64748b;
  --border-color: rgba(100, 116, 139, 0.1);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-success: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ==================== ANIMATED PARTICLES ==================== */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* ==================== HEADER ==================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  display: flex;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

header.scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

nav {
  width: 90%;
  max-width: 1400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
}

.logo {
  font-weight: 800;
  font-size: 1.6rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  transition: transform 0.3s ease;
}

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

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

nav ul li a::before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  left: 50%;
  bottom: 0;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav ul li a:hover::before {
  width: 100%;
}

nav ul li a:hover {
  color: var(--primary-color);
}

#darkToggle {
  background: var(--gradient-primary);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

#darkToggle:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.menu-toggle {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-color);
  transition: transform 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.1);
}

/* ==================== HERO SECTION ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  background: url('background.jpeg') center/contain no-repeat;
  /*background-color: #667eea; /* Culoare de fundal pentru spațiile goale */
  background-attachment: fixed;
  padding-top: 80px;
}

/* Fără overlay - imaginea se vede complet */

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

.hero-content {
  position: relative;
  z-index: 10;
  animation: fadeInUp 1s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7), 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

.hero-pic-container {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
  animation: scaleIn 0.8s ease;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}



@keyframes rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: all 0.5s ease;
  cursor: pointer;
}

.profile-pic:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

.badge-container {
  position: absolute;
  bottom: 10px;
  right: 10px;
  cursor: pointer;
  animation: pulse 2s ease-in-out infinite;
}

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

.instagram-badge {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.badge-container:hover .instagram-badge {
  transform: rotate(10deg) scale(1.1);
}

.badge-tooltip {
  visibility: hidden;
  background-color: rgba(0, 0, 0, 0.9);
  color: #fff;
  text-align: center;
  padding: 8px 15px;
  border-radius: 8px;
  position: absolute;
  bottom: 45px;
  right: -10px;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.badge-container:hover .badge-tooltip,
.badge-container.active .badge-tooltip {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}

.hero-text {
  margin-top: 1rem;
}

/* Text shadow pentru lizibilitate pe orice fundal */
.hero h1, .hero h2, .hero p {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 
               0 4px 20px rgba(0, 0, 0, 0.6),
               0 0 30px rgba(0, 0, 0, 0.4);
}

.welcome-text {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  opacity: 0.95;
  animation: fadeIn 1s ease 0.3s backwards;
}

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

.typing-container {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.typing-container h1 {
  font-size: 3rem;
  font-weight: 700;
  margin: 0.5rem 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cursor {
  font-weight: 300;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-subtitle {
  font-size: 1.2rem;
  margin: 1rem 0 2rem;
  opacity: 0.95;
  font-weight: 300;
  animation: fadeIn 1s ease 0.6s backwards;
}

.btn-projects {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  animation: fadeIn 1s ease 0.9s backwards;
}

.btn-projects:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-projects i {
  font-size: 1.2rem;
  animation: rocket 1.5s ease-in-out infinite;
}

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

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.8;
  animation: fadeIn 1s ease 1.2s backwards;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 10px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s ease-in-out infinite;
}

@keyframes scroll {
  0% { opacity: 1; top: 10px; }
  100% { opacity: 0; top: 30px; }
}

.scroll-indicator p {
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ==================== SECTIONS ==================== */
section {
  padding: 100px 20px;
  max-width: 1400px;
  margin: auto;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.title-underline {
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 0 auto;
  border-radius: 2px;
}

/* ==================== ABOUT SECTION ==================== */
.services-section {
  margin-bottom: 3rem;
}

.services-section h3 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.site-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 3rem;
}

.btn-site {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  color: var(--text-color);
  padding: 15px 30px;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  min-width: 180px;
}

.btn-site i {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.btn-site:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.btn-site:hover i {
  transform: scale(1.2) rotate(10deg);
}

.btn-site:nth-child(1) {
  background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
  color: white;
  border-color: transparent;
}

.btn-site:nth-child(2) {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  color: white;
  border-color: transparent;
}

.btn-site:nth-child(3) {
  background: linear-gradient(135deg, #a8edea, #fed6e3);
  color: #333;
  border-color: transparent;
}

.btn-site:nth-child(4) {
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: white;
  border-color: transparent;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 2rem;
}

.info-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info-card i {
  font-size: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.info-card p {
  margin: 0;
  font-size: 0.95rem;
}

.info-card a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-card a:hover {
  color: var(--secondary-color);
}

/* ==================== SKILLS SECTION ==================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.skill-item {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
}

.skill-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.skill-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

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

.skill-icon i {
  font-size: 1.8rem;
  color: white;
}

.skill-item h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.skill-bar {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50px;
  overflow: hidden;
  height: 12px;
  position: relative;
}

.skill-fill {
  height: 100%;
  background: var(--gradient-primary);
  width: 0;
  border-radius: 50px;
  transition: width 1.5s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 15px;
}

.skill-percentage {
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ==================== WORK SECTION ==================== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.work-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 35px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.work-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.work-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.work-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

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

.work-icon i {
  font-size: 2rem;
  color: white;
}

.work-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.work-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==================== TESTIMONIALS SECTION ==================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 35px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.quote-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.quote-icon i {
  color: white;
  font-size: 1.3rem;
}

.testimonial-card p {
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 45px;
  height: 45px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-avatar i {
  color: white;
  font-size: 1.2rem;
}

.testimonial-author span {
  font-weight: 600;
  color: var(--text-color);
}

/* ==================== CONTACT SECTION ==================== */
.contact {
  text-align: center;
}

.contact-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: white;
}

.contact-btn i {
  font-size: 1.4rem;
}

.contact-btn.whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

.contact-btn.email {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.contact-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ==================== BACK TO TOP ==================== */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: none;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

#backToTop:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* ==================== FOOTER ==================== */
footer {
  background: linear-gradient(135deg, #1e293b, #334155);
  color: white;
  padding: 50px 20px 30px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

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

.socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
}

.social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.social-link:hover {
  transform: translateY(-5px) scale(1.1);
}

.social-link.instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-link.facebook:hover {
  background: #1877f2;
}

.social-link.tiktok:hover {
  background: #000000;
}

.social-link.whatsapp:hover {
  background: #25D366;
}

.social-link.phone:hover {
  background: var(--gradient-primary);
}

.social-link.email:hover {
  background: var(--gradient-primary);
}

.copyright {
  margin-top: 20px;
  opacity: 0.8;
  font-size: 0.95rem;
}

/* ==================== REVEAL ANIMATION ==================== */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== DARK MODE ==================== */
body.dark {
  --bg-color: #0f172a;
  --card-bg: rgba(30, 41, 59, 0.8);
  --text-color: #f1f5f9;
  --text-secondary: #94a3b8;
  --border-color: rgba(148, 163, 184, 0.1);
}

body.dark header {
  background: rgba(15, 23, 42, 0.7);
}

body.dark .menu-toggle {
  color: var(--text-color);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .section-title {
    font-size: 2.2rem;
  }
  
  .skills-grid,
  .work-grid,
  .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    position: absolute;
    top: 75px;
    right: 20px;
    width: 250px;
    border-radius: 15px;
    padding: 20px;
    text-align: right;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    gap: 0;
  }

  nav ul li {
    margin: 10px 0;
  }

  nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .typing-container h1 {
    font-size: 2.2rem;
  }

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

  .profile-pic {
    width: 160px;
    height: 160px;
  }

  .profile-ring {
    width: 180px;
    height: 180px;
  }

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

  .site-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-site {
    width: 100%;
    max-width: 280px;
  }

  .info-grid,
  .skills-grid,
  .work-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }

  .contact-btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 1rem;
  }

  .logo {
    font-size: 1.3rem;
  }

  .typing-container h1 {
    font-size: 1.8rem;
  }

  .profile-pic {
    width: 140px;
    height: 140px;
  }

  .profile-ring {
    width: 160px;
    height: 160px;
  }

  section {
    padding: 60px 15px;
  }

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

  #backToTop {
    width: 48px;
    height: 48px;
    bottom: 20px;
    right: 20px;
  }
}
