/* ===== GLOBAL STYLES ===== */
:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  --purple-color: #6f42c1;
  --dark-color: #343a40;
  --light-color: #f8f9fa;
  --white-color: #ffffff;
  --transition: all 0.3s ease;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--info-color));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin-bottom: 3rem;
}

/* ===== NAVIGATION ===== */
.navbar {
  background: rgba(52, 58, 64, 0.95);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.navbar-brand i {
  font-size: 1.8rem;
  color: var(--primary-color);
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.navbar-brand:hover i {
  transform: rotate(360deg);
  color: var(--info-color);
}

.brand-text {
  background: linear-gradient(45deg, var(--primary-color), var(--info-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: 1px;
  position: relative;
}

.brand-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: var(--transition);
}

.navbar-brand:hover .brand-text::before {
  left: 100%;
}

.navbar-brand:hover {
  transform: translateY(-2px);
}

/* Brand animation on page load */
.navbar-brand {
  animation: slideInLeft 0.8s ease;
}

.navbar-brand i {
  animation: fadeInUp 0.8s ease 0.2s both;
}

.brand-text {
  animation: fadeInUp 0.8s ease 0.4s both;
}

/* Pulse animation for the icon */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Dark mode adjustments */
[data-theme="dark"] .navbar-brand i {
  color: var(--primary-color);
}

[data-theme="dark"] .brand-text {
  background: linear-gradient(45deg, var(--primary-color), var(--info-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav .nav-link {
  font-weight: 500;
  margin: 0 0.5rem;
  position: relative;
  transition: var(--transition);
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white-color);
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
}

.hero-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
  animation: fadeInUp 1s ease 0.6s both;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  position: relative;
  overflow: hidden;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
  min-width: 180px;
  text-align: center;
}

/* Primary Button Styling */
.hero-buttons .btn-primary {
  background: linear-gradient(45deg, #ffffff, #f8f9fa);
  color: #333;
  border: 2px solid #ffffff;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.hero-buttons .btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s ease;
}

.hero-buttons .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 255, 255, 0.4);
  background: linear-gradient(45deg, #ffffff, #e9ecef);
  color: #333;
}

.hero-buttons .btn-primary:hover::before {
  left: 100%;
}

/* Outline Button Styling */
.hero-buttons .btn-outline-primary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.hero-buttons .btn-outline-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.hero-buttons .btn-outline-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: #ffffff;
}

.hero-buttons .btn-outline-primary:hover::before {
  left: 100%;
}

/* Button Focus States */
.hero-buttons .btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Button Active States */
.hero-buttons .btn:active {
  transform: translateY(-1px);
}

/* Button Loading Animation */
.hero-buttons .btn {
  animation: buttonFloat 3s ease-in-out infinite;
}

.hero-buttons .btn:nth-child(2) {
  animation-delay: 0.5s;
}

@keyframes buttonFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Button Text Animation */
.hero-buttons .btn span {
  position: relative;
  z-index: 1;
}

/* Responsive Button Design */
@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-buttons .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    min-width: 150px;
  }
}

.hero-stats {
  animation: fadeInUp 1s ease 0.8s both;
}

.hero-image {
  position: relative;
  z-index: 2;
}

.hero-profile {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}

.floating-icons {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.floating-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white-color);
  animation: float 4s ease-in-out infinite;
  animation-delay: var(--delay);
}

.floating-icon:nth-child(1) {
  top: 20%;
  left: 10%;
}
.floating-icon:nth-child(2) {
  top: 60%;
  right: 10%;
}
.floating-icon:nth-child(3) {
  bottom: 20%;
  left: 20%;
}
.floating-icon:nth-child(4) {
  top: 40%;
  right: 20%;
}

/* ===== ABOUT SECTION ===== */
.about-content h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.skills-section {
  background: var(--light-color);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.skill-item {
  margin-bottom: 1.5rem;
}

.progress {
  height: 8px;
  border-radius: 4px;
  background: rgba(46, 134, 228, 0.1);
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary-color), var(--info-color));
  border-radius: 4px;
  transition: width 1.5s ease;
}

