/* ---------- Global Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #ffffff;  /* White background */
  color: #212121;       /* Dark text for readability */
}


/* ---------- Navigation ---------- */
nav {
  background-color: #081f3f;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin: 10px 20px;
}

nav ul li a {
  color: #e3b546; 
  text-decoration: none;
  font-size: 16px;
  position: relative;
  transition: color 0.3s ease;
}

nav ul li a::after {
  content: '';
  width: 0%;
  height: 3px;
  background: #e3b546;
  position: absolute;
  left: 0;
  bottom: -6px;
  transition: width 0.5s;
}

nav ul li a:hover {
  color: #ffffff; /* white text on hover */
}

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

/* ---------- HERO SECTION ---------- */
.header-content {
  text-align: center;
  padding: 100px 20px 60px;
}

.motto {
  font-size: 20px;
  color: #e3b546;
  margin-bottom: 10px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  color: #081f3f
}

.hero-title span {
  color: #e3b546;
}

.hero-subtext {
  margin-top: 15px;
  font-size: 18px;
  color: #ababab;
}

/* ---------- ABOUT TOPSCORE METHOD SECTION ---------- */
#about {
  padding: 80px 10%;
  color: #081f3f;
  line-height: 1.6;
}

#about h2 {
  font-size: 36px;
  color: #081f3f;
  margin-bottom: 20px;
}

.about-layout .about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.about-layout .about-image {
  flex: 1;
}

.about-layout .about-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
}

.about-layout .about-text {
  flex: 2;
}

.about-image img {
  width: 50%;
  height: auto;
  display: block;
  margin-bottom: 20px;
}


/* ---------- SERVICES SECTION ---------- */
#services {
  padding: 80px 10% 100px;
  background-color: #081f3f;
  position: relative;
}



#services h2 {
  font-size: 36px;
  color: #e3b546;
  margin-bottom: 20px;
  text-align: center;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.service {
  background: #e3b546;
  border-radius: 10px;
  position: relative;
  padding: 30px 20px;
  text-align: center;
  color: #e3b546;
  font-weight: bold;
  transition: transform 0.5s;
}

.service-title {
  font-size: 20px;
  margin-bottom: 15px;
  color: #081f3f;
  transition: opacity 0.5s ease;
}

.service:hover .service-title {
  opacity: 0; /* Fades out title on hover */
}

.service-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), #e3b546);
  border-radius: 10px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  overflow: hidden;
  transition: height 0.5s;
}

.service:hover .service-layer {
  height: 100%;
}

.service-layer p {
  font-size: 14px;
  font-weight: normal;
}

