:root {
  --primary-color: #1e40af; /* Blue */
  --secondary-color: #3b82f6; /* Light Blue */
  --accent-color: #fbbf24; /* Yellow */
  --danger-color: #dc2626; /* Red */
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --white: #ffffff;
  --success-color: #059669;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.2);
  --border-radius: 10px;
  --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: var(--text-dark);
  overflow-x: hidden;
}

/* Header Styles */
.top-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 10px 0;
  font-size: 0.85rem;
}

.top-header .contact-info {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.top-header .contact-info span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-links a {
  color: white;
  margin: 0 8px;
  transition: var(--transition);
  font-size: 1.1rem;
}

.social-links a:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

/* Language Selector */
.language-selector {
  position: relative;
  display: inline-block;
}

.language-dropdown {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 5px 15px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.language-dropdown:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-1px);
}

.language-dropdown::after {
  content: "▼";
  font-size: 0.7rem;
  margin-left: 5px;
}

.language-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  min-width: 140px;
  z-index: 1000;
  display: none;
  margin-top: 5px;
}

.language-menu.show {
  display: block;
  animation: fadeInDown 0.3s ease;
}

.language-menu a {
  display: block;
  padding: 12px 15px;
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
  border-bottom: 1px solid #f3f4f6;
}

.language-menu a:last-child {
  border-bottom: none;
}

.language-menu a:hover {
  background: var(--primary-color);
  color: white;
}

.language-menu a.active {
  background: var(--accent-color);
  color: var(--text-dark);
  font-weight: 600;
}

/* Navigation */
.navbar-custom {
  background: white !important;
  box-shadow: var(--shadow-light);
  padding: 15px 0;
  transition: var(--transition);
}

.navbar-custom.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-medium);
}

.navbar-brand img {
  height: 50px;
  transition: var(--transition);
}

.navbar-toggler {
  border: none;
  padding: 5px 10px;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-nav .nav-link {
  font-weight: 600;
  color: var(--text-dark) !important;
  margin: 5px 8px;
  padding: 10px 15px !important;
  border-radius: 25px;
  transition: var(--transition);
  text-align: center;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background: var(--primary-color);
  color: white !important;
  transform: translateY(-2px);
}

/* Dropdown Menu Styles */
.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-medium);
  border-radius: var(--border-radius);
  padding: 10px 0;
  margin-top: 10px;
}

.dropdown-item {
  padding: 12px 20px;
  font-weight: 500;
  transition: var(--transition);
  border-radius: 0;
}

.dropdown-item:hover {
  background: var(--primary-color);
  color: white;
}

.dropdown-item i {
  width: 20px;
  text-align: center;
  margin-right: 8px;
}

.dropdown-divider {
  margin: 8px 0;
  border-color: rgba(0, 0, 0, 0.1);
}

/* Hero Carousel */
.hero-carousel {
  margin-top: 0;
  position: relative;
}

.carousel-item {
  height: 70vh;
  background-size: cover;
  background-position: center;
  position: relative;
}

.carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.7) 0%, rgba(220, 38, 38, 0.6) 100%);
}

.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
  max-width: 800px;
  padding: 20px;
}

.carousel-caption h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease;
}

.carousel-caption p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
  animation: fadeInUp 1s ease 0.4s both;
}

/* Buttons */
.btn-custom {
  padding: 12px 25px;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  display: inline-block;
  margin: 8px;
  transition: var(--transition);
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary-custom {
  background: var(--accent-color);
  color: var(--text-dark);
  border: 2px solid var(--accent-color);
}

.btn-outline-custom {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-danger-custom {
  background: var(--danger-color);
  color: white;
  border: 2px solid var(--danger-color);
}

.btn-custom:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
  text-decoration: none;
}

.btn-primary-custom:hover {
  background: #ffed4e;
  color: var(--text-dark);
}

.btn-outline-custom:hover {
  background: white;
  color: var(--primary-color);
}

.btn-danger-custom:hover {
  background: #b91c1c;
  color: white;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--danger-color) 100%);
  color: white;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>')
    repeat;
  opacity: 0.3;
}

.stat-item {
  text-align: center;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  font-family: "Montserrat", sans-serif;
  color: var(--accent-color);
  display: block;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
  font-size: 1rem;
  font-weight: 500;
}

/* Section Styles */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  position: relative;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  padding: 0 15px;
}

/* About Section */
.about-section {
  background: var(--bg-light);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-text h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-light);
}

.about-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  width: 100%;
  height: auto;
  transition: var(--transition);
}

.about-image img:hover {
  transform: scale(1.02);
}

