@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Jost", sans-serif;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  /* Desktop background */
  background: url("images/desktop\ bg.png") no-repeat center center/cover;
  position: relative;
}

/* Blur overlay */
body::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(3px);
  z-index: -1;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ========== NAVBAR STYLES ========== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  width: 100%;
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  z-index: 999;
  transition: all 0.3s ease;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 2rem;
  max-width: 1600px;
  position: relative;
}

.navbar-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: rgb(255, 231, 97);
  text-decoration: none;
  cursor: pointer;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  z-index: 1001;
}

.navbar-menu {
  display: flex;
  text-align: center;
  gap: 1.5rem;
  list-style: none;
}

.navbar-menu li a {
  text-decoration: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 25px;
  border: 2px solid transparent;
  transition: all 0.4s ease;
  white-space: nowrap;
}

.navbar-menu li a:hover,
.navbar-menu li a.active { 
  color: #162530;
  background: rgba(255, 217, 0, 0.8);
  border: 2px solid #ffd700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* Navbar Toggle - Hidden on desktop, shown on mobile */
.navbar-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  width: 30px;
  height: 30px;
  z-index: 1001;
  padding: 0;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 3px 0;
  background: rgb(255, 231, 97);
  transition: all 0.3s ease-in-out;
  border-radius: 2px;
}

/* Responsive Navbar */
@media (max-width: 880px) {
  .navbar-toggle {
    display: flex;
  }

  .navbar-menu {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: fixed;
    height: 100vh;
    width: 100%;
    top: 0;
    left: -100%;
    padding: 2rem;
    background: rgba(0, 50, 0, 0.98);
    transition: left 0.4s ease-in-out;
    z-index: 998;
  }

  .navbar-menu.active {
    left: 0;
  }

  .navbar-menu li a {
    font-size: 1.3rem;
    padding: 12px 30px;
    display: block;
    text-align: center;
    width: 100%;
  }

  .navbar-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .navbar-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .navbar-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}

/* Tablet view */
@media (max-width: 1024px) {
  body {
    /* Tablet background */
    background: url("images/tab\ bg.png") no-repeat center center/cover;
  }
}

/* Mobile view */
@media (max-width: 600px) {
  body {
    /* Mobile background */
    background: url("images/mobile\ bg.png") no-repeat center center/cover;
  }
  
  .navbar-container {
    padding: 0 1rem;
  }
  .navbar-logo {
    font-size: 1.5rem;
  }
}

/* Hero Section */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  animation: fadeIn 1s ease;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  width: 100%;
  max-width: 1200px;
  align-items: center;
}

.hero-text {
  padding: 2rem;
}

.hero-text h1 {
  font-size: 3rem;
  color: #ffeb3b;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.hero-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #fff;
}

.form-container {
  background: rgba(0, 80, 0, 0.8);
  padding: 2.5rem;
  border-radius: 20px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 215, 0, 0.5);
  animation: scaleIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.form-step {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
}

.form-step.active {
  display: flex;
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.candidate-form label, 
.candidate-form p {
  font-size: 1.3rem;
  font-weight: 500;
  color: #fffb00;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

select, input[type="checkbox"] {
  margin-right: 0.5rem;
}

select {
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: none;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: #006400;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23008000' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2rem;
}

select:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.5);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 1rem;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.checkbox-grid label:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.checkbox-grid input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #4caf50;
}

