/* 🌤️ Elegant Animated Sky-Blue Background with Glow */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  color: #1a1a1a;
  line-height: 1.7;
  scroll-behavior: smooth;

  /* Soft animated gradient sky-blue background */
  background: linear-gradient(120deg, #b3e5fc, #e1f5fe, #b3e5fc, #81d4fa);
  background-size: 300% 300%;
  animation: skyMove 12s ease-in-out infinite;

  /* Subtle glow effect */
  box-shadow: inset 0 0 150px rgba(0, 180, 255, 0.25);
  min-height: 100vh;
}

/* Smooth shifting animation for the gradient */
@keyframes skyMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Navigation */
nav {
  position: sticky;
  top: 0;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 40px;
  z-index: 100;
}

nav .logo {
  font-weight: 700;
  color: #007acc;
  font-size: 1.2rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
}

/* ==========================
   ✅ Navbar Hover Underline + Active Highlight
   ========================== */
nav a {
  position: relative;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Base invisible underline */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #007acc;
  border-radius: 2px;
  transition: width 0.3s ease;
  z-index: 1;
}

/* Hover underline animation */
nav a:hover {
  color: #007acc;
}

nav a:hover::after {
  width: 100%;
}

/* Keep active section underlined */
nav a.active {
  color: #007acc;
}

nav a.active::after {
  width: 100%;
}


/* Header */
header {
  text-align: center;
  padding: 80px 20px 50px;
  background: transparent;
  color: #002b5b; /* deep navy blue for strong contrast */
}

header h1,
header p {
  text-shadow: 0 2px 6px rgba(255, 255, 255, 0.5); /* soft glow for clarity */
}

/* --- Enhanced Header Subtitle + Button Layout --- */
header p {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: #013a63; /* darker blue for contrast */
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.6);
  margin-top: 10px;
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 20px; /* adds spacing between buttons */
  margin-top: 20px; /* adds breathing room below the subtitle */
}

/* Profile */
.profile-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.profile-pic {
  width: 30vw;            /* scales with screen width */
  max-width: 200px;       /* limit how big it can get */
  aspect-ratio: 1 / 1;    /* keeps width and height equal — perfect circle */
  border-radius: 50%;     /* makes it circular */
  border: 3px solid #fff;
  cursor: pointer;
  object-fit: cover;      /* ensures your face stays centered */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
}

/* Profile Zoom Modal (restored original) */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.85);
}

.modal-content {
  display: block;
  margin: auto;
  max-width: 80%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover {
  color: #ff5252;
}

/* Buttons */
/* 🎬 Enhanced Project Demo Buttons */
.btn {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  color: #007acc;
  padding: 10px 18px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.35s ease;
  box-shadow: 0 3px 8px rgba(0, 122, 204, 0.15);
  border: 1px solid rgba(0, 122, 204, 0.3);
}

/* Hover motion: lift + subtle blue glow */
.btn:hover {
  background-color: #007acc;
  color: #fff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 15px rgba(0, 122, 204, 0.5);
}

/* 💫 Add shimmering light effect */
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75px;
  width: 50px;
  height: 100%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.4), rgba(255,255,255,0));
  transform: skewX(-25deg);
  transition: 0.5s;
}

/* Move shimmer across on hover */
.btn:hover::before {
  left: 130%;
  transition: all 0.7s ease;
}



/* Sections */
section {
  padding: 30px;
  max-width: 1100px;
  margin: 30px auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
}

/* ✨ Enhanced Readability Across All Sections */
section p,
section li,
section span {
  font-size: 1.05rem; /* slightly larger */
  line-height: 1.8;   /* relaxed line spacing for better reading */
  color: #222;        /* strong contrast for readability */
}

section h2 {
  font-size: 1.6rem;  /* slightly larger section headings */
  font-weight: 700;
  margin-bottom: 2px;
}

section p:first-of-type {
  margin-top: 5px; /* reduced spacing below h2 */
}

.project h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

#contact p {
  font-size: 1.05rem;
}


/* Floating cards */
section:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 122, 204, 0.15);
}

h2 {
  color: #007acc;
  margin-bottom: 15px;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* ✅ Fixed project header alignment */
#projects {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 30px;
  max-width: 1100px;
  margin: 30px auto;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

#projects h2 {
  margin-bottom: 25px;
  text-align: left;
}

