/* Modern Corporate Website Styles */

/* Reset and Base Styles */
:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --text-color: #1f2937;
  --light-text: #6b7280;
  --background: #fafafa;  /* Updated to match logo background */
  --section-bg: #f3f4f6;
  --max-width: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

/* Typography */
h1, h2, h3 {
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
}

/* Header and Navigation */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--background);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.nav-container {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.logo a {
  text-decoration: none;
  display: block;
}

.logo-image {
  height: 60px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

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

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(30, 64, 175, 0.9)), url('../img/1.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding-top: var(--header-height);
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

/* Buttons */
.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: white;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: transform 0.3s;
}

.cta-button:hover {
  transform: translateY(-2px);
}

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

.about-content {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.mission-vision-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mission-vision, .values {
  padding: 1.5rem;
  background: var(--background);
  border-radius: 8px;
  height: 100%;
}

.mission-vision h3, .values h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
}

.values ul {
  list-style-position: inside;
  padding-left: 0;
}

.values li {
  margin-bottom: 0.75rem;
}

.values strong {
  color: var(--secondary-color);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

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

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 1.5rem;
}

/* Projects Section */
.projects {
  background: var(--section-bg);
}

.projects-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.projects-description {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.project-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  padding-bottom: 1.5rem;
}

.project-card h3 {
  color: var(--primary-color);
  padding: 0 1.5rem;
  margin-top: 1rem;
}

.project-card p {
  padding: 0 1.5rem;
  color: var(--light-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.latest-project {
  text-align: center;
  margin-top: 3rem;
}

.latest-project p {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.project-button {
  display: inline-block;
  padding: 1rem 3rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s, transform 0.3s;
}

.project-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.contact-form textarea {
  height: 150px;
}

.submit-button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.3s;
}

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

/* Footer */
.main-footer {
  background: var(--text-color);
  color: white;
  padding: 3rem 0;
}

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

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 1;
}

/* Popup Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.popup-content {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

.popup-close:hover {
  color: var(--primary-color);
}

.popup-title {
  margin-bottom: 1.5rem;
  padding-right: 2rem;
}

.popup-text {
  line-height: 1.6;
}

.popup-text h3 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.popup-text p {
  margin-bottom: 1rem;
}

.popup-text ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.popup-text li {
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .mission-vision-values {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

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

/* Legal Pages Styles */
.legal-content {
  padding-top: calc(var(--header-height) + 2rem);
  min-height: calc(100vh - var(--header-height));
  background: var(--background);
}

.legal-content h1 {
  font-size: 2.5rem;
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 3rem;
}

.legal-section {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.legal-section h2 {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  text-align: left;
}

.legal-section p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.legal-section ul {
  list-style-position: inside;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
}

.legal-section li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

@media (max-width: 480px) {
  section {
    padding: 3rem 0;
  }

  .container {
    padding: 0 1rem;
  }

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

  .legal-content h1 {
    font-size: 2rem;
  }

  .legal-section h2 {
    font-size: 1.5rem;
  }
}
