/* ---------- RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- COLOR PALETTE ---------- */
:root {
  --base: #FFFFFF;
  --navy:#0F766E; /* teal is now accent */
  --teal:#17357d ; /* dark navy is now dominant */
  --teal-light: #1E293B;
  --shadow: rgba(0, 0, 0, 0.08);
}

/* ---------- BASE ---------- */


body {
  font-family: "Poppins", sans-serif;
  color: var(--teal);
  background-color: var(--base);
  line-height: 1.6;
}


.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

a, button, img {
  transition: all 0.3s ease;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 4px var(--shadow);
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-weight: 700;
  font-size: 1.4rem;
}

.logo span {
  color: var(--navy);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  text-decoration: none;
  color: var(--teal);
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}
.nav-link.active {
  color: var(--navy);
}

.nav-link.active::after {
  width: 100%;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: var(--navy);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

/* ---------- HAMBURGER MENU ---------- */
.menu-icon {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  user-select: none;
}

#menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .menu-icon {
    display: block;
    color: var(--teal);
  }

  nav {
    position: absolute;
    top: 60px;
    right: 5%;
    background: var(--base);
    box-shadow: 0 4px 10px var(--shadow);
    border-radius: 8px;
    width: 180px;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
  }

  #menu-toggle:checked ~ nav {
    transform: scaleY(1);
  }
}

/* ---------- HERO SECTION ---------- */
.hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-top: 80px;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
  min-width: 300px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.hero-text h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.hero-text h1 span {
  color: var(--navy);
}

.hero-text h2 {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--teal-light);
  margin-bottom: 1.2rem;
}

.hero-text p {
  max-width: 520px;
  margin-bottom: 1.8rem;
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.8;
}

.btn {
  display: inline-block;
  background-color: var(--teal);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
}

.btn:hover {
  background-color: var(--navy);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.35);
  transform: translateY(-2px);
}

.hero-img {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.hero-img img {
  width: 330px;
  border-radius: 50%;
  box-shadow: 0 8px 30px var(--shadow);
  transform: translateX(-30px);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-img img:hover {
  transform: translateX(-30px) scale(1.03);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.25);
}

/* Float-in animation trigger */
body.loaded .hero-text {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

body.loaded .hero-img {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

/* ---------- RESPONSIVE HERO ---------- */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-img img {
    width: 240px;
    transform: none;
    margin-top: 1rem;
  }

  .hero-text h1 {
    font-size: 2.rem;
  }

  .hero-text h2 {
    font-size: 1.1rem;
  }
}

/* ---------- LOADER ---------- */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--base);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  z-index: 2000;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-bar {
  width: 40px;
  height: 4px;
  margin: 0 6px;
  border-radius: 4px;
  animation: slide 1s infinite alternate;
}

.bar1 {
  background-color: var(--teal);
  animation-delay: 0s;
}

.bar2 {
  background-color: var(--navy);
  animation-delay: 0.3s;
}

@keyframes slide {
  0% { transform: scaleX(0.5); opacity: 0.3; }
  100% { transform: scaleX(1.2); opacity: 1; }
}

body.loaded #loader {
  opacity: 0;
  visibility: hidden;
}
/* ---------- BACKGROUND SECTION ---------- */
.background {
  padding: 3.5rem 0 3rem; /* reduced vertical padding */
  background: #F9FAFB;
}


.section-title {
  text-align: center;
  font-size: 2.2rem;
  color: var(--teal);
  margin-bottom: 0.3rem;
}

.section-subtitle {
  text-align: center;
  color: var(--teal-light);
  margin-bottom: 3rem;
}

.bg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.bg-card h3 {
  color: var(--navy);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--navy);
  padding-left: 0.7rem;
}

.edu-item, .exp-item {
  margin-bottom: 1.5rem;
  background: #fff;
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.edu-item:hover, .exp-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(23,53,125,0.15);
}

.edu-item h4, .exp-item h4 {
  color: var(--teal);
  margin-bottom: 0.2rem;
}

.period, .role {
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

/* Projects */
.projects {
  margin-top: 4rem;
  text-align: center;
}

.projects h3 {
  color: var(--teal);
  font-size: 1.6rem;
  margin-bottom: 2rem;
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.proj-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem 1.3rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.proj-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(23,53,125,0.15);
}

.proj-card h4 {
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.proj-card p {
  color: var(--teal-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
  .bg-grid {
    grid-template-columns: 1fr;
  }
}
.edu-header, .exp-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.edu-header img, 
.exp-header img {
  position: relative;
  width: 56px;
  height: 56px;
  object-fit: contain;
  overflow: hidden;
}

.logo-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  overflow: visible;  /* key line */
}
.logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  transform-origin: center;
}
.edu-item:hover .logo-wrap img,
.exp-item:hover .logo-wrap img {
  transform: scale(1.8);
  z-index: 2;
}
/* ---------- PROJECTS SHOWCASE ---------- */
.projects {
  padding: 4rem 0 3rem;
  background: #FFFFFF;
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.8rem;
  margin-top: 2.5rem;
}

.proj-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.proj-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(23, 53, 125, 0.15);
}

