/* Variables */
:root {
  --primary-color: #4caf50;
  --secondary-color: #45a049;
  --text-color: #333;
  --light-color: #fff;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Base Styles */
body {
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: var(--text-color);
}

/* Header Styles */
header {
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 1rem 0;
  text-align: center;
  animation: fadeIn 1s ease-in;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1 {
  margin: 0;
  padding: 0 20px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: space-between;
}

nav ul li {
  margin: 0 20px;
}

nav ul li a {
  color: var(--light-color);
  text-decoration: none;
  transition: var(--transition);
}

nav ul li a:hover {
  color: var(--secondary-color);
}

/* Hero Section Styles */
#hero {
  background-color: #f2f2f2;
  padding: 5rem 2rem;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h2 {
  margin: 0;
  padding: 0;
  font-size: 2.5rem;
  font-weight: bold;
}

.hero-content p {
  margin: 1rem 0;
  padding: 0;
  font-size: 1.2rem;
}

.cta-button {
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.cta-button:hover {
  background-color: var(--secondary-color);
}

/* About Section Enhanced Styles */
#about {
    padding: 60px 0;
    background-color: #e7f3fe;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-text p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.feature {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.feature i {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 15px;
}

.feature h4 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 1.3em;
}

.feature p {
    color: #666;
    font-size: 1em;
    line-height: 1.6;
}

.achievements {
    margin-top: 40px;
}

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

.achievements li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    color: #555;
    font-size: 1.1em;
}

.achievements li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* About Section Responsive Styles */
@media (max-width: 768px) {
    #about {
        padding: 40px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-text p {
        font-size: 1em;
    }

    .feature {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
}
/* Services Section Styles */
#services {
  background-color: #fff3cd;
  padding: 4rem 2rem;
}

#services h2 {
  margin: 0;
  padding: 0;
  font-size: 2rem;
  font-weight: bold;
}

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

.service-card {
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  margin: 0;
  padding: 0;
  font-size: 1.5rem;
  font-weight: bold;
}

.service-card p {
  margin: 1rem 0;
  padding: 0;
  font-size: 1.2rem;
}

