/* ===== RESET ===== */
* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}
body {
      font-family: "Segoe UI", sans-serif;
      color: #1e293b;
      background: #f9fafb;
      line-height: 1.6;
      transition: background 0.4s, color 0.4s;
}
a {
   text-decoration: none;
    color: inherit; 
}
ul {
   list-style: none; 
}

/* ===== HEADER ===== */
header {
  background: linear-gradient(90deg, #1e3a8a, #6d28d9);
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, #38bdf8, #2563eb, #9333ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  display: flex;
  gap: 4rem;
}

nav a {
  font-weight: 500;
  transition: 0.3s;
  color: #fff;
}

nav a:hover {
  color: #facc15;
}

/* Dark mode toggle button */
.toggle-btn {
  background: #facc15;
  color: #1e293b;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  transition: 0.3s;
}

.toggle-btn:hover {
  background: #fde047;
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
  nav {
    position: absolute;
    top: 64px; /* just below header */
    right: 0;
    background: #1e293b;
    width: 200px;
    display: none;
    flex-direction: column;
    padding: 1rem;
    border-radius: 0 0 0 12px;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  nav a {
    color: #fff;
  }

  .hamburger {
    display: block;
  }

  nav.active {
    display: flex;
  }
}



/* ===== HERO ===== */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #1e3a8a, #6d28d9);
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Floating Background Circles */
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 8s ease-in-out infinite;
}
.hero::before {
  width: 200px;
  height: 200px;
  top: -50px;
  left: -50px;
}
.hero::after {
  width: 300px;
  height: 300px;
  bottom: -100px;
  right: -100px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero-content {
  max-width: 550px;
  z-index: 1;
  flex: 1;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}
.hero h1 .highlight {
  color: #facc15;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #e2e8f0;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  padding: 0.9rem 1.6rem;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s;
  text-align: center;
}
.btn.primary {
  background: #facc15;
  color: #1e293b;
}
.btn.primary:hover {
  background: #fde047;
}
.btn.secondary {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}
.btn.secondary:hover {
  background: rgba(255,255,255,0.1);
}
.hero-image {
  flex: 1;
  text-align: center;
  z-index: 1;
}
.hero-image img {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: float 6s ease-in-out infinite;
}

/* Dark Mode Adjustments */
body.dark-mode .hero {
  background: linear-gradient(135deg, #0f172a, #1e293b);
}
body.dark-mode .btn.secondary {
  border-color: #f1f5f9;
  color: #f1f5f9;
}

/* ===== RESPONSIVE STYLES ===== */

/* Tablets */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 3rem 1.5rem;
  }
  .hero-content {
    max-width: 100%;
    margin-bottom: 2rem;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-image img {
    max-width: 80%;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .hero {
    padding: 2.5rem 1rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .btn {
    width: 80%;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
  }
  .hero-image img {
    max-width: 100%;
  }
}


/* Services Section */
.services {
  padding: 80px 20px;
  background: #f9f9ff;
  text-align: center;
}

.services .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1f1f39;
}

.services .section-subtitle {
  max-width: 600px;
  margin: 0 auto 50px;
  color: #666;
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  color: #fff;
}

.service-card .icon {
  font-size: 40px;
  color: #4f46e5;
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.service-card:hover .icon {
  color: #fff;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.service-card p {
  font-size: 0.95rem;
  color: #555;
}

.service-card:hover p {
  color: #e0e0e0;
}

/* Portfolio Section */
.portfolio {
  padding: 80px 20px;
  background: #fff;
  text-align: center;
}
.portfolio .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1f1f39;
}

.portfolio .section-subtitle {
  max-width: 600px;
  margin: 0 auto 50px;
  color: #666;
  font-size: 1.1rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  cursor: pointer;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-card:hover img {
  transform: scale(1.1);
}

.portfolio-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(79,70,229,0.85);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 20px;
  text-align: center;
}

.portfolio-card:hover .overlay {
  opacity: 1;
}

.portfolio-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.portfolio-card p {
  font-size: 1rem;
  margin-bottom: 15px;
}

.portfolio-card .btn {
  padding: 10px 18px;
  background: #fff;
  color: #4f46e5;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.portfolio-card .btn:hover {
  background: #9333ea;
  color: #fff;
}
/* CEO Section */
.ceo-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  color: #fff;
  text-align: center;
}

.ceo-section .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.ceo-section .section-subtitle {
  max-width: 600px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
  color: #ddd;
}

.ceo-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background: #fff;
  color: #333;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  max-width: 1000px;
  margin: auto;
}

.ceo-image img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid #4f46e5;
  transition: transform 0.4s ease;
}

.ceo-image img:hover {
  transform: scale(1.05);
}