.proj-thumb {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #F9FAFB;
}

.proj-thumb img {
  width: 100%;
  height: 100%;

  transition: transform 0.4s ease;
}

.proj-card:hover .proj-thumb img {
  transform: scale(1.05);
}

.proj-card h4 {
  color: var(--teal);
  font-size: 1.25rem;
  margin: 1rem 1.2rem 0.5rem;
}

.proj-card p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 1.2rem 1rem;
}

.proj-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0 1.2rem 1.4rem;
}

.proj-tags span {
  font-size: 0.8rem;
  background: rgba(15, 118, 110, 0.1);
  color: var(--navy);
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  font-weight: 500;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .proj-thumb {
    height: 160px;
  }
}
/* ---------- PROJECT VIEW ICON ---------- */
.proj-thumb {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #F9FAFB;
}

.view-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--teal);
  text-decoration: none;
  font-size: 1.2rem;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.proj-thumb:hover .view-icon {
  opacity: 1;
  transform: translateY(0);
}

.view-icon:hover {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.25);
}

.eye-icon {
  display: inline-block;
  transform: scale(1);
  transition: transform 0.2s ease;
}

.view-icon:hover .eye-icon {
  transform: scale(1.15);
}

/* Optional subtle glow on hover */
.proj-card:hover .proj-thumb {
  filter: brightness(1.05);
}

/* ---------- CONTACT SECTION ---------- */
.contact {
  padding: 5rem 0 4rem;
  background: #F9FAFB;
  text-align: center;
}

/* ---------- CONTACT SECTION (REVISED) ---------- */
.contact {
  padding: 5rem 0 4rem;
  background: #F0F2F5; /* Slightly lighter background for Neumorphism effect */
  text-align: center;
}

/* 2-Column Grid Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr; /* Form is 2/3, Links are 1/3 */
  gap: 3rem;
  margin-top: 2.5rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr; /* Stack columns on smaller screens */
  }
  .contact-sidebar {
    order: -1; /* Move illustration/links above the form on mobile */
  }
}

/* Contact Card (Neumorphic Style) */
.contact-card {
  background: #F0F2F5;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 
    8px 8px 16px rgba(174, 174, 192, 0.4), /* Bottom-right shadow (darker) */
    -8px -8px 16px rgba(255, 255, 255, 0.9); /* Top-left shadow (lighter) */
  text-align: left;
}

.contact-card h3 {
  color: var(--teal);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.form-subheading {
  color: var(--teal-light);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Form Styling */
#contactForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  width: 100%;
}

.form-row input, .form-row select {
  flex: 1;
}

#contactForm input, 
#contactForm select, 
#contactForm textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 8px;
  background: #E8ECEF; /* Inner shadow base */
  color: var(--teal);
  font-size: 1rem;
  outline: none;
  
  /* Inner shadow effect (Sunken look) */
  box-shadow: inset 2px 2px 5px rgba(174, 174, 192, 0.6), 
              inset -2px -2px 5px rgba(255, 255, 255, 0.7);
  
  transition: all 0.3s ease;
}

/* Input Focus/Hover Effect (Accent Color) */
#contactForm input:hover, 
#contactForm select:hover, 
#contactForm textarea:hover {
  background: #fff;
  box-shadow: 0 0 0 2px var(--navy); /* Thin accent border on hover */
}

#contactForm input:focus, 
#contactForm select:focus, 
#contactForm textarea:focus {
  background: #fff;
  box-shadow: 0 0 0 3px var(--navy); /* Thicker accent border on focus */
}

#contactForm textarea {
  resize: vertical;
}

/* Submit Button - Replica of Let's Connect Button */
.submit-btn {
  border: none;
  cursor: pointer;
  margin-top: 0.5rem;
  padding: 1rem 1.6rem;
  font-size: 1.05rem;
}

