:root {
  --primary: #b9deb5;
  --bg: #ffffff;
  --text: #1a1a1a;
  --accent: #d1f0c1;
  --card-bg: #f0fff4;
}

body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: var(--bg); color: var(--text); }
html { 
  scroll-padding-top: 100px; /* space for navbar */
  scroll-behavior: smooth; 
}

.btn { padding: 10px 20px; background: var(--primary); border-radius: 8px; color: var(--text); font-weight: bold; text-decoration: none; margin-top: 20px; transition: all 0.3s ease; position: relative; z-index: 1; }
.btn:hover { background: #85d07e; transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0,0,0,0.15); }

.fade-in { animation: fadeIn 0.9s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Start of Hero Section */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
  padding: 40px 30px;
}

/* Hero image */
.hero-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #a8e6a1;
  margin-bottom: 20px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 15px; /* space between lines */
  align-items: center;
}

/* Each line gets its own white background */
.hero-line {
  background: rgba(255, 255, 255, 0.85); /* semi-transparent white */
  padding: 10px 20px;
  border-radius: 15px;
  display: inline-block;
  text-align: center;
  color: #2c572c; /* dark green text */
  font-weight: bold;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Optional: adjust sizes for the texts */
#intro-title {
  font-size: 3rem;
  margin: 0;
}

.typing {
  font-size: 1.4rem;
  height: 25px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  border-right: none;
}

/* Hero buttons */
.hero-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.hero-buttons .btn {
  background: var(--primary);
  color: var(--text);
  padding: 12px 25px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}
.hero-buttons .btn:hover {
  background: #85d07e;
  transform: translateY(-3px);
}

#main-nav {
  display: flex;
  justify-content: center;      /* center links */
  gap: 20px;
  background: var(--primary);
  padding: 12px 30px;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  position: relative;
  width: 100%;                  /* full width, keeps consistent */
  max-width: 800px;             /* optional: restrict max width */
  margin: 0 auto;               /* center horizontally */
  transition: all 0.4s ease, transform 0.4s ease;
  z-index: 1000;
  white-space: nowrap;           /* prevent link text wrapping */
}

/* Fixed navbar */
#main-nav.fixed {
  position: fixed;
  top: 15px;
  width: 100%;                  /* same width as normal */
  max-width: 800px;             /* match the initial */
  left: 50%;
  transform: translateX(-50%) translateY(0); /* no jump */
  background: rgba(168,230,161,0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.25);
  white-space: nowrap;          /* prevent text from breaking lines */
}

/* Nav links */
#main-nav a {
  text-decoration: none;
  color: #1a1a1a;
  font-weight: bold;
  padding: 8px 15px;
  border-radius: 25px;
  transition: 0.3s;
}
#main-nav a:hover {
  background: #85d07e;
  color: #fff;
}

/* End of Hero Section */


/* START OF ABOUT ME SECTION */

.about-me {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  padding: 20px 10px 10px; /*space from nav and bottom */
}

/* LEFT COLUMN */
.about-left {
  flex: 1 1 350px;   /* slightly smaller base width */
  max-width: 450px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* LEFT ROWS */
.about-left-row {
  background: rgba(168, 230, 161, 0.1);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

.about-left-row h3 {
  margin-bottom: 12px;
  color: #2c572c;
  font-size: 1.5rem;
  border-bottom: 2px solid #b9deb5;
  padding-bottom: 5px;
}

/* Icons Row */
.skills-icons, .certs-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skills-icons img, .certs-icons img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 10px;
  background: white;
  padding: 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.skills-icons img:hover, .certs-icons img:hover {
  transform: scale(1.1);
}

/* RIGHT COLUMN */
.about-right {
  flex: 1.5 1 500px; /* slightly wider than left, adjustable */
  max-width: 600px;  /* optional cap for very large screens */
  background: rgba(168, 230, 161, 0.1);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

/* Reduce spacing between title and text */
.about-right h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #2c572c;
}

/* Paragraphs */
.about-right p {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* Lists */
.about-right ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.about-right ul li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Responsive: stack columns on smaller screens */
@media (max-width: 900px) {
  .about-me {
    flex-direction: column;
    gap: 30px;
  }
}

/* End of About Me Section */

/* EDUCATION SECTION */

#education {
  padding: 50px 20px 60px; /* top/bottom padding */
  text-align: center;       /* center everything inside section by default */
}

#education h2 {
  display: inline-block;          /* shrink to content width */
  font-size: 2.5rem;
  color: #2c572c;
  margin-bottom: 40px;
  position: relative;
}

/* Decorative underline */
#education h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary);
  margin: 10px auto 0;  /* auto margin centers underline */
  border-radius: 2px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Optional floating animation for elegance */
@keyframes floatTitle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); } /* increase the float distance */
}

