/* === KEYFRAMES === */

@keyframes slideInFade {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoBounce {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(-30px);
  }
  60% {
    opacity: 1;
    transform: scale(1.05) translateY(5px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}

@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideAnimation {
  0% { transform: translateX(0); }
  33.33% { transform: translateX(-100%); }
  66.66% { transform: translateX(-200%); }
  100% { transform: translateX(0); }
}


/* === GENERAL === */

body {
  background-color: #f5f5f5;
  color: #222;
  transition: background-color 0.4s, color 0.4s;
}

body.dark-mode {
  background-color: #121212;
  color: #ddd;
}


/* === LOGO AREA === */

.logo {
  padding: 10px;
  border: 2px solid #333;
  border-radius: 12px;
  background-color: #fff;
  animation: logoBounce 1s ease-out;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

.logo:hover {
  border-color: #007BFF;
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.4);
}

.logo img {
  height: 50px;
  width: auto;
  border-radius: 8px;
  transition: filter 0.3s ease;
}

body.dark-mode .logo {
  background-color: #222;
  border-color: #007BFF;
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.6);
}

body.dark-mode .logo:hover {
  border-color: #66ccff;
  box-shadow: 0 0 15px rgba(102, 204, 255, 0.4);
}


/* === LOGO IMAGE WRAPPER === */

.logo-img {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 15px 30px;
  background: linear-gradient(135deg, #fdfbfb, #ebedee);
  border: 3px solid #ccc;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  animation: fadeSlideIn 0.8s ease-out;
  margin: 20px;
  transition: all 0.3s ease;
}

.logo-img:hover {
  border-color: #007BFF;
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
}

body.dark-mode .logo-img {
  background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
  border-color: #444;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.05);
}

body.dark-mode .logo-img:hover {
  border-color: #66ccff;
  box-shadow: 0 8px 25px rgba(102, 204, 255, 0.2);
}


/* === NAVIGATION === */

.nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav ul li {
  opacity: 0;
  animation: slideInFade 0.5s forwards;
}

.nav ul li:nth-child(1) { animation-delay: 0.2s; }
.nav ul li:nth-child(2) { animation-delay: 0.4s; }
.nav ul li:nth-child(3) { animation-delay: 0.6s; }
.nav ul li:nth-child(4) { animation-delay: 0.8s; }

.nav ul li a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 5px;
  overflow: hidden;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background-color: #007BFF;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  border-radius: 3px;
}

.nav ul li a:hover,
.nav ul li a:focus {
  color: #007BFF;
  transform: scale(1.05);
}

.nav ul li a:hover::after {
  transform: translateX(0);
}

body.dark-mode .nav ul li a {
  color: #ccc;
}

body.dark-mode .nav ul li a:hover {
  background-color: #fff;
  color: #111;
}

body:not(.dark-mode) .nav ul li a:hover {
  background-color: #333;
  color: #fff;
}


/* === MENU TOGGLE (MOBILE) === */

.menu-toggle {
  color: #333;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
}

.menu-toggle:hover,
.menu-toggle.active {
  color: #007BFF;
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .nav ul {
    display: none;
  }

  .nav ul.open {
    display: flex;
    flex-direction: column;
  }

  .menu-toggle {
    display: block;
  }

  .logo-img {
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-align: center;
  }

  .nav ul {
    gap: 10px;
    margin-top: 15px;
  }
}

@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
}


/* === MODE TOGGLE SWITCH === */

#mode-toggle {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  margin-left: 20px;
  color: #007BFF;
  transition: color 0.3s ease;
}

body.dark-mode #mode-toggle {
  color: #f5f5f5;
}


/* === HERO SECTION === */

.home-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 60px 30px;
  background-color: #fff;
  transition: background-color 0.3s, color 0.3s;
}

body.dark-mode .home-hero {
  background-color: #1e1e1e;
  color: #f5f5f5;
}

