html, body {
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #f4f4f4;
    font-size: 20px; /* Base font size */
}

header {
    background: #333;
    color: white;
    padding: 20px 30px;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: flex-end; /* Aligns buttons to the right */
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

/* Style for navigation links */
.nav-link {
    text-decoration: none;
    color: white;
    padding: 10px 15px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ddd;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #444;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 5px;
    width: 180px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.dropdown-menu li {
    border-bottom: 1px solid #666;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: white;
    transition: background 0.3s ease;
}

.dropdown-menu a:hover {
    background: #555;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Divider between buttons */
.divider {
    width: 2px;
    height: 20px;
    background: white;
    margin: 0 15px;
}

/* Profile Section */
.profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.profile img {
    width: 300px; /* Fixed width */
    height: auto;
}

.profile p {
    font-size: 24px;
}

/* Project & Review Containers */
.project-container, .review-container {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
}

.project-list, .review-list {
    display: flex;
    overflow: hidden;
    width: 320px;
    scroll-behavior: smooth;
    gap: 20px;
}

.project, .review {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 180px; 
    height: 200px; 
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: black;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 15px;
    cursor: pointer;
}

/* Inner content */
.project .card-content, .review .card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    width: 100%;
}

.project .card-content span, 
.review .card-content span {
    font-size: 18px;
    font-weight: bold;
    margin-top: auto;
}

/* Hover effect */
.project:hover, .review:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* Shared Scroll Buttons */
.scroll-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.scroll-left, .scroll-right {
    width: 75px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: grey;
    border: 1px solid black;
    font-size: 20px;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

.scroll-left:hover, .scroll-right:hover {
    background: darkgray;
}


/* Anchor makes whole card clickable */
.card-link {
    text-decoration: none;
    color: inherit;
}

/* Card styling */
.card {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 150px; 
    height: 175px; 
    background: white;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: black;
    font-weight: bold;
    transition: transform 0.3s ease;
    text-align: center;
}

/* Card content */
.card-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.card-content span {
    font-size: 18px;
    font-weight: bold;
}

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

/* Contact Form */
.contact {
    margin: 20px;
    padding: 20px;
    max-width: 400px;
    margin: 0 auto;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

input {
    padding: 10px;
    margin: 10px;
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

textarea {
    width: 300px;
    height: 250px;
    resize: none;
    padding: 10px;
    margin: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    width: 150px;
    padding: 10px 20px;
    border: none;
    background: #333;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

button:hover {
    background: #555;
}

/* Mobile Styles */
@media (max-width: 768px) {
    header {
        display: fixed;
        background: #333;
        color: white;
        padding: 30px 30px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #333;
        text-align: center;
        padding: 20px 0;
        z-index: 1;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        display: block;
        padding: 10px 0;
    }

    .hamburger {
        display: block;
        background: none;
        border: none;
        font-size: 30px;
        color: white;
        cursor: pointer;
        position: fixed;  
        top: 0px;       
        right: 20px;      
        z-index: 2;       
    } 

    .divider {
        width: 100px;
        height: 1px;
        background: white;
        transform: scaleY(0.25);
    }

    .profile {
        flex-direction: column;
        text-align: center;
    }

    /* Dropdown Menu Adjustments */
    .dropdown-menu {
        display: none;
        position: absolute;
        top: 0;
        left: 100%;
        background: #444;
        list-style: none;
        padding: 0;
        margin: 0;
        border-radius: 5px;
        width: 180px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    }

    .dropdown {
        position: relative;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* Hide hamburger on desktop */
@media (min-width: 769px) {
    .hamburger {
        display: none;
    }
}