/* Apply to the title */
#education h2 {
  animation: floatTitle 1.5s ease-in-out infinite; /* faster than 3s */
}

/* Education Section Grid */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;  /* smaller gap */
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

.edu-card {
  background: var(--accent);
  padding: 20px 15px;  /* smaller padding */
  border-radius: 12px; /* slightly smaller corners */
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08); /* lighter shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.edu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.edu-img {
  width: 100px;  /* smaller */
  height: 100px;
  border-radius: 50%;
  border: 2px solid var(--primary);
}


/* Text Styling */
.edu-card h3 {
  margin: 10px 0 5px;
  font-size: 1.2rem;
  color: #1b4d1b;
}

.edu-card .date {
  font-size: 0.9rem;
  color: #1a3d1a;
  font-weight: bold;
  margin-bottom: 8px;
}

.edu-card p {
  font-size: 0.95rem;
  color: #2f4f2f;
}

/* END OF EDUCATION SECTION */

/* START OF PROJECTS SECTION */

/* Projects Section */
#projects {
  padding: 10px 20px 10px;
  text-align: center;
}

#projects h2 {
  display: inline-block;
  font-size: 2.5rem;
  color: #2c572c;
  margin-bottom: 40px;
  position: relative;
  animation: floatTitle 1.5s ease-in-out infinite; /* same floating animation as Education */
}

/* Decorative underline */
#projects h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary);
  margin: 10px auto 0; /* center underline */
  border-radius: 2px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Reuse floatTitle keyframes from Education */