/* RIGHT COLUMN: Links and Illustration */
.contact-sidebar {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.illustration-wrapper {
  max-width: 100%;
  height: auto;
  min-height: 150px;

  border-radius: 12px;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-illustration {
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: contain;

}

.contact-links-stacked {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Existing Contact Item Styles - Modified for stacking */
.contact-item {
  display: flex;
  align-items: center;
  justify-content: center; /* Center links in the sidebar */
  gap: 0.6rem;
  text-decoration: none;
  color: var(--teal);
  font-weight: 500;
  font-size: 1.05rem;
  padding: 0.7rem 1.4rem;
  border: 1.8px solid rgba(23, 53, 125, 0.15);
  border-radius: 50px;
  background: #fff;
  box-shadow: 0 3px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .contact-card {
    padding: 1.5rem;
  }
  .form-row {
    flex-direction: column;
    gap: 0.8rem;
  }
  .contact-item {
    font-size: 0.95rem;
  }
}

.contact-item img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0.8);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.contact-item:hover {
  color: var(--navy);
}

.contact-item:hover img {
  filter: brightness(1);
  transform: scale(1.15);
}

@media (max-width: 768px) {
  .contact-item {
    font-size: 0.95rem;
  }
  .contact-item img {
    width: 20px;
    height: 20px;
  }
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--teal);
  font-weight: 500;
  font-size: 1.05rem;
  padding: 0.7rem 1.4rem;
  border: 1.8px solid rgba(23, 53, 125, 0.15);
  border-radius: 50px;
  background: #fff;
  box-shadow: 0 3px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.contact-item img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.contact-item:hover {
  color: var(--navy);
  border-color: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(23,53,125,0.15);
}

.contact-item:hover img {
  transform: scale(1.15);
}

/* ---------- FOOTER ---------- */
.footer {
  background: #17357d;
  padding: 1.5rem 0;
  text-align: center;
  color: #FFFFFF;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer a {
  text-decoration: none;
  color: #0F766E;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #FFFFFF;
}
/*--------RESUME------------*/
.resume-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 3000;
  justify-content: center;
  align-items: center;
}

.resume-content {
  position: relative;
  width: 80%;
  max-width: 900px;
  height: 90vh;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  animation: fadeIn 0.3s ease;
}

.resume-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 18px;
  font-size: 2rem;
  color: var(--teal);
  cursor: pointer;
}

.close-modal:hover {
  color: var(--navy);
}

@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.95);}
  to {opacity: 1; transform: scale(1);}
}
/* ---------- MODERN RESUME VIEWER MODAL ---------- */
.resume-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 4000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.resume-window {
  /* Use a min function for better responsiveness but strict max-width */
  width: min(32%, 620px); 
  /* max-width: 620px; - No longer needed if using min() */
  height: 90vh;
  background: #1E293B; /* Outer container color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
}
.resume-pages {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 0;
  background: #000;
margin-top: 10px;
}

.resume-pages img {
  width: 100%;
  display: block;
  margin: 0 auto 0;
  object-fit: contain;

    
}


.resume-header {
  background: linear-gradient(90deg, #17357d, #0F766E);
  color: #fff;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  font-size: 1rem;
}

.resume-title {
  opacity: 0.95;
  letter-spacing: 0.5px;
}

.close-modal {
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  color: #fff;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.close-modal:hover {
  opacity: 1;
}

.resume-frame {
  flex: 1;
  background: #000;
}

.resume-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}

