/* ========== General Reset ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

/* ========== Links ========== */
a {
  text-decoration: none;
  color: #0077b5;
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: underline;
}

/* ========== Header ========== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #163264; /* Darker blue to match homepage */
  color: #fff;
  flex-wrap: wrap;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3); /* subtle shadow for separation */
}

header .logo {
  font-size: 1.5rem;
  font-weight: bold;
}

header nav a {
  margin: 0 0.75rem;
  color: #fff;
  font-weight: 500;
}

header nav a.active {
  border-bottom: 2px solid #00bfff; /* LinkedIn-like blue accent */
}

header .social-links {
  display: flex;
  gap: 0.5rem;
}

/* Social links in header row */
.social-links-header {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-links-header a {
  color: #fff;
  font-size: 1.2rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-links-header a:hover {
  color: #00bfff;
  transform: scale(1.2);
}

/* Responsive: stack under nav on mobile */
@media (max-width: 768px) {
  .social-links-header {
    margin-top: 0.5rem;
    justify-content: center;
    width: 100%;
  }
}

/* ========== Sections ========== */
.page-section {
  display: none; /* hide by default */
  padding: 6rem 2rem 3rem 2rem;
  min-height: 100vh;
}

.page-section.active {
  display: block;
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: auto;
  padding: 2rem 1rem;
}

/* Home Section */
/* Hero Section Overlay */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* full viewport height */
}

.hero-image-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========== About Section ========== */
#about {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #1e3a8a, #163264); /* matching hero section */
  color: #fff; /* light text for contrast */
}

#about h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: #00bfff; /* title accent color */
}

.about-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap; /* stack on small screens */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s forwards;
  animation-delay: 0.3s;
}

.about-img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s;
}

.about-img:hover {
  transform: scale(1.05);
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 1.1rem;
  color: #f0f4f8; /* light text for readability */
  text-align: justify; /* added to justify text */
}

.about-text strong {
  color: #00bfff; /* highlight name or key words */
  font-weight: 700;
  text-align: justify; /* added to justify text */
}

/* Fade-in animation */
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    margin-top: 1.5rem;
  }

  .about-img {
    width: 200px;
    height: 200px;
  }
}
/* Resume button styling */
.btn-resume {
  display: inline-block;
  padding: 12px 25px;
  background-color: #2563eb;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 1rem;
  transition: background-color 0.3s;
}

.btn-resume:hover {
  background-color: #1d4ed8;
}

/* ========== Skills Section ========== */
/* Skills Section */
#skills {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #163264, #1e3a8a);
  color: #f0f4f8;
  display: none; /* Hidden by default for SPA click */
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

/* Show active section */
#skills.active {
  display: block;
  opacity: 1;
  animation: fadeIn 0.8s ease-in-out;
}

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

/* Section Title */
#skills h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #00bfff;
}

/* Flex container for categories */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

/* Each skill category card */
.skill-category {
  flex: 1 1 300px; /* responsive width */
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 10px;
  transition: transform 0.3s, background-color 0.3s;
}

/* Category Title */
.skill-category h3 {
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: #ffffff;
  border-left: 4px solid #00bfff;
  padding-left: 0.5rem;
}

/* Skill List */
.skill-category ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.skill-category ul li {
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 5px;
  transition: transform 0.3s, background-color 0.3s;
}

/* Hover effect for individual skills */
.skill-category ul li:hover {
  background-color: rgba(0, 191, 255, 0.2);
  transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .skills-container {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  #skills h2 {
    font-size: 2rem;
  }
  .skill-category h3 {
    font-size: 1.5rem;
  }
  .skill-category ul li {
    font-size: 0.95rem;
  }
  .skills-container {
    flex-direction: column;
    gap: 1.5rem;
  }
}


/* ========== Projects Section ========== */
#projects {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #1e3a8a, #163264); /* match portfolio theme */
  color: #f0f4f8; /* light text for contrast */
}

#projects h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #00bfff; /* accent color for main title */
}

/* Individual Project Card */
.project {
  background-color: rgba(255, 255, 255, 0.05); /* subtle card effect */
  padding: 1.5rem 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

/* Project Title */
.project h3 {
  margin-bottom: 0.8rem;
  color: #00bfff;
  font-size: 1.6rem;
}

/* Project Description */
.project p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #f0f4f8;
}

/* GitHub Links */
.project a {
  color: #2563eb;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s, transform 0.3s;
}

