/* Font Face Declarations */
@font-face {
  font-family: 'Poppins';
  src: url('fontsfolder/Poppins-Regular.woff2') format('woff2'),
       url('fontsfolder/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('fontsfolder/Poppins-Medium.woff2') format('woff2'),
       url('fontsfolder/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('fontsfolder/Poppins-Bold.woff2') format('woff2'),
       url('fontsfolder/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Light mode colors - more vibrant */
  --accent: #6c63ff;
  --accent-light: #8a84ff;
  --accent-dark: #5a52d5;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #f1f3ff;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --border-color: #e1e5e9;
  --card-bg: #ffffff;
  --shadow: 0 8px 30px rgba(108, 99, 255, 0.12);
  --skill-bg: #f0f2ff;
  --hero-gradient: linear-gradient(135deg, #f0f2ff 0%, #ffffff 100%);
  --section-gradient: linear-gradient(180deg, rgba(108, 99, 255, 0.05) 0%, transparent 100%);
}

[data-theme="dark"] {
  /* Dark mode colors - more vibrant */
  --accent: #8a84ff;
  --accent-light: #a8a4ff;
  --accent-dark: #6c63ff;
  --bg-primary: #0f0f23;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #252547;
  --text-primary: #f0f0ff;
  --text-secondary: #b8b8d6;
  --border-color: #2d2d5a;
  --card-bg: #1a1a2e;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  --skill-bg: #252547;
  --hero-gradient: linear-gradient(135deg, #1a1a2e 0%, #0f0f23 100%);
  --section-gradient: linear-gradient(180deg, rgba(138, 132, 255, 0.1) 0%, transparent 100%);
}

/* Base styles */
body {
  font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: all 0.4s ease;
  line-height: 1.6;
  overflow-x: hidden;
}

.hero {
  background: var(--hero-gradient);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: var(--section-gradient);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.pill {
  background: var(--accent);
  border-radius: 999px;
  padding: .4rem 1rem;
  font-weight: 600;
  color: white;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(108, 99, 255, 0.3);
}

.skill-badge {
  border-radius: .75rem;
  padding: .5rem .9rem;
  margin: .25rem;
  background: var(--skill-bg);
  color: var(--text-primary);
  font-weight: 600;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.skill-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.2);
}

.project-card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(108, 99, 255, 0.25);
}

.project-card img {
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-links {
  display: flex;
  gap: 10px;
}

footer {
  padding: 3rem 0;
  background: var(--bg-secondary);
}

/* Theme toggle button */
.theme-toggle {
  background: var(--accent);
  border: none;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  transform: rotate(15deg);
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

.theme-toggle i {
  font-size: 1.4rem;
  color: white;
  transition: all 0.5s ease;
}

.theme-toggle .fa-sun {
  position: absolute;
  opacity: 0;
  transform: scale(0) rotate(90deg);
}

.theme-toggle .fa-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

[data-theme="dark"] .theme-toggle .fa-sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

[data-theme="dark"] .theme-toggle .fa-moon {
  opacity: 0;
  transform: scale(0) rotate(-90deg);
}

/* Navbar styling */
.navbar {
  background-color: var(--bg-primary) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

[data-theme="dark"] .navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand, .nav-link {
  color: var(--text-primary) !important;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--accent) !important;
}

/* Button styling */
.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(108, 99, 255, 0.3);
}

.btn-outline-primary {
  color: var(--accent);
  border-color: var(--accent);
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(108, 99, 255, 0.3);
}

.btn-outline-secondary {
  color: var(--text-secondary);
  border-color: var(--border-color);
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Section styling */
section {
  padding: 5rem 0;
  transition: all 0.4s ease;
}

.bg-light-custom {
  background-color: var(--bg-secondary);
}

/* Text colors */
.text-muted {
  color: var(--text-secondary) !important;
}

.accent-text {
  color: var(--accent);
}

/* Profile image styling */
.profile-img-container {
  width: 240px;
  height: 240px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 35px rgba(108, 99, 255, 0.4);
  position: relative;
  overflow: hidden;
  padding: 8px;
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.profile-img-container:hover .profile-img {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
  transform: translateY(-3px);
  background: var(--accent);
  color: white;
  box-shadow: 0 6px 15px rgba(108, 99, 255, 0.3);
}

.social-link.whatsapp:hover {
  background: #25D366;
}

/* Floating Buttons */
.floating-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.floating-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(0);
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.floating-btn:hover::before {
  transform: scale(1);
}

.floating-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 25px rgba(108, 99, 255, 0.5);
}

.floating-btn.whatsapp {
  background: #25D366;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.floating-btn.whatsapp:hover {
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
}

.floating-btn.download-cv {
  background: var(--bg-secondary);
  color: var(--text-primary);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.floating-btn.download-cv:hover {
  background: var(--accent);
  color: white;
}

/* Progress Bars */
.progress {
  height: 10px;
  background-color: var(--bg-secondary);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 5px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-light), var(--accent));
  border-radius: 10px;
  width: 0;
  transition: width 1.5s ease-in-out;
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-image: linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.2) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.2) 75%,
    transparent 75%,
    transparent
  );
  z-index: 1;
  background-size: 50px 50px;
  animation: move 2s linear infinite;
  border-radius: 10px;
}

@keyframes move {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 50px 50px;
  }
}

.skill-item {
  margin-bottom: 1.5rem;
}

/* Education & Experience Items */
.education-item, .experience-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.education-item:last-child, .experience-item:last-child {
  border-bottom: none;
}

/* Services Section */
.service-box {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: var(--shadow);
  height: 100%;
  border: 1px solid var(--border-color);
}

.service-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(108, 99, 255, 0.25);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.8rem;
  transition: all 0.4s ease;
}

.service-box:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-box h3 {
  margin-bottom: 1rem;
  font-weight: 700;
}

.service-box p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Soft Skills */
.soft-skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.soft-skill-item {
  display: flex;
  align-items: center;
  background: var(--skill-bg);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  font-weight: 600;
}

.soft-skill-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.2);
  background: var(--accent);
  color: white;
}

.soft-skill-item i {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

/* Contact Section */
.contact-info {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.floating {
  animation: float 3s ease-in-out infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    padding: 3rem 0;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .profile-img-container {
    width: 200px;
    height: 200px;
    margin-top: 1.5rem;
  }
  
  .floating-buttons {
    bottom: 20px;
    right: 20px;
  }
  
  .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .project-links {
    flex-direction: column;
  }
  
  .soft-skills-container {
    gap: 1rem;
  }
  
  .soft-skill-item {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .service-box {
    padding: 1.5rem;
  }
}