@keyframes floatTitle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.projects-scroll-container { display: flex; flex-wrap: wrap; gap: 20px; padding: 40px 0 0 0; justify-content: center; }
.project-card { flex: 0 0 280px; background: var(--card-bg); border-radius: 15px; box-shadow: 0 6px 20px rgba(0,0,0,0.1); cursor: pointer; overflow: hidden; display: flex; flex-direction: column; transition: all 0.4s ease; }
.project-card:hover { transform: translateY(-8px); box-shadow: 0 14px 35px rgba(0,0,0,0.2); }
.project-card img { width: 100%; height: 180px; object-fit: cover; border-bottom: 2px solid var(--primary); }
.project-info { padding: 15px; display: flex; flex-direction: column; gap: 5px; }
.project-info h3 { margin: 0; font-size: 1.2rem; color: #1b4d1b; }
.project-info p { margin: 0; font-size: 0.9rem; color: #2f4f2f; }
.project-category { margin-top: 20px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.project-category button { padding: 8px 15px; border: none; border-radius: 20px; background: var(--primary); color: white; cursor: pointer; transition: all 0.3s ease; font-weight: bold; }
.project-category button:hover { background: #85d07e; }
.project-category button.active { background: #2c572c; }


/* ========================= */
/* EXPERIENCE SECTION PREMIUM */
/* ========================= */

#experiences {
  padding: 15px 10px;
  text-align: center;
}

/* Title (same premium style as Education/Projects) */
#experiences h2 {
  display: inline-block;
  font-size: 2.5rem;
  color: #2c572c;
  margin-bottom: 50px;
  position: relative;
  animation: floatTitle 1.5s ease-in-out infinite;
}

#experiences h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary);
  margin: 10px auto 0;
  border-radius: 2px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Timeline container */
.timeline {
  position: relative;
  margin: 60px auto;
  width: 90%;
  max-width: 1000px;
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 2px;
  opacity: 0.6;
  height: 100%;
  background: linear-gradient(to bottom, #2c572c, #85d07e);
}

/* Timeline item */
.timeline-item {
  position: relative;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 60px;

  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

/* Alternate sides */
.timeline-item:nth-child(even) {
  justify-content: flex-end;
}

/* Show animation */
.timeline-item.show {
  opacity: 1;
  transform: translateY(0);
}

/* Dot */
/* .timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: white;
  border: 3px solid #85d07e;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(133,208,126,0.7);
  top: 20px;
  z-index: 2;
} */

/* Card */
.timeline-content {
  width: 70%;
  max-width: 720px;
  display: flex;
  gap: 15px;

  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  padding: 20px 25px;
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.15);

  transition: all 0.4s ease;
  position: relative;
}

.timeline-content:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 45px rgba(0,0,0,0.25),
              0 0 20px rgba(133,208,126,0.25);
}

/* Arrow pointers */
.timeline-content::after {
  content: '';
  position: absolute;
  top: 20px;
  width: 0;
  height: 0;
  border-style: solid;
}

/* Left side arrow */
.timeline-item:nth-child(odd) .timeline-content::after {
  right: -10px;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent rgba(255,255,255,0.6);
}

/* Right side arrow */
.timeline-item:nth-child(even) .timeline-content::after {
  left: -10px;
  border-width: 10px 10px 10px 0;
  border-color: transparent rgba(255,255,255,0.6) transparent transparent;
}

/* Logo */
.company-logo {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Text */
.experience-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.experience-info .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.experience-info h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #1b4d1b;
}

.experience-info .date {
  font-size: 0.85rem;
  color: #1a3d1a;
  font-weight: bold;
}

.experience-info .sub-info {
  font-size: 0.85rem;
  color: #2f4f2f;
  margin-bottom: 5px;
}

.experience-info .company-name {
  font-weight: bold;
}

.experience-info .location {
  font-style: italic;
}

.experience-info p {
  margin: 0;
  font-size: 0.9rem;
  color: #2f4f2f;
}

/* Mobile fix */
@media (max-width: 768px) {

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    justify-content: flex-start !important;
  }

  .timeline-content {
    width: 100%;
    margin-left: 40px;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-content::after {
    display: none;
  }
}


/* FEEDBACK BUTTON */

.section-title {
  font-size: 2.5rem;
  text-align: center;
  color: #2c572c;
  margin-bottom: 40px;
  position: relative;
  animation: floatTitle 3s ease-in-out infinite;
}

/* underline effect */
.section-title::after {
  content: "";
  width: 80px;
  height: 3px;
  background: #2c572c;
  display: block;
  margin: 5px auto 0;
  border-radius: 2px;
}

/* Center Add Feedback button inside feedback section */
#feedback .feedback-btn {
  display: block;               /* make it a block element so margin auto works */
  margin: 30px auto 0 auto;     /* 40px top margin, auto left/right to center, 0 bottom */
  background: linear-gradient(145deg, #2c572c, #4ea74e);
  color: white;
  padding: 12px 24px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(44, 87, 44, 0.55);
  transition: all 0.3s ease;
  text-transform: uppercase;
}

#feedback .feedback-btn:hover {
  transform: scale(1.05);
  background: linear-gradient(145deg, #4ea74e, #2c572c);
  box-shadow: 0 16px 38px rgba(44, 87, 44, 0.65);
}

/* ===== FEEDBACK CARDS ===== */
.feedback-container {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
}

.feedback-card {
  width: 350px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  padding: 25px 20px;
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  transition: 0.4s ease;
}

.feedback-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

/* HEADER: IMAGE + NAME + DATE */
.fb-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.fb-img {
  width: 100px;   /* bigger image */
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #2c572c;
  flex-shrink: 0;
}

.fb-info {
  display: flex;
  flex-direction: column;
}

.fb-name {
  font-weight: bold;
  font-size: 2.0rem;
  color: #2c572c;
  margin: 0;
}

.fb-date {
  font-size: 0.6rem; /* smaller date */
  color: #444;
  margin-top: 3px;
}

/* MESSAGE / FEEDBACK */
.fb-msg {
  margin-top: 15px;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.4;
}

.fb-role {
  font-size: 0.75rem;
  color: #2c572c;
  font-weight: 600;
  margin-top: 2px;
}

/* STARS */
.fb-stars {
  margin-top: 12px;
  display: flex;
  gap: 4px;
}

.fb-stars .star {
  font-size: 1.4rem;
  color: #bbb;
  transition: 0.3s;
}

.fb-stars .star.filled {
  color: #2c572c; /* green stars */
}

/* RESPONSIVE */
@media (max-width: 480px) {
  .feedback-card {
    width: 90%;
  }
  
  .fb-img {
    width: 60px;
    height: 60px;
  }
}


/* ===== MODAL STYLING ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Make modal-content relative so X button works */
.modal-content {
  position: relative;
  background: linear-gradient(145deg, #e8f9e6, #ffffff);

  width: 300px;        /* smaller */
  max-width: 85%;      /* tighter fit */

  padding: 20px 16px;  /* compact */
  border-radius: 18px;

  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  animation: popIn 0.3s ease;

  text-align: left;
}

/* Modal title */
.modal-title {
  margin-bottom: 15px;
  color: #2c572c;
  font-size: 1.3rem;
  font-weight: bold;
  text-align: center;
}

/* Close button */
.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  color: #2c572c;
  transition: 0.3s;
}

.close:hover {
  color: #174017;
}

/* Input and textarea styling */
.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 10px; /* adds spacing between fields */
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 0.85rem;
  box-sizing: border-box;
  transition: 0.3s;
}

.modal-content input:focus,
.modal-content textarea:focus {
  outline: none;
  border-color: #2c572c;
  box-shadow: 0 0 6px rgba(44,87,44,0.4);
}

/* Star selector */
.star-select {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.star-select span {
  font-size: 1.4rem;
  cursor: pointer;
  color: #bbb;
  transition: 0.3s;
}

.star-select span.active {
  color: #2c572c; /* green when selected */
}

/* Submit button */
.submit-btn {
  width: 100%;
  background: #2c572c;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.3s;
}

.submit-btn:hover {
  background: #174017;
  transform: scale(1.03);
}

/* Feedback Success Popup */
.feedback-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(135deg, #e0ffe3, #ffffff);
  border-radius: 25px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  animation: popIn 0.4s ease;
}

.feedback-success .tick {
  font-size: 3rem;
  color: #2c572c;
  animation: bounceTick 0.6s ease;
}

.feedback-success p {
  font-size: 1.2rem;
  color: #1b4d1b;
  font-weight: bold;
}

/* Bounce animation for tick */
@keyframes bounceTick {
  0% { transform: scale(0.3) rotate(-15deg); opacity: 0; }
  50% { transform: scale(1.2) rotate(10deg); opacity: 1; }
  70% { transform: scale(0.9) rotate(-5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* Modal pop-in animation */
@keyframes popIn {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 480px) {
  .modal-content {
    width: 92%;
    padding: 18px 14px;
  }
}

/* ===== CONTACT SECTION ===== */

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1100px;
  margin: auto;
  align-items: center;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  color: #2c572c;
  margin-bottom: 40px;
  position: relative;
  animation: floatTitle 3s ease-in-out infinite;
}

/* underline effect */
.section-title::after {
  content: "";
  width: 80px;
  height: 3px;
  background: #2c572c;
  display: block;
  margin: 5px auto 0;
  border-radius: 2px;
}

/* LEFT SIDE */
.contact-info {
  background: rgba(168,230,161,0.12);
  padding: 35px;
  border-radius: 25px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  text-align: center;
  transition: 0.4s ease;
}

.contact-info:hover {
  transform: translateY(-6px);
}

.contact-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  margin-bottom: 20px;
}

.contact-text {
  font-size: 1rem;
  line-height: 1.6;
}

.contact-details p {
  margin: 8px 0;
  font-weight: bold;
  color: #2c572c;
}
/* SOCIAL ICONS HORIZONTAL */
.social-links {
  display: flex;           /* horizontal layout */
  justify-content: center; /* center icons */
  align-items: center;     
  gap: 15px;               /* space between icons */
  margin-top: 20px;
}

.social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.3rem;
  transition: 0.3s;
}

.social-links a:hover {
  background: #2c572c;
  transform: scale(1.1);
}


/* FORM */
.contact-form {
  background: var(--card-bg);
  padding: 40px 35px;
  border-radius: 25px;
  box-shadow: 0 15px 45px rgba(0,0,0,0.18);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px 18px;
  border-radius: 15px;
  border: 1px solid #ccc;
  font-size: 1rem;
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #2c572c;
  box-shadow: 0 0 10px rgba(44,87,44,0.35);
}

/* BUTTON */
.contact-form button {
  background: #2c572c;
  color: white;
  padding: 14px;
  border-radius: 20px;
  border: none;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.contact-form button:hover {
  background: #174017;
}

.btn-loader {
  display: none;
  width: 22px;
  height: 22px;
  border: 3px solid white;
  border-top: 3px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* STATUS MESSAGE */
#formStatus {
  text-align: center;
  font-weight: bold;
  margin-top: 10px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}

/* ===== FLOATING SCROLL TOGGLE BUTTON ===== */
#scrollToggleBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #2c572c;
  color: white;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  animation: heartbeat 1.6s infinite;
  transition: transform 0.3s ease, background 0.3s ease;
}

#scrollToggleBtn:hover {
  background: #174017;
  transform: scale(1.15);
}

#scrollToggleBtn .arrow {
  transition: transform 0.4s ease;
}

/* Heartbeat animation */
@keyframes heartbeat {
  0%   { transform: scale(1); }
  14%  { transform: scale(1.15); }
  28%  { transform: scale(1); }
  42%  { transform: scale(1.15); }
  70%  { transform: scale(1); }
}

/* ===== FOOTER STYLING ===== */
.footer {
  position: relative;
  background: linear-gradient(135deg, #2c572c, #85d07e);
  color: #fff;
  padding: 20px 25px;
  width: 100%;
  margin-top: 60px;
  border-radius: 15px 15px 0 0;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.25), 0 0 15px rgba(255, 255, 255, 0.05);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  text-align: center;
  overflow: hidden; /* prevents horizontal scroll */
  z-index: 10;
}

/* gradient shimmer effect */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;          /* start fully inside footer */
  width: 200%;         /* spans footer without overflow */
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.05) 0%,
    rgba(255,255,255,0.15) 50%,
    rgba(255,255,255,0.05) 100%
  );
  background-size: 50% 100%; /* makes gradient stripe move smoothly */
  animation: slideGradient 6s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes slideGradient {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== FOOTER STYLING ===== */
.footer {
  position: relative;
  background: linear-gradient(135deg, #2c572c, #85d07e);
  color: #fff;
  padding: 15px 25px;
  width: 100%;
  margin-top: 60px;
  border-radius: 15px 15px 0 0;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.25), 0 0 15px rgba(255, 255, 255, 0.05);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  text-align: center;
  overflow: hidden;
  z-index: 10;
  box-sizing: border-box; /* ensures padding doesn't overflow */
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.05) 0%,
    rgba(255,255,255,0.15) 50%,
    rgba(255,255,255,0.05) 100%
  );
  background-size: 200% 100%;
  animation: slideGradient 6s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes slideGradient {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  max-width: 1200px; /* limits container width */
  margin: 0 auto;    /* centers the container */
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

.footer-left p {
  margin: 0;
  font-weight: 500;
}

/* ===== NAV LINKS ===== */
.footer-center {
  display: flex;
  flex-wrap: wrap;         /* wrap links if necessary */
  justify-content: flex-start; /* shift slightly left on desktop */
  align-items: center;
  gap: 20px;
  padding-left: 5px;       /* slight shift */
  box-sizing: border-box;
}

.footer-center a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: 0.3s;
}

.footer-center a::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: #d4ffd4;
  transition: 0.3s;
  border-radius: 2px;
  margin-top: 3px;
}

.footer-center a:hover::after {
  width: 100%;
}

.footer-center a:hover {
  color: #d4ffd4;
  text-shadow: 0 0 8px #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-container {
    max-width: 95%;  /* smaller max width */
  }
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 12px;
  }

  .footer-center {
    flex-direction: row;
    justify-content: center; /* center nav on mobile */
    gap: 12px;
    padding-left: 0;
  }
}

@media (max-width: 480px) {
  .footer-center a {
    font-size: 0.9rem;  /* shrink text for small screens */
  }
}