.checkbox-grid i {
  color: #ffeb3b;
  font-size: 1.5rem;
  width: 30px;
  text-align: center;
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.sector-btn {
  background: rgba(76, 175, 80, 0.8);
  border: none;
  padding: 1.2rem;
  border-radius: 15px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.sector-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.sector-btn.selected {
  background: rgba(255, 193, 7, 0.9);
  color: #006400;
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
}

.sector-btn i {
  font-size: 1.8rem;
}

.next-btn, .submit-btn {
  align-self: center;
  background: linear-gradient(to right, #ffeb3b, #ffc107);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  color: #006400;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.next-btn:hover, .submit-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Results Section */
.results-container {
  display: none;
  background: rgba(0, 100, 0, 0.9);
  padding: 2.5rem;
  border-radius: 20px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 215, 0, 0.5);
  animation: scaleIn 0.5s ease;
}

.results-container h2 {
  color: #ffeb3b;
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.career-option {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 15px;
  margin-bottom: 1rem;
  border-left: 5px solid #ffeb3b;
  transition: all 0.3s ease;
}

.career-option:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.15);
}

.career-option h3 {
  color: #ffeb3b;
  margin-bottom: 0.5rem;
}

.career-option p {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.progress {
  height: 100%;
  background: linear-gradient(to right, #ffeb3b, #ff9800);
  border-radius: 5px;
  width: 0;
  transition: width 1s ease-in-out;
}

.restart-btn {
  display: block;
  margin: 2rem auto 0;
  background: linear-gradient(to right, #4caf50, #2e7d32);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.restart-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Section Styling */
.section {
  padding: 5rem 2rem;
  background: rgba(0, 50, 0, 0.7);
  margin: 2rem 0;
  border-radius: 20px;
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section h2 {
  text-align: center;
  color: #ffeb3b;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  height: 200px;
  perspective: 1000px;
}

.service-card.flipped {
  height: auto;
}

.service-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.service-card.flipped .service-icon {
  transform: rotateY(180deg);
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
}

.service-icon i {
  font-size: 3rem;
  color: #ffeb3b;
  margin-bottom: 1rem;
}

.service-icon span {
  color: #ffeb3b;
  font-weight: 600;
  text-align: center;
}

.service-details {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  opacity: 0;
  transform: rotateY(-180deg);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-card.flipped .service-details {
  opacity: 1;
  transform: rotateY(0);
  position: relative;
}

.service-details h3 {
  color: #ffeb3b;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-details p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.service-link {
  display: inline-block;
  margin-top: 1rem;
  color: #ffeb3b;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.service-link:hover {
  color: #ffc107;
  transform: translateX(5px);
}

/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.blog-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 80, 0, 0.5);
}

.blog-image i {
  font-size: 4rem;
  color: #ffeb3b;
}

.blog-content {
  padding: 1.5rem;
}

.blog-content h3 {
  color: #ffeb3b;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.blog-date {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.blog-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.blog-link {
  color: #ffeb3b;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-link:hover {
  text-decoration: underline;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  color: #ffeb3b;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.contact-info p {
  margin-bottom: 2rem;
  line-height: 1.6;
}
/* Contact Details */
.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail i {
  color: #ffeb3b;
  font-size: 1.2rem;
  width: 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #ffeb3b;
  background: rgba(255, 255, 255, 0.15);
}

.contact-form button {
  background: linear-gradient(to right, #ffeb3b, #ffc107);
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  color: #006400;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.contact-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
  background: rgba(0, 30, 0, 0.9);
  padding: 3rem 2rem 1rem;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: #ffeb3b;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.footer-section p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-section ul li a:hover {
  color: #ffeb3b;
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: #ffeb3b;
  color: #006400;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
  font-size: 0.9rem;
}

/* Loading State */
.submit-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.submit-btn.loading::after {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid #006400;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 1rem;
  }
  
  .hero-text h1 {
    font-size: 2.2rem;
  }
  
  .hero-text p {
    font-size: 1.1rem;
  }
  
  .form-container {
    padding: 1.5rem;
  }
  
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
  
  .sector-grid {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    height: 120px;
  }
  
  .service-icon {
    flex-direction: row;
    gap: 1rem;
    padding: 1rem;
  }
  
  .service-icon i {
    font-size: 2rem;
    margin-bottom: 0;
  }
  
  .service-icon span {
    font-size: 1.1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .section {
    padding: 3rem 1rem;
    width: 95%;
  }
}

@media (max-width: 480px) {
  .navbar-logo {
    font-size: 1.3rem;
  }
  
  .hero-text h1 {
    font-size: 1.8rem;
  }
  
  .candidate-form label, 
  .candidate-form p {
    font-size: 1.1rem;
  }
  
  .next-btn, .submit-btn, .restart-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  
  .service-card {
    height: 100px;
  }
  
  .service-icon i {
    font-size: 1.5rem;
  }
  
  .service-icon span {
    font-size: 1rem;
  }
}

/* Form Error Styles */
.form-error {
  color: #ff6b6b;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.8rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  text-align: center;
  animation: shake 0.5s ease;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}
/* Remove styling from service links */
.service-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Simplify Service Cards */
.service-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  height: 200px;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.15);
}

.service-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.service-icon i {
  font-size: 3rem;
  color: #ffeb3b;
  margin-bottom: 1rem;
}

.service-icon span {
  color: #ffeb3b;
  font-weight: 600;
  text-align: center;
}

.service-details {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.service-details h3 {
  color: #ffeb3b;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-details p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.service-link {
  display: inline-block;
  margin-top: 1rem;
  color: #ffeb3b;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.service-link:hover {
  color: #ffc107;
  transform: translateX(5px);
}
/* Mobile Responsive Styles for Services */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .service-card {
    height: 100px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 235, 59, 0.3);
    border-radius: 15px;
    transition: all 0.3s ease;
  }

  .service-card:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffeb3b;
  }

  .service-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem;
    width: 100%;
    height: 100%;
  }

  .service-icon i {
    font-size: 2.5rem;
    color: #ffeb3b;
    margin-bottom: 0;
  }

  .service-icon span {
    display: none; /* Hide text on mobile */
  }

  .service-details {
    display: none; /* Hide details on mobile */
  }
}

/* For smaller mobile screens */
@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }

  .service-card {
    height: 90px;
  }

  .service-icon i {
    font-size: 2rem;
  }
}

