/* --- Reset & Variables --- */
:root {
  --primary-color: #21397b; /* Navy Blue from Logo Background */
  --secondary-color: #24b4c4; /* Cyan from FJA text */
  --accent-color: #f5c324; /* Gold/Yellow from Professional text */
  --text-main: #333333; 
  --text-light: #666666;
  --bg-color: #ffffff;
  --bg-gray: #f4f6f9; /* Light gray for form inputs and sections */
  --white: #ffffff;
  
  --font-primary: 'Outfit', sans-serif;
  --font-secondary: 'Inter', sans-serif;
  
  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-secondary);
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color);
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- Typography --- */
.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 4px;
  font-family: var(--font-primary);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
  border: none;
  outline: none;
  font-size: 1.05rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transform: translateY(0) scale(1);
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--primary-color) !important;
  box-shadow: 0 4px 15px rgba(245, 195, 36, 0.3);
}
.btn-primary:hover {
  background-color: var(--secondary-color);
  color: var(--white) !important;
  box-shadow: 0 8px 25px rgba(36, 180, 196, 0.5);
  transform: translateY(-4px) scale(1.03);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}
.btn-outline:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(36, 180, 196, 0.4);
}

/* --- Keyframe Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(245, 195, 36, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(245, 195, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 195, 36, 0); }
}

/* --- Layout Utils --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 5rem 0; }

/* --- Navbar --- */
.navbar {
  background: 
    radial-gradient(circle at top left, rgba(255,255,255,0.03) 0%, transparent 40%),
    radial-gradient(circle at bottom right, rgba(255,255,255,0.03) 0%, transparent 40%),
    linear-gradient(135deg, var(--primary-color) 0%, #0b1120 100%);
  padding: 1rem 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--accent-color); /* Matches the footer top border style nicely */
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 95px; /* Increased logo size */
  transition: transform 0.4s ease;
}
.logo a:hover img {
  transform: scale(1.05); /* Slight pop on logo hover */
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 1.05rem; /* Slightly larger nav text */
  color: var(--white);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%; /* Underline animation on hover */
}

.nav-links a:hover, .nav-links a.active {
  color: var(--secondary-color);
}

.nav-links .btn-primary {
  color: var(--primary-color) !important;
  animation: pulseGlow 2s infinite; /* Dynamic pulsating button */
}
.nav-links .btn-primary::after {
  display: none; /* No underline for button */
}

/* --- Navbar Dropdown --- */
.dropdown {
  position: relative;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--primary-color);
  min-width: 280px;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  padding: 0;
}
.dropdown:hover .dropdown-menu {
  display: block;
}
.dropdown-menu li {
  border-bottom: 1px dashed rgba(255,255,255,0.2);
}
.dropdown-menu li:last-child {
  border-bottom: none;
}
.dropdown-menu a {
  display: block;
  padding: 15px 20px;
  color: var(--white) !important;
  font-size: 0.95rem;
  font-weight: 500;
}
.dropdown-menu a:hover {
  background-color: var(--secondary-color);
  padding-left: 25px; /* slight indent on hover */
}

.hamburger { display: none; cursor: pointer; }
.hamburger div {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 5px;
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  background: linear-gradient(rgba(33, 57, 123, 0.75), rgba(33, 57, 123, 0.75)), url('../assets/images/14.jpeg') center/cover no-repeat;
  color: var(--white);
  padding: 120px 0 160px; /* Extra bottom padding for the floating form */
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: var(--white); 
  text-shadow: 2px 4px 10px rgba(0,0,0,0.8);
  opacity: 0;
  line-height: 1.2;
  animation: fadeInUp 0.8s ease forwards;
}

.highlight-gold {
  color: var(--accent-color);
}

.highlight-cyan {
  color: var(--secondary-color);
}

.hero-subtitle {
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 400;
  color: var(--white);
  text-shadow: 1px 2px 5px rgba(0,0,0,0.8);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

/* --- Floating Hero Features --- */
.hero-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: -60px auto 4rem; /* Pulls it up over the hero */
  position: relative;
  z-index: 10;
  padding: 0;
}

