@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 62.5%;
}

body {
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: black;
    color: white;
}

header {
    margin-top: 20px;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: transparent;
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 3rem;
    color: #b74b4b;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover {
    transform: scale(1.1);
}

nav a {
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
    color: #b74b4b;
    border-bottom: 3px solid #b74b4b;
}

/* Portfolio Section */
.portfolio {
    padding: 40px;
    text-align: center;
}

.portfolio h2 {
    font-size: 4rem;
    margin-bottom: 30px;
    color: #b74b4b;
}

/* Card Container */
.card-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

/* Individual Card Styles */
.card {
    background-color: #222;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    margin: 20px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.card h2 {
    font-size: 2.4rem;
    color: #b74b4b;
    margin: 1.5rem 0;
}

.card p {
    font-size: 1.6rem;
    color: #aaa;
}

/* Card Hover Effect */
.card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .card-container {
        flex-direction: column;
        align-items: center;
    }
}

/* nav bar hamberger */

.hamburger {
    display: none; /* Hidden by default */
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
}

@media (max-width: 1200px) {
    .logo {
        font-size: 2.5rem; /* Reduce logo size */
    }

    nav a {
        font-size: 1.6rem; /* Reduce font size of nav links */
    }
}

@media (max-width: 995px) {
    .hamburger {
        display: block; /* Show hamburger menu */
    }

    nav {
        flex-direction: column; /* Stack items */
        background-color: #161616;
        padding: 1rem;
        position: absolute;
        top: 100%; /* Position below header */
        right: 0;
        width: 100%; /* Full width */
        border-top: 0.1rem solid rgba(0, 0, 0, 0.1);
        display: none; /* Hide initially */
    }

    nav.active {
        display: block; /* Show when active */
    }

    nav a {
        display: block; /* Stack nav items */
        margin: 1.5rem 0; /* Space between items */
        padding: 0.5rem 1rem; /* Padding for clickable area */
    }
}