/* General Styles */
/* Reset Body and HTML margins/paddings */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Ensures padding and borders don't affect width/height */
    width: 100%;
    height: 100%;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000033;
    font-weight: bold;
    z-index: 1000; /* Ensures the header stays above other content */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow for separation */
    padding: 10px 0; /* Adds padding for spacing */
}

.container {
    width: 100%; /* Full width */
    margin: 0;
    padding: 0 ; /* Adds padding to the left and right */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    margin-right: 5px;
    color: white;
    font-size: 30px;
}

.logo img {
    height: 10px;
    width: 500px;
    color: white;
    margin-left: 30px;
}

.nav-links {
    display: flex;
    gap: 15px;
    font-size: 22px;
    margin-right: 50px;
}

.nav-links a {
    color: white; /* Link color */
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
}

.content {
    padding: 20px 0;
    margin-top: 80px; /* Space for the fixed header */
}

/* Styles for hamburger menu and sidebar */
.hamburger-menu {
    display: none; /* Hidden by default */
    flex-direction: column;
    cursor: pointer;
}

.hamburger-menu div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
}

/* Sidebar styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -250px; /* Initially hidden */
    height: 100%;
    width: 250px;
    color: white;
    background-color: #000033;
    transition: left 0.3s ease;
    padding: 20px;
    z-index: 1000;
}

.sidebar.open {
    left: 0; /* Show the sidebar when open */
}

.sidebar .nav-links {
    flex-direction: column;
    gap: 20px;
    color: white;
}

.sidebar .nav-links a {
    color: white;
    font-size: 18px;
}

.sidebar .nav-links a:hover {
    text-decoration: underline;
}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 2;
}

.hamburger span {
    height: 6px;
    width: 25px;
    background-color: white;
    margin: 3px 0;
    transition: all 0.3s ease;
}


/* Responsive Styles */
@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
    }
    /* Sidebar active state */
.container.active .nav-links {
    display: flex; /* Ensure nav-links are visible */
    flex-direction: column;
    gap: 15px; /* Add some spacing between links */
}

.container.active .nav-links a {
    color:white; /* Set the desired color for nav links */
    text-decoration: none;
    padding: 10px 0;
}

.container.active .nav-links a:hover {
    color: #00B3E6; /* Hover color */
}

/* Ensure nav-links are hidden when not active */
.nav-links {
    display: none; /* Hidden by default */
}



    .container.active {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        background-color:#000033;
        position: fixed;
        top: 0;
        left: 0;
        color: white;
        height: 100vh;
        width: 150px;
        z-index: 1;
        overflow: auto;
    }

    .logo {
        width: 30px;
        margin: 0;
        align-self: flex-start;
    }


    .hamburger {
        display: flex;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 3;
    }

    /* When hamburger is open */
    .hamburger.open .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.open .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.open .line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }


    .navbar {
        display: none;
        width: 100%;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        color: white;
        margin: 0;
        padding: 0;
    }

    .nav-links li {
        width: 100%;
        color: white;
    }

    .nav-links li a {
        display: block;
        padding: 10px;
        text-align: left;
        color: white;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .nav-links li a:hover {
        color: #00B3E6;
    }

}


/* Media query for small screens */
@media (max-width: 768px) {
    .container {
        justify-content: space-between;
        align-items: center;
    }

    /* Hide nav-links in normal layout */
    .nav-links {
        display: none;
        color: white;
    }

    /* Display hamburger menu on small screens */
    .hamburger-menu {
        display: flex; /* Show hamburger on small screens */
    }

    /* Style the header content when sidebar is active */
    .header .container {
        display: block;
    }

    .header .logo img {
        width: 150px; /* Adjust logo size for small screens */

    }
}