/* Projects Section */
.project-card {
  background: white;
  border-radius: 15px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  overflow: hidden;
  height: 100%;
  margin-bottom: 30px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.project-card img {
  height: 220px;
  object-fit: cover;
  width: 100%;
  transition: var(--transition);
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card .card-body {
  padding: 25px;
}

.project-card h5 {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.2rem;
  font-family: "Montserrat", sans-serif;
}

.project-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.project-status {
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-active {
  background: rgba(5, 150, 105, 0.1);
  color: var(--success-color);
}

.status-completed {
  background: rgba(59, 130, 246, 0.1);
  color: var(--secondary-color);
}

.status-planning {
  background: rgba(251, 191, 36, 0.1);
  color: var(--accent-color);
}

/* News Section */
.news-section {
  background: white;
}

.news-card {
  background: var(--bg-light);
  border-radius: 15px;
  overflow: hidden;
  height: 100%;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
  margin-bottom: 30px;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.news-card img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.news-card:hover img {
  transform: scale(1.05);
}

.news-card .card-body {
  padding: 25px;
}

.news-date {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 10px;
  font-weight: 500;
}

.news-card h5 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.4;
}

/* Contact Section */
.contact-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--danger-color) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="0,0 100,0 50,100" fill="rgba(255,255,255,0.05)"/></svg>')
    repeat;
  opacity: 0.3;
}

.contact-section .section-title h2,
.contact-section .section-title p {
  color: white;
}

.contact-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: var(--text-dark);
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-light);
}

.form-control-custom {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  color: white;
  padding: 12px 15px;
  margin-bottom: 15px;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control-custom:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(251, 191, 36, 0.25);
  color: white;
}

.form-control-custom::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* Footer */
.footer {
  background: #111827;
  color: white;
  padding: 50px 0 30px;
  position: relative;
}

.footer h5 {
  color: var(--accent-color);
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 1.2rem;
  font-family: "Montserrat", sans-serif;
}

.footer a {
  color: #d1d5db;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer a:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

.footer .social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin-right: 10px;
  transition: var(--transition);
  font-size: 1rem;
}

.footer .social-icons a:hover {
  background: var(--accent-color);
  color: var(--text-dark);
  transform: translateY(-3px);
}

.copyright {
  border-top: 1px solid #374151;
  padding-top: 20px;
  margin-top: 30px;
  text-align: center;
  color: #9ca3af;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Alert Messages */
.alert-custom {
  border-radius: var(--border-radius);
  border: none;
  padding: 15px 20px;
  margin-bottom: 20px;
  font-weight: 500;
  box-shadow: var(--shadow-light);
}

.alert-success-custom {
  background: rgba(5, 150, 105, 0.1);
  color: var(--success-color);
  border-left: 4px solid var(--success-color);
}

.alert-danger-custom {
  background: rgba(220, 38, 38, 0.1);
  color: var(--danger-color);
  border-left: 4px solid var(--danger-color);
}

.alert-info-custom {
  background: rgba(59, 130, 246, 0.1);
  color: var(--secondary-color);
  border-left: 4px solid var(--secondary-color);
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .carousel-caption h1 {
    font-size: 2.5rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .about-content {
    flex-direction: column;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .top-header {
    padding: 8px 0;
  }

  .top-header .contact-info {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .language-selector {
    margin-top: 10px;
  }

  .carousel-item {
    height: 50vh;
  }

  .carousel-caption h1 {
    font-size: 2rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .btn-custom {
    padding: 10px 20px;
    font-size: 0.9rem;
    margin: 5px;
  }

  .contact-card {
    padding: 25px;
  }

  .contact-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .navbar-brand img {
    height: 40px;
  }

  .carousel-item {
    height: 45vh;
  }

  .carousel-caption h1 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .carousel-caption p {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .btn-custom {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .project-card img,
  .news-card img {
    height: 180px;
  }

  .project-card .card-body,
  .news-card .card-body {
    padding: 20px;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .footer {
    padding: 40px 0 20px;
  }

  .footer .col-lg-4,
  .footer .col-lg-2,
  .footer .col-lg-3 {
    margin-bottom: 30px;
  }

  .language-menu {
    right: -20px;
    min-width: 120px;
  }
}

/* Print Styles */
@media print {
  .top-header,
  .navbar-custom,
  .footer,
  .btn-custom {
    display: none !important;
  }

  .section {
    padding: 20px 0;
  }

  .carousel-item {
    height: auto;
    background: none !important;
  }

  .carousel-caption {
    position: static;
    transform: none;
    color: var(--text-dark);
  }
}