/* ✨ Underline effect on hover for section headers (same as top nav) */
section h2 {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 3px;
  background-color: #007acc;
  transition: width 0.3s ease;
  border-radius: 2px;
}

/* When hovered, the underline slides in */
section h2:hover::after {
  width: 100%;
}



/* ✅ Projects Grid */
/* ✅ Projects have a subtle default border and a stronger hover effect */
#projects .project {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1.5px solid rgba(0, 122, 204, 0.15); /* subtle blue border */
  transition: all 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ✨ On hover: lift + glowing border */
#projects .project:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 122, 204, 0.15),
              0 0 10px rgba(0, 122, 204, 0.1);
  border-color: #007acc;
}



/* ✅ Two-column layout */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 20px;
  align-items: stretch;
}


/* Project title styling */
.project h3 {
  margin-top: 0;
  transition: all 0.3s ease;
}

.project h3:hover {
  color: #007acc;
  text-shadow: 0 0 8px rgba(0,122,204,0.3);
}
/* 💡 Skills Grid — Restored Pill Layout */
/* 🌈 Skills Section - Azure–Teal Glow Theme */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* centers last row */
  gap: 12px;
  margin-top: 15px;
}

.skills-grid span {
  flex: 0 1 180px; /* uniform width for each skill */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 180, 255, 0.15);
}


