:root {
    --color-black: #0d0d0d;
    --color-dark-blue: #002244;
    --color-blue-accent: #004080;
    --color-white: #ffffff;
    --color-gray: #cccccc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--color-black);
    color: var(--color-gray);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    color: var(--color-white);
}

header {
    background-color: var(--color-black);
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-dark-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header img.logo {
    height: 60px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--color-blue-accent);
}

.hero {
    background: linear-gradient(135deg, var(--color-black) 50%, var(--color-dark-blue) 100%);
    padding: 100px 50px;
    text-align: center;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

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

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 30px;
}

.hero .badge {
    background-color: var(--color-dark-blue);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    border: 1px solid var(--color-blue-accent);
}

.section {
    padding: 80px 50px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--color-blue-accent);
    margin: 10px auto 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: var(--color-black);
    border: 1px solid var(--color-dark-blue);
    border-radius: 8px;
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 34, 68, 0.5);
    background-color: var(--color-dark-blue);
}

.project-category {
    font-size: 0.9rem;
    color: var(--color-blue-accent);
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.project-card:hover .project-category {
    color: var(--color-white);
}

.project-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

footer {
    background-color: var(--color-dark-blue);
    color: var(--color-white);
    text-align: center;
    padding: 50px 20px 30px;
    border-top: 2px solid var(--color-blue-accent);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: var(--color-blue-accent);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 1px solid var(--color-blue-accent);
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.3s;
}

.social-link:hover {
    background-color: var(--color-blue-accent);
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--color-white);
    transition: fill 0.3s;
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    fill: white;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.close-btn {
    display: none;
}

.overlay {
    display: none;
}

@media (max-width: 768px) {
    header {
        flex-direction: row;
        padding: 15px 20px;
    }

    .menu-toggle {
        display: block;
    }

    nav#sidebar {
        position: fixed;
        top: 0;
        right: -250px;
        width: 250px;
        height: 100vh;
        background-color: var(--color-black);
        border-left: 2px solid var(--color-dark-blue);
        display: flex;
        flex-direction: column;
        padding-top: 60px;
        transition: right 0.3s ease;
        z-index: 2000;
    }

    nav#sidebar.open {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav ul li a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid var(--color-dark-blue);
    }

    .close-btn {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
        background: none;
        border: none;
        color: white;
        font-size: 2rem;
        cursor: pointer;
    }

    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: 1500;
    }

    .overlay.open {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }
}
