
/* ========== Base Styles ========== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fdf6e3;
    color: #1a1c1f;
    transition: all 0.3s ease;
}

.chevron-icon {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    transform-origin: center;
}

.dropdown:hover .chevron-icon {
    transform: rotate(180deg) scale(1.2);
}

main {
    padding: 2rem;
    max-width: 900px;
    width: 90%;
    margin: auto;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

ul {
    padding-left: 1.5rem;
    line-height: 1.6;
}

h1, h2, h3 {
    color: #1a1c1f;
}

a {
    color: #c69c6d;
    text-decoration: none;
    position: relative;
}

a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    left: 0;
    bottom: -2px;
    background-color: #c69c6d;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

a:hover::after {
    transform: scaleX(1);
}

/* ========== Header & Nav ========== */
.site-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 2rem;
    position: relative;
}

.site-title {
    font-size: 2rem;
    font-weight: bold;
}

.logo-glow {
    max-height: 60px;
    animation: pulse-glow 2.5s infinite ease-in-out;
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 0px orange); }
    50% { filter: drop-shadow(0 0 12px orange); }
}

.navbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.navbar a,
.dropbtn {
    background: none;
    border: none;
    color: #ff7f11;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 8px;
}

.navbar a:hover,
.dropdown:hover .dropbtn {
    background-color: rgba(255, 127, 17, 0.1);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #3e6259;
    min-width: 160px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.dropdown-content a {
    color: white;
    padding: 0.75rem 1rem;
    display: block;
}

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

/* ========== Footer ========== */
footer {
    background-color: #3e4b4e;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* ========== Showcase Grid ========== */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.showcase-tile {
    background-color: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
    padding: 1.5rem 1rem;
    color: white;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    max-height: 220px;
}

.showcase-tile:hover {
    transform: scale(1.05);
    background-color: #292929;
}

.tile-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    stroke: #ff7f11;
}

.tile-overlay {
    font-weight: bold;
    font-size: 1.1rem;
}

/* ========== Project Modal ========== */
.project-details {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 850px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #1a1c1f;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
    transition: opacity 0.3s ease;
}

.project-details.show {
    display: block;
    opacity: 1;
}

.project-details.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

#project-content {
    max-width: 700px;
    margin: 0 auto;
    background-color: #ffffff;
    color: #1a1c1f;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 2rem;
    background: none;
    color: #ff7f11;
    border: none;
    cursor: pointer;
}

/* Arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    background: none;
    color: #ff7f11;
    border: none;
    cursor: pointer;
    z-index: 10000;
}

.left-arrow { left: 1rem; }
.right-arrow { right: 1rem; }

.nav-arrow:hover {
    color: #ffa94d;
}

/* ========== Dark Mode ========== */
body.dark-mode {
    background-color: #121212;
    color: #eeeeee;
}

body.dark-mode main {
    background-color: #202020;
}

body.dark-mode .navbar a,
body.dark-mode .dropbtn,
body.dark-mode .dropdown-content a {
    color: #ff7f11;
}

body.dark-mode .dropdown-content {
    background-color: #2a2a2a;
}

body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3 {
    color: #ffffff;
}

body.dark-mode a {
    color: #ff7f11;
}

body.dark-mode a::after {
    background-color: #ff7f11;
}

body.dark-mode footer {
    background-color: #1a1a1a;
}

body.dark-mode .showcase-tile {
    background-color: #2a2a2a;
}

body.dark-mode .project-details {
    background-color: rgba(0, 0, 0, 0.9);
    color: #ffffff;
}

body.dark-mode #project-content {
    background-color: #1e1e1e;
    color: #ffffff;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .site-title-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .navbar {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .dropdown-content {
        position: static;
        width: 100%;
    }

    .logo-glow {
        max-height: 50px;
    }
}
