body {
  font-family: Arial, sans-serif;
  background-color: #f8f8f8;
  color: black;
  margin: 0;
  padding: 0;
  
}

/* Header */
header {
  background-color: #222;
  color: #fff;
  padding: 2rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header .logo {
  width: 120px; /* increased from 80px */
  height: auto;
  margin-bottom: 10px;
  transition: 0.3s; /* smooth resize if needed */
}


header h1 {
  margin: 0;
  font-size: 2.5rem;
  text-align: center;
}

header p {
  color: #bbb;
  text-align: center;
}

#modeToggle {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #444;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
}

/* Sections */
section {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1rem 2rem;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Skills */
.skills ul {
  list-style: none;
  padding-left: 0;
  columns: 2;
}

.skills li {
  padding: 0.4rem 0;
}

/* Footer */
footer {
  background-color: #222;
  color: #ccc;
  text-align: center;
  padding: 1rem;
}

/* Swiper */
.swiper {
  padding: 20px 0 40px;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  max-width: 250px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Contact Section */
.contact {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1rem 2rem;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact input,
.contact textarea {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
}

.contact button {
  background-color: #222;
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 5px;
  transition: 0.3s;
}

.contact button:hover {
  background-color: #555;
}

/* Floating Icons */
.floating-icons {
  position: fixed;
  bottom: 80px; /* instead of 20px */
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10000;
  background-color: transparent;
}


.floating-icons a img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}

.floating-icons a img:hover {
  transform: scale(1.1);
}

/* Dark Mode */
body.dark-mode {
  background-color: #1e1e1e;
  color: #e0e0e0;
}

body.dark-mode section {
  background-color: #2a2a2a;
}

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

body.dark-mode footer {
  background-color: #111;
  color: #999;
}

body.dark-mode input,
body.dark-mode textarea {
  background-color: #333;
  color: #fff;
  border-color: #555;
}

body.dark-mode .swiper-button-prev,
body.dark-mode .swiper-button-next {
  color: #eee;
}

body.dark-mode .swiper-pagination-bullet-active {
  background-color: #eee;
}

/* Mobile */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.8rem;
  }

  .skills ul {
    columns: 1;
  }

  .swiper-slide img {
    max-width: 180px;
  }

  section {
    padding: 1rem;
    margin: 1rem;
  }

  #modeToggle {
    top: 10px;
    right: 10px;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  header p {
    font-size: 0.9rem;
  }

  .swiper-slide img {
    max-width: 150px;
  }

  .contact input,
  .contact textarea {
    font-size: 0.9rem;
  }

  .contact button {
    padding: 8px;
    font-size: 0.9rem;
  }
}

/* Header Flex Layout */
header {
  background-color: #222;
  color: #fff;
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 15px; /* space between logo and text */
  flex-wrap: wrap; /* wraps on small screens */
}

header .logo {
  width: 120px; /* larger logo */
  height: auto;
  transition: 0.3s;
}

.header-text h1 {
  margin: 0;
  font-size: 2.5rem;
}

.header-text p {
  color: black;
  margin: 5px 0 0 0;
}

/* Dark/Light Mode button */
#modeToggle {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #444;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column; /* stack logo on top for smaller screens */
    align-items: center;
  }
  header .logo {
    width: 100px;
  }
  .header-text h1 {
    font-size: 1.8rem;
    text-align: center;
  }
  .header-text p {
    text-align: center;
  }
}

@media (max-width: 480px) {
  header .logo {
    width: 80px;
  }
  .header-text h1 {
    font-size: 1.5rem;
  }
  .header-text p {
    font-size: 0.9rem;
  }
}

.profileSwiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profileSwiper .swiper-slide img {
  width: 100%;
  height: 350px;         /* fixed equal height */
  object-fit: cover;     /* crop to fit box, keeps images equal */
  border-radius: 10px;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Responsive sizes */
@media (max-width: 768px) {
  .profileSwiper .swiper-slide img {
    height: 250px;   /* smaller for mobile */
  }
}

@media (min-width: 1200px) {
  .profileSwiper .swiper-slide img {
    height: 450px;   /* larger for big desktop */
  }
}

/* remove background from swiper */
.swiper,
.swiper-wrapper,
.swiper-slide {
  background: none !important;
}


/* LIGHT MODE (default) */
header,
header .header-content {
  background: #d9d9d9;          /* same gray */
  color: #000000;
  border-bottom: 2px solid #888;
}

header .header-text {
  color: #000000;
}

div {
  background-color: #cfcfcf;
}

/* EXCEPT swiper */
.swiper, .swiper-wrapper, .swiper-slide {
  background: none !important;
}

/* DARK MODE */
body.dark-mode header,
body.dark-mode header .header-content {
  background: #121212;
  color: #ffffff;
  border-bottom: 2px solid #333;
}

body.dark-mode header .header-text {
  color: #ffffff;
}

body.dark-mode div {
  background-color: transparent;
}

/* EXCEPT swiper */
body.dark-mode .swiper,
body.dark-mode .swiper-wrapper,
body-dark-mode .swiper-slide {
  background: none !important;
}

/* ===== LIGHT MODE ===== */
header .header-text {
  color: #000000;
  background: none !important;   /* removed background */
}

/* ===== DARK MODE ===== */
body.dark-mode header .header-text {
  color: #ffffff;
  background: none !important;   /* removed background */
}

/* Default (light mode) */
.header-text p {
  color: #000;   /* black in light mode */
}

/* Dark mode only */
body.dark-mode .header-text p {
  color: #fff;   /* white in dark mode */
}


/* Light Mode */
.highlight {
  font-weight: 700; /* thicker text */
  color: #003399;   /* deep bold blue */
  transition: color 0.3s ease;
}

.highlight:hover {
  color: #ff9800;   /* strong red-orange on hover */
  cursor: alias;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  .highlight {
    font-weight: 700;
    color: #00bfa6; /* soft blue for dark mode */
  }

  .highlight:hover {
    color: #ff9800; /* warm orange on hover */
    cursor: alias;
  }
}


.bi {
  vertical-align: middle;
  margin-right: 8px;
  font-size: 1.3rem;
  transition: color 0.3s ease, transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* bounce effect */
  display: inline-block;
}

/* Light Mode Colors */
body:not(.dark-mode) .bi {
  color: #003399;
}

body:not(.dark-mode) .bi:hover {
  color: #ff6600;
}

/* Dark Mode Colors */
body.dark-mode .bi {
  color: #66b2ff;
}

body.dark-mode .bi:hover {
  color: #ff9933;
}

/* Individual hover transforms with bounce */
.bi-person-circle:hover { transform: scale(1.2) rotate(-10deg); }  /* About Me */
.bi-tools:hover { transform: scale(1.2) rotate(10deg); }           /* Skills */
.bi-image:hover { transform: scale(1.2) rotate(-8deg); }           /* Profile Pictures */
.bi-envelope:hover { transform: scale(1.2) rotate(8deg); }         /* Contact Me */
.bi-chat-dots:hover { transform: scale(1.2) rotate(-12deg); }      /* Send Message */
.bi-folder2-open:hover { transform: scale(1.2) rotate(12deg); }    /* My Projects */