/* ===== SERVICES SECTION ===== */
.service-card {
  background: var(--white-color);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--info-color));
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--info-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white-color);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-card h4 {
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.service-card p {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  padding: 0;
}

.service-features li {
  padding: 0.5rem 0;
  color: var(--secondary-color);
  position: relative;
  padding-left: 1.5rem;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-filters {
  margin-bottom: 2rem;
}

.portfolio-filters .btn {
  margin: 0 0.5rem;
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
  transition: var(--transition);
}

.portfolio-filters .btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white-color);
}

.portfolio-item {
  background: var(--white-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.portfolio-image {
  position: relative;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 123, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-links {
  display: flex;
  gap: 1rem;
}

.portfolio-links .btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.portfolio-links .btn:hover {
  transform: scale(1.1);
}

.portfolio-content {
  padding: 1.5rem;
}

.portfolio-content h5 {
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.portfolio-content p {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.portfolio-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.portfolio-tech .badge {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
}

.testimonial-item {
  min-width: 350px;
  scroll-snap-align: start;
}

.testimonial-content {
  background: var(--white-color);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-content::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.2;
}

.testimonial-text p {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.author-info h5 {
  margin-bottom: 0.25rem;
  color: var(--dark-color);
}

.author-info p {
  margin: 0;
  color: var(--secondary-color);
  font-size: 0.9rem;
}

/* ===== BLOG SECTION ===== */
.blog-card {
  background: var(--white-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.blog-image {
  position: relative;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-content {
  padding: 1.5rem;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--secondary-color);
}

.blog-content h4 {
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.blog-content p {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

/* ===== CONTACT SECTION ===== */
.contact-form {
  background: var(--white-color);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.contact-form .form-control {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.contact-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.contact-info {
  background: var(--white-color);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.contact-info:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--info-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white-color);
  margin: 0 auto 1rem;
}

.contact-info h5 {
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.contact-info p {
  color: var(--secondary-color);
  margin: 0;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-link {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--info-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  font-size: 1.2rem;
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: var(--white-color);
}

/* ===== FOOTER ===== */
.footer {
  background: #000;
  color: var(--white-color);
  position: relative;
  width: 100%;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--info-color));
}

.footer-section {
  margin-bottom: 1rem;
}

.footer-title {
  color: var(--white-color);
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
}

.footer-description {
  color: #a0aec0;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-social .social-link {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  font-size: 1.1rem;
  transition: var(--transition);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social .social-link:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
  color: var(--white-color);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #a0aec0;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  padding-left: 0;
}

.footer-links a::before {
  content: "→";
  position: absolute;
  left: -15px;
  opacity: 0;
  transition: var(--transition);
  color: var(--primary-color);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 15px;
}

.footer-links a:hover::before {
  opacity: 1;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
}

.contact-item i {
  width: 40px;
  height: 40px;
  background: rgba(0, 123, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item h6 {
  color: var(--white-color);
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-item p {
  color: #a0aec0;
  margin: 0;
  font-size: 0.9rem;
}

/* Newsletter Section */
.newsletter-section {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

.newsletter-title {
  color: var(--white-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.newsletter-description {
  color: #a0aec0;
  margin-bottom: 0;
}

.newsletter-form .input-group {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.newsletter-form .form-control {
  border: none;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white-color);
  border-radius: 0;
}

.newsletter-form .form-control::placeholder {
  color: #a0aec0;
}

.newsletter-form .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: none;
  color: var(--white-color);
}

.newsletter-form .btn {
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0;
  font-weight: 600;
}

[data-theme="dark"] .footer-social .social-link {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .contact-item i {
  background: rgba(0, 123, 255, 0.2);
}

[data-theme="dark"] .newsletter-section {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.05);
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .contact-item {
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }

  .contact-item i {
    margin: 0 auto;
  }

  .newsletter-section {
    text-align: center;
  }

  .newsletter-form .input-group {
    flex-direction: column;
  }

  .newsletter-form .btn {
    border-radius: 10px;
    margin-top: 1rem;
  }

  .footer-bottom-links {
    justify-content: center;
    margin-top: 1rem;
  }

  .copyright {
    text-align: center;
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .footer-bottom-links {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .footer-social {
    gap: 0.5rem;
  }

  .footer-social .social-link {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* Footer Animation */
.footer-section {
  animation: fadeInUp 0.6s ease;
}

.footer-section:nth-child(1) {
  animation-delay: 0.1s;
}
.footer-section:nth-child(2) {
  animation-delay: 0.2s;
}
.footer-section:nth-child(3) {
  animation-delay: 0.3s;
}
.footer-section:nth-child(4) {
  animation-delay: 0.4s;
}

.newsletter-section {
  animation: fadeInUp 0.6s ease 0.5s both;
}

.footer-bottom {
  animation: fadeInUp 0.6s ease 0.6s both;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content h2 {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-profile {
    width: 250px;
    height: 250px;
  }

  .floating-icon {
    width: 40px;
    height: 40px;
  }

  .service-card,
  .portfolio-item,
  .blog-card,
  .contact-info {
    margin-bottom: 1rem;
  }

  .testimonials-carousel {
    gap: 1rem;
  }

  .testimonial-item {
    min-width: 300px;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }

  .portfolio-filters .btn {
    margin: 0.25rem;
    font-size: 0.9rem;
  }

  .social-links {
    flex-wrap: wrap;
  }
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
  --dark-color: #ffffff;
  --light-color: #2d3748;
  --white-color: #1a202c;
  --secondary-color: #a0aec0;
}

[data-theme="dark"] body {
  background: var(--white-color);
  color: var(--dark-color);
}

[data-theme="dark"] .navbar {
  background: rgba(26, 32, 44, 0.95);
}

[data-theme="dark"] .service-card,
[data-theme="dark"] .portfolio-item,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .contact-info,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .testimonial-content {
  background: var(--light-color);
  color: var(--dark-color);
}

[data-theme="dark"] .form-control {
  background: var(--light-color);
  border-color: #4a5568;
  color: var(--dark-color);
}

/* ===== UTILITY CLASSES ===== */
.text-primary {
  color: var(--primary-color) !important;
}
.text-secondary {
  color: var(--secondary-color) !important;
}
.text-success {
  color: var(--success-color) !important;
}
.text-warning {
  color: var(--warning-color) !important;
}
.text-danger {
  color: var(--danger-color) !important;
}
.text-info {
  color: var(--info-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}
.bg-secondary {
  background-color: var(--secondary-color) !important;
}
.bg-success {
  background-color: var(--success-color) !important;
}
.bg-warning {
  background-color: var(--warning-color) !important;
}
.bg-danger {
  background-color: var(--danger-color) !important;
}
.bg-info {
  background-color: var(--info-color) !important;
}
.bg-purple {
  background-color: var(--purple-color) !important;
}

/* ===== SMOOTH SCROLLING ===== */
html {
  scroll-behavior: smooth;
}

/* ===== LOADING ANIMATION ===== */
.loading {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.loading.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ENHANCED STATS SECTION ===== */
.bg-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.bg-gradient::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
  background-size: cover;
  animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
  0%,
  100% {
    transform: translateX(0) translateY(0);
  }
  25% {
    transform: translateX(-10px) translateY(-5px);
  }
  50% {
    transform: translateX(5px) translateY(-10px);
  }
  75% {
    transform: translateX(-5px) translateY(5px);
  }
}

.stat-card {
  background-color: #ffffff;
  backdrop-filter: blur(15px);
  border-radius: 25px;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.8s ease;
  z-index: 1;
}

.stat-card:hover::before {
  left: 100%;
}

.stat-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.stat-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%
  );
  pointer-events: none;
  z-index: 0;
}

.stat-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2.5rem;
  color: #333;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: 3px solid rgba(255, 255, 255, 0.3);
}
.stat-label p:hover {
  color: #17a2b8;
}

.stat-card:hover .stat-icon {
  transform: scale(1.15) rotate(360deg);
  background: linear-gradient(135deg, #ffffff, #e9ecef);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
}

.stat-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: #1a202c;
  margin-bottom: 0.75rem;

  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1;
  letter-spacing: -1px;
  position: relative;
}

.stat-number::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffffff, #f8f9fa);
  border-radius: 2px;
  transition: width 0.5s ease;
}

.stat-card:hover .stat-number::after {
  width: 60px;
}

.stat-label {
  color: #ee7027;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  z-index: 2;
}

.stat-progress {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  margin-top: auto;
  color: #007bff;
}

.stat-progress .progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4caf50, #45a049);
  border-radius: 4px;
  transition: width 2.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  color: #007bff;
}

.stat-progress .progress-bar.bg-danger {
  background: linear-gradient(90deg, #f44336, #d32f2f);
}

.stat-progress .progress-bar[data-progress="85"] {
  background: linear-gradient(90deg, #2196f3, #1976d2);
}

.stat-progress .progress-bar[data-progress="75"] {
  background: linear-gradient(90deg, #ff9800, #f57c00);
}

.stat-progress .progress-bar[data-progress="95"] {
  background: linear-gradient(90deg, #4caf50, #388e3c);
}

.stat-progress .progress-bar[data-progress="60"] {
  background: linear-gradient(90deg, #9c27b0, #7b1fa2);
}

.stat-progress .progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(248, 4, 4, 0.6),
    transparent
  );
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Enhanced Stats Animation */
.stat-card {
  animation: fadeInUp 1s ease;
  opacity: 0;
  transform: translateY(40px);
}

.stat-card:nth-child(1) {
  animation-delay: 0.1s;
}
.stat-card:nth-child(2) {
  animation-delay: 0.2s;
}
.stat-card:nth-child(3) {
  animation-delay: 0.3s;
}
.stat-card:nth-child(4) {
  animation-delay: 0.4s;
}

.stat-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Floating animation for stat cards */
.stat-card {
  animation: statFloat 8s ease-in-out infinite;
}

.stat-card:nth-child(1) {
  animation-delay: 0s;
}
.stat-card:nth-child(2) {
  animation-delay: 2s;
}
.stat-card:nth-child(3) {
  animation-delay: 4s;
}
.stat-card:nth-child(4) {
  animation-delay: 6s;
}

@keyframes statFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Pulse animation for icons */
.stat-icon {
  animation: iconPulse 3s ease-in-out infinite;
}

.stat-card:nth-child(1) .stat-icon {
  animation-delay: 0s;
}
.stat-card:nth-child(2) .stat-icon {
  animation-delay: 0.75s;
}
.stat-card:nth-child(3) .stat-icon {
  animation-delay: 1.5s;
}
.stat-card:nth-child(4) .stat-icon {
  animation-delay: 2.25s;
}

@keyframes iconPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Ripple effect for click */
@keyframes rippleEffect {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .stat-card {
    margin-bottom: 1.5rem;
    padding: 2rem 1.5rem;
    min-height: 250px;
  }

  .stat-number {
    font-size: 3rem;
    color: #007bff;
  }

  .stat-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }

  .stat-label {
    font-size: 1rem;
    letter-spacing: 1px;
  }
}

@media (max-width: 576px) {
  .stat-card {
    padding: 1.5rem 1rem;
    min-height: 220px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-label {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
  }

  .stat-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* Dark mode adjustments */
[data-theme="dark"] .stat-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .stat-icon {
  background: linear-gradient(135deg, #2d3748, #4a5568);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .stat-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .stat-card:hover .stat-icon {
  background: linear-gradient(135deg, #2d3748, #718096);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Enhanced section title for stats */
#stats .section-title {
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
}

#stats .section-title::after {
  background: linear-gradient(90deg, #ffffff, #f8f9fa);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#stats .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Enhanced accessibility and interaction styles */
.stat-card {
  cursor: pointer;
  user-select: none;
  outline: none;
}

.stat-card:focus {
  outline: 3px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
  transform: translateY(-5px) scale(1.02);
}

.stat-card:focus:not(:focus-visible) {
  outline: none;
}

.stat-card:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
}

/* Enhanced hover states for better visual feedback */
.stat-card:hover .stat-icon {
  animation: iconPulse 0.6s ease;
}

.stat-card:hover .stat-number {
  animation: numberGlow 0.6s ease;
}

@keyframes numberGlow {
  0%,
  100% {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  }
}

/* Improved loading states */
.stat-card.loading {
  opacity: 0.7;
  pointer-events: none;
}

.stat-card.loading .stat-icon {
  animation: loadingSpin 1s linear infinite;
}

@keyframes loadingSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Enhanced mobile touch feedback */
@media (hover: none) and (pointer: coarse) {
  .stat-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }

  .stat-card:active .stat-icon {
    transform: scale(1.1);
  }
}

/* Improved contrast for better readability */
.stat-label {
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Enhanced progress bar animations */
.stat-progress .progress-bar {
  position: relative;
  overflow: hidden;
}

.stat-progress .progress-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Enhanced particle effects */
.floating-particle {
  pointer-events: none;
  z-index: 1;
}

/* Improved responsive behavior */
@media (max-width: 768px) {
  .stat-card {
    margin-bottom: 1.5rem;
    padding: 2rem 1.5rem;
    min-height: 250px;
  }

  .stat-number {
    font-size: 3rem;
  }

  .stat-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }

  .stat-label {
    font-size: 1rem;
    letter-spacing: 1px;
  }
}

@media (max-width: 576px) {
  .stat-card {
    padding: 1.5rem 1rem;
    min-height: 220px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-label {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
  }

  .stat-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* Dark mode adjustments */
[data-theme="dark"] .stat-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .stat-icon {
  background: linear-gradient(135deg, #2d3748, #4a5568);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .stat-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .stat-card:hover .stat-icon {
  background: linear-gradient(135deg, #2d3748, #718096);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ===== CV DOWNLOAD BUTTON ===== */
.btn-outline-primary[href*="Professional Resume Web Developer"] {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #007bff, #0056b3);
  border: 2px solid #007bff;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-outline-primary[href*="Professional Resume Web Developer"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
  background: linear-gradient(135deg, #0056b3, #004085);
  border-color: #0056b3;
  color: white;
}

.btn-outline-primary[href*="Professional Resume Web Developer"]:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-outline-primary[href*="Professional Resume Web Developer"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-outline-primary[href*="Professional Resume Web Developer"]:hover::before {
  left: 100%;
}

.btn-outline-primary[href*="Professional Resume Web Developer"] i {
  transition: transform 0.3s ease;
}

.btn-outline-primary[href*="Professional Resume Web Developer"]:hover i {
  transform: translateY(-1px);
}

/* Loading state for download button */
.btn-outline-primary[href*="Professional Resume Web Developer"]:disabled,
.btn-outline-primary[href*="Professional Resume Web Developer"][style*="pointer-events: none"] {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-outline-primary[href*="Professional Resume Web Developer"] .fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ===== HERO TITLE IMMEDIATE DISPLAY ===== */
.hero-title {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* ===== SKILLS CAROUSEL ===== */
.skills-carousel {
  position: relative;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 600;
}

.skills-carousel::after {
  content: "|";
  animation: blink 1s infinite;
  margin-left: 2px;
  color: var(--primary-color);
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}
.testimonial-card {
  background: var(--light-color);
  color: var(--dark-color);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
