/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #333;
}

html {
  scroll-behavior: smooth;
}

/* Custom Colors */
:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #f093fb;
  --dark-color: #2c3e50;
  --light-color: #ecf0f1;
  --success-color: #27ae60;
  --warning-color: #f39c12;
}

/* Navigation Styles */
/* Navbar container */
.navbar {
  transition: all 0.3s ease;
  padding: 1.2rem 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.05rem; /* global font size */
}

/* Scrolled navbar style */
.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Brand styling */
.navbar-brand {
  font-weight: 900;
  font-size: 2.2rem;
  background: linear-gradient(45deg, #222, var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

/* Navigation links */
.nav-link {
  font-weight: 900;
  margin: 0 0.75rem;
  font-size: 1.1rem;
  color: #222;
  transition: all 0.3s ease;
}

/* Hover effect */
.nav-link:hover {
  color: var(--primary-color) !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Active link */
.nav-link.active {
  color: var(--primary-color) !important;
  font-weight: 700;
  border-bottom: 2px solid var(--primary-color);
}

/* Optional: Increase visibility on small screens */
.navbar-toggler-icon {
  filter: brightness(0.4);
}


/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::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 h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
}

.hero .lead {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.2s both;
  font-weight: 450;
}

.hero .mb-4 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  animation: fadeInUp 1s ease 0.3s both;
}
.hero .btn {
  animation: fadeInUp 1s ease 0.4s both;
}

.profile-img {
  width: 500px;
  height: 700px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.2);
  animation: fadeInRight 1s ease 0.3s both;
}

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

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

/* Section Styling */
.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.section-title::after {
  content: "";
  width: 50px;
  height: 3px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

/* About Section */
.about-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
}

/* Skills Section */
.skill-category {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
}

.skill-category h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Projects Section */
.project-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 1.5rem;
  position: relative;
}

/* Project Card Styling */
.project-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.project-image {
  width: 100%;
  height: 250px; /* Increased height for better visibility */
  overflow: hidden;
  border-bottom: 1px solid #eee;
  position: relative;
}

.project-image img {
  width: 100%;
  height: auto;
  min-height: 100%;
  object-position: top; /* Ensures the top of the image is always visible */
  transition: transform 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
}

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

.project-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
  padding: 0 1.25rem;
  margin-top: 1rem;
}

.project-stack {
  font-size: 0.9rem;
  opacity: 0.9;
}

.project-content {
  padding: 1.5rem;
}

.project-features {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.project-features li {
  padding: 0.3rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.project-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-status {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.status-completed {
  background: rgba(39, 174, 96, 0.1);
  color: var(--success-color);
}

.status-in-progress {
  background: rgba(243, 156, 18, 0.1);
  color: var(--warning-color);
}

/* Certificates Section */
.certificate-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  margin-bottom: 2rem;
}

.certificate-card:hover {
  transform: translateY(-5px);
}

.certificate-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.certificate-badge {
  display: inline-block;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

/* Contact Section */
.contact {
  background: var(--light-color);
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 2rem;
  border-radius: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-item i {
  font-size: 1.5rem;
  margin-right: 1rem;
  width: 30px;
}

/* Footer */
.footer {
  background: var(--dark-color);
  color: white;
  text-align: center;
  padding: 2rem 0;
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  margin: 0 1rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-color);
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 500;
  transition: transform 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.75rem 2rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
  padding: 0.75rem 2rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .lead {
    font-size: 1.1rem;
  }

  .profile-img {
    width: 250px;
    height: 250px;
    margin-top: 2rem;
  }

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

  .skill-tags {
    justify-content: center;
  }

  .project-links {
    flex-direction: column;
  }

  .section {
    padding: 3rem 0;
  }

  .skill-category,
  .certificate-card {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }

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

  .profile-img {
    width: 200px;
    height: 200px;
  }

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

  .project-header {
    padding: 1rem;
  }

  .project-content {
    padding: 1rem;
  }

  .contact-form,
  .contact-info {
    padding: 1.5rem;
  }
}

/* Loading Animation */
.loading {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Scroll Indicator */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  transform-origin: left;
  transform: scaleX(0);
  z-index: 9999;
}
