:root {
  --primary: #f78631;
  --secondary: #25d6c6;
  --dark: #1a2a36;
  --darker: #0e1a23;
  --light: #f8f9fa;
  --text: #333333;
  --text-light: #6c757d;
  --white: #ffffff;
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--light);
  color: #333;
  overflow-x: hidden;
  line-height: 1.6;
}

.container-custom {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
  background-color: white;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 12px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.logo h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin-left: 10px;
}

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

.nav-container {
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* FIXED NAV SPACING - Desktop */
nav ul li {
  margin: 0 4px; /* Reduced spacing between nav items */
}

nav ul li a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 14px; /* Smaller font size */
  padding: 6px 10px; /* More compact padding */
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
  display: block;
}

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

nav ul li a:after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

nav ul li a:hover:after,
nav ul li a.active:after {
  width: 70%;
}

/* Mobile toggle button */
.mobile-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--dark);
  z-index: 1001;
  background: none;
  border: none;
  padding: 5px 10px;
}

/* Mobile menu styles */
@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    padding: 80px 20px 40px;
    transform: translateX(100%);
    transition: var(--transition);
    z-index: 1000;
    overflow-y: auto;
  }

  nav.active {
    transform: translateX(0);
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  /* FIXED NAV SPACING - Mobile */
  nav ul li {
    margin: 6px 0; /* Reduced vertical spacing */
    width: 100%;
    text-align: center;
  }

  nav ul li a {
    display: block;
    padding: 10px 0; /* Adjusted padding */
    font-size: 16px;
  }

  /* Mobile buttons container */
  .mobile-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
    padding: 0 20px;
  }

  .desktop-buttons {
    display: none;
  }
}

/* Desktop buttons */
.desktop-buttons {
  margin-left: 15px;
  display: flex;
  gap: 10px;
}

/* Mobile buttons - hidden on desktop */
.mobile-buttons {
  display: none;
}

/* Buttons */
.btn {
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  text-align: center;
  border: none;
  cursor: pointer;
  font-size: 15px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(247, 134, 49, 0.3);
}

.btn-primary:hover {
  background: #e57621;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(247, 134, 49, 0.4);
}

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

.btn-secondary:hover {
  background: #1fc5b4;
  transform: translateY(-3px);
}

/* Hero Section */
.hero {
  background: linear-gradient(
      135deg,
      var(--dark) 0%,
      rgba(26, 26, 46, 0.9) 100%
    ),
    url("https://images.unsplash.com/photo-1499951360447-b19be8fe80f5?ixlib=rb-4.0.3")
      center/cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  color: white;
}

.hero-content {
  max-width: 750px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

/* Services Section */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 36px;
  color: var(--dark);
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
  font-weight: 700;
}

.section-header h2:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.section-header p {
  color: var(--gray);
  max-width: 700px;
  margin: 30px auto 0;
  font-size: 18px;
}

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

.service-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
  height: 200px;
  background: linear-gradient(135deg, var(--secondary) 0%, #1fc5b4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: white;
}

.service-content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-content h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--dark);
}

.service-content p {
  color: var(--gray);
  margin-bottom: 25px;
  flex: 1;
}

.service-link {
  background: var(--primary);
  color: white;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  width: fit-content;
}

.service-link:hover {
  background: #e57621;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(247, 134, 49, 0.3);
}

.service-link i {
  margin-left: 8px;
  transition: var(--transition);
}

.service-link:hover i {
  transform: translateX(5px);
}

/* About Section */
.about {
  background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  position: relative;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-image:before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 3px solid var(--secondary);
  border-radius: var(--border-radius);
  z-index: -1;
}

.about-content h3 {
  font-size: 32px;
  color: var(--dark);
  margin-bottom: 20px;
  font-weight: 700;
}

.about-content p {
  margin-bottom: 20px;
  color: #555;
  font-size: 17px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.stat-item {
  text-align: center;
  padding: 25px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-item h4 {
  font-size: 42px;
  color: var(--primary);
  margin-bottom: 5px;
  font-weight: 700;
}

.stat-item p {
  color: var(--gray);
  font-weight: 500;
  margin: 0;
}

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

.portfolio-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.portfolio-image {
  height: 300px;
  position: relative;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(37, 214, 198, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
  padding: 20px;
  text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

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

.portfolio-overlay h4 {
  color: white;
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: 600;
}

.portfolio-overlay p {
  color: white;
  margin-bottom: 20px;
}

.btn-light {
  background: white;
  color: var(--primary);
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
}

.btn-light:hover {
  background: #f8f9fa;
  transform: translateY(-3px);
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, #ff9e5a 100%);
  color: white;
  text-align: center;
  padding: 120px 0;
}

.cta h2 {
  font-size: 42px;
  margin-bottom: 20px;
  font-weight: 700;
}

.cta p {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto 40px;
  opacity: 0.95;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-form {
  background: white;
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--secondary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 214, 198, 0.2);
}

textarea.form-control {
  min-height: 180px;
  resize: vertical;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h3 {
  font-size: 32px;
  color: var(--dark);
  margin-bottom: 30px;
  font-weight: 700;
}

.contact-method {
  display: flex;
  margin-bottom: 30px;
  align-items: flex-start;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  margin-right: 20px;
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--dark);
}

.contact-details p {
  color: var(--gray);
  font-size: 17px;
}

.social-links {
  display: flex;
  margin-top: 30px;
}

.social-links a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--secondary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  transition: var(--transition);
  font-size: 20px;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-5px);
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 80px 0 0;
}

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

.footer-col h4 {
  font-size: 22px;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
  font-weight: 600;
}

.footer-col h4:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
}

.footer-col p {
  opacity: 0.8;
  margin-bottom: 25px;
  line-height: 1.8;
  font-size: 16px;
}

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

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  font-size: 16px;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-links a i {
  margin-right: 10px;
  color: var(--secondary);
}

.newsletter-form {
  display: flex;
  margin-top: 20px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: 50px 0 0 50px;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
}

.newsletter-form button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0 25px;
  border-radius: 0 50px 50px 0;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

.newsletter-form button:hover {
  background: #e57621;
}

.copyright {
  text-align: center;
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 1200px) {
  .hero h1 {
    font-size: 46px;
  }
}

@media (max-width: 992px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    max-width: 600px;
    margin: 0 auto;
  }

  .hero h1 {
    font-size: 42px;
  }

  .section {
    padding: 80px 0;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    transform: translateY(-150%);
    transition: var(--transition);
    z-index: 999;
  }

  nav.active {
    transform: translateY(0);
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li {
    margin: 12px 0;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .btn {
    width: 100%;
    margin-left: 0;
  }

  .cta h2 {
    font-size: 36px;
  }
}

@media (max-width: 576px) {
  .hero {
    height: auto;
    padding: 140px 0 80px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .section-header h2 {
    font-size: 30px;
  }

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

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

  .cta {
    padding: 80px 0;
  }

  .cta h2 {
    font-size: 30px;
  }
}