/* subtle open animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
/* ---------- RESUME DIVIDER ---------- */
.resume-divider {
  border: none;
  height: 2px;
  width: 70%;
  margin: 1.8rem auto 1.8rem;
  background: linear-gradient(90deg, #0F766E, #17357d);
  border-radius: 50px;
  opacity: 0.9;
}
.hero-desc {
  font-size: 1.0rem;
  line-height: 1.8;
  color: #475569;
  max-width: 620px;
  margin-top: 1rem;
  word-break: break-word;
  text-align: left;
}
.nowrap {
  white-space: nowrap;
}

/* Tablet and below */
@media (max-width: 768px) {
  .hero-desc {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 95%;
    margin: 1rem auto 0;
    text-align: center;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-desc {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  .hero-desc br {
    display: none; /* auto wrap on very small screens */
  }
}
.signature-font {
  font-family: 'Corinthia', cursive;
  font-weight: 700;
  font-size: 4.0rem;
  letter-spacing: 1px;
  word-spacing: 12px;   /* ← add this */
  display: inline-block;
  line-height: 1;
}

@media (max-width: 768px) {
  .signature-font {
    font-size: 2.8rem;
  }
}

@media (max-width: 480px) {
  .signature-font {
    font-size: 3.rem;
  }
}
/* Modified .resume-images block for horizontal sliding */
.resume-slider-container {
  flex: 1;
  background: #0f1115;
  overflow: hidden; /* Key: Hides pages outside the current viewport */
  position: relative; /* Key: Establishes context for absolute controls */
}

.resume-images {
  /* No longer scrollable, becomes a horizontal track */
  height: 100%;
  display: flex; /* Key for horizontal layout */
  flex-direction: row;
  width: 200%; /* (100% * 2 pages) = 200% total width for the track */
  transition: transform 0.4s ease-in-out; /* For sliding animation */
}

.resume-images img {
  /* Each image takes exactly 100% of the modal's internal width (which is 50% of 200%) */
  flex-shrink: 0; 
  width: 50%; 
  height: auto; /* Let height be automatic to maintain aspect ratio */
  max-height: 100%; /* Ensure it does not exceed container height */
  display: block;
  margin: auto 0; /* Vertically center the image */
  object-fit: contain;
  padding: 0 1rem; /* Added padding for spacing from the arrows */
  border-radius: 0;
  box-shadow: none;
}

/* ---------- SLIDER CONTROLS ---------- */
.slide-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 0.8rem 0.5rem;
  font-size: 1.5rem;
  line-height: 1;
  z-index: 50; /* Increased z-index */
  transition: background 0.3s ease;
}

.slide-control:hover {
  background: rgba(255, 255, 255, 0.4);
}

.control-left {
  left: 0;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

.control-right {
  right: 0;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}
/* Responsive adjustment for controls */
@media (max-width: 620px) {
  .resume-window {
    width: 95%; /* Better mobile fit */
  }
  .slide-control {
    font-size: 1.2rem;
    padding: 0.5rem 0.3rem;
  }
}
/* ---------- MOBILE OPTIMIZATION: HIDE ILLUSTRATION ---------- */
@media (max-width: 600px) {
  /* Hides the entire container holding the illustration image */
  .illustration-wrapper {
    display: none;
  }
}
/* ---------- footer hover connect@anmolsweb ---------- */
.mail-link i {
  color: white;
  font-size: 1.1em;
  padding-left: 5px;
  position: relative;
  transition: color 0.25s ease;
}

.mail-link i::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: #4fd1c5; /* light teal */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.mail-link:hover i {
  color: #4fd1c5; /* light teal */
}

.mail-link:hover i::after {
  transform: scaleX(1);
}
.name-link b {
  color: #4fd1c5;  /* light teal */;
  position: relative;
  transition: color 0.25s ease;
}

.name-link b::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background:white; 
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.name-link:hover b {
  color: #4fd1c5; /* light teal */
}

.name-link:hover b::after {
  transform: scaleX(1);
}
/* ---------- FAQ SECTION STYLING ---------- */
/* ===================================================
FAQ SECTION STYLING
Two-column responsive grid with sleek accordion.
=================================================== */

.faq-section {
    padding: 4rem 0 4rem;
    background: var(--base); /* White background for high contrast */
}

/* FAQ Grid Layout: Illustration on Left, Accordion on Right */
.faq-grid {
    display: grid;
    /* Desktop layout: Illustration (1fr) | Accordion (1.5fr) */
    grid-template-columns: 1fr 1.5fr; 
    gap: 4rem;
    margin: 2.5rem auto 0;
    align-items: center; /* Vertically align illustration and accordion */
    max-width: 1000px;
}

/* Illustration Styling */
.faq-illustration {
    padding: 1rem;
    text-align: center;
}

.illustration-img {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: contain;
    /* Optional effect to enhance the sleek look */
    opacity: 0.85; 
    transition: opacity 0.5s ease;
}
.faq-illustration:hover .illustration-img {
    opacity: 1;
}

/* Accordion Container */
.accordion-container {
    text-align: left;
}

.accordion-item {
    border: 1px solid rgba(23, 53, 125, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    background: #fff;
}

.accordion-item:hover {
    box-shadow: 0 6px 15px rgba(23, 53, 125, 0.1);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--teal);
    transition: background 0.3s ease, color 0.3s ease;
}

/* Hover/Active State */
.accordion-header:hover {
    background: rgba(15, 118, 110, 0.05); /* Light accent background */
    color: var(--navy);
}

.accordion-icon {
    font-size: 0.8rem;
    margin-left: 1rem;
    transition: transform 0.3s ease;
}

/* Icon rotation when expanded */
.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

/* Content Area - Uses max-height for smooth transition */
.accordion-content {
    max-height: 0;
    padding: 0 1.5rem;
    overflow: hidden;
    /* Crucial for smooth expansion/collapse animation */
    transition: max-height 0.4s ease-out; 
}

.accordion-content[hidden] {
    display: block !important; /* Override 'hidden' attribute but keep max-height: 0 */
}

.accordion-content p {
    padding-bottom: 1.5rem;
    color: var(--teal-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Responsive Stacking for Mobile */
@media (max-width: 900px) {
    .faq-grid {
        grid-template-columns: 1fr; /* Stack columns */
        gap: 2rem;
    }
    .faq-illustration {
        /* On tablet, reduce size and center */
        max-width: 80%; 
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .faq-illustration {
        display: none; /* Hide entirely on small mobile for space */
    }
}

/* skill section*/

