@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

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

.logo-image {
  height: 60px; /* Adjust this value based on your logo's dimensions */
  width: auto;
  margin-right: 10px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: #3498db;
}

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

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

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #3498db;
}

#hero {
  position: relative;
  height: 100vh; /* Changed from 50vh to ensure full viewport height */
  min-height: 400px; /* Increased minimum height */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 6rem 1rem 2rem; /* Increased top padding to account for fixed header */
}

.hero-content {
  text-align: center;
  color: #fff;
  z-index: 1;
  max-width: min(800px, 90%); /* Uses the smaller of 800px or 90% viewport width */
  padding: 0 1rem;
  margin-top: 2rem; /* Add space below fixed header */
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  z-index: -2;
}

@keyframes gradient {
  0% {
      background-position: 0% 50%;
  }
  50% {
      background-position: 100% 50%;
  }
  100% {
      background-position: 0% 50%;
  }
}



#hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem); /* Responsive font size */
  margin-bottom: clamp(0.5rem, 2vh, 1.5rem);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  word-wrap: break-word;
  hyphens: auto;
}

#hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: clamp(1rem, 3vh, 2rem);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

#cta-button {
  background-color: #fff;
  color: #3498db;
  border: none;
  padding: clamp(0.6rem, 2vw, 0.8rem) clamp(1.2rem, 3vw, 1.5rem);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  border-radius: 50px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#cta-button:hover {
  background-color: #3498db;
  color: #fff;
  transform: translateY(-3px);
}

/* Adjust the sizes and positions of the shapes */
.shape1 {
  width: 150px; /* Reduced from 200px */
  height: 150px; /* Reduced from 200px */
  top: 10%; /* Adjusted from 20% */
  left: 5%; /* Adjusted from 10% */
}

.shape2 {
  width: 100px; /* Reduced from 150px */
  height: 100px; /* Reduced from 150px */
  bottom: 10%; /* Adjusted from 20% */
  right: 5%; /* Adjusted from 10% */
}

.shape3 {
  width: 75px; /* Reduced from 100px */
  height: 75px; /* Reduced from 100px */
  top: 60%; /* Adjusted from 50% */
  left: 60%; /* Adjusted from 50% */
}

@keyframes float {
  0% {
      transform: translateY(0px);
  }
  50% {
      transform: translateY(-20px);
  }
  100% {
      transform: translateY(0px);
  }
}

#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}


.services {
    padding: 80px 0;
    background-color: #fff;
}

h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
}

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

.service-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.service-item p {
    font-size: 16px;
    color: #666;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}


#contactForm input,
#contactForm textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#contactForm textarea {
    height: 100px;
    resize: vertical;
}

.submit-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #2980b9;
}

@media (max-width: 768px) {
  nav {
      flex-direction: column;
      align-items: flex-start;
  }

  .logo-container {
      margin-bottom: 1rem;
  }

  nav ul {
      flex-direction: column;
      width: 100%;
  }

  nav ul li {
      margin-left: 0;
      margin-bottom: 0.5rem;
  }
}

#about {
  padding: 5rem 0;
  background-color: #f9f9f9;
}

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

#about h2 {
  text-align: center;
  color: #3498db;
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-direction: column;
        gap: 2rem;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.about-image {
  flex: 1;
  order: -1;
}

.about-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#contact {
  padding: 5rem 0;
  background-color: #f4f4f4;
}

.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-content p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item:hover {
  color: #2980b9;
}

.contact-item i {
  margin-right: 0.5rem;
  font-size: 1.4rem;
}

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

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #3498db;
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.social-icon:hover {
  background-color: #2980b9;
}

@media screen and (max-width: 768px) {
  #hero {
      height: 90vh;
      padding-top: 5rem;
  }
  
  .shape1, .shape2, .shape3 {
      transform: scale(0.7);
  }
}

@media screen and (max-width: 480px) {
  #hero {
      height: 80vh;
      padding-top: 4rem;
  }
  
  .hero-content {
      padding: 0 0.5rem;
  }
  
  .shape1, .shape2, .shape3 {
      transform: scale(0.5);
  }
}

/* Add this for landscape mode on mobile */
@media screen and (max-height: 480px) and (orientation: landscape) {
  #hero {
      height: 120vh;
      padding: 4rem 1rem 2rem;
  }
  
  .hero-content {
      margin-top: 1rem;
  }
}
