* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Preloader styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  /* change for dark mode if needed */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: #007bff;
}

/* Dots animation */
.loader-text .dots::after {
  content: "";
  display: inline-block;
  animation: dots 1s steps(3, end) infinite;
}

@keyframes dots {
  0% {
    content: "";
  }

  33% {
    content: ".";
  }

  66% {
    content: "..";
  }

  100% {
    content: "...";
  }
}


html {
  scroll-behavior: smooth;
}


body {
  font-family: sans-serif;
  background: #fdfdfd;
  color: #333;
  line-height: 1.6;
  transition: all 0.3s ease;
}

body.dark-mode {
  background: #1e1e1e;
  color: #f0f0f0;
}

/* Header */

header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #333;
  color: white;
  padding: 1rem;
  transition: all 0.3s ease;
}

/* Optional: Add subtle shadow when scrolling */
header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}


header.dark-mode {
  background: #111;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#navLinks a.active {
  color: #4facfe;
}

#navLinks a.active::after {
  width: 100%;
}


#darkModeToggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: inherit;
  transition: transform 0.3s ease, filter 0.3s ease;
}

#darkModeToggle:hover {
  transform: scale(1.3) rotate(15deg);
  filter: brightness(1.3);
}

#darkModeToggle:focus {
  outline: none;
}

/* Optional: Add a subtle glow when dark mode is active */
body.dark-mode #darkModeToggle {
  filter: drop-shadow(0 0 6px #4facfe);
}


#hamburger {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  display: none;
}

#navLinks {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

#navLinks a {
  position: relative;
  text-decoration: none;
  color: white;
  font-weight: bold;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}

#navLinks a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background-color: #4facfe;
  transition: width 0.3s ease;
}

#navLinks a:hover::after {
  width: 100%;
}

#navLinks a:hover {
  color: #4facfe;
}


/* Hero Section */
.hero-section {
  background: #007bff;
  color: white;
  padding: 4rem 1rem;
  text-align: center;
}

.tech-icons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.8rem;
  color: #ffffff;
  /* Light for dark backgrounds */
  align-items: center;
  justify-content: center;
}

.tech-icons i {
  transition: transform 0.3s ease, color 0.3s ease;
  cursor: default;
}

.tech-icons i:hover {
  transform: scale(1.2);
  color: #ffd700;
  /* gold on hover */
}

@media (max-width: 768px) {
  .tech-icons {
    flex-direction: row;
    gap: 1rem;
    margin-top: 1rem;
  }
}

.tech-icons {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #ffffff;
}

.icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.icon-box i {
  font-size: 2rem;
  margin-bottom: 0.3rem;
  transition: color 0.3s ease;
}

.icon-box span {
  font-size: 0.9rem;
  color: #f0f0f0;
  font-weight: 500;
}

.icon-box:hover {
  transform: scale(1.1);
}

.icon-box:hover i {
  color: #ffd700;
}

@media (max-width: 768px) {
  .tech-icons {
    flex-direction: row;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
  }

  .icon-box span {
    font-size: 0.8rem;
  }
}

.icon-box .fa-python {
  color: #FFD343;
}

/* Yellow-gold */
.icon-box .fa-database {
  color: #eaeaea;
}

/* SQL soft light */
.icon-box .fa-chart-bar {
  color: #f2c811;
}

/* Power BI gold */
.icon-box .fa-github {
  color: #181717;
}

/* GitHub black */
.icon-box .fa-react {
  color: #61DBFB;
}

/* React cyan */

.icon-box:hover i {
  transform: scale(1.2);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
}


.hero-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.profile-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-text {
  max-width: 500px;
}

.hero-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.btn {
  background: white;
  color: #007bff;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: bold;
  display: inline-block;
  transition: background 0.3s ease, color 0.3s ease;
  text-decoration: none;
  /* 👈 This removes underline */
}

.btn:hover {
  background: #f0f0f0;
  color: #0056b3;
  text-decoration: none;
  /* 👈 Just in case */
}

/* Dark mode for hero */
body.dark-mode .hero-section {
  background: #2a2a2a;
  color: #f0f0f0;
}

body.dark-mode .btn {
  background: #4facfe;
  color: #000;
  text-decoration: none;
}


/* Portfolio Section */
#portfolio {
  background: #fafafa;
  text-align: center;
  padding: 4rem 1rem;
}

.portfolio-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

#about {
  background: #fafafa;
  padding: 4rem 1rem;
  text-align: center;
}

#about h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

#about p {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* Dark mode */
body.dark-mode #about {
  background: #2a2a2a;
  color: #f0f0f0;
}


.card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  max-width: 300px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  background: #fdfdfd;
}

.card:hover h3,
.card:hover p {
  color: #007bff;
}


