/* style.css - Combined Version */
/* General Reset & Variables */
:root {
  --primary: #003d4d;
  --secondary: #f58220;
  --accent: #0097a9;
  --light: #f8f9fa;
  --dark: #1a2a36;
  --gray: #6c757d;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--dark);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  background: var(--secondary);
  color: white;
  padding: 12px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(245, 130, 32, 0.2);
}

.btn:hover {
  background: #e06e17;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(245, 130, 32, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
}

.btn-outline:hover {
  background: var(--secondary);
  color: white;
}

section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary);
}

/* HEADER WITH FULL WIDTH LOGO */
header {
    background: white;
    padding: 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    flex-direction: column;
    padding: 0;
    max-width: 100%;
    width: 100%;
    margin: 0;
}

.mobile-menu-btn {
    order: 1;
    display: none;
    position: absolute;
    top: 70px;
    left: 20px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
    z-index: 10;
}

.logo-container {
    order: 1;
    width: 100%;
    padding: 15px 0;
    background: white;
    margin: 0;
}

.logo-image {
    height: 140px;
    width: 100%;
    object-fit: contain;
    display: block;
    margin: 0;
    padding: 0 20px;
}

.nav-links {
    order: 2;
    display: flex;
    list-style: none;
    margin: 0 auto;
    padding: 15px 0;
    justify-content: center;
    background: white;
    width: auto;
    max-width: 800px;
}

.nav-links li {
    margin: 0 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

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

.nav-links a:hover:after {
    width: 100%;
}

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

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 700px;
  background: linear-gradient(rgba(0, 61, 77, 0.7), rgba(0, 61, 77, 0.8)), url('images/Front Web Page.png') no-repeat center center/cover;
  color: white;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 700px;
  padding-top: 80px;
  animation: fadeInUp 1s ease;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: white;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-btns {
  display: flex;
  gap: 20px;
}

.hero .btn-outline {
  color: white;
  border-color: white;
}

.hero .btn-outline:hover {
  background: white;
  color: var(--primary);
}

/* About Section */
.about {
  background: var(--light);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  text-align: left;
}

.about-text h2:after {
  left: 0;
  transform: none;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 17px;
  color: var(--gray);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

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

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 5px;
}

.stat-text {
  font-size: 1rem;
  color: var(--dark);
  font-weight: 600;
}

.about-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

/* Services Section */
.services {
  background: white;
}

/* Service Grid - 3 columns */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments for service grid */
@media (max-width: 968px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.service-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--primary);
  z-index: -1;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-card:hover:before {
  height: 100%;
}

.service-icon {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--secondary);
  background: rgba(245, 130, 32, 0.1);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  color: white;
  background: rgba(0, 61, 77, 0.2);
}

.service-content {
  padding: 30px;
}

.service-content h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-content h3 {
  color: white;
}

.service-content p {
  color: var(--gray);
  transition: var(--transition);
}

.service-card:hover .service-content p {
  color: rgba(255, 255, 255, 0.9);
}

/* Projects Section with Modal */
.projects {
  background: var(--light);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  height: 300px;
}

.project-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: var(--transition);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(0, 61, 77, 0.9), transparent);
  color: white;
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  transform: translateY(0);
  opacity: 1;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-overlay h3 {
  color: white;
  margin-bottom: 10px;
}

.project-overlay p {
  margin-bottom: 20px;
  opacity: 0.9;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  overflow: auto;
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 40px;
  border-radius: 10px;
  width: 80%;
  max-width: 900px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  color: #aaa;
  cursor: pointer;
  transition: var(--transition);
}

.close-btn:hover {
  color: var(--secondary);
}

.modal-header {
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  margin-bottom: 30px;
}

.modal-header h2 {
  color: var(--primary);
  font-size: 2.5rem;
}

.modal-body {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.modal-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
}

.modal-image img {
  width: 100%;
  height: auto;
  display: block;
}

.modal-text {
  flex: 1;
}

.modal-text h3 {
  margin-bottom: 15px;
  color: var(--secondary);
}

.modal-text p {
  margin-bottom: 20px;
  color: var(--gray);
  line-height: 1.8;
}

/* ISO Certifications Section Styles - Tabbed Interface */
.certifications {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.cert-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 10px;
}

.cert-tab {
  padding: 15px 30px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  color: #555;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cert-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.cert-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.cert-tab i {
  font-size: 20px;
}

.cert-content {
  background: white;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  min-height: 300px;
  animation: fadeIn 0.5s ease;
}

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

.cert-pane {
  display: none;
}

.cert-pane.active {
  display: block;
}

.cert-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.cert-icon {
  width: 70px;
  height: 70px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
}

.cert-icon i {
  font-size: 32px;
  color: white;
}

.cert-title h3 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 28px;
}

.cert-title p {
  margin: 0;
  color: #666;
  font-size: 16px;
}

.cert-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
}

.cert-details h4 {
  color: #333;
  margin-bottom: 15px;
  font-size: 18px;
}

.cert-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cert-details li {
  margin-bottom: 12px;
  padding-left: 25px;
  position: relative;
  color: #555;
  line-height: 1.6;
}

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

.cert-benefits {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
}

.cert-benefits h4 {
  color: #333;
  margin-bottom: 15px;
  font-size: 18px;
}

.cert-benefits p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 15px;
}

.cert-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cert-issued {
  color: #666;
  font-size: 14px;
}

.cert-issued strong {
  color: #333;
}

/* Contact Section */
.contact {
  background: white;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  gap: 15px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(245, 130, 32, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 20px;
}

.contact-details h4 {
  margin-bottom: 5px;
  font-size: 18px;
}

.contact-details p, .contact-details a {
  color: var(--gray);
  text-decoration: none;
  transition: var(--transition);
}

.contact-details a:hover {
  color: var(--secondary);
}

.contact-form {
  background: var(--light);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background: var(--primary);
  color: white;
  padding: 60px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: white;
  margin-bottom: 25px;
  font-size: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--secondary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-links i {
  font-size: 14px;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

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

.animate {
  animation: fadeInUp 0.8s ease forwards;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 2.8rem;
  }
  
  .logo-image {
    height: 80px;
    width: 100%;
    max-width: 100%;
}
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        top: 50px; /* Adjusted for mobile */
    }

    .nav-links {
        position: fixed;
        top: 150px; /* Adjusted to appear below logo */
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        max-width: 100%;
        display: none;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }
    
    .logo-image {
        height: 100px; /* Smaller on mobile */
        padding: 0 10px;
    }
    
    .logo-container {
        padding: 10px 0;
    }
}

  .header-container {
    justify-content: space-between;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .hero-btns {
    flex-direction: column;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-body {
    flex-direction: column;
  }
  
  /* Mobile adjustments for certifications */
  .cert-tabs {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cert-body {
    grid-template-columns: 1fr;
  }
  
  .cert-content {
    padding: 25px;
  }
  
  .cert-header {
    flex-direction: column;
    text-align: center;
  }
  
  .cert-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .cert-footer {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  /* Adjust logo size for mobile */
.logo-image {
    height: 80px;
    width: 100%;
    max-width: 100%;
}
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.8rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .modal-content {
    width: 95%;
    padding: 20px;
  }
  
 .logo-image {
    height: 80px;
    width: 100%;
    max-width: 100%;
}
}

@media (max-width: 480px) {
.logo-image {
    height: 80px;
    width: 100%;
    max-width: 100%;
}
  
  .nav-links {
    top: 100px;
  }
}