.hero {
    text-align: center;
    padding: 50px 20px;
    background: #e9ecef;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.hero button {
    padding: 10px 20px;
    font-size: 1rem;
    background: #000033;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.hero button:hover {
    background: #000033;
}
section {
    padding: 30px 20px;
    text-align: center;
}
h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}
.grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}
.card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: left;
}
.card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}
/* Screenshot Styles */
.card img {
    width: 100%; /* Ensure image fills the container width */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Rounded corners */
    margin-bottom: 15px; /* Space between the image and text */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add a slight shadow for depth */
}
/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
form input,
form textarea {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
form button {
    padding: 10px 20px;
    font-size: 1rem;
    background: #000033;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
form button:hover {
    background: #000033;
}
/* Footer Styles */
footer {
    background: #000033;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}



/* General Styles for Main Content */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 30px;
    background-color: #fafafa; /* Light background */
    color: #333;
    font-family: 'Open Sans', sans-serif;
}

/* Title Styles */
.main-container h1 {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: #000033; /* Dark color */
    font-weight: 600;
    line-height: 1.2;
}

/* Paragraphs */
.main-container p {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 50px;
    color: #7f8c8d;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Styles */
.section {
    padding: 50px;
    background-color: #ffffff;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #000033; /* Dark border for a simple look */
}

/* Section Titles */
.section h2 {
    font-size: 2.5rem;
    color: #000033; /* Dark color */
    margin-bottom: 30px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
}

/* Section Paragraphs */
.section p {
    font-size: 1.1rem;
    color: #7f8c8d;
    line-height: 1.7;
    text-align: justify;
    margin-bottom: 30px;
}

/* Section Hover Effects */
.section:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Simple Section Backgrounds */
.introduction-section,
.widgets-section,
.layout-section,
.navigation-section,
.state-management-section,
.networking-section,
.storage-section,
.advanced-ui-section,
.firebase-section,
.deploying-section {
    background-color: #ffffff; /* All sections have white background */
    color: #000033; /* Dark text color */
}

/* Card Styles for Sections */
.section-card {
    border: 1px solid #000033; /* Dark border */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

/* Card Title */
.section-card h3 {
    font-size: 1.8rem;
    color: #000033; /* Dark color */
    margin-bottom: 20px;
    font-weight: 700;
}

/* Card Content */
.section-card p {
    font-size: 1.1rem;
    color: #7f8c8d;
    line-height: 1.6;
    text-align: justify;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .main-container {
        padding: 20px;
    }

    .main-container h1 {
        font-size: 2.5rem;
    }

    .section {
        padding: 30px;
    }

    .section h2 {
        font-size: 2rem;
    }

    .section p {
        font-size: 1rem;
    }
}


/* other services */
.hero1{
    display: flex;
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content */
    width: 100%;
    height: auto; /* Ensure it adjusts to the content */
    padding: 0; /* Remove any padding */
    margin: 0; /* Remove any margin */
  }
  
  /* Hero Container */
  .hero1-container {
    display: flex;
    flex-wrap: wrap; /* Handle content wrapping on smaller screens */
    width: 100%;
    max-width: 1200px; /* Optional: restrict content width */
    margin: auto; /* Center the container horizontally */
    padding: 20px; /* Optional: Add padding for spacing */
  }
  
  /* Hero Content */
  .hero1-content {
    flex: 1; /* Allow the content to grow/shrink */
    padding: 20px;
    background-color: whitesmoke;
    margin-right: 20px; /* Add margin to the right to create space between image */
  }
  
  .hero1-content h1 {
    font-size: 3rem;
    color: black;
    margin-bottom: 20px;
  }
  
  .hero1-content p {
    font-size: 1.2rem;
    color: black;
    margin-bottom: 30px;
  }
  
  .hero-content ul {
    margin-bottom: 30px;
  }
  
  .hero1-content .btn-cta {
    display: inline-block;
    background-color: #000033;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
  }
  
  .hero1-content .btn-cta:hover {
    background-color: #000033;
  }
  
  /* Hero Image */
  .hero1-image {
    flex: 1;
    max-width: 50%;
  }
  
  .hero1-image img {
    width: 100%;
    height: 100%; /* Make sure the image takes full height */
    object-fit: cover; /* Ensure the image covers the container without distortion */
    object-position: top center; /* Keeps the top of the image visible */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  /* Responsiveness for smaller screens */
  @media (max-width: 768px) {
    .hero1-container {
      margin-top: 100px;
      flex-direction: column; /* Stack content vertically */
      text-align: center;
    }
  
    .hero1-content,
    .hero1-image {
      max-width: 100%;
      margin-bottom: 20px; /* Add space between image and content */
    }
  
    .hero-content h1 {
      font-size: 2.5rem;
    }
  
    .hero1-content p {
      font-size: 1rem;
    }
  
    /* Ensure image is on top */
    .hero1-image {
      order: -1; /* Move the image to the top on small screens */
      width: 100%;
      height: auto; /* Let the image height adjust based on the content */
    }
  
    .hero1-image img {
      object-fit: cover;
      height: 300px;
      object-position: top center;
    }
  }  
  
  .featured-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
  
    
  }
  
  /* Post card styling */
  .post-card {
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
  }
  
  .post-card h3 {
    font-size: 1.5em;
    margin-top: 15px;
  }
  
  .post-card p {
    font-size: 1em;
    color: #555;
  }
  .title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333; /* Customize the color as needed */
    font-weight: bold;
  }
  /* Media Query for Small Screens */
  @media (max-width: 768px) {
    .featured-posts {
      grid-template-columns: 1fr; /* Stack posts in a single column */
      gap: 15px; /* Adjust gap between posts */
      flex-direction: column;
      text-align: center;
      margin-top: 20px; /* Slightly reduce top margin */
    }
  
    .post-card {
      padding: 15px; /* Reduce padding inside the card */
    }
  
    .post-card img {
      height: 150px; /* Reduce image height on small screens */
    }
  
    .post-card h3 {
      font-size: 1.3em; /* Adjust heading font size */
    }
  
    .post-card p {
      font-size: 0.9em; /* Adjust paragraph font size */
    }
  }
  
     
  
  /* Demo Section */
  .demo-section {
    padding: 40px 20px;
    background-color: #f9f9f9;
    margin-top: 40px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
  }
  
  .demo-section .container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* Section Title and Description */
  .title {
    font-size: 2.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
  }
  
  .description {
    font-size: 1.1rem;
    color: #555;
    text-align: center;
    margin-bottom: 40px;
  }
  
  /* Screenshot Section */
  .screenshots-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
  }
  
  .screenshot {
    width: 30%;
    text-align: center;
  }
  
  .screenshot img {
    width: 100%;
    border-radius: 8px;
  }
  
  .screenshot-caption {
    font-size: 1rem;
    color: #333;
    margin-top: 10px;
  }
  
  /* Step-by-Step Process */
  .steps-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .steps-title {
    font-size: 2rem;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
  }
  
  .steps-list {
    list-style: decimal;
    padding-left: 20px;
    color: #555;
  }
  
  .steps-list li {
    margin-bottom: 20px;
  }
  
  .steps-list strong {
    color: #000033;
    font-size: 1.2rem;
  }
  
  /* Pagination */
  .pagination {
    text-align: center;
    margin-top: 40px;
  }
  
  .pagination button {
    padding: 12px 20px;
    background-color: #000033;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    margin: 0 10px;
  }
  
  .pagination button:hover {
    background-color: #333;
  }
  
  /* Media Queries for Responsive Design */
  @media (max-width: 768px) {
    .screenshot {
      width: 100%;
      margin-bottom: 20px;
    }
  
    .steps-list {
      padding-left: 15px;
    }
  }
  .whatsapp-chat{
    position: fixed;
    bottom: 200px; /* Adjusts vertical position */
    right: 20px; /* Adjusts horizontal position */
    z-index: 1000; /* Ensures it appears above other content */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000033;
    width: 60px; /* Icon container size */
    height: 60px; /* Icon container size */
    border-radius: 50%; /* Makes the icon circular */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .whatsapp-chat img {
    width: 40px; /* Icon image size */
    height: 40px;
  }
  
  .whatsapp-chat:hover {
    transform: scale(1.1); /* Slightly enlarges the icon on hover */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
  }

  .back-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #007BFF;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 1rem;
    margin: 1rem 0;
}

.back-button:hover {
    background-color: #0056b3;
}
