/* General Body & Typography */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background-color: #002b36; /* base03 */
    color: #839496; /* base0 */
    line-height: 1.6;
}

h1, h2, h3 {
    font-weight: 700;
    color: #93a1a1; /* base1 */
}

a {
    color: #cb4b16; /* orange */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #dc322f; /* red */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header & Navigation */
header {
    background: #073642; /* base02 */
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #93a1a1; /* base1 */
    display: flex;
    align-items: center; /* This vertically aligns the logo and text */
    gap: 10px; /* This adds a small space between the logo and the text */
}

.logo img {
    height: 1.2em; /* This makes the logo's height match the text size */
    width: auto; /* This maintains the logo's aspect ratio */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav ul li a {
    font-weight: 700;
}

/* Sections */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    padding: 4rem 0;
    border-bottom: 1px solid #586e75; /* base01 */
}

section:last-of-type {
    border-bottom: none;
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

/* Hero Section */
#hero {
    text-align: center;
    padding: 6rem 0;
    border-top: 1px solid #586e75; /* base01 */
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: #839496; /* base0 */
    margin-bottom: 2rem;
}

.cta-button {
    background-color: #b58900; /* yellow (less saturated) */
    color: #002b36; /* base03 */
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #cb4b16; /* orange (brighter hover) */
    color: #002b36; /* base03 */
}

/* About Section */
#about {
    text-align: center;
}

#about p {
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.1rem;
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #073642; /* base02 */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.project-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title-container {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.project-logo {
    width: 40px;
    height: 40px;
    border-radius: 10%; /* Round edges */
    object-fit: cover;
    margin-right: 1rem; /* Space between logo and title */
    background-color: #586e75; /* base01 */
}

.project-card h3 {
    margin-top: 0;
    margin-bottom: 0;
}

.project-card p {
    flex-grow: 1;
}

.project-card .project-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 700;
    align-self: flex-start;
}

/* Contact Section */
#contact {
    text-align: center;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #073642; /* base02 */
    color: #839496; /* base0 */
}

.status-wip {
  color: #b58900; /* yellow */
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 1rem;
        /* Add a transition for a smooth animation */
        transition: transform 0.3s ease-in-out;
    }

    .header-hidden {
        /* This moves the header up and out of the viewport */
        transform: translateY(-100%);
    }

    nav {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        width: 100%;
    }

    main {
        padding: 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Secret button hidden link */
.secret-button {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2000;
}
.secret-button:hover,
.secret-button:focus {
    opacity: 1;
}

/* only show when near bottom */
.secret-button.visible {
    opacity: 1;
}
body.eleonora {
    background-color: #4d3c3c; /* darkest brown from palette */
    color: #e0c5b0; /* lighter peach text for better contrast */
}

body.eleonora header,
body.eleonora footer {
    background-color: #c3978a; /* dusty rose/brown */
}

body.eleonora a {
    color: #cd8080; /* muted rose link */
    font-weight: 700;
}

/* make main navigation link more visible */
body.eleonora .logo {
    color: #ffffff; /* white for high contrast */
}
body.eleonora .logo img {
    filter: brightness(0.9);
}

body.eleonora h1, body.eleonora h2, body.eleonora h3 {
    color: #a05a5a; /* deep rose headline */
}

.cozy-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: #5a403e; /* medium dark mauve */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.cozy-input,
.cozy-button {
    width: 90%;
    padding: 0.8rem;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.cozy-input {
    background-color: #4d3c3c; /* match page bg */
    color: #e0c5b0;
    border: 1px solid #a05a5a;
    border-radius: 5px;
    resize: vertical;
}

.cozy-button {
    background-color: #c3978a; /* similar to header */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: #4d3c3c;
    font-weight: 700;
}

.cozy-button:hover {
    background-color: #cd8080; /* slightly lighter rose */
    color: #4d3c3c;
}

/* footer note readability */
body.eleonora footer p {
    color: #4d3c3c; /* dark text against lighter footer */
    font-size: 0.9rem;
    text-align: center;
}.result-display {
    font-size: 1.5rem;
    text-align: center;
    margin-top: 1rem;
    font-weight: 700;
}