.hero-content {
  flex: 1 1 50%;
  animation: slideInFade 1s ease forwards;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero-button {
  display: inline-block;
  background-color: #007BFF;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.hero-button:hover {
  background-color: #0056b3;
}

.welcome{
  color: #007BFF;
}


/* === IMAGE SLIDER === */

.hero-image {
  flex: 1 1 40%;
  text-align: center;
  animation: fadeSlideIn 1.2s ease forwards;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

.image-slider {
  display: flex;
  width: 300%;
  animation: slideAnimation 12s infinite;
}

.image-slider img {
  width: 50%;
  flex-shrink: 0;
  border-radius: 20px;
}

.hero-image:hover .image-slider {
  animation-play-state: paused;
}

body.dark-mode .hero-image img {
  filter: brightness(0.9) contrast(1.1);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.05);
}


/* === RESPONSIVE HERO === */

@media (max-width: 768px) {
  .home-hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-content,
  .hero-image {
    flex: 1 1 100%;
  }

  .hero-content h1 {
    font-size: 2rem;
  }
}

/*===SLIDES DOTS===*/
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.slider-dots .dot.active {
  background-color: #007BFF;
}


/*===ABOUT PAGE CSS===*/
.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 60px 30px;
  gap: 40px;
}

.about-image {
  flex: 1 1 40%;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-content {
  flex: 1 1 55%;
}

.about-content h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #007BFF;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Dark mode */
body.dark-mode .about-content h1 {
  color: #66ccff;
}

body.dark-mode .about-content p {
  color: #ccc;
}

/* Mobile view */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-content {
    flex: 1 1 100%;
  }
}

.about-container {
  animation: fadeSlideIn 0.8s ease;
}

/*===CONTACT PAGE===*/
.contact-container {
  max-width: 700px;
  margin: 60px auto;
  padding: 30px;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  animation: fadeSlideIn 0.8s ease;
}

.contact-container h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #007BFF;
  text-align: center;
}

.contact-container p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  text-align: center;
  color: #555;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #007BFF;
  outline: none;
}

.contact-button {
  display: inline-block;
  background-color: #007BFF;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-button:hover {
  background-color: #0056b3;
}

/* Dark Mode Support */
body.dark-mode .contact-container {
  background-color: #1e1e1e;
  color: #ddd;
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background-color: #2a2a2a;
  color: #eee;
  border-color: #444;
}

body.dark-mode .contact-form label {
  color: #ccc;
}

body.dark-mode .contact-button {
  background-color: #66ccff;
  color: #111;
}

body.dark-mode .contact-button:hover {
  background-color: #33aaff;
}

/* Responsive */
@media (max-width: 600px) {
  .contact-container {
    padding: 20px;
  }

  .contact-container h1 {
    font-size: 1.8rem;
  }
}


.social-links {
  text-align: center;
  margin-top: 40px;
}

.social-links h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #333;
}

.social-links .icons a {
  margin: 0 15px;
  font-size: 28px;
  color: #007BFF;
  transition: transform 0.3s, color 0.3s;
}

.social-links .icons a:hover {
  transform: scale(1.2);
  color: #0056b3;
}

/* Dark mode support */
body.dark-mode .social-links h3 {
  color: #ccc;
}

body.dark-mode .social-links .icons a {
  color: #66ccff;
}

body.dark-mode .social-links .icons a:hover {
  color: #3399ff;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}


.form-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 5px;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}
.form-message.show {
  opacity: 1;
}


/*===FEATURES PAGE*/
.features-section {
  padding: 4rem 2rem;
  text-align: center;
  background-color: var(--bg);
  color: var(--text);
}

.features-section h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.features-section p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.h1fe{
  color: #007BFF;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: #007BFF;
}

.feature-card p {
  font-size: 1rem;
  color: var(--text-muted);
}

/* CTA section */
.cta-section {
  text-align: center;
  padding: 4rem 2rem;
  background-color: var(--primary);
  color: blue;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.cta-section p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.cta-button {
  background-color: #fff;
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background-color: #f0f0f0;
}

