/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Neuton', sans-serif;
    line-height: 1.6;
    background: #170603;
    color: #000;
    animation: fadeIn 1.5s ease-out;
}

/* Navbar */
.navbar {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.hamburger-menu {
    padding: 1rem;
    cursor: pointer;
    color:#000
}

.hamburger-menu.hidden {
    display: none;
}

.hamburger-menu svg rect {
    fill: #f3dac6; 
    transition: fill 0.3s;
}


.hamburger-menu:hover svg rect {
    fill: #c49a6c;
}

.nav-links {
    position: fixed;
    top: 0;
    left: -20vw; 
    width: 20vw;
    height: 100vh;
    background: transparent;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    transition: left 0.3s ease;
    z-index: 999;
}

.nav-links.active {
    left: 0;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    position: absolute;
    top: 0rem;
    right: 0rem;
    cursor: pointer;
}

.nav-links a {
    color: #fdf6f0;
    text-decoration: none;
    font-size: 1.8rem;
    margin: 1rem 0;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #c49a6c; 
}

/* Dropdown styles */
.dropdown {
    position: relative;
    margin: 1rem 0;
}

.dropdown-content {
    display: none;
    position: static;
    background: transparent;
    padding-left: 2rem;
    flex-direction: column;
}

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

.dropdown-content a {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

main {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    background: #170603;
    position: relative;
}

.hero-content {         
    position: relative;
    z-index: 2;
}

.hero-photo {
    width: 25vw;   
    height: auto;
    object-fit: cover;
    position: absolute;
    top: 32.5vh;
    left: 50%;
    transform: translate(-50%);
    z-index: 3;
}

.hero-name {
    width: 60vw;
    height: auto;
    display: block;
    position: absolute;
    top: -10vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.hero-tagline {
    width: 60vw;
    max-width: 80vw;
    height: auto;
    display: block;
    top: 47vh;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    z-index: 4;
}
/* About Section */
.content-screen {
    height: 100vh;                  
    display: flex;
    flex-direction: column;
    justify-content: center;       
    align-items: center;             
    background: #744623;
    position: relative;
    padding: 5vw;
}

.content-wrapper {
    display: flex;
    gap: 5vw;
    justify-content: center;
    align-items: flex-start;
    max-width: 80vw;
    width: 100%;
    
}

.about-box,
.hobbies-box {
    flex: 1;                      
    padding: 2vw;
    border-radius: 1vw;
}

/* Portfolio Section */
#portfolio {
    background: #000;
}

.portfolio-box {
    flex: 1;                      
    padding: 2vw;
    border-radius: 1vw;
}

.about-box h2,
.hobbies-box h2 {
    font-size: 2rem;
    margin-bottom: 1.5vh;
}

/* Portfolio Section */
.portfolio-box h2 {
    font-size: 2rem;
    margin-bottom: 1.5vh;
}

.scroll-down {
    position: absolute;
    bottom: 2vh;
    left: 50%;
    transform: translateX(-50%);
    color: #f8f0e3;
    font-size: 1rem;
    text-decoration: none;
    z-index: 5;
    animation: bounce 2s infinite;
}

.next-screen {
    position: absolute;
    bottom: 2vh;
    left: 50%;
    transform: translateX(-50%);
    color: #f8f0e3;
    font-size: 1rem;
    animation: bounce 2s infinite;
}

/* Contact Section */
#contact {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #f1debe; 
}

.contact-bg {
    position: absolute;
    inset: 0;
    /*background-image: url('/img/contactpage.png');*/
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain; 
    z-index: 1;
    pointer-events: none;
}

.contact-content {
    position: absolute;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

input,
button,
select,
textarea {
    font: inherit;
    font-family: 'Neuton', sans-serif;
}

form{
    display: grid;
    gap: 0.5rem;
    transform: translateY(3%);
}

.form-group {
    display: grid;
}

label { 
    display:block;
    width:25vw;
    overflow:auto;
    font-family: 'Neuton', sans-serif;
    font-size: 1.5vw;
    color:#2c2c2c;
    text-shadow:0 0 2px #ddd;
}

input {
    float:right;
    width:25vw;
    border:2px solid #170603;
    border-radius:7px;
    font-size:1.5vw;   
    background: transparent;
}

textarea {
    float:right;
    width:25vw;
    height:10vh;
    border:2px solid #170603;
    border-radius:7px;
    font-size:1.5vw; 
    background: transparent; 
}

button {
    width: 25vw;
    border: none;
    border-radius: 5px;
    background: #170603;
    color: #f8f0e3;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

/* Footer */
footer {
    text-align: center;
    padding: 2vh 0;
    background: #222;
    color: #aaa;
}

/* Animations */
@keyframes slideInDown {
    from { transform: translateY(-40px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -10px); }
}

/* Media Queries */
@media (max-width: 700px) {
    .hero-name {
        width: 80vw;
    }

    .hero-photo {
        width: 20vw;
        height: auto;  /* Changed from 150px to auto for scaling */
    }

    .hero-tagline {
        width: 90vw;
        max-width: 90vw;
        font-size: 1.1rem;
    }

    section {
        padding: 5vw 2vw;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}