/* Global Styles */
body {
    font-family: Trebuchet MS, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #8B4513; /* Coffee brown */
}

/* Header and Navigation */
header {
    background-color: #A0522D; /* Medium coffee brown */
    color: #FFF8DC; /* Cream for contrast */
    padding: 10px;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    font-family: Trebuchet MS, sans-serif;
}

nav {
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    z-index: 999;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    background-color: #8B4513; /* Coffee brown */
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #FFF8DC; /* Cream for contrast */
    font-weight: bold;
    padding: 15px;
    display: block;
    font-size: 20px;
}

nav ul li a:hover {
    background-color: #654321; /* Darker coffee brown */
    font-size: 20px;
    color: #FFF8DC;
}

/* Dropdown Styles */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #D2B48C; /* Light coffee brown */
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    min-width: 160px;
    z-index: 1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #8B4513; /* Coffee brown for contrast */
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #A0522D;
    color: #FFF8DC;
}

/* General Sections */
section {
    padding: 50px;
    margin: 100px 100px;
    background-color: #D2B48C; /* Light coffee brown */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    margin-top: 38.5px;
}

.section2 {
    padding: 50px;
    background-color: #D2B48C; /* Light coffee brown */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    margin-top: 100px;
}

#drop {
    padding: 20px 10px 15px 5px;
}

#drop h2 {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 0;
    font-size: 50px;
    background: #A0522D; /* Medium coffee brown */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#drop p {
    text-align: center;
}

/* Slider */
.slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    position: relative;
    min-width: 100%;
}

.slides img {
    width: 100%;
    border-radius: 0;
    height: 600px;
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFF8DC; /* Cream for contrast */
    font-size: 32px;
    background: #8B4513; /* Coffee brown */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 50px;
    border-radius: 5px;
    text-align: center;
}

/* Contact Section */
#contact {
    display: flex;
    justify-content: space-between;
    margin: 38px auto;
    padding: 50px;
    background-color: #654321; /* Darker coffee brown */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 50%;
    max-width: 1200px;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.contact-form {
    width: 48%;
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-weight: bold;
    margin-bottom: 5px;
    font-family: 'Trebuchet MS', sans-serif;
    color: #FFF8DC; /* Cream for contrast */
}

.contact-form input, .contact-form textarea {
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid #FFF8DC; /* Cream for contrast */
    width: 100%;
    box-sizing: border-box;
    background-color: #654321; /* Darker coffee brown */
    color: #FFF8DC; /* Cream for contrast */
}

.contact-form button {
    background-color: #8B4513; /* Coffee brown */
    color: #FFF8DC;
    padding: 12px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 15px;
    margin-top: 5px;
}

.contact-form button:hover {
    background-color: #8B4513;
}

#contact h2 {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 0;
    font-size: 35px;
    background: #FFF8DC; /* Cream */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-details {
    width: 40%;
    padding: 20px;
    background-color: #A0522D; /* Medium coffee brown */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    color: #FFF8DC; /* Cream for contrast */
    font-size: 20px;
}

.contact-details h3 {
    font-size: 35px;
    margin-top: 0;
}

.contact-background {
    font-family: Trebuchet MS, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(270deg, #8B4513, #654321, #A0522D); /* Coffee brown variants */
    background-size: 600% 600%;
    animation: gradientAnimation 15s ease infinite;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.error {
    font-family: Arial, sans-serif;
    color: #D2B48C; /* Light coffee brown */
    cursor: pointer;
    font-size: 14px;
    font-weight: normal;
    display: block;
    margin-top: 5px;
}

/* Gallery Section */
#gallery {
    padding: 50px;
    margin: 100px 100px;
    background-color: #654321; /* Darker coffee brown */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    margin-top: 38.5px;
}

#gallery h2 {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 0;
    font-size: 50px;
    background: #FFF8DC; /* Cream */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    padding: 15px;
    justify-items: center;
    max-width: 1200px; /* Limits the width to enable centering */
    margin: 0 auto; /* Centers the gallery grid horizontally on the page */
}

.gallery-item {
    text-align: center;
    width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Ensures content inside each item is centered */
}

.gallery img {
    width: 100%;
    height: 200px;
    margin: 10px 0; /* Adjusted margin for better spacing */
    border-radius: 5px;
    cursor: pointer;
    object-fit: cover; /* Ensures images fill the container without distortion */
}

.gallery img:hover {
    transform: scale(1.05);
}

.image-description {
    font-size: 16px;
    color: #FFF8DC; /* Cream for contrast on dark background */
    margin-top: 8px;
    text-align: center; /* Centers the description text */
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    display: block;
    margin: auto;
    max-width: 80%;
    max-height: 80%;
    border-radius: 8px;
    margin-top: 5%;
    z-index: 1002;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #FFF8DC; /* Cream */
    font-size: 40px;
    font-weight: bold;
    z-index: 1003;
}

