/* CSS Variables for consistent theming */
:root {
  --primary-color: #1A1A1A; /* Dark Almost Black */
  --secondary-color: #D61A1A; /* Deep Red */
  --accent-color: #F8F9FA; /* Off-white */
  --text-dark: #333333;
  --text-light: #F8F9FA;
  --transition: all 0.3s ease-in-out;
  --font-main: 'Outfit', sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--accent-color);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  color: var(--primary-color);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Header & Navigation */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-container img {
  height: auto;
  max-height: 60px;
  max-width: 250px;
  width: auto;
}

.logo-text {
  color: var(--secondary-color);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

nav ul {
  display: flex;
  gap: 2rem;
}

nav ul li a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1.1rem;
  transition: var(--transition);
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

nav ul li a:hover::after {
  width: 100%;
}

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

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(26, 26, 26, 0.7), rgba(26, 26, 26, 0.7)), url('assets/hero_bg.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5%;
  position: relative;
}

.hero-content {
  max-width: 800px;
  color: var(--text-light);
  animation: fadeInDown 1s ease-out;
}

.hero h1 {
  font-size: 4rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

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

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 5px;
  transition: var(--transition);
  border: 2px solid var(--secondary-color);
}

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

/* Sections General */
section {
  padding: 6rem 5%;
}

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

.section-title::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

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

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #555;
}

.mission-vision {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mv-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border-left: 5px solid var(--secondary-color);
  transition: var(--transition);
}

.mv-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.mv-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.mv-card i {
  color: var(--secondary-color);
  font-size: 1.5rem;
}

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

.service-card {
  background: white;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
  z-index: -1;
}

.service-card:hover::before {
  height: 100%;
}

.service-card:hover {
  color: var(--text-light);
}

.service-card:hover h3, .service-card:hover p {
  color: var(--text-light);
}

.service-icon {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

/* Why Partner With Us */
.partner {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.partner .section-title {
  color: var(--text-light);
}

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

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

.feature-item h4 {
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

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

.project-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.project-info p {
  color: #666;
  margin-bottom: 1rem;
}

.project-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--secondary-color);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Testimonial */
.testimonial {
  background: linear-gradient(rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.9)), url('assets/burao_apartments.png') center/cover fixed;
  color: var(--text-light);
  text-align: center;
}

.testimonial-content {
  max-width: 800px;
  margin: 0 auto;
}

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

.testimonial-content p {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.testimonial-content h4 {
  color: var(--secondary-color);
  font-size: 1.2rem;
}

/* Contact Footer */
footer {
  background-color: var(--accent-color);
  color: var(--text-dark);
  padding: 4rem 5% 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.footer-section p {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(0,0,0,0.05);
  border-radius: 50%;
  transition: var(--transition);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.1);
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav ul {
    position: absolute;
    top: 100%;
    left: -100%;
    width: 100%;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.98);
    text-align: center;
    padding: 2rem 0;
    transition: var(--transition);
  }

  nav ul.active {
    left: 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }

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