.feature-card {
  background: var(--white);
  padding: 2.5rem 1rem;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  text-align: center;
  border-bottom: 4px solid var(--secondary-color);
  animation: float 4s ease-in-out infinite, fadeInUp 0.8s ease backwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px) scale(1.02) !important;
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.feature-icon {
  margin-bottom: 1.2rem;
  display: flex;
  justify-content: center;
}

.feature-icon img {
  height: 60px;
  width: auto;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover .feature-icon img {
  transform: scale(1.15) translateY(-5px);
}

.feature-card h4 {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

@keyframes float {
  0% { transform: translateY(0px); }

@media (max-width: 900px) {
  .hero-features-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -30px;
  }
}

@media (max-width: 600px) {
  .hero-features-grid {
    grid-template-columns: 1fr;
  }
  .feature-card {
    animation: fadeInUp 0.8s ease backwards; /* remove float on mobile to avoid layout shifts */
  }
}
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

/* --- Services Grid --- */
.services-section {
  background-color: var(--white);
}

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

.service-card {
  text-align: center;
  padding: 2rem;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  transition: all 0.4s ease;
  transform: translateY(0);
}

.service-card:hover {
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  border-color: transparent;
  transform: translateY(-10px);
}

.service-icon img {
  height: 60px;
  margin: 0 auto 1.5rem;
  transition: transform 0.4s ease;
}

.service-card:hover .service-icon img {
  transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: var(--white);
  text-align: center;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at top right, rgba(245, 195, 36, 0.15), transparent 50%);
}

.cta-section h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--white);
  position: relative;
  z-index: 2;
}

.cta-section p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  position: relative;
  z-index: 2;
}

.cta-section .btn {
  background-color: var(--accent-color);
  color: var(--primary-color) !important;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(245, 195, 36, 0.3);
}
.cta-section .btn:hover {
  background-color: var(--white);
  color: var(--primary-color) !important;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
}

/* --- Footer --- */
footer {
  /* Rich deep blue gradient with a subtle pattern using radial gradients for a premium feel */
  background: 
    radial-gradient(circle at top left, rgba(255,255,255,0.03) 0%, transparent 40%),
    radial-gradient(circle at bottom right, rgba(255,255,255,0.03) 0%, transparent 40%),
    linear-gradient(135deg, var(--primary-color) 0%, #0b1120 100%);
  color: #c4d0e3;
  padding: 5rem 0 2rem;
  position: relative;
  border-top: 4px solid var(--accent-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--white);
  font-weight: 600;
}

.footer-col p, .footer-col ul li {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-col ul li a { color: #c4d0e3; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--secondary-color); padding-left: 5px; }

.footer-col ul li i {
  color: var(--secondary-color);
  width: 25px;
}

/* Service list specific styles for the divider */
.footer-services-list li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.8rem;
  margin-bottom: 0.8rem;
}
.footer-services-list li:last-child {
  border-bottom: none;
}

/* Contact info specific styles */
.footer-contact-item {
  margin-bottom: 1.5rem;
}
.footer-contact-item strong {
  display: block;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-content h1 { font-size: 2.5rem; }
  
  .floating-form {
    grid-template-columns: 1fr;
  }
  
  .floating-form-container {
    margin: -60px 20px 3rem;
    padding: 2rem;
  }

  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .nav-links {
    position: absolute;
    right: 0; top: 100px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0b1120 100%);
    flex-direction: column;
    width: 100%;
    align-items: center;
    padding: 2rem 0;
    box-shadow: var(--shadow-md);
    display: none;
    border-bottom: 2px solid var(--accent-color);
  }
  .nav-links.nav-active { display: flex; }
  .hamburger { display: block; }
}

/* --- Internal Page Headers --- */
.page-header {
  padding: 120px 0 80px;
  background: linear-gradient(rgba(27, 40, 69, 0.8), rgba(27, 40, 69, 0.8)), url('../assets/images/placeholder.jpg') center/cover no-repeat;
  color: var(--white);
  text-align: center;
}
.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--white);
}

