/* ===========================
   Base Styles
=========================== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background: #f4f4f4;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ===========================
   Header & Navigation
   (Header background is now white)
=========================== */
header {
    background-color: #fff; /* Changed from blue to white */
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    position: relative;
    z-index: 3;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    margin-right: 10px;
}

/* Site Title looks better on white */
.site-title {
    font-family: Impact, Charcoal, sans-serif;
    font-size: 1.8rem;
    color: #333;       /* Updated color for white background */
    text-shadow: none; /* Remove text shadow */
}

/* Menu styles */
.menu ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

/* Improved font color for menu links on a white header */
.menu a {
    text-decoration: none;
    color: #333;        /* Changed from white to a dark color */
    font-weight: bold;
    text-shadow: none;  /* No text shadow */
    font-family: sans-serif;
    font-size: 1rem;
    padding: 5px;
}

.menu a:hover {
    color: #555;        /* Slightly darker hover */
}

/* Hamburger Icon (Mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #333; /* Match text color for visibility on white */
    margin: 3px 0;
    transition: 0.4s;
}

/* ===========================
   Hero Section
=========================== */
.hero {
    position: relative;
    background: url('images/background.jpg') no-repeat center center/cover;
    padding: 20px 0;
    color: #fff;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    padding-left: 20px;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    margin-top: -24px;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.download-buttons a {
    margin-right: 10px;
}

.download-buttons img {
    height: 50px;
    vertical-align: middle;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    max-height: 395px;
}

/* ===========================
   Sections (General)
=========================== */
section {
    padding: 40px 0;
    background: #fff;
    margin-bottom: 20px;
}

section h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* ===========================
   Screenshots Gallery
=========================== */
.screenshot-gallery {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 0;
}

.screenshot-gallery::-webkit-scrollbar {
    height: 8px;
}

.screenshot-gallery::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.screenshot-gallery::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.screenshot-thumb {
    flex: 0 0 auto;
    width: 150px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.screenshot-thumb:hover {
    transform: scale(1.05);
}

/* Modal for Full-Size Screenshots */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    display: block;
    margin: 5% auto;
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: #bbb;
}

/* ===========================
   Features Section
=========================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.feature-card h3 {
    margin-top: 10px;
    font-size: 1.4rem;
}

.feature-card p {
    font-size: 1rem;
    margin-top: 10px;
    line-height: 1.5;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

/* ===========================
   Testimonials Section
=========================== */
.testimonial {
    margin: 20px 0;
    text-align: center;
}

.testimonial blockquote {
    font-style: italic;
    background: #f9f9f9;
    padding: 20px;
    border-left: 5px solid #3498db;
    margin: 0 auto;
    max-width: 800px;
}

.testimonial .author {
    margin-top: 10px;
    font-weight: bold;
}

/* ===========================
   Footer
=========================== */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

.social-icons {
    margin-top: 10px;
}

.social-icons a {
    color: #fff;
    margin: 0 10px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #ddd;
}

#contact {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

/* ===========================
   Responsive Design
=========================== */
/* Tablets and Smaller Devices */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        margin-bottom: 20px;
        padding-left: 0;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    /* Top bar: logo left, hamburger right */
    .top-bar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
  
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 10px;
        background-color: #fff; /* Also white for consistency */
        width: 200px;
        padding: 10px;
        border-radius: 5px;
        z-index: 10;
    }

    .menu.active {
        display: flex;
    }

    .menu ul {
        flex-direction: column;
        margin: 0;
    }

    .menu li {
        margin: 10px 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger .bar {
        background-color: #333; /* Visible on white header */
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .download-buttons img {
        height: 40px;
    }

    .screenshot-gallery img {
        max-height: 537px;
    }

    .screenshot-thumb {
        width: 240px;
    }
    
}