.close:hover, .close:focus {
    color: #D2B48C; /* Light coffee brown */
    text-decoration: none;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: #FFF8DC; /* Cream */
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 1003;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Skills Section */
#skills {
    max-width: 1000%;
    margin: 20px;
    padding: 50px;
    background-color: #A0522D; /* Medium coffee brown */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tab {
    overflow: hidden;
}

.tab button {
    background-color: #D2B48C; /* Light coffee brown */
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    transition: 0.3s;
    font-size: 17px;
    color: #8B4513; /* Coffee brown */
}

.tab button:hover {
    background-color: #654321; /* Darker coffee brown */
    color: #FFF8DC; /* Cream */
}

.tab button.active {
    background-color: #654321; /* Darker coffee brown */
    color: #FFF8DC; /* Cream */
}

.tabcontent {
    display: none;
    padding: 20px;
    border: 1px solid #FFF8DC; /* Cream for contrast */
    border-radius: 4px;
    background: #A0522D; /* Medium coffee brown */
    color: #FFF8DC; /* Cream for contrast */
}

.goal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
}

.goal-card {
    background-color: #654321; /* Darker coffee brown */
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    color: #FFF8DC; /* Cream for contrast */
}

.goal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.goal-header {
    color: #FFF8DC; /* Cream for contrast */
    padding: 15px;
    border-radius: 8px 8px 0 0;
    font-size: 1.8em;
    text-align: center;
}

.goal-details {
    display: none;
    margin-top: 10px;
    color: #FFF8DC; /* Cream for contrast */
    font-size: 1em;
    line-height: 1.5;
}

.goal-details.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Funfacts Section */
.funfacts-section {
    padding: 30px;
    margin: 100px 20px;
    background-color: #8B4513; /* Coffee brown */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.funfact-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin-top: 0px;
}

.funfact-card {
    width: 300px;
    height: 200px;
    perspective: 1000px;
    position: relative;
}

.funfact-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.8s ease-in-out;
    transform-style: preserve-3d;
}

.funfact-card:hover .funfact-inner {
    transform: rotateY(180deg);
}

.funfact-front, .funfact-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    color: #FFF8DC; /* Cream for contrast */
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.funfact-front {
    background-color: #A0522D; /* Medium coffee brown */
}

.funfact-back {
    background-color: #654321; /* Darker coffee brown */
    transform: rotateY(180deg);
}

/* Container (Quote Section) */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 100%;
    margin: 20px 100px;
    padding: 20px;
    border-radius: 8px;
    background: linear-gradient(270deg, #8B4513, #654321, #A0522D); /* Coffee brown variants */
    background-size: 600% 600%;
    animation: gradientAnimation 15s ease infinite;
}

.image-section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    width: 500px;
}

.quote-section {
    max-width: 50%;
    text-align: left;
}

.quote-section h1 {
    font-size: 36px;
    font-weight: bold;
    color: #FFF8DC; /* Cream for contrast */
    margin-bottom: 20px;
}

.quote-section p {
    font-size: 18px;
    color: #FFF8DC; /* Cream for contrast */
    line-height: 1.6;
    margin-bottom: 20px;
}

.quote-section blockquote {
    font-style: italic;
    margin: 0;
    padding: 20px 50px;
    background-color: transparent;
    border-bottom: 5px solid #FFF8DC; /* Cream for contrast */
    border-top: 5px solid #654321; /* Darker coffee brown */
    border-radius: 8px;
    text-align: center;
    color: #FFF8DC; /* Cream for contrast */
    font-size: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Logout Button */
.logout-button {
    background-color: #A0522D; /* Medium coffee brown */
    color: #FFF8DC; /* Cream for contrast */
    padding: 15px 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    position: absolute;
    right: 15px;
}

.logout-button:hover {
    background-color: #654321; /* Darker coffee brown */
    color: #FFF8DC;
}

/* Footer */
.footer-divider {
    height: 5px;
    background-color: #D2B48C; /* Light coffee brown */
    width: 100%;
    margin: 0;
}

footer {
    background-color: #A0522D; /* Medium coffee brown */
    font-size: 20px;
    color: #FFF8DC; /* Cream for contrast */
    text-align: center;
    padding: 10px;
    position: relative;
    bottom: 0;
    width: 98.7%;
}

/* See More Button (for Funfacts) */
.see-more-container {
    text-align: center;
    margin-top: 20px;
}

.see-more-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #8B4513; /* Coffee brown */
    color: #FFF8DC; /* Cream for contrast */
    text-decoration: none;
    border-radius: 20px;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Trebuchet MS', sans-serif;
    font-weight: bold;
}

.see-more-button:hover {
    background-color: #A0522D; /* Medium coffee brown on hover */
    color: #FFF8DC;
}