@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Press+Start+2P&display=swap');

:root {
    --primary: #0d214f;
    --primary-dark: #091633;
    --secondary: #475569;
    --background: #f6f5f8;
    --card-background: #e5edf5;
    --text: #1e293b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Lato", sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text);
    line-height: 1.5;
}

.navbar {
    background-color: var(--primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.nav-link:hover {
    opacity: 1;
}

.nav-link.active {
    opacity: 1;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
}

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

.hero {
    background-color: var(--background);
    padding: 4rem 0;
    margin-bottom: 3rem;
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text {
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--secondary);
    font-weight: 500;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-4px);
}

.card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
    background: var(--card-background);
}

.card h3 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.card p {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.button {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.button:hover {
    background-color: var(--primary-dark);
}

.content {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.content h1 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.content h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.content ul {
    list-style-position: inside;
    margin: 1rem 0;
}

.content li {
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

/* Updated Media Query for Hamburger Menu */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-image {
        order: -1;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
      .nav-content {
        flex-direction: row; /* Align items in a row */
        align-items: center; /* Vertically center items */
        padding: 0 1rem; /* Adjust padding on smaller screens */
    }

    .nav-links {
        position: absolute; /* Position nav links absolutely */
        top: 100%; /* Position it below the navbar */
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--primary); /* Background color for visibility */
        text-align: center; /* Center align the links */
        display: none; /* Hide links initially */
    }
  
  .nav-links a{
    padding: 1rem;
    display: block;
  }
    
    .nav-links.nav-open {
        display: flex; /* Show links when toggled */
        
    }

    .nav-toggle {
        display: flex; /* Show toggle button on mobile */
        background: transparent;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
    }
    
    .nav-toggle.active{
        background: var(--primary-dark);
    }
  
  
      .nav-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
  
    .nav-toggle {
        display: flex; /* Show toggle button on mobile */
    }
}

.nav-toggle {
    display: none; /* Hide toggle button on larger screens */
}

.dots-animation::after {
    content: '.';
    animation: dots 2.4s steps(5, end) infinite;
}

@keyframes dots {
    0% { content: '.'; }
    20% { content: '..'; }
    40% { content: '...'; }
    60% { content: '....'; }
    80% { content: '.....'; }
    100% { content: '......'; }
}

/* Chat Window Styles */
.chat-window {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: none; /* Initially hidden */
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    max-width: 300px;
  }

.chat-header {
    background-color: var(--primary);
    color: white;
    padding: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .chat-header span {
      cursor: pointer;
    }

.chat-body {
    padding: 10px;
  }
  
  .chat-body p {
      margin-bottom: 5px;
      font-size: 0.9em;
  }
  
  .chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary);
    color: white;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}