*,
*::before,
*::after {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* Sticky Navbar */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    z-index: 999;
}

.navbar-logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0078d7;
    text-decoration: none;
}

/* Hamburger menu button */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: #0078d7;
    cursor: pointer;
    margin-left: auto;
}

/* Navbar links (desktop) */
.navbar-links {
    display: flex;
    align-items: center;
    position: static;
    background: none;
    box-shadow: none;
}

.navbar-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: #222;
    font-weight: 500;
    transition: color 0.2s;
}

.navbar-links a:hover {
    color: #0078d7;
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background: #fff;
    margin: 8% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-content input,
.modal-content textarea {
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.modal-content button {
    background: #0078d7;
    color: #fff;
    border: none;
    padding: 0.7rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-content button:hover {
    background: #005fa3;
}

.hero-section {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 120, 215, 0.45), rgba(0, 0, 0, 0.45)), url('./laptop_in_the_dark.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.btn-primary {
    background: #0078d7;
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: #005fa3;
}

.btn-secondary {
    background: #fff;
    color: #0078d7;
    border: 2px solid #0078d7;
}

.btn-secondary:hover {
    background: #e6f0fa;
    color: #005fa3;
}

/* Projects Section */
.projects-section,
.offers-section {
    padding: 4rem 2rem 2rem 2rem;
    background: #f8fafd;
    text-align: center;
}

.projects-section h2,
.offers-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #0078d7;
}

.projects-list,
.offers-list {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.project-card,
.offer-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 2rem 1.5rem;
    max-width: 320px;
    flex: 1 1 250px;
    margin-bottom: 1.5rem;
}

.project-card h3,
.offer-card h3 {
    color: #222;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.project-card p,
.offer-card p {
    color: #555;
    font-size: 1rem;
}

/* Footer */
.footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer a {
    color: #0078d7;
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive Style 1 */
@media (max-width: 900px) {

    .projects-list,
    .offers-list {
        flex-direction: column;
        align-items: center;
    }

    .project-card,
    .offer-card {
        max-width: 100%;
        width: 100%;
    }

    .hero-content {
        padding: 1rem;
    }
}


.hero-content h1 {
    font-size: 1.5rem;
}

.projects-section,
.offers-section {
    padding: 2rem 0.5rem;
}

#backToTop {
    display: none;
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1500;
    background: #0078d7;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.2s;
}

#backToTop:hover {
    background: #005fa3;
}

.footer {
    padding: 1rem 0.5rem;
}

/* Responsive styles 2 */
@media (max-width: 600px) {
    .navbar {
        /* flex-direction: row;
        align-items: center;
        padding: 1rem; */
        position: relative;
    }

    .navbar-toggle {
        display: block;
        z-index: 1001;
    }

    .navbar-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        z-index: 999;
    }

    .navbar-links.active {
        display: flex;
    }

    .navbar-links a {
        margin: 1rem 0;
        padding: 0.5rem 2rem;
        border-bottom: 1px solid #eee;
    }
}