/* For very small screens - adjust to 2 columns if needed */
@media (max-width: 360px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .service-card {
    height: 85px;
  }

  .service-icon i {
    font-size: 1.8rem;
  }
}
/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  height: 200px;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.15);
}

.service-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.service-icon i {
  font-size: 3rem;
  color: #ffeb3b;
  margin-bottom: 1rem;
}

.service-icon span {
  color: #ffeb3b;
  font-weight: 600;
  text-align: center;
}

.service-details {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  opacity: 0;
  transform: rotateY(-180deg);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-card.flipped .service-details {
  opacity: 1;
  transform: rotateY(0);
  position: relative;
}

.service-details h3 {
  color: #ffeb3b;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-details p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.service-link {
  display: inline-block;
  margin-top: 1rem;
  color: #ffeb3b;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.service-link:hover {
  color: #ffc107;
  transform: translateX(5px);
}

/* Mobile Responsive Styles for Services */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .service-card {
    height: 100px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 235, 59, 0.3);
    border-radius: 15px;
  }

  .service-card:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffeb3b;
  }

  .service-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem;
    width: 100%;
    height: 100%;
  }

  .service-icon i {
    font-size: 2.5rem;
    color: #ffeb3b;
    margin-bottom: 0;
  }

  .service-icon span {
    display: none; /* Hide text on mobile */
  }

  .service-details {
    display: none; /* Hide details on mobile */
  }
  
  /* Remove flip animation for mobile */
  .service-card.flipped .service-details {
    display: none;
  }
}

/* For smaller mobile screens */
@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }

  .service-card {
    height: 90px;
  }

  .service-icon i {
    font-size: 2rem;
  }
}

