/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: 100px;
  z-index: 1001;
  background: linear-gradient(135deg, #0f1c2c, #1a3c5e, #2a5298);
  color: #ffffff;
  padding: 15px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: fadeIn 2s ease-in;
  overflow: hidden;
}

header::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 100 100"><defs><pattern id="stars" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
  opacity: 0.3;
}

header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 5px;
  background: linear-gradient(45deg, #ffd700, #ffffff, #ff6f61);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
  position: relative;
  z-index: 2;
}

header h1 img {
  height: clamp(30px, 5vw, 60px);
  vertical-align: middle;
  margin-right: 10px;
}

header p {
  font-size: clamp(0.7rem, 1.5vw, 1rem);
  opacity: 0.9;
  position: relative;
  z-index: 2;
  margin-top: 5px;
  color: #c0bcbc;
}

/* Hamburger Menu Button */
.menu-toggle {
  display: none;
  position: fixed;
  top: 25px;
  right: 15px;
  z-index: 1002;
  background: rgba(26, 60, 94, 0.95);
  border: none;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hamburger {
  width: 25px;
  height: 20px;
  position: relative;
  transition: 0.3s ease-in-out;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #ffd700;
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transition: 0.3s ease-in-out;
}

.hamburger span:nth-child(1) { top: 0px; }
.hamburger span:nth-child(2) { top: 7px; }
.hamburger span:nth-child(3) { top: 14px; }

.hamburger.active span:nth-child(1) {
  top: 8px;
  transform: rotate(135deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.hamburger.active span:nth-child(3) {
  top: 8px;
  transform: rotate(-135deg);
}

/* Navbar Styles */
nav {
  position: fixed;
  top: 100px;
  left: 0;
  right: 0;
  height: 50px;
  z-index: 1000;
  background: rgba(26, 60, 94, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

nav a {
  color: #b0c4de;
  margin: 0 20px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
}

nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #ff6f61, #ffd700);
  border-radius: 20px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
  z-index: -1;
}

nav a:hover::before {
  opacity: 1;
  transform: scale(1);
}

nav a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Body and Background */
body {
  padding-top: 150px;
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  margin: 0;
  background: linear-gradient(135deg, #0f1729, #1a2332, #243447);
  color: #e0e6ed;
  overflow-x: hidden;
  position: relative;
}

/* Animated Background Particles */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 50%;
  animation: float 15s infinite linear;
}

@keyframes float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Slideshow Styles */
.slideshow-wrapper {
  display: flex;
  gap: 20px;
  margin: 30px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.slideshow-container-left,
.slideshow-container-right {
  flex: 1;
  height: 400px;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 215, 0, 0.2);
}

.slides-track {
  display: flex;
  flex-direction: column;
  animation: scrollUp 18s linear infinite;
}

@keyframes scrollUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.mySlides {
  position: relative;
  min-height: 400px;
}

.slide-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  filter: brightness(85%) contrast(1.1);
}

.caption {
  color: #ffffff;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 600;
  padding: 20px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

/* Section Styles */
section {
  padding: 35px 30px;
  background: rgba(26, 35, 70, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  margin: 30px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: bounceIn 1.8s ease-out;
  border: 1px solid rgba(255, 215, 0, 0.1);
  position: relative;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(45deg, #ff6f61, #ffd700);
  border-radius: 0 0 2px 2px;
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.stat-card {
  background: rgba(255, 107, 97, 0.1);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255, 107, 97, 0.2);
  transition: transform 0.3s ease;
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #ffd700;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: #b0c4de;
  margin-top: 5px;
}

/* Contact Form */
.contact-form {
  max-width: 500px;
  margin: 20px auto 0;
  animation: slideUp 1.5s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin: 15px 0;
  border: 2px solid rgba(255, 215, 0, 0.2);
  border-radius: 10px;
  background: rgba(42, 64, 102, 0.6);
  color: #e0e0e0;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(224, 224, 224, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #ff6f61;
  background: rgba(58, 94, 126, 0.8);
  outline: none;
  box-shadow: 0 0 20px rgba(255, 107, 97, 0.3);
}

.contact-form button {
  background: linear-gradient(45deg, #ff6f61, #ffd700);
  color: #ffffff;
  padding: 15px 30px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(255, 107, 97, 0.4);
}

.contact-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 97, 0.6);
}

.contact-form p {
  margin: 12px 0;
  font-size: 1rem;
}

.contact-form a {
  color: #4a90e2;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.contact-form a:hover {
  color: #ff6f61;
}

/* Contact Info */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.contact-item i {
  font-size: 1.2rem;
  color: #ffd700;
  width: 20px;
}

section#contact {
  margin-bottom: 120px;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #0f1c2c, #1a3c5e);
  color: #b0c4de;
  text-align: center;
  padding: 20px;
  position: static; /* Changed from fixed to static */
  width: 100%;
  animation: fadeIn 2s ease-in;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  z-index: 10; /* Retained for layering */
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* Retained for consistency */
}
/* Ensure main-container doesn't stretch beyond viewport unnecessarily */
.main-container {
  min-height: calc(100vh - 60px); /* Adjusted for footer height (approx 20px padding * 2 + content) */
  padding-bottom: 60px; /* Space for footer */
}

/* Define fadeIn animation used in footer */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .main-container {
    min-height: calc(100vh - 50px);
    padding-bottom: 50px;
  }
}

@media (max-width: 480px) {
  .main-container {
    min-height: calc(100vh - 40px);
    padding-bottom: 40px;
  }
}
/* Headings */
h2 {
  font-family: 'Playfair Display', serif;
  color: #ffd700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(45deg, #ff6f61, #ffd700);
  border-radius: 2px;
}

/* Ordered List */
ol {
  counter-reset: obj-counter;
  list-style: none;
  padding: 0;
}

ol li {
  counter-increment: obj-counter;
  margin: 15px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border-left: 4px solid #ff6f61;
  position: relative;
  font-size: 1rem;
  line-height: 1.6;
}

ol li::before {
  content: counter(obj-counter);
  position: absolute;
  left: -15px;
  top: 20px;
  background: linear-gradient(45deg, #ff6f61, #ffd700);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Keyframe Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Styles */
@media (max-width: 768px) {
  header {
    min-height: 80px;
    padding: 10px;
  }

  body {
    padding-top: 80px;
  }

  nav {
    top: 80px;
    left: -100%;
    width: 250px;
    height: calc(100vh - 80px);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 20px;
    transition: left 0.3s ease-in-out;
    background: rgba(15, 28, 44, 0.98);
  }

  nav.active {
    left: 0;
  }

  nav a {
    display: block;
    margin: 5px 0;
    padding: 15px 20px;
    width: 100%;
    text-align: left;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    background: rgba(42, 82, 152, 0.1);
  }

  nav a:hover {
    background: rgba(42, 82, 152, 0.3);
    border-color: #ff6f61;
  }

  .menu-toggle {
    display: block;
    top: 25px;
    right: 15px;
  }

  .slideshow-wrapper {
    flex-direction: column;
    padding: 0 10px;
  }

  .slideshow-container-left,
  .slideshow-container-right {
    width: 100%;
    height: 250px;
    margin-bottom: 20px;
  }

  .slide-img,
  .mySlides {
    height: 250px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  section {
    margin: 20px 10px;
    padding: 25px 20px;
  }

  ol li {
    padding: 15px;
    margin: 10px 0;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
  }

  header p {
    font-size: clamp(0.6rem, 1.5vw, 0.8rem);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  nav {
    width: 280px;
  }

  nav a {
    font-size: 0.9rem;
    padding: 12px 15px;
  }
}/* [Previous styles for header, navbar, body, etc. remain unchanged] */

/* Slideshow Styles */
.slideshow-wrapper {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin: 30px auto;
  max-width: 100%;
  padding: 0 20px;
}

.slideshow-container-left,
.slideshow-container-right {
  flex: 1; /* Equal width for each container (approximately 50%) */
  height: 400px;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 215, 0, 0.2);
}

.slides-track {
  display: flex;
  flex-direction: row;
  width: calc(200% + 10px); /* Account for all slides plus gaps */
  animation: scrollLeft 18s linear infinite;
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.mySlides {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 400px;
  width: calc(100% / 3 - 10px); /* Equal width for each slide */
  margin-right: 10px; /* Gap between slides */
  flex-shrink: 0;
}

.slide-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  filter: brightness(85%) contrast(1.1);
}

.caption {
  color: #ffffff;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 600;
  padding: 20px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

/* [Rest of the section styles, stats grid, contact, footer, etc. remain unchanged] */

/* Mobile Styles */
@media (max-width: 768px) {
  header {
    min-height: 80px;
    padding: 10px;
  }

  body {
    padding-top: 80px;
  }

  nav {
    top: 80px;
    left: -100%;
    width: 250px;
    height: calc(100vh - 80px);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 20px;
    transition: left 0.3s ease-in-out;
    background: rgba(15, 28, 44, 0.98);
  }

  nav.active {
    left: 0;
  }

  nav a {
    display: block;
    margin: 5px 0;
    padding: 15px 20px;
    width: 100%;
    text-align: left;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    background: rgba(42, 82, 152, 0.1);
  }

  nav a:hover {
    background: rgba(42, 82, 152, 0.3);
    border-color: #ff6f61;
  }

  .menu-toggle {
    display: block;
    top: 25px;
    right: 15px;
  }

  .slideshow-wrapper {
    flex-direction: column; /* Stack vertically on mobile */
    padding: 0 10px;
  }

  .slideshow-container-left,
  .slideshow-container-right {
    width: 100%;
    height: 250px;
    margin-bottom: 20px;
  }

  .slides-track {
    width: calc(200% + 10px);
  }

  .slide-img {
    height: 250px;
  }

  .mySlides {
    min-height: 250px;
    width: calc(100% / 3 - 10px);
    margin-right: 10px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  section {
    margin: 20px 10px;
    padding: 25px 20px;
  }

  ol li {
    padding: 15px;
    margin: 10px 0;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 80px;
  }

  header h1 {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
  }

  header p {
    font-size: clamp(0.6rem, 1.5vw, 0.8rem);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  nav {
    width: 280px;
  }

  nav a {
    font-size: 0.9rem;
    padding: 12px 15px;
  }
}.slideshow-wrapper {
  width: 100%;
  overflow: hidden;
}

.slideshow-container {
  width: 100%;
  overflow: hidden;
}

.slides-track {
  display: flex;
  width: max-content;
}

.left-track {
  animation: scrollLeft 40s linear infinite;
}

.right-track {
  animation: scrollRight 40s linear infinite;
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
/* Contact Info */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Reduced min width for flexibility */
  gap: 12px;
  margin-top: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
  min-height: 48px; /* Ensure sufficient tap target */
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.contact-item i {
  font-size: 1.1rem;
  color: #ffd700;
  width: 20px;
  flex-shrink: 0;
}

.contact-item a,
.contact-item span {
  font-size: 0.95rem;
  color: #ffd700; /* Match inline style */
  text-decoration: none;
  word-break: break-word; /* Allow email to wrap */
  overflow-wrap: anywhere; /* Modern alternative to break-all */
  max-width: 100%; /* Prevent overflow */
  line-height: 1.4;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .contact-info {
    grid-template-columns: 1fr; /* Stack vertically */
    gap: 8px;
  }

  .contact-item {
    padding: 10px;
    min-height: 44px; /* Meet WCAG tap target */
  }

  .contact-item a,
  .contact-item span {
    font-size: 0.85rem; /* Smaller font for mobile */
  }

  .contact-item i {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .contact-item {
    padding: 8px;
    min-height: 40px;
  }

  .contact-item a,
  .contact-item span {
    font-size: 0.8rem; /* Further reduce font size */
  }

  .contact-item i {
    font-size: 0.9rem;
  }
}
.developer-info {
  margin-top: 10px;
  font-size: 13px;
  color: #b0bec5;
  font-weight: 400;
}

.portfolio-link {
  color: #ff6f61;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.portfolio-link:hover {
  color: #ffd54f;
  text-shadow: 0 0 10px rgba(255, 213, 79, 0.6);
}

/* Mobile responsiveness for developer info */
@media (max-width: 768px) {
  .developer-info {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .developer-info {
    font-size: 11px;
  }
} .highlight-name {
      color: #ffd54f;
      font-weight: 700;
      text-shadow: 0 0 10px rgba(255, 213, 79, 0.6);
      transition: text-shadow 0.3s ease;
    }