/* ========================================= */
/* 1. CSS Variables and Base Styling */
/* ========================================= */

:root {
    /* Color Palette */
    --background-color: #121212;   /* Dark, modern background */
    --navbar-bg-color: #1e1e1e;    /* Slightly lighter dark for the navbar */
    --text-color: #e0e0e0;         /* Light grey for most text */
    --accent-color-green: #69923e; /* Your existing green accent */
    --accent-color-red: #752f2f;   /* A clean red for YouTube */
    --button-bg-color: #333;       /* Button background color */
    --button-hover-bg-color: #444; /* Button hover background */
    --button-active-bg-color: #222;/* Button active background */
}

/* Base styling for the whole page */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* ========================================= */
/* 2. Navbar and Header Styling */
/* ========================================= */

.navbar {
    background-color: var(--navbar-bg-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); /* More pronounced shadow for depth */
    width: 100%;
    padding: 15px 0; /* Increased padding */
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center; /* Center the navigation buttons */
    align-items: center;
    padding: 0 20px;
}

.navbar nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap; /* Allows buttons to wrap on small screens */
    justify-content: center;
}

.navbar nav ul li {
    margin: 0 10px; /* Space between the buttons */
}

/* ========================================= */
/* 3. Central Content and Display */
/* ========================================= */


main {
    display: block;
    padding: 20px;
    box-sizing: border-box;
}

#Home {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
}

#display {
    width: 100%;
    padding: 30px;
    font-size: 3rem; /* Adjusted font size for better balance */
    text-align: center;
    border: 2px solid var(--accent-color-green);
    border-radius: 12px;
    background-color: #0d0d0d;
    color: var(--text-color);
    font-weight: bold;
    box-sizing: border-box; /* Ensures padding is included in the element's total width */
    margin-bottom: 20px; /* Space below the display */
}

/* ========================================= */
/* 4. Consolidated & Refined Button Styling */
/* ========================================= */

/* General button styling - all buttons share this */
.navbar button,
.main-button {
    /* Removed redundant width/height from individual selectors */
    border: none;
    background-color: var(--button-bg-color);
    color: var(--text-color);
    padding: 15px 25px; /* Consistent padding */
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer; /* Correct spelling */
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar button:hover,
.main-button:hover {
    background-color: var(--button-hover-bg-color);
    transform: translateY(-2px); /* Lift effect */
}

.navbar button:active,
.main-button:active {
    background-color: var(--button-active-bg-color);
    transform: translateY(0);
}

/* Individual button styles for hover effects */
.navbar .Music:hover,
.main-button.Music:hover {
    background-color: #4b6e58; /* A shade of green */
}

.navbar .Projects:hover,
.main-button.Projects:hover {
    background-color: #4c4c66; /* A shade of purple/blue */
}

.navbar .Notes:hover,
.main-button.Notes:hover {
    background-color: #66504a; /* A shade of brown/rust */
}

.navbar .Youtube:hover,
.main-button.Youtube:hover {
    background-color: var(--accent-color-red);
}

.navbar .Chess:hover,
.main-button.Chess:hover {
    background-color: var(--accent-color-green);
}

.navbar .Youtube span {
    font-weight: bold;
}

/* ========================================= */
/* 5. Responsive Design */
/* ========================================= */

@media (max-width: 600px) {
    .navbar .container {
        flex-direction: column; /* Stack buttons vertically on small screens */
    }

    .navbar nav ul li {
        margin: 5px 0; /* Add vertical space between stacked buttons */
    }

    .navbar button,
    .main-button {
        width: 100%; /* Make buttons full width */
        margin-left: 0;
    }
}



.logo-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: -30px;   /* 300px from the top */
    margin-bottom: 0;
}

.logo {
    user-select: none;
    -webkit-user-select: none; /* For Safari */
    -moz-user-select: none;    /* For Firefox */
    -ms-user-select: none;     /* For IE/Edge */
    display: block;
    max-width: 300px;
    width: 100%;
    height: auto;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}


.logo.loaded {
    opacity: 1;
    transform: translateY(0);
}

.navbar button,
.main-button {
    border: 1px solid #222;
    background-color: var(--button-bg-color);
    color: var(--text-color);
    padding: 15px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#Home {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
}

.navbar .TikTok:hover,
.main-button.TikTok:hover {
    background-color: #0b1d33; /* Dark blue */
    color: #fff;
    border: 1px solid #222;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: background 0.3s, box-shadow 0.3s;
}