/* --- Service Details --- */
.service-detail {
  display: flex;
  gap: 4rem;
  align-items: center;
  padding: 5rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.service-detail:nth-child(even) {
  flex-direction: row-reverse;
  background-color: var(--bg-gray);
}
.service-detail-text { flex: 1; }
.service-detail-image {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.service-detail-image img {
  transition: transform 0.5s ease;
  width: 100%;
}
.service-detail-image:hover img {
  transform: scale(1.05);
}
.service-detail-text h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}
.service-detail-text ul {
  margin: 1.5rem 0;
}
.service-detail-text ul li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--text-main);
}
.service-detail-text ul li i {
  color: var(--secondary-color);
  font-size: 1.2rem;
}

/* --- Contact Page --- */
.contact-container {
  display: flex;
  gap: 4rem;
  padding: 2rem 0;
}
.contact-info, .contact-form-wrapper {
  flex: 1;
  background: var(--bg-gray);
  padding: 3rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}
.contact-form-wrapper {
  flex: 1.5;
  background: var(--white);
  box-shadow: var(--shadow-md);
  border: none;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 2.5rem;
}
.info-icon {
  width: 50px;
  height: 50px;
  background: var(--white);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
}
.info-text h4 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--primary-color);
}
.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-secondary);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg-gray);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}
@media (max-width: 900px) {
  .contact-container, .service-detail, .service-detail:nth-child(even) {
    flex-direction: column;
  }
}

/* --- Sub-Services Grid (For Dedicated Service Pages) --- */
.sub-services-section {
  padding: 5rem 0;
  background-color: var(--white);
}

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

.sub-service-card {
  background: var(--white);
  padding: 3rem 2rem;
  border-radius: 4px;
  text-align: center;
  border: 1px solid #e5e5e5;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  transition: all 0.4s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sub-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
  border-color: #d0d0d0;
}

.sub-service-icon {
  margin-bottom: 1.5rem;
  display: block;
  transition: all 0.4s ease;
}

.sub-service-icon img {
  height: 65px;
  width: auto;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sub-service-card:hover .sub-service-icon img {
  transform: scale(1.15) translateY(-5px);
}

.sub-service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 600;
  line-height: 1.5;
}

.sub-service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}





/* --- Mission & Vision --- */
.mission-vision-section {
    background-color: var(--bg-gray);
    padding: 5rem 0;
}
.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.mv-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-top: 5px solid var(--secondary-color);
}
.mv-card h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.mv-card p {
    color: var(--text-light);
    line-height: 1.8;
    text-align: justify;
}

/* --- Photo Gallery --- */
.gallery-section {
    padding: 5rem 0;
    background-color: var(--white);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}
.gallery-item {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
}
@media (max-width: 768px) {
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item {
        height: 250px;
    }
}

/* --- Company Introduction --- */
.company-intro-section {
    padding: 4rem 0 3rem;
    background-color: var(--white);
}
.company-intro-grid {
    display: flex;
    gap: 4rem;
    align-items: center;
    flex-wrap: wrap;
}
.company-intro-text {
    flex: 1 1 400px;
}
.company-intro-text h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.company-intro-text p {
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}
.company-intro-buttons {
    display: flex;
    gap: 15px;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.company-intro-image {
    flex: 1 1 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(33, 57, 123, 0.15);
    position: relative;
}
.company-intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.company-intro-image:hover img {
    transform: scale(1.05);
}

/* --- Google Maps Section --- */
.map-section {
    padding: 4rem 0;
    background-color: var(--bg-gray);
}
.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 1rem;
}
.map-wrapper iframe {
    display: block;
}

/* --- FAQ Section --- */
.faq-section {
    padding: 5rem 0;
    background-color: var(--white);
}
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}
.faq-card {
    background: var(--bg-gray);
    padding: 2.5rem;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.faq-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.faq-card h3 {
    color: var(--primary-color);
    font-size: 1.15rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}
.faq-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}
@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}
