/* Base styles */
:root {
  --color-primary: #000000;
  --color-secondary: #ffffff;  
  --color-text: #000000;
  --color-background: #ffffff;
  --color-border: #e5e5e5;
  --color-accent: #444444;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

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

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  background-color: var(--color-background);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--color-primary);
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2rem;
}

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

nav ul li a:hover {
  color: var(--color-accent);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 80vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  margin-top: 70px;
  position: relative;
}

.hero-content {
  max-width: 600px;
  color: var(--color-secondary);
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

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

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--color-primary);
  color: var(--color-secondary);
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: var(--color-accent);
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
}

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

.service-card {
  padding: 2rem;
  border-radius: 5px;
  border: 1px solid var(--color-border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  margin: 1rem 0;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  height: 250px;
}

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

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

.portfolio-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--color-secondary);
  transform: translateY(100%);
  transition: transform 0.3s;
}

.portfolio-item:hover .portfolio-info {
  transform: translateY(0);
}

/* About */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about-image {
  height: 400px;
  overflow: hidden;
  border-radius: 5px;
}

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

/* Testimonials */
.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.testimonial {
  display: none;
  padding: 2rem;
  text-align: center;
}

.testimonial.active {
  display: block;
  animation: fadeIn 0.5s;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: bold;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.testimonial-nav button {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  margin: 0 1rem;
  color: var(--color-primary);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  font-family: var(--font-main);
}

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

.contact-info p {
  margin-bottom: 1rem;
}

.contact-info i {
  margin-right: 0.5rem;
  color: var(--color-primary);
}

#map {
  height: 300px;
  width: 100%;
  border-radius: 5px;
  margin-top: 2rem;
}

/* Footer */
footer {
  background-color: var(--color-primary);
  color: var(--color-secondary);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-links h4 {
  margin-bottom: 1rem;
}

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

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: var(--color-border);
}

.social-links {
  display: flex;
  margin-top: 1rem;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-secondary);
  color: var(--color-primary);
  text-align: center;
  line-height: 40px;
  margin-right: 1rem;
  transition: background-color 0.3s, color 0.3s;
}

.social-links a:hover {
  background-color: var(--color-accent);
  color: var(--color-secondary);
}

.copyright {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Policy Pages */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 0;
}

.policy-content h2 {
  margin: 2rem 0 1rem;
}

.policy-content p {
  margin-bottom: 1.5rem;
}

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

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    padding: 1rem;
  }

  .mobile-menu-btn {
    display: block;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-background);
    flex-direction: column;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  }

  nav ul.active {
    display: flex;
  }

  nav ul li {
    margin: 0;
    text-align: center;
  }

  nav ul li a {
    display: block;
    padding: 1rem;
  }

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

  .hero-content p {
    font-size: 1rem;
  }

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

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