.navbar .Music:hover,
.main-button.Music:hover {
    background-color: #4b6e58;
    transform: translateY(-2px);
}

.navbar .Projects:hover,
.main-button.Projects:hover {
    background-color: #4c4c66;
    transform: translateY(-2px);
}

.navbar .Notes:hover,
.main-button.Notes:hover {
    background-color: #66504a;
    transform: translateY(-2px);
}

.navbar .Youtube:hover,
.main-button.Youtube:hover {
    background-color: var(--accent-color-red);
    transform: translateY(-2px);
}

.navbar .Chess:hover,
.main-button.Chess:hover {
    background-color: var(--accent-color-green);
    transform: translateY(-2px);
}

.navbar .Instagram:hover,
.main-button.Instagram:hover {
    background-color: #be7f1f;
    transform: translateY(-2px);
}

.navbar .Spotify:hover,
.main-button.Spotify:hover {
    background-color: #124223; /* Spotify green */
    transform: translateY(-2px);
}

.text-container {
    display: flex;
    justify-content: center; /* This centers the item horizontally */
    height: 300px;
    width: 100%;
}

.animated-text {
    /* Your existing animated text styles */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
    margin-top: 30px;

    font-family: 'Cinzel', serif;

    /* Optional: You can also add other font properties */
    font-size: 3rem; /* Make it a larger size */
    font-weight: 700; /* Use the bold weight (if available in the font) */
    text-transform: uppercase; /* Ensure all letters are capitalized, if not already */

    -webkit-user-select: none; /* For older versions of Safari */
    -moz-user-select: none;    /* For older versions of Firefox */
    -ms-user-select: none;     /* For older versions of Internet Explorer/Edge */
    user-select: none;         /* Standard property for modern browsers */
}

.animated-text.loaded {
    opacity: 1;
    transform: translateY(0);
}



/* --- Dropdown Container Styling --- */
.dropdown {
    position: relative;
    display: inline-block;
    margin-left: 10px;
}

/* --- Dropdown Button Styling --- */
.dropbtn {
    background-color: var(--button-bg-color);
    color: var(--text-color);
    border: none;
    padding: 12px 20px;
    font-size: 17px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.dropbtn:hover {
    background-color: var(--button-hover-bg-color);
}

/* --- Dropdown Menu Content --- */
.dropdown-content {
    display: none; /* Hides the dropdown menu by default */
    position: absolute;
    background-color: #333;
    min-width: 200px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 8px;
    top: 100%;
    left: 0;
    margin-top: 5px;
    padding: 10px 0;
}

/* --- Dropdown Menu Content --- */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333;
    min-width: 200px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 8px;
    
    /* The key fix: pull the dropdown up to overlap the button */
    /* Adjust this value if needed, but -1px or -2px usually works well */
    margin-top: -1px;
    top: 100%;
    left: 0;
    
    padding: 10px 0;
}

/* This is the hover rule */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Make sure your link styles are still there */
.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #444;
}


.content-section {
    max-width: 500px; /* Adjust the width as needed */
    margin: -100px auto; /* Adds vertical spacing and centers the section */
    padding: 20px;
    background-color: #222; /* A dark background to match your navbar */
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.content-section h2 {
    font-family: 'Cinzel', serif; /* Use your existing fancy font */
    font-size: 2rem;
    color: #e0e0e0;
    text-align: center;
    margin-bottom: 20px;
}

.content-section p {
    font-family: 'Segoe UI', sans-serif; /* A clean font for reading */
    font-size: 1.1rem;
    color: #b0b0b0;
    line-height: 1.6;
}


.Come-Back {
    max-width: 500px; /* Adjust the width as needed */
    margin: 200px auto; /* Adds vertical spacing and centers the section */
    padding: 20px;
    background-color: #222; /* A dark background to match your navbar */
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.Come-Back h2 {
    font-family: 'Cinzel', serif; /* Use your existing fancy font */
    font-size: 2rem;
    color: #e0e0e0;
    text-align: center;
    margin-bottom: 20px;
}

.Come-Back p {
    font-family: 'Segoe UI', sans-serif; /* A clean font for reading */
    font-size: 1.1rem;
    color: #b0b0b0;
    line-height: 1.6;
}



.section-image {
    max-width: 20%; /* Ensures the image doesn't overflow the container */
    height: auto;     /* Maintains the image's aspect ratio */
    display: block;   /* Makes it a block-level element */
    border-radius: 8px; /* Adds rounded corners to match the section box */
    margin: 0 auto 20px auto; /* Centers the image and adds space below it */
}