/* ✨ Hover glow */
.skills-grid span:hover {
  background: linear-gradient(135deg, #0288d1, #00bcd4);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 188, 212, 0.5),
              0 0 25px rgba(0, 150, 255, 0.25);
  transform: translateY(-3px);
}

/* 🧠 Icons inside skills */
.skills-grid i {
  font-size: 1.1rem;
  color: inherit;
  transition: all 0.3s ease;
}

/* Icons glow on hover */
.skills-grid span:hover i {
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

/* 🎨 Category-Based Skill Colors */
.skills-grid .skill-ai {
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
  color: #1e3a8a;
  border: 1px solid rgba(99, 102, 241, 0.25);
}
.skills-grid .skill-ai:hover {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.skills-grid .skill-programming {
  background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
  color: #006064;
  border: 1px solid rgba(0, 150, 136, 0.25);
}
.skills-grid .skill-programming:hover {
  background: linear-gradient(135deg, #00acc1, #26c6da);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 172, 193, 0.4);
}

.skills-grid .skill-cloud {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  color: #0d47a1;
  border: 1px solid rgba(25, 118, 210, 0.25);
}
.skills-grid .skill-cloud:hover {
  background: linear-gradient(135deg, #2196f3, #64b5f6);
  color: #fff;
  box-shadow: 0 0 15px rgba(33, 150, 243, 0.4);
}

.skills-grid .skill-data {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  color: #1b5e20;
  border: 1px solid rgba(76, 175, 80, 0.25);
}
.skills-grid .skill-data:hover {
  background: linear-gradient(135deg, #43a047, #66bb6a);
  color: #fff;
  box-shadow: 0 0 15px rgba(67, 160, 71, 0.4);
}

.skills-grid .skill-tools {
  background: linear-gradient(135deg, #ede7f6, #d1c4e9);
  color: #4a148c;
  border: 1px solid rgba(103, 58, 183, 0.25);
}
.skills-grid .skill-tools:hover {
  background: linear-gradient(135deg, #7e57c2, #512da8);
  color: #fff;
  box-shadow: 0 0 15px rgba(126, 87, 194, 0.4);
}



/* Contact Section (restored icons) */
#contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}

#contact a {
  color: #007acc;
  text-decoration: none;
}

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

/* Original contact icons restored */
#contact i {
  font-size: 1.3rem;
  margin-right: 8px;
  vertical-align: middle;
  transition: all 0.3s ease;
  padding: 8px;              /* <-- ADD THIS */
  border-radius: 50%;        /* <-- ADD THIS */
  cursor: pointer;
}


/* Specific icon colors (original) */
/* ✉️ Email Icon */
.fa-envelope {
  color: #8cbf26; /* base lime-yellow-green */
  transition: all 0.3s ease;
}
.fa-phone { color: #25d366; }
.fa-linkedin { color: #0077b5; }
.fa-github { color: #333; }
.fa-medium { color: #00ab6c; }

.fa-envelope:hover {
  background-color: #8cbf26;
  color: #fff;
  box-shadow: 0 0 10px rgba(140, 191, 38, 0.6);
  transform: scale(1.2);
}
.fa-phone:hover {
  background-color: #25d366;
  color: #fff;
  box-shadow: 0 0 10px rgba(37,211,102,0.6);
  transform: scale(1.2);
}
.fa-linkedin:hover {
  background-color: #0077b5;
  color: #fff;
  box-shadow: 0 0 10px rgba(0,119,181,0.6);
  transform: scale(1.2);
}
.fa-github:hover {
  background-color: #333;
  color: #fff;
  box-shadow: 0 0 10px rgba(51,51,51,0.6);
  transform: scale(1.2);
}
.fa-medium:hover {
  background-color: #00ab6c;
  color: #fff;
  box-shadow: 0 0 10px rgba(0,171,108,0.6);
  transform: scale(1.2);
}

/* ✨ Universal Floating Glass Section Style (fixed glow visibility) */
.floating-section {
  position: relative;
  background: rgba(255, 255, 255, 0.75); /* slightly more transparent */
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0, 122, 204, 0.15),
              0 0 25px rgba(0, 200, 255, 0.12);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: all 0.6s ease;
}

/* Floating & glowing hover effect */
.floating-section:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 45px rgba(0, 122, 255, 0.25),
              0 0 40px rgba(0, 195, 255, 0.25);
}

/* Soft glowing animated overlay */
.floating-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(0, 200, 255, 0.2),
    transparent 60%
  );
  opacity: 0.4;
  filter: blur(40px);
  z-index: 0;
  animation: sectionGlow 8s ease-in-out infinite alternate;
}

/* Ensure content is above the glowing layer */
.floating-section > * {
  position: relative;
  z-index: 2;
}

/* Smooth glow pulsing */
@keyframes sectionGlow {
  0% { opacity: 0.25; transform: scale(1); }
  100% { opacity: 0.5; transform: scale(1.2); }
}

@keyframes skillPulse {
  0% { box-shadow: 0 0 5px rgba(0,188,212,0.2); }
  50% { box-shadow: 0 0 15px rgba(0,188,212,0.4); }
  100% { box-shadow: 0 0 5px rgba(0,188,212,0.2); }
}

.skills-grid span:hover {
  animation: skillPulse 2s infinite ease-in-out;
}


/* 🌬️ Fade-In on Scroll Animation for Floating Sections */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Education date styling */
.edu-date {
  color: #007acc;
  font-weight: 600;
  font-size: 1rem;
}

#about h3 {
  margin-bottom: 8px;
  margin-top: 20px;
}

/* Work Experience styling */
.job-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #002b5b;
  margin-bottom: 5px;
}

.job-date {
  font-size: 1rem;
  font-weight: 600;
  color: #007acc;
}

.job ul li {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #222;
}

/* Footer */
/* Footer - seamless background version */
footer {
  background: linear-gradient(to top, rgba(255,255,255,0.4), transparent);
  color: #000; /* pure black for clarity */
  text-align: center;
  padding: 25px 10px;
  font-size: 1rem;
  font-weight: 600; /* slightly bold */
  margin-top: 60px;
  border-top: 2px solid rgba(0, 0, 0, 0.1); /* subtle separation line */
}

footer p {
  margin: 0;
}

.footer-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.footer-links a {
  color: #000;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #007acc; /* blue accent on hover */
  transform: scale(1.15);
}


/* Responsive */
@media (max-width: 768px) {
  /* Stack navbar items vertically when screen is small */
  nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  nav ul li {
    width: 100%;
  }

  nav a {
    display: block;
    padding: 8px 0;
  }

  /* Center the header text */
  header {
    padding: 60px 15px 30px;
  }

  header h1 {
    font-size: 1.8rem;
  }

  header p {
    font-size: 1rem;
  }

  /* Reduce padding on sections for tighter view */
  section {
    padding: 20px;
    margin: 15px;
  }

  /* Skills grid more compact */
  .skills-grid span {
    flex: 1 1 100%;
    padding: 10px;
  }

  /* Contact section icons centered */
  #contact p {
    justify-content: center;
  }
}