/* Contact Section Styles */
#contact {
  background-color: #f9f9f9;
  padding: 4rem 2rem;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.head-office-container {
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.address-card {
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin: 2rem 0;
  transition: var(--transition);
}

.address-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.address-card h3 {
  margin: 0;
  padding: 0;
  font-size: 1.5rem;
  font-weight: bold;
}

.address-card p {
  margin: 1rem 0;
  padding: 0;
  font-size: 1.2rem;
}

.contact-info {
  margin-top: 1rem;
}

.contact-info p {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.contact-info i {
  margin-right: 10px;
  color: var(--primary-color);
}

.office-hours {
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.office-hours h3 {
  margin: 0;
  padding: 0;
  font-size: 1.5rem;
  font-weight: bold;
}

.office-hours p {
  margin: 1rem 0;
  padding: 0;
  font-size: 1.2rem;
}

.map-container {
  width: 100%;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
  transition: var(--transition);
}

.map-container:hover .map-overlay {
  background: rgba(0, 0, 0, 0);
}

/* Enquiry Form Styles */
#enquiry-form {
  background: linear-gradient(135deg, #ffffff, #e8f5fe);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(41, 128, 185, 0.15);
  margin: 2rem auto;
  max-width: 800px;
  position: relative;
  overflow: hidden;
  animation: formAppear 1s ease-out;
}

#enquiry-form::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    rgba(52, 152, 219, 0.1),
    rgba(46,  204, 113, 0.1)
  );
  animation: rotate 15s linear infinite;
  z-index: 0;
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
  z-index: 1;
}

label {
  color: #2c3e50;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  display: block;
  transform: translateX(0);
  transition: all 0.3s ease;
}

.form-group:hover label {
  transform: translateX(10px);
  color: #3498db;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 1.2rem;
  border: 2px solid #bdc3c7;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  color: #34495e;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #3498db;
  box-shadow: 0 0 20px rgba(52, 152, 219, 0.2);
  transform: translateY(-2px);
  outline: none;
}

/* Remove red validation styling */
input:invalid,
select:invalid,
textarea:invalid {
  border-color: #bdc3c7;
  box-shadow: none;
}

select {
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #3498db 50%),
                    linear-gradient(135deg, #3498db 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(1em + 2px),
                       calc(100% - 15px) calc(1em + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  appearance: none;
}

/* Modern gradient submit button */
input[type="submit"] {
  width: 100%;
  padding: 1.3rem;
  background: linear-gradient(45deg, #3498db, #2ecc71);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

input[type="submit"]:hover {
  background: linear-gradient(45deg, #2ecc71, #3498db);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3);
}

/* Custom styling for form fields */
.form-group {
  position: relative;
}

.form-group::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #3498db, #2ecc71);
  transition: width 0.3s ease;
}

.form-group:focus-within::after {
  width: 100%;
}

/* Placeholder styling */
::placeholder {
  color: #95a5a6;
  opacity: 0.7;
}

/* Required field indicator */
.required-field::after {
  content: '*';
  color: #3498db;
  margin-left: 4px;
}

/* Success state styling */
.form-group.success input {
  border-color: #2ecc71;
}

/* Focus state with gradient border */
input:focus,
select:focus,
textarea:focus {
  border-image: linear-gradient(45deg, #3498db, #2ecc71);
  border-image-slice: 1;
}

/* Enhanced animations */
@keyframes formAppear {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating label animation */
.form-group {
  position: relative;
}

.floating-label {
  position: absolute;
  top: 0;
  left: 15px;
  transform: translateY(-50%);
  background: white;
  padding: 0 5px;
  font-size: 0.9rem;
  color: #3498db;
  opacity: 0;
  transition: all 0.3s ease;
}

.form-group:focus-within .floating-label {
  opacity: 1 ;
}

/* Modern scroll bar for textarea */
textarea::-webkit-scrollbar {
  width: 8px;
}

textarea::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #3498db, #2ecc71);
  border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #enquiry-form {
    padding: 2rem;
  }
  
  input[type="submit"] {
    padding: 1rem;
    font-size: 1.1rem;
  }
}

/* Animations */
@keyframes formFloat {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titlePulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Form validation styling */
input:invalid,
select:invalid,
textarea:invalid {
  border-color: #e74c3c;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #enquiry-form {
    padding: 1.5rem;
  }
  
  input[type="submit"] {
    padding: 1rem;
  }
}

/* Loading animation for form submission */
.submitting {
  position: relative;
}

.submitting::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Footer Styles */
footer {
  background: linear-gradient(45deg, #4caf50, #2196f3);
  color: var(--light-color);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50 %;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  animation: ripple 15s linear infinite;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.5s ease-out;
}

.footer-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.footer-section h3 {
  margin: 0 0 1rem;
  padding: 0;
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffeb3b;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

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

.footer-section li {
  margin: 0.5rem 0;
  padding: 0;
}

.footer-section a {
  color: var(--light-color);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.footer-section a:hover {
  color: #ffeb3b;
  transform: translateX(5px);
}

.social-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.social-links a {
  margin: 0 10px;
  font-size: 1.5rem;
  color: var(--light-color);
  transition: color 0.3s ease, transform 0.3s ease;
}

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

@keyframes ripple {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }

  .map-container {
    height: 300px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-section {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Add these styles to your existing CSS */

.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
}

.submit-button:hover {
    background: #45a049;
}

.submit-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.form-success {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

.form-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

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

/* Container for centering the image */
.responsive {
  display: block;        /* Remove inline-block behavior */
  margin: 0 auto;        /* Horizontal center */
  max-width: 100%;       /* Ensure it doesn't exceed the container */
  height: auto;          /* Maintain aspect ratio */
}

/* Optional: If you want to center it within a parent container */
.center-container {
  display: flex;
  justify-content: center; /* Horizontal centering */
  align-items: center;     /* Vertical centering */
  height: 100vh;           /* Full viewport height */
}