.card::after {
  content: "Click to view";
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-size: 0.8rem;
  color: #007bff;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Show when in-view on mobile */
.card.show-label::after {
  opacity: 1;
}


.card:hover::after {
  opacity: 1;
}


.card img {
  width: 100%;
  border-radius: 10px;
}

.card h3 {
  margin: 0.8rem 0 0.4rem;
}

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

.card:active {
  transform: scale(0.97);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* Dark Mode for Portfolio Cards */
body.dark-mode #portfolio {
  background: #2a2a2a;
  color: #f0f0f0;
}

body.dark-mode .card {
  background: #1e1e1e;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}

body.dark-mode .card:hover h3,
body.dark-mode .card:hover p,
body.dark-mode .card::after {
  color: #4facfe;
}


/* For project detail pages */
#project-details .container {
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Add margin above and below section */
#project-details {
  padding: 4rem 1rem;
  background: #f8f8f8;
}

/* Dark mode support */
body.dark-mode #project-details .container {
  background: #1f1f1f;
  color: #f0f0f0;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

#project-details .btn {
  display: inline-block;
  margin-top: 1rem;
  text-align: center;
}

/* Experience Section */
#experience {
  background: #f9f9f9;
  text-align: center;
}

#experience h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.experience-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.experience-card {
  background: #f5f5f5;
  color: #333;
  padding: 2rem;
  border-radius: 15px;
  max-width: 700px;
  width: 100%;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

.experience-card h3 {
  margin-bottom: 0.3rem;
  color: #007bff;
}

.experience-card h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  font-weight: 500;
  color: #555;
}

.experience-card h4 span {
  font-weight: normal;
  font-size: 0.9rem;
  color: #888;
}

.experience-card p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 0.7rem;
}

.experience-card ul {
  padding-left: 1.2rem;
  color: #333;
  line-height: 1.5;
}

.card img {
  width: 100%;
  height: 200px;
  /* Adjust height as needed */
  object-fit: cover;
  /* Crops to fit neatly */
  border-radius: 10px;
}


/* Dark Mode for Experience */
body.dark-mode #experience {
  background: #2a2a2a;
  color: #f0f0f0;
}

body.dark-mode .experience-card {
  background: #1c1c1c;
  color: #f0f0f0;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}

body.dark-mode .experience-card h4 span {
  color: #aaa;
}


body.dark-mode .experience-card p,
body.dark-mode .experience-card li,
body.dark-mode .experience-card h4,
body.dark-mode .experience-card .company {
  color: #ccc;
  /* or #f0f0f0 if needed */
}

body.dark-mode .experience-card .icon {
  color: #f08fff;
}

/* CTA Section */
#cta {
  background: #fff;
  text-align: center;
  padding: 4rem 1rem;
}

#cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

#cta p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

#cta .btn {
  background: #007bff;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: bold;
  transition: background 0.3s ease;
}

#cta .btn:hover {
  background: #0056b3;
}

/* Contact Section */
#contact {
  background: #fafafa;
  text-align: center;
  padding: 4rem 1rem;
}

#contact a {
  color: #007bff;
  font-weight: 500;
  text-decoration: none;
  margin: 0.5rem 1rem;
  display: inline-block;
  transition: color 0.3s ease;
}

#contact a:hover {
  text-decoration: underline;
  color: #0056b3;
}

.contact-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Dark Mode for CTA & Contact */
body.dark-mode #cta,
body.dark-mode #contact {
  background: #2a2a2a;
  color: #f0f0f0;
}

body.dark-mode #contact a {
  color: #4facfe;
}


footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  #hamburger {
    display: block;
  }

  #navLinks {
    flex-direction: column;
    background: #333;
    width: 100%;
    display: none;
    margin-top: 1rem;
  }

  #navLinks.show {
    display: flex;
  }
}

a {
  text-decoration: none;
  color: inherit;
}

@media (max-width: 768px) {
  #navLinks {
    flex-direction: column;
    background-color: #333;
    width: 100%;
    display: none;
    padding: 1rem;
    margin-top: 1rem;
  }

  #navLinks.show {
    display: flex;
    animation: slideDown 0.3s ease-out;
  }

  #hamburger {
    display: block;
  }
}

/* Ripple container */
.card {
  position: relative;
  overflow: hidden;
  /* hides ripple overflow */
}

/* Ripple circle */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 123, 255, 0.3);
  /* Blue ripple */
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
  z-index: 1;
}

/* Animation */
@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

#scrollTopBtn {
  position: fixed;
  bottom: 40px;
  right: 30px;
  z-index: 999;
  font-size: 1.5rem;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 50%;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#scrollTopBtn:hover {
  background-color: #0056b3;
  transform: scale(1.1);
}

#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
}

#typed-text {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  display: inline-block;
  margin-top: 0.5rem;
}

body.dark-mode #typed-text {
  color: #4facfe;
}

.typed-wrapper {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffd700;
  margin: 0.5rem 0;
  min-height: 1.5rem;
}

/* Optional: make it more visible on dark mode */
body.dark-mode .typed-wrapper {
  color: #4facfe;
}

.site-title {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-title:hover {
  color: #4facfe;
}