/* CSS Variables */
:root {
  --primary-color: #e74c3c;
  --secondary-color: #f39c12;
  --dark-color: #333;
  --light-color: #fff;
  --font-family: 'Montserrat', sans-serif;
}

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

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--dark-color);
  background-color: #fafafa;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--dark-color);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--light-color);
}

.brand-name {
  margin-left: 0.5rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: var(--light-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

/* Hamburger Menu (hidden by default on larger screens) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--light-color);
  margin: 4px 0;
  transition: 0.4s;
}

/* Hero Section */
#hero {
  height: 100vh;
  background: linear-gradient(to bottom right, var(--secondary-color), var(--primary-color));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* for wave divider */
  text-align: center;
  color: var(--light-color);
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
  animation: fadeIn 1.5s ease-in-out;
  z-index: 2;
}

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

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

.btn-primary {
  background: var(--dark-color);
  color: var(--light-color);
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.3s ease;
  cursor: pointer;
}

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

/* Scroll Down Arrow */
.scroll-down-arrow {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

/* Wave Divider */
.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 0 3rem;
}

/* Sections */
section {
  position: relative;
  padding: 4rem 0;
}

section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

/* About Section */
#about p {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Services Section */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: var(--light-color);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  /* for fade-in animation */
  transform: translateY(20px);
}

.card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Contact Form */
form {
  background: var(--light-color);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

button[type="submit"] {
  display: block;
  width: 100%;
  background: var(--dark-color);
  color: var(--light-color);
  border: none;
  padding: 0.8rem;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

button[type="submit"]:hover {
  background: var(--secondary-color);
}

/* Footer */
footer {
  background: var(--dark-color);
  color: var(--light-color);
  text-align: center;
  padding: 1.5rem 0;
}

/* Animations */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {

  0%,
  20%,
  60%,
  100% {
    transform: translate(-50%, 0);
  }

  40% {
    transform: translate(-50%, -10px);
  }

  80% {
    transform: translate(-50%, -5px);
  }
}

/* Classes for scroll animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive layout: two columns per row on medium screens */
@media (max-width: 992px) {
  .service-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* One column per row on small screens */
@media (max-width: 576px) {
  .service-cards {
    grid-template-columns: 1fr;
  }

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

/* Mobile Menu Toggle */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: var(--dark-color);
    flex-direction: column;
    width: 200px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-links li {
    margin: 1.5rem 0;
    text-align: center;
  }

  .hamburger {
    display: flex;
  }

  .nav-links.show {
    transform: translateX(0);
  }
}

/* Form Response Styling */
#formResponse {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 5px;
  text-align: center;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

#formResponse.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  opacity: 1;
  transform: translateY(0);
}

#formResponse.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  opacity: 1;
  transform: translateY(0);
}