.project a:hover {
  color: #1d4ed8;
  transform: scale(1.05);
}

/* View All Projects Link */
#projects > p a {
  display: inline-block;
  margin-top: 2rem;
  font-size: 1.1rem;
  color: #00bfff;
  text-decoration: underline;
  transition: color 0.3s;
}

#projects > p a:hover {
  color: #1ecfff;
}

/* Responsive */
@media (max-width: 768px) {
  .project h3 {
    font-size: 1.4rem;
  }
  .project p {
    font-size: 0.95rem;
  }
}
/* ========== Certifications Section ========== */
#certifications {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #163264, #1e3a8a); /* match portfolio theme */
  color: #f0f4f8;
}

#certifications h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #00bfff;
}

#certifications ul {
  list-style: none;
  padding-left: 0;
}

#certifications ul li {
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  transition: transform 0.3s, background-color 0.3s;
}

#certifications ul li:hover {
  background-color: rgba(0, 191, 255, 0.2);
  transform: translateX(5px);
}

#certifications ul li a {
  color: #2563eb;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
}

#certifications ul li a:hover {
  color: #1d4ed8;
  transform: scale(1.05);
}

/* ========== Blogs Section ========== */
#blogs {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #1e3a8a, #163264);
  color: #f0f4f8;
}

#blogs h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #00bfff;
}

#blogs p {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

#blog-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: flex-start;
}

#blog-list li a {
  color: #2563eb;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
}

#blog-list li a:hover {
  color: #1d4ed8;
  transform: scale(1.03);
}

/* Responsive */
@media (max-width: 768px) {
  #blog-list {
    align-items: center;
  }
}


/* ========== Contact Section ========== */
#contact {
    padding: 6rem 2rem 3rem 2rem;
    text-align: center;
    background-color: #1e3a8a; /* optional blue background */
    color: #fff;
}

#contact h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

#contact p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Contact links as horizontal row */
.contact-links {
    list-style: none;       /* remove bullets */
    padding: 0;
    margin: 0;
    display: flex;          /* arrange items in a row */
    gap: 2rem;              /* space between each link */
    justify-content: center; /* center horizontally */
    flex-wrap: wrap;        /* wrap on smaller screens */
}

.contact-links li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    display: flex;           /* icon + text inline */
    align-items: center;     /* vertically center icon and text */
    gap: 0.5rem;            /* space between icon and text */
    font-size: 1.1rem;
    transition: color 0.3s, transform 0.3s;
}

.contact-links li a:hover {
    color: #00bfff;         /* hover color */
    transform: scale(1.1);  /* slight zoom on hover */
}

/* Responsive: stack links on smaller screens */
@media (max-width: 600px) {
    .contact-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

form table {
  width: 100%;
  max-width: 600px;
  margin: auto;
  border-collapse: separate;
  border-spacing: 0 10px;
}

form td {
  padding: 5px;
}

form label {
  font-weight: bold;
}

/* Form Table Styling */
form table {
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
  border-collapse: separate;
  border-spacing: 0 15px;
  background-color: #f5f5f5; /* light grey background for form */
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

form td {
  padding: 5px 10px;
  vertical-align: top;
}

form label {
  font-weight: bold;
  display: inline-block;
  color: #333; /* dark text for contrast */
}

form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
  background-color: #fff;
  color: #333;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus {
  border-color: #ff7f50; /* coral/orange focus */
  box-shadow: 0 0 5px rgba(255,127,80,0.5);
  outline: none;
}

form input[type="submit"] {
  padding: 12px 25px;
  background-color: #ff7f50; /* bright contrasting button */
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

form input[type="submit"]:hover {
  background-color: #e66b3c;
  transform: scale(1.05);
}

/* Responsive for Mobile */
@media (max-width: 600px) {
  form table {
    border-spacing: 0 10px;
    padding: 1.5rem;
  }

  form td {
    display: block;
    width: 100%;
  }

  form td label {
    margin-bottom: 5px;
  }

  form td input,
  form td textarea {
    width: 100%;
  }

  form td[colspan="2"] {
    text-align: center;
  }
}


/* ========== Footer ========== */
footer {
  background-color: #163264; /* match header dark blue */
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 0; /* remove gap */
  box-shadow: 0 -2px 6px rgba(0,0,0,0.3); /* subtle shadow on top */
  font-size: 1rem;
}