/* ---------- Contact CTA Button (used outside form) ---------- */
a.btn.btn-contact {
  background-color: #e3b546;
  color: #081f3f;
  padding: 14px 24px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

a.btn.btn-contact:hover {
  background-color: #00915e;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ---------- About Judy Page Section ---------- */
.section {
  padding: 80px 10%;
  line-height: 1.7;
  color: #081f3f;
}

.section h2 {
  font-size: 36px;
  margin-bottom: 25px;
  color: #081f3f;
}

.section p {
  margin-bottom: 25px;
  font-size: 17px;
  color: #212121;
}

/* ---------- CONTACT PAGE ---------- */
.contact-page {
  background: linear-gradient(to right, #0f2a50, #081f3f);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.contact-container {
  background-color: #ffffff;
  padding: 50px 40px;
  border-radius: 16px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
  max-width: 800px;
  width: 100%;
  color: #212121;
}

.contact-container h2 {
  font-size: 36px;
  color: #081f3f;
  margin-bottom: 10px;
  text-align: center;
}

.contact-container p {
  font-size: 18px;
  color: #555;
  text-align: center;
  margin-bottom: 30px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-row input {
  flex: 1;
  min-width: 200px;
}

form input,
form textarea {
  padding: 16px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 16px;
  background-color: #f9f9f9;
  color: #212121;
  transition: border 0.3s ease, background-color 0.3s ease;
}

form input:focus,
form textarea:focus {
  border-color: #4CAF50;
  background-color: #fff;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 140px;
}

/* ---------- BUTTON STYLING ---------- */
.btn {
  display: inline-block;
  font-size: 16px;
  font-weight: bold;
  padding: 14px 26px;
  border: none;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.btn-submit {
  background-color: #4CAF50;
  color: #fff;
  margin-top: 10px;
}

.btn-submit:hover {
  background-color: #45a049;
  transform: translateY(-2px);
}

.back-btn {
  background-color: #e60045;
  color: #fff;
  display: block;
  width: fit-content;
  margin: 30px auto 0;
}

.back-btn:hover {
  background-color: #c1003a;
  transform: translateY(-2px);
}

/* ---------- MESSAGE FEEDBACK ---------- */
#msg {
  font-size: 15px;
  font-weight: 500;
  color: #081f3f;
  text-align: center;
  margin-top: 10px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    padding: 14px;
  }
}

/* ---------------portfolio--------------- */
#portfolio{
    padding: 50px 0;
}
.work-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}
.work{
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}
.work img{
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}
.layer{
    width: 100%;
    height: 0%;
    background: linear-gradient(rgba(0,0,0,0.6), #e3b546);
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    font-size: 14px;
    transition: height 0.5s;
}
.layer h3{
    font-weight: 500;
    margin-bottom: 20px;
}
.layer a{
    margin-top: 20px;
    color: #e3b546;
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
}
.work:hover img{
    transform: scale(1.1);
}
.work:hover .layer{
    height: 100%;
}
.btn{
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #e3b546;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
}
.btn:hover{
    background: #e3b546;
}
#student-responsibility {
    padding-top: 0px; 
    margin-top: 0;
}
/* ---------- UNIVERSAL FOOTER ---------- */
footer {
  background-color: #081f3f;
  color: #ffffff;
  padding: 50px 0 20px;
  margin-top: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-section {
  margin-bottom: 30px;
}

.footer-section h3 {
  color: #e3b546;
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: 600;
}

.footer-section p {
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #e3b546;
}

.footer-contact-info {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: #cccccc;
}

.footer-contact-info i {
  color: #e3b546;
  margin-right: 10px;
  width: 20px;
}

.footer-bottom {
  border-top: 1px solid #2a4a6b;
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
  color: #cccccc;
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 20px;
  }
}

/* ---------- TESTIMONIALS SECTION ---------- */
.testimonials-section {
  padding: 80px 10%;
  background: #f8f9fa;
  color: #081f3f;
  text-align: center;
}
.testimonials-section h2 {
  color: #e3b546;
  font-size: 36px;
  margin-bottom: 40px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  justify-items: center;
}
.testimonial-card {
  background: #fff;
  color: #081f3f;
  border-radius: 12px;
  padding: 32px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.3s, transform 0.3s, border 0.3s;
  border: 2px solid transparent;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(227,181,70,0.18), 0 2px 12px rgba(0,0,0,0.10);
  transform: translateY(-6px) scale(1.03);
  border: 2px solid #e3b546;
}
.quote-icon {
  color: #e3b546;
  font-size: 32px;
  margin-bottom: 18px;
}
.testimonial-quote {
  font-size: 17px;
  color: #081f3f;
  margin-bottom: 18px;
  line-height: 1.6;
}
.testimonial-author {
  color: #e3b546;
  font-weight: bold;
  font-size: 16px;
}

@media (max-width: 768px) {
  .testimonials-section {
    padding: 60px 5%;
  }
  
  .testimonials-section h2 {
    font-size: 28px;
    margin-bottom: 40px;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .testimonial-card {
    padding: 25px;
  }
}

.read-more-btn {
  display: inline-block;
  margin-top: 10px;
  background: #e3b546;
  color: #081f3f;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.read-more-btn:hover {
  background: #cf9e2c;
  color: #fff;
}


/* ---------- MOBILE STYLING ONLY ---------- */
@media (max-width: 768px) {
  /* Stack nav vertically */
  nav {
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  nav ul li {
    margin: 8px 0;
  }

  /* Logo behavior */
  .logo-container {
    display: flex;
    justify-content: center;
    padding: 10px 0;
  }

  .logo-img {
    display: block;
    width: 150px;
    height: auto;
    margin: 0 auto 10px;
  }

  /* Hero Section */
  .hero-title {
    font-size: 36px;
  }

  /* Buttons */
  .btn,
  a.btn.btn-contact {
    width: 100%;
    text-align: center;
    padding: 16px;
  }

  /* Form responsiveness */
  .form-row {
    flex-direction: column;
  }

  /* Footer layout */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-image {
    order: -1; /* This moves the logo above the text */
    margin-bottom: 1rem;
  }

  .about-text {
    order: 0;
  }

  .about-image img {
    max-width: 200px; /* Optional: resize logo for mobile */
    height: auto;
  }
}

.about-judy-img {
  width: 100%;
  max-width: 350px;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive handling */
@media (min-width: 768px) {
  .about-judy-img {
    float: right;
    margin-left: 30px;
    margin-top: 0;
  }
}

.social-links a {
  display: block;
  color: #cccccc;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.3s ease;
  font-size: 16px;
}

.social-links a i {
  color: #e3b546;
  margin-right: 10px;
  font-size: 18px;
}

.social-links a:hover {
  color: #ffffff;
}