:root {
  --primary-color: #024483;
  --secondary-color: #c85815;
  --text-color: #333;
  --bg-light: #f4f4f4;
  --white: #ffffff;
  --transition-speed: 0.3s;
}

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

body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-light);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-speed) ease;
}

ul {
  list-style: none;
}

/* Header */
header {
  background-color: rgba(250, 250, 250, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--secondary-color);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links li a {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-color);
  position: relative;
  padding: 0.5rem 0;
}

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

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

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

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 0.5rem;
}

.lang-switcher a {
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
}

.lang-switcher a.active {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Language Switcher Dropdown */
.lang-switcher-dropdown {
  position: relative;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1000;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  color: var(--primary-color);
  padding: 0.3rem 0.6rem;
  background: #eee;
  border-radius: 4px;
}

.lang-options {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
  display: none;
  min-width: 80px;
}

.lang-options a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 1rem;
  color: var(--text-color);
  text-decoration: none;
  transition: background 0.3s;
  font-size: 0.9rem;
  font-weight: 500;
}

.lang-options a:hover {
  background: #f5f5f5;
  color: var(--secondary-color);
}

.lang-switcher-dropdown:hover .lang-options {
  display: block;
}

.lang-current img,
.lang-options img {
  border-radius: 2px;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
}

/* Mobile Menu */
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* Professional Footer */
.professional-footer {
  background-color: #1a1a1a;
  color: #ddd;
  padding: 4rem 5% 2rem;
  margin-top: 5rem;
}

.footer-container {
  max-width: auto;
  margin: 0 auto;
}

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

.footer-col h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 0.5rem;
}

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

.footer-logo {
  height: 60px;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1); /* Make logo white for dark footer */
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: #bbb;
  transition: color var(--transition-speed);
}

.footer-col ul li a:hover {
  color: var(--secondary-color);
}

.footer-col.contact p {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-col.contact i {
  color: var(--secondary-color);
}

.footer-social {
  display: flex;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.footer-social a {
  color: var(--white);
  font-size: 1.5rem;
  transition:
    transform var(--transition-speed),
    color var(--transition-speed);
}

.footer-social a:hover {
  color: var(--secondary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

.developer-credit a {
  color: var(--white);
  font-weight: bold;
  text-decoration: underline;
}

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

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Animations */
.animate-fade-in {
  animation: fadeIn 1s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

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

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    right: -100%;
    top: 70px;
    height: calc(100vh - 70px);
    background-color: var(--white);
    flex-direction: column;
    width: 100%;
    align-items: center;
    padding-top: 2rem;
    transition: right var(--transition-speed);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: block;
  }
}

/* General Layout helpers */
main {
  padding-top: 80px; /* Header height offset */
  min-height: 80vh;
}

.container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 2rem 5%;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--secondary-color);
  color: var(--white);
  border-radius: 5px;
  transition: background-color var(--transition-speed);
}

.btn:hover {
  background-color: #a84610; /* Darker orange */
}

/* Form Styles */
form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--secondary-color);
  outline: none;
}

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

/* Page Headers */
.page-header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 3rem 5%;
  text-align: center;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2.5rem;
}

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

.service-item {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-align: center;
}

.service-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--secondary-color);
}

.service-item i {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

/* About Section */
.about-content {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-image {
  flex: 1;
  min-width: 600px;
  height: 400px;
  min-height: 300px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero {
  background: url("../img/hero.jpeg");
  background-size: cover;
  background-position: center;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 0 5%;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero p {
  font-size: 1.25rem;
  font-weight: 300;
  max-width: 800px;
  margin: 0 auto 2rem;
  opacity: 0.95;
}

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

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

.feature-card {
  background: var(--white);
  padding: 2rem;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.feature-card i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.cta-section {
  background-color: var(--secondary-color);
  color: var(--white);
  text-align: center;
  padding: 3rem 5%;
}

.cta-section h2 {
  margin-bottom: 1.5rem;
}

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

.btn-light:hover {
  background-color: #eee;
}

/* Projects / Side-by-Side comparison */
.projects-intro {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1.2rem;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.project-item h3 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
  font-size: 1.8rem;
}

.project-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.project-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-speed);
}

.project-image:hover img {
  transform: scale(1.02);
}

.image-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(2, 68, 131, 0.8);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-weight: bold;
  z-index: 5;
  text-transform: uppercase;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .project-comparison {
    grid-template-columns: 1fr;
  }
}

/* Contact Cards */
.contact-card-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.contact-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  min-width: 250px;
  flex: 1;
  max-width: 350px;
  transition: transform var(--transition-speed);
}

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

.contact-card i {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.contact-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.contact-card p {
  font-size: 1.1rem;
  font-weight: 500;
}

/* Gallery Styles */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.gallery-tab {
  padding: 0.8rem 2rem;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all var(--transition-speed);
}

.gallery-tab:hover,
.gallery-tab.active {
  background: var(--primary-color);
  color: var(--white);
}

.gallery-section {
  display: none;
}

.gallery-section.active {
  display: block;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-speed);
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item {
  cursor: pointer;
}

.no-images {
  text-align: center;
  grid-column: 1 / -1;
  padding: 4rem;
  background: #f9f9f9;
  border-radius: 8px;
  border: 2px dashed #ddd;
  color: #888;
  font-size: 1.1rem;
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-content-container {
  max-width: 90%;
  max-height: 90%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border: 3px solid var(--white);
  border-radius: 4px;
}

.close-lightbox {
  position: absolute;
  top: 2rem;
  right: 3rem;
  color: var(--white);
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
  transition: color 0.3s;
}

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

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: none;
  padding: 1.5rem 1rem;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2001;
  border-radius: 4px;
  transition: background 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    padding: 1rem 0.5rem;
    font-size: 1.5rem;
  }
  .close-lightbox {
    right: 1.5rem;
    top: 1rem;
  }
}