/* For very small screens */
@media (max-width: 360px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .service-card {
    height: 85px;
  }

  .service-icon i {
    font-size: 1.8rem;
  }
}
/* Optional: Show service name briefly on tap */
@media (max-width: 768px) {
  .service-card:active .service-icon span {
    display: block;
    position: absolute;
    bottom: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffeb3b;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    white-space: nowrap;
  }
}
/* Blog Section Mobile Fixes */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-card {
    margin-bottom: 1rem;
  }

  .blog-image {
    height: 150px;
  }

  .blog-image i {
    font-size: 3rem;
  }

  .blog-content {
    padding: 1.2rem;
  }

  .blog-content h3 {
    font-size: 1.2rem;
  }

  .blog-content p {
    font-size: 0.95rem;
  }
}

/* Contact Section Mobile Fixes */
@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info {
    text-align: center;
  }

  .contact-detail {
    justify-content: center;
    text-align: center;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 0.8rem;
    font-size: 1rem;
  }

  .contact-form button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}

/* Footer Section Mobile Fixes */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-section {
    margin-bottom: 1.5rem;
  }

  .footer-section ul {
    padding: 0;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-bottom {
    padding-top: 1rem;
    font-size: 0.8rem;
  }
}

/* Smaller Mobile Screens */
@media (max-width: 480px) {
  /* Blog Section */
  .blog-image {
    height: 120px;
  }

  .blog-image i {
    font-size: 2.5rem;
  }

  .blog-content {
    padding: 1rem;
  }

  .blog-content h3 {
    font-size: 1.1rem;
  }

  /* Contact Section */
  .contact-form input,
  .contact-form textarea {
    padding: 0.7rem;
    font-size: 0.9rem;
  }

  .contact-form button {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }

  /* Footer Section */
  .footer {
    padding: 2rem 1rem 1rem;
  }

  .footer-section h3 {
    font-size: 1.1rem;
  }

  .social-icons a {
    width: 35px;
    height: 35px;
  }
}

/* Very Small Screens */
@media (max-width: 360px) {
  /* Blog Section */
  .blog-image {
    height: 100px;
  }

  .blog-image i {
    font-size: 2rem;
  }

  .blog-content h3 {
    font-size: 1rem;
  }

  /* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  color: #ffeb3b;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.contact-info p {
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail i {
  color: #ffeb3b;
  font-size: 1.2rem;
  width: 30px;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: "Jost", sans-serif;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #ffeb3b;
  background: rgba(255, 255, 255, 0.15);
}

.contact-form button {
  background: linear-gradient(to right, #ffeb3b, #ffc107);
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  color: #006400;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.contact-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Contact Section Mobile Fix */
@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
  }

  .contact-info {
    text-align: center;
    padding: 0 1rem;
  }

  .contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .contact-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: center;
  }

  .contact-detail {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
  }

  .contact-detail i {
    font-size: 1.5rem;
    width: auto;
    margin-bottom: 0.5rem;
  }

  .contact-detail span {
    font-size: 1.1rem;
    word-break: break-word;
  }

  .contact-form {
    width: 100%;
    padding: 0 0.5rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 1.2rem;
    font-size: 1.1rem;
    border-radius: 12px;
  }

  .contact-form textarea {
    min-height: 140px;
  }

  .contact-form button {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    width: 100%;
    margin-top: 1.5rem;
  }
}

/* Smaller Mobile Screens */
@media (max-width: 480px) {
  .contact-info h3 {
    font-size: 1.6rem;
    text-align: center;
  }

  .contact-info p {
    font-size: 1rem;
  }

  .contact-detail span {
    font-size: 1rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 1rem;
    font-size: 1rem;
  }

  .contact-form button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
}

/* Very Small Screens */
@media (max-width: 360px) {
  .contact-info {
    padding: 0 0.5rem;
  }

  .contact-info h3 {
    font-size: 1.4rem;
  }

  .contact-info p {
    font-size: 0.95rem;
  }

  .contact-detail span {
    font-size: 0.95rem;
  }

  .contact-form {
    padding: 0;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 0.8rem;
    font-size: 0.95rem;
  }

  .contact-form button {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }
}

  /* Footer Section */
  .footer {
    padding: 1.5rem 0.8rem 0.8rem;
  }

  .social-icons {
    gap: 0.5rem;
  }

  .social-icons a {
    width: 32px;
    height: 32px;
  }
}

