/* Global */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f6f8;
    color: #333;
}

/* Navigation */
nav {
    background-color: #001f26;
    padding: 0.8rem;
}

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

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    text-decoration: underline;
}

/* Header */
header {
    background-color: #002b36;
    color: white;
    text-align: center;
    padding: 2.5rem 1rem;
}

/* Sections */
section {
    max-width: 900px;
    margin: 2.5rem auto;
    padding: 0 1.2rem;
}

h2 {
    border-bottom: 2px solid #002b36;
    padding-bottom: 0.4rem;
}

/* Project / Topic Cards */
.project-card {
    background: white;
    padding: 1.5rem;
    margin: 1.2rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.project-card h3 {
    margin-top: 0;
    color: #003b44;
}

.project-card a {
    display: inline-block;
    margin-top: 0.6rem;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.project-card a:hover {
    text-decoration: underline;
}

/* Notes */
.note {
    font-size: 0.9rem;
    color: #555;
}

/* Footer */
footer {
    margin-top: 3rem;
    padding: 1rem;
    text-align: center;
    background-color: #e0e0e0;
}

/* Contact page */
.contact-card {
    background: white;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    max-width: 400px;
}

.contact-note {
    font-size: 0.9rem;
    color: #555;
    margin-top: 1.5rem;
}

/* Code blocks */
.code-block {
    margin-top: 1rem;
}

.code-block summary {
    cursor: pointer;
    font-weight: 500;
    color: #003b44;
    margin-bottom: 0.5rem;
}

.code-block pre {
    background-color: #1e1e1e;
    color: #dcdcdc;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.4;
}

.code-block code {
    font-family: Consolas, Monaco, monospace;
}

/* --- Dropdown navigation --- */

nav ul li {
    position: relative; /* anchor point for dropdown */
}

.dropdown-menu {
    display: none;              /* hide by default */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #001f26;
    list-style: none;
    padding: 0.4rem 0;
    margin: 0;
    min-width: 240px;
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    z-index: 1000;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 1rem;
    color: white;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: #003b44;
}

/* show submenu ONLY on hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Click-through photo carousel */
.photo-carousel {
    margin-top: 1rem;
    max-width: 900px; /* matches section width */
}

.photo-carousel img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-carousel img:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.project-figure {
    margin: 1.5rem 0;
    text-align: center;
}

.project-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.project-figure figcaption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    }
    
.header-image img {
    width: 60px;        /* try 120–180px */
    height: auto;
    border-radius: 6px;
}