.ceo-content {
  max-width: 500px;
  text-align: left;
}

.ceo-content h3 {
  font-size: 2rem;
  margin-bottom: 5px;
  color: #1f1f39;
}

.ceo-content .role {
  font-weight: 600;
  margin-bottom: 20px;
  color: #4f46e5;
}

.ceo-content blockquote {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
}

.ceo-socials a {
  font-size: 22px;
  margin-right: 15px;
  color: #4f46e5;
  transition: color 0.3s ease;
}

.ceo-socials a:hover {
  color: #9333ea;
}


/* Dark mode adjustments */
body.dark-mode .ceo {
  background: #1e293b;
}
body.dark-mode .ceo-info h2,
body.dark-mode .ceo-info h3,
body.dark-mode .ceo-info p {
  color: #f1f5f9;
}
body.dark-mode .ceo-socials a {
  color: #f1f5f9;
}
body.dark-mode .ceo-socials a:hover {
  color: #facc15;
}

/* Contact Section */
.contact-section {
  padding: 80px 20px;
  background: #f9f9ff;
  text-align: center;
}

.contact-section .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1f1f39;
}

.contact-section .section-subtitle {
  max-width: 600px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
  color: #666;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  align-items: flex-start;
}

.contact-info {
  text-align: left;
}

.contact-info h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #4f46e5;
}

.contact-info p {
  font-size: 1rem;
  margin: 12px 0;
  color: #444;
}

.contact-info i {
  margin-right: 10px;
  color: #4f46e5;
}

.contact-socials {
  margin-top: 20px;
}

.contact-socials a {
  font-size: 22px;
  margin-right: 15px;
  color: #4f46e5;
  transition: color 0.3s ease;
}

.contact-socials a:hover {
  color: #9333ea;
}

/* Contact Form */
.contact-form form {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border: 1px solid #4f46e5;
  box-shadow: 0 0 8px rgba(79,70,229,0.2);
  outline: none;
}

.contact-form .btn {
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  color: #fff;
  border: none;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
}

.contact-form .btn:hover {
  background: linear-gradient(135deg, #4338ca, #7e22ce);
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-content {
  background: #fff;
  padding: 30px 40px;
  border-radius: 15px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  animation: popupFade 0.3s ease-in-out;
}

.popup-content h3 {
  margin-bottom: 15px;
  color: #111a2c;
}

.popup-content p {
  color: #555;
  margin-bottom: 20px;
}

.popup-close {
  padding: 10px 25px;
  border: none;
  background: #007BFF;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.popup-close:hover {
  background: #0056b3;
}

@keyframes popupFade {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}




/* Footer */
.footer {
  background: linear-gradient(135deg, #1f1f39, #111);
  color: #ddd;
  padding: 60px 20px 20px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer h3 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 15px;
}

.footer h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #fff;
}

.footer-about p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.footer-links ul,
.footer-services ul {
  list-style: none;
  padding: 0;
}

.footer-links li,
.footer-services li {
  margin-bottom: 10px;
}

.footer-links a,
.footer-services a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-services a:hover {
  color: #4f46e5;
}

.footer-socials a {
  font-size: 20px;
  margin-right: 15px;
  color: #bbb;
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: #9333ea;
}

/* Newsletter */
.footer-newsletter input {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  margin-bottom: 10px;
}

.footer-newsletter button {
  width: 100%;
  padding: 12px;
  border: none;
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.footer-newsletter button:hover {
  background: linear-gradient(135deg, #4338ca, #7e22ce);
}

/* Bottom Bar */
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 15px;
  font-size: 0.85rem;
  color: #888;
}



/* ===== DARK MODE ===== */
body.dark-mode {
      background: #0f172a;
      color: #e2e8f0;
}
body.dark-mode .services,
body.dark-mode .contact {
      background: #1e293b;
}
body.dark-mode .portfolio {
      background: #0f172a;
}
body.dark-mode .service {
      background: #334155;
      color: #f1f5f9;
}
body.dark-mode .project {
      background: #1e293b;
}
body.dark-mode .contact input,
body.dark-mode .contact textarea {
      background: #334155;
      color: #f1f5f9;
      border: 1px solid #475569;
}



/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 10000; /* very high so it’s above everything */
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* WhatsApp icon inside button */
.whatsapp-float img {
  width: 35px;
  height: 35px;
}

/* Hover effect */
.whatsapp-float:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }
  .whatsapp-float img {
    width: 28px;
    height: 28px;
  }
}

/* Desktop adjustments */
@media (min-width: 769px) {
  .whatsapp-float {
    width: 60px;
    height: 60px;
  }
  .whatsapp-float img {
    width: 35px;
    height: 35px;
  }
}