/* Base Styles */
:root {
  --primary-color: #00529b;
  --primary-dark: #003366;
  --secondary-color: #ff6b6b;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --gray-color: #6c757d;
  --light-gray: #e9ecef;
  --white: #ffffff;
  --black: #000000;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: dark-color;
  background-color: light-color;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  aspect-ratio: attr(width) / attr(height);
}

/* Typography */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
}

.section__title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  color: primary-dark;
}

.section__title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: primary-color;
  margin: 0.5rem auto 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: transition;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background-color: primary-color;
  color: white;
}

.btn--primary:hover {
  background-color: primary-dark;
  transform: translateY(-3px);
  box-shadow: box-shadow;
}

.btn--large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* Header Styles */
.header {
  background-color: black;
  color: white;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transition;
  height: 80px;
  display: flex;
  align-items: center;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  height: 100%;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__logo {
  height: 60px;
  width: auto;
}

.header__title {
  font-size: 1.8rem;
  color: white;
  margin: 0;
}

/* Navigation */
.nav {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background-color: black;
  padding: 2rem 0;
  clip-path: circle(0px at calc(100% - 40px) -20px);
  transition: all 0.5s ease-out;
  pointer-events: none;
  z-index: 999;
}

.nav[data-visible="true"] {
  clip-path: circle(1500px at calc(100% - 40px) -20px);
  pointer-events: auto;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

.nav__link {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: transition;
  position: relative;
  font-size: 1.2rem;
}

.nav__link:hover,
.nav__link:focus {
  color: primary-color;
  background-color: rgba(255, 255, 255, 0.1);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: primary-color;
  transition: transition;
}

.nav__link:hover::after {
  width: 70%;
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  position: relative;
  transition: transition;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: white;
  transition: transition;
}

.hamburger::before {
  transform: translateY(-8px);
}

.hamburger::after {
  transform: translateY(8px);
}

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg);
}

/* Hero Section */
.hero {
  height: calc(100vh - 80px);
  min-height: 500px;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('hero-bg.jpg') no-repeat center center/cover;
  color: white;
  text-align: center;
  margin-top: 80px;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero__title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  animation: fadeInDown 1s ease;
}

.hero__subtitle {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease;
}

/* Services Section */
.section {
  padding: 5rem 0;
}

.section--light {
  background-color: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: box-shadow;
  transition: transition;
  border: 1px solid light-gray;
  position: relative;
  overflow: hidden;
}

.service-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.1;
  transition: transition;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card:hover .service-card__image {
  opacity: 0.2;
}

.service-card__content {
  position: relative;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card__icon {
  font-size: 3rem;
  color: primary-color;
  margin-bottom: 1.5rem;
}

.service-card__title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: primary-dark;
}

.service-card__description {
  color: gray-color;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.about-content {
  padding-right: 0;
}

.about-text {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 1.1rem;
}

.about-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: box-shadow;
}

.about-img {
  width: 100%;
  height: auto;
  transition: transition;
}

.about-image:hover .about-img {
  transform: scale(1.05);
}

/* Projects Section */
.projects-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 250px;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transition;
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transition;
}

.project-item:hover .project-overlay {
  transform: translateY(0);
}

.project-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: box-shadow;
  transition: transition;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transition;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Partners Section */
.partners-slider {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 3rem;
}

.partner-logo {
  flex: 0 0 calc(20% - 3rem);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: box-shadow;
  transition: transform 0.6s ease, box-shadow 0.3s ease;
  perspective: 1000px;
}

.partner-logo:hover {
  transform: translateY(-5px) rotateY(180deg);
}

.partner-logo img {
  max-height: 60px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.6s ease;
  transform-style: preserve-3d;
}

.partner-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: rotateY(180deg);
}

/* Contact Section */
.section--dark {
  background-color: black;
  color: white;
}

.section--dark .section__title {
  color: white;
}

.section--dark .section__title::after {
  background: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info {
  padding-right: 0;
}

.contact-subtitle {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: white;
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-details p {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.contact-details a {
  color: white;
  text-decoration: none;
  transition: transition;
}

.contact-details a:hover {
  color: primary-color;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: transition;
}

.social-link:hover {
  background-color: primary-color;
  transform: translateY(-3px);
}

/* Form Styles */
.contact-form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group label {
  position: absolute;
  top: -10px;
  left: 15px;
  background-color: dark-color;
  padding: 0 5px;
  font-size: 0.9rem;
  color: white;
  opacity: 0;
  transition: transition;
  z-index: 1;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: white;
  transition: transition;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: primary-color;
  background-color: rgba(255, 255, 255, 0.15);
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
  opacity: 1;
  transform: translateY(0);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
.footer {
  background-color: black;
  color: white;
  padding: 3rem 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  border-radius: 4px;
}

.footer-text {
  color: light-gray;
}

.footer-nav__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  list-style: none;
}

.footer-nav__link {
  color: light-gray;
  text-decoration: none;
  transition: transition;
}

.footer-nav__link:hover {
  color: primary-color;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
}

.copyright {
  color: light-gray;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Styles */
@media (min-width: 576px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .contact-info {
    padding-right: 2rem;
  }
}

@media (min-width: 768px) {
  .nav {
    position: static;
    width: auto;
    background-color: transparent;
    padding: 0;
    clip-path: none;
    pointer-events: auto;
  }
  
  .nav__list {
    flex-direction: row;
  }
  
  .nav-toggle {
    display: none;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .about-content {
    padding-right: 2rem;
  }
  
  .hero__title {
    font-size: 3.5rem;
  }
  
  .hero__subtitle {
    font-size: 1.5rem;
  }
  
  .section__title {
    font-size: 2.5rem;
  }
  
  .partner-logo {
    flex: 0 0 calc(20% - 3rem);
  }
}

@media (max-width: 768px) {
  .header__title {
    font-size: 1.5rem;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .hero {
    min-height: 500px;
  }
  
  .hero__title {
    font-size: 2.2rem;
  }
  
  .hero__subtitle {
    font-size: 1.1rem;
  }
  
  .section__title {
    font-size: 2rem;
  }
  
  .partner-logo {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (max-width: 576px) {
  .hero__title {
    font-size: 1.8rem;
  }
  
  .hero__subtitle {
    font-size: 1rem;
  }
  
  .section__title {
    font-size: 1.8rem;
  }
  
  .partner-logo {
    flex: 0 0 100%;
  }
}