/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family: 'Segoe UI', sans-serif;
    background: #f0f4f8;
    color: #111;
    transition: 0.3s ease;
  }
  a {
    text-decoration: none;
    color: inherit;
  }
  img {
    max-width: 100%;
  }
  html {
    scroll-behavior: smooth;
  }
  .container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
  }
  
  /* Header */
  header {
    background: linear-gradient(to right, #001f3f, #003366);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
  }
  .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: bold;
  }
  .logo img {
    height: 48px;
  }
  .nav-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
  }
  .nav-links a {
    color: white;
    font-weight: 500;
  }
  .nav-links a:hover {
    color: #d43900;
  }
  #themeToggle {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
  }
  
  /* Hero */
  .hero {
    background: linear-gradient(to bottom right, #b600b6, #d89e00);
    color: white;
    text-align: center;
    padding: 100px 20px;
  }
  .hero h2 {
    font-size: 2rem;
  }
  .btn {
    display: inline-block;
    margin-top: 20px;
    background: #ffffff;
    color: #a1b600;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s;
  }
  .btn:hover {
    background: #e0e0e0;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  
  /* Sections */
  .section {
    padding: 60px 20px;
    text-align: center;
  }
  h2 {
    font-size: 28px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
  }
  h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #0077b6, #00a896, #e63946, #588157);
    border-radius: 2px;
  }
  ul {
    text-align: left;
    max-width: 700px;
    margin: auto;
    padding-left: 20px;
  }
  
  /* Services */
  #services {
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    position: relative;
    overflow: hidden;
  }
  #services::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #0077b6, #00a896, #e63946, #588157);
  }
  .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
  }
  .service-card {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid #0077b6;
    overflow: hidden;
  }
  .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,119,182,0.2);
  }
  .service-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0.05), rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    transition: all 0.7s ease;
  }
  .service-card:hover::after {
    left: 100%;
  }
  .service-card i {
    font-size: 36px;
    margin-bottom: 15px;
    transition: transform 0.3s ease, color 0.3s ease;
  }
  .service-card:hover i {
    transform: rotate(5deg) scale(1.1);
  }
  .service-card:nth-child(1) i { color: #0077b6; }
  .service-card:nth-child(2) i { color: #00a896; }
  .service-card:nth-child(3) i { color: #e63946; }
  .service-card:nth-child(4) i { color: #588157; }
  .service-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
    transition: color 0.3s ease;
  }
  .service-card:hover h3 {
    color: #0077b6;
  }
  
  /* Demo */
  .demo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
  }
  .demo-gallery img {
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    width: 100%;
    transition: transform 0.3s ease;
  }
  .demo-gallery img:hover {
    transform: scale(1.05);
  }
  
  /* Contact */
  .contact-section {
    background: #f8f9fa;
    padding: 60px 20px;
    text-align: center;
    border-top: 4px solid #4e73df;
    border-radius: 20px;
  }
  
  .contact-section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #333;
  }
  
  .contact-details p {
    font-size: 1.1rem;
    margin: 10px 0;
    color: #222;
  }
  
  .contact-details i {
    color: #4e73df;
    margin-right: 8px;
  }
  
  .contact-details a {
    color: #111;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .contact-details a:hover {
    color: #4e73df;
  }
  
  .socials {
    margin-top: 20px;
  }
  
  .socials a {
    font-size: 1.8rem;
    margin: 0 12px;
    color: #555;
    transition: color 0.3s ease, transform 0.3s ease;
  }
  
  .socials a:hover {
    color: #4e73df;
    transform: scale(1.2);
  }
  
  
  /* Footer */
  footer {
    background: #001f3f;
    color: white;
    text-align: center;
    padding: 20px 0;
  }
  
  /* Dark Mode */
  /* Dark Mode */
  body.dark-mode {
    background: #121212;
    color: #eaeaea;
  }
  /* Fix for dark mode contact text visibility */
  body.dark-mode .contact-details a,
  body.dark-mode .contact-details p {
    color: #eaeaea;
  }
  
  body.dark-mode .contact-details a:hover {
    color: #00bcd4;
  }
  
  body.dark-mode .contact-section h2 {
    color: #ffffff;
  }
  
  
  /* Header, Hero, Footer, Cards, and Section backgrounds */
  body.dark-mode header,
  body.dark-mode .hero,
  body.dark-mode footer,
  body.dark-mode .section,
  body.dark-mode #services,
  body.dark-mode .service-card {
    background: #1e1e1e;
    color: #eaeaea;
  }
  
  /* Button styling */
  body.dark-mode .btn {
    background: #00bcd4;
    color: #001f3f;
  }
  
  /* Nav Links & Social Icons */
  body.dark-mode .nav-links a,
  body.dark-mode .socials a {
    color: #eaeaea;
  }
  
  /* Hover effect for nav links */
  body.dark-mode .nav-links a:hover {
    color: #00bcd4;
  }
  
  /* Headings in dark mode */
  body.dark-mode h2::after {
    background: linear-gradient(to right, #00bcd4, #5eead4, #ff6b6b, #9ae6b4);
  }
  
  /* Demo Gallery images - optional darker overlay if needed */
  body.dark-mode .demo-gallery img {
    box-shadow: 0 3px 8px rgba(255, 255, 255, 0.1);
  }
  
  /* Service card icons */
  body.dark-mode .service-card:nth-child(1) i { color: #00bcd4; }
  body.dark-mode .service-card:nth-child(2) i { color: #5eead4; }
  body.dark-mode .service-card:nth-child(3) i { color: #ff6b6b; }
  body.dark-mode .service-card:nth-child(4) i { color: #9ae6b4; }
  
  body.dark-mode .service-card h3 {
    color: #eaeaea;
  }
  
  
  /* Responsive */
  @media screen and (max-width: 768px) {
    .hero h2 {
      font-size: 1.5rem;
    }
    .nav-links {
      gap: 10px;
      font-size: 14px;
    }
    .logo {
      font-size: 18px;
    }
    .modal-content {
      width: 95%;
    }
  }
  
  /* Modal */
  .img-modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease forwards;
  }
  .modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
  }
  .close {
    position: absolute;
    top: 30px;
    right: 35px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
  }
  #caption {
    margin: 15px auto;
    text-align: center;
    color: #ccc;
    font-size: 16px;
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  