/* Section Padding Adjustments for Mobile */
@media (max-width: 768px) {
  .section {
    padding: 3rem 1rem;
    width: 95%;
    margin: 1rem auto;
  }

  .section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
}

/* Ensure proper spacing between sections on mobile */
@media (max-width: 768px) {
  #blog {
    margin: 1rem auto;
  }

  #contact {
    margin: 1rem auto;
  }

  .footer {
    margin-top: 2rem;
  }
}
/* Contact Form Improvements */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: "Jost", sans-serif;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* Contact Details Alignment Fix */
.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .contact-detail {
    justify-content: flex-start;
    text-align: left;
  }
  
  .contact-info {
    text-align: left;
  }
}
/* Footer Links Alignment */
.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

@media (max-width: 768px) {
  .footer-section ul li a {
    padding: 0.3rem 0;
  }
  
  .footer-section ul li a:hover {
    padding-left: 0;
    color: #ffeb3b;
  }
}
/* Section Padding Adjustments for Mobile */
@media (max-width: 768px) {
  .section {
    padding: 2.5rem 1rem;
    width: 95%;
    margin: 1rem auto;
    border-radius: 15px;
  }

  #contact {
    margin: 1rem auto;
    padding: 2.5rem 1rem;
  }

  .section h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }
}
/* Mobile Service Text */
@media (max-width: 768px) {
  .service-icon span {
    display: block !important;
    font-size: 0.7rem;
    margin-top: 0.3rem;
    text-align: center;
    color: #ffeb3b;
  }
  
  .service-card {
    height: 110px; /* Slightly increase height to accommodate text */
  }
  
  .service-icon {
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .service-icon span {
    font-size: 0.65rem;
  }
  
  .service-card {
    height: 105px;
  }
}

@media (max-width: 360px) {
  .service-icon span {
    font-size: 0.6rem;
  }
  
  .service-card {
    height: 100px;
  }
}
/* Compact Blog Section for Mobile */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    max-height: 400px;
    overflow-y: auto;
  }
  
  .blog-card {
    margin-bottom: 0;
    padding: 0;
    min-height: auto;
    display: flex;
    flex-direction: row;
    height: 100px;
  }
  
  .blog-image {
    height: 100px;
    width: 100px;
    min-width: 100px;
    flex-shrink: 0;
  }
  
  .blog-image i {
    font-size: 1.8rem;
  }
  
  .blog-content {
    padding: 0.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .blog-content h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    line-height: 1.2;
  }
  
  .blog-date {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
  }
  
  .blog-content p {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    overflow: hidden;
    max-height: 2.6em; /* Limit to 2 lines */
  }
  
  .blog-link {
    font-size: 0.8rem;
  }
  
  #blog .section {
    padding: 1.5rem 1rem;
  }
  
  #blog h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .blog-grid {
    max-height: 750px;
    gap: 0.6rem;
  }
  
  .blog-card {
    height: 200px;
  }
  
  .blog-image {
    height: 100px;
    width: 100px;
  }
  
  .blog-image i {
    font-size: 1.5rem;
  }
  
  .blog-content {
    padding: 0.6rem;
  }
  
  .blog-content h3 {
    font-size: 0.9rem;
  }
  
  .blog-content p {
    font-size: 0.7rem;
    max-height: 2.4em; /* Limit to 2 lines */
  }
}

/* Remove extra margin and padding */
@media (max-width: 768px) {
  #blog {
    margin: 0.5rem auto;
  }
}
/* Make entire blog card clickable */
@media (max-width: 768px) {
  .blog-card {
    position: relative;
    cursor: pointer;
  }
  
  .blog-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
  }
  
  .blog-link {
    position: relative;
    z-index: 2;
  }
}