/* Base Styles */
:root {
  --primary-color: #0072ce;
  --secondary-color: #004a8f;
  --text-color: #333;
  --light-text: #fff;
  --bg-color: #fff;
  --light-bg: #f5f8fa;
  --border-color: #e1e4e8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

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

/* Navigation */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  animation: fadeIn 0.5s ease-in-out;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

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

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

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 5px;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  color: var(--text-color);
  opacity: 0.7;
  transition: opacity 0.3s;
}

.lang-btn:hover,
.lang-btn.active {
  opacity: 1;
  color: var(--primary-color);
}

/* Sections */
.section {
  padding: 80px 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-in-out forwards;
}

#home {
  padding: 0;
  margin-top: 70px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-align: center;
}

.section-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}

/* Banner */
.banner {
  position: relative;
  height: calc(100vh - 70px);
  min-height: 500px;
  overflow: hidden;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light-text);
}

.banner-title {
  font-size: 4rem;
  margin-bottom: 10px;
}

.banner-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.cta-button {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: var(--light-text);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: transform 0.3s, background-color 0.3s;
  animation: popIn 0.5s ease-in-out 0.5s forwards;
  opacity: 0;
  transform: scale(0.9);
}

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

/* Services Table */
.service-table {
  overflow-x: auto;
  margin-top: 30px;
}

table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border-color);
}

th,
td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: var(--primary-color);
  color: var(--light-text);
}

tr:hover {
  background-color: var(--light-bg);
}

/* Contact Section */
.contact-info {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

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

.contact-item h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.contact-item a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: var(--primary-color);
}

/* Footer */
footer {
  background-color: var(--light-bg);
  padding: 20px 0;
  text-align: center;
  margin-top: 40px;
}

/* Portfolio Section */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.portfolio-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--bg-color);
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-preview {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 114, 206, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h3 {
  color: var(--light-text);
  margin-bottom: 15px;
}

.view-project-btn {
  padding: 8px 20px;
  background-color: var(--light-text);
  color: var(--primary-color);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
}

.view-project-btn:hover {
  background-color: #f0f0f0;
}

.portfolio-info {
  padding: 20px;
}

.portfolio-info h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

/* 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-y: auto;
}

.modal-content {
  position: relative;
  background-color: var(--bg-color);
  margin: 50px auto;
  padding: 30px;
  width: 90%;
  max-width: 1000px;
  border-radius: 8px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  transition: color 0.3s;
}

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

#modal-title {
  margin-bottom: 20px;
  color: var(--primary-color);
  font-size: 1.8rem;
}

.gallery-container {
  margin-bottom: 30px;
}

.gallery-main {
  position: relative;
  height: 400px;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

#gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #f5f5f5;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.gallery-nav:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.gallery-nav.prev {
  left: 10px;
}

.gallery-nav.next {
  right: 10px;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.gallery-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: border-color 0.3s;
}

.gallery-thumb.active {
  border-color: var(--primary-color);
}

.project-description {
  margin-top: 20px;
}

.project-description h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

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

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

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Media Queries */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .banner-title {
    font-size: 3rem;
  }

  .banner-subtitle {
    font-size: 1.2rem;
  }

  /* Media Queries for Portfolio */
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .gallery-main {
    height: 300px;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }

  .nav-content {
    justify-content: space-between;
  }

  .banner-title {
    font-size: 2.5rem;
  }

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

  /* Media Queries for Portfolio */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .gallery-main {
    height: 250px;
  }

  .gallery-thumb {
    width: 60px;
    height: 45px;
  }
}
