/* ====================================
   MASTER STYLESHEET – Dr. [Your Name]
   From the subsurface to the sky
   Dark theme with blue accents
   ==================================== */

/* ----- Inter font (optional) ----- */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz@14..32&display=swap');

/* ----- RESET & BASE ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #121212;  /* dark base */
    color: #e0e0e0;             /* light text */
    line-height: 1.6;
}

a {
    color: #80b4d0;              /* lighter blue for links */
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: #aaccff;              /* even lighter on hover */
}

/* ----- CONTAINER (default width) ----- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Narrow container for news listing (880px) */
.container--narrow {
    max-width: 880px;
}

/* Even narrower for single blog posts (740px) */
.container--narrower {
    max-width: 740px;
}

/* ----- NAVIGATION ----- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #333;   /* dark border */
    flex-wrap: wrap;
}
/* ----- DROPDOWN (dark theme) ----- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1e1e1e;        /* dark background */
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    padding: 0.5rem 0;
    z-index: 1000;
    border: 1px solid #333;           /* dark border */
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: #e0e0e0;                   /* light text */
    padding: 0.6rem 1.2rem;
    display: block;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.dropdown-content a:hover {
    background-color: #2a2a2a;        /* subtle hover */
    color: #90c0e0;                   /* blue accent on hover */
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Style for the dropdown trigger (usually a link) */
.dropdown .dropbtn {
    color: #b0b0b0;                   /* matches your nav-links a color */
    font-weight: 400;
    font-size: 0.95rem;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.dropdown:hover .dropbtn {
    color: #90c0e0;                   /* blue accent on hover */
}

.logo a {
    font-size: 1.3rem;
    font-weight: 500;
    color: #b0d4f0;                  /* light blue */
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: #b0b0b0;                  /* medium light */
    font-weight: 400;
    font-size: 0.95rem;
}
.nav-links a:hover {
    color: #d0e0ff;
}

/* ----- HEADINGS & SECTION TITLES ----- */
.section-title {
    font-size: 1.8rem;
    font-weight: 500;
    color: #80b4d0;                  /* light blue */
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #2a4b6e; /* darker blue border */
}

.page-header {
    margin: 2rem 0 1rem;
}
.page-header h1 {
    font-size: 2rem;
    font-weight: 500;
    color: #ffffff;                  /* white */
    letter-spacing: -0.01em;
}
.page-header .tagline {
    color: #b0b0b0;                  /* grey */
    font-size: 1rem;
    margin-top: 0.25rem;
    font-style: italic;
}

/* ----- CREDENTIAL BADGES (homepage) ----- */
.credentials {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0 1.5rem;
}
.credential-badge {
    background-color: #2a2a2a;       /* dark grey */
    color: #c0c0c0;                  /* light grey */
    font-size: 0.8rem;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    border: 1px solid #444;
}

/* ----- HOMEPAGE INTRO ----- */
.bio {
    max-width: 800px;
    text-align: justify;
    text-justify: inter-word;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    margin-bottom: 3rem;
}
.bio p {
    color: #d0d0d0;                  /* light text */
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.intro-item {
    background: #1e1e1e;             /* dark card */
    padding: 1.5rem;
    border-radius: 16px;
    border-left: 4px solid #4a8bb0;   /* brighter blue accent */
}
.intro-item h3 {
    color: #90c0e0;                   /* light blue */
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.intro-item p {
    color: #cccccc;
}

/* ----- RESEARCH AREAS (homepage) ----- */
.research-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 640px) {
    .research-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.research-card {
    background: #1e1e1e;              /* dark card */
    border-radius: 16px;
    padding: 1.8rem;
    border: 1px solid #333;
    transition: box-shadow 0.2s;
}
.research-card:hover {
    box-shadow: 0 8px 16px -8px rgba(0,0,0,0.7);
}
.research-card h3 {
    font-size: 1.3rem;
    font-weight: 500;
    color: #90c0e0;                   /* light blue */
    margin-bottom: 1rem;
}
.research-card p {
    color: #cccccc;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}
.card-link {
    color: #90c0e0;
    font-size: 0.9rem;
    border-bottom: 1px dotted #4a6a8a;
    padding-bottom: 1px;
}
.card-link:hover {
    border-bottom: 1px solid #90c0e0;
}

/* ----- FEATURED PORTFOLIO CARDS (homepage) ----- */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 640px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.featured-card {
    background: #1e1e1e;              /* dark card */
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #333;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s;
}
.featured-card:hover {
    background-color: #252525;
}
.featured-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #2a3b4a;        /* dark blue‑grey */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0b0c0;
    font-size: 0.9rem;
    border-bottom: 1px solid #333;
}
.featured-content {
    padding: 1.5rem;
}
.featured-content h4 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #90c0e0;                   /* light blue */
    margin-bottom: 0.5rem;
}
.featured-content p {
    color: #cccccc;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}
.featured-meta {
    color: #888;
    font-size: 0.85rem;
}

/* Intro text for portfolio pages (centered, smaller, consistent color) */
.portfolio-intro {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    margin-bottom: 3rem;
    padding: 0;                     /* reset any global padding */
    box-sizing: border-box;         /* include padding/border in max-width */
    text-align: justify;
    text-justify: inter-word;
    color: #d0d0d0;
    font-size: 0.95rem;
}
/* ----- PORTFOLIO GRID (UAV, Geophysics, R stats) ----- */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 640px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background: #1e1e1e;              /* dark card */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px -2px rgba(0,0,0,0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    border: 1px solid #333;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.8);
}
.card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background-color: #2a3b4a;        /* placeholder bg */
    border-bottom: 1px solid #333;
}
.card-content {
    padding: 1.5rem;
    flex: 1;
}
.card-tag {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #70a0c0;                   /* medium blue */
    margin-bottom: 0.5rem;
}
.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;                   /* white */
}
.card-description {
    color: #bbbbbb;                   /* light grey */
    font-size: 0.9rem;
}

/* ----- METHODOLOGY NOTES & BADGES (geophysics / R) ----- */
.methodology-note {
    background-color: #1a1a1a;         /* slightly darker */
    border-left: 4px solid #4a8bb0;    /* bright blue */
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    color: #dddddd;
}
.equipment-badge {
    display: inline-block;
    background-color: #2a4a6a;         /* dark blue */
    color: #d0e0ff;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* ----- SPECIFICATIONS GRID (geophysics) ----- */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.spec-card {
    background: #1e1e1e;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid #333;
}
.spec-card h3 {
    color: #90c0e0;
    margin-bottom: 0.75rem;
    font-weight: 500;
}
.spec-card ul {
    color: #cccccc;
    font-size: 0.95rem;
    padding-left: 1.2rem;
}
.spec-card li {
    margin-bottom: 0.3rem;
}

/* ----- NEWS LISTING PAGE ----- */
.news-list {
    margin: 2.5rem 0;
}
.news-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #333;
}
.news-item:first-child {
    padding-top: 0;
}
.news-date {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.25rem;
}
.news-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #90c0e0;
    margin-bottom: 0.5rem;
}
.news-title a {
    color: inherit;
    text-decoration: none;
}
.news-title a:hover {
    text-decoration: underline;
    text-decoration-color: #607080;
}
.news-excerpt {
    color: #bbbbbb;
    margin-bottom: 0.75rem;
}
.read-more {
    font-size: 0.9rem;
}
.read-more a {
    color: #90c0e0;
    text-decoration: none;
    border-bottom: 1px dotted #4a6a8a;
}
.read-more a:hover {
    border-bottom: 1px solid #90c0e0;
}

/* ----- SINGLE BLOG POST ----- */
.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
}
.back-link a {
    color: #90c0e0;
    text-decoration: none;
    border-bottom: 1px dotted #4a6a8a;
}
.back-link a:hover {
    border-bottom: 1px solid #90c0e0;
}

.post-header {
    margin: 2.5rem 0 1.5rem;
}
.post-title {
    font-size: 2.2rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.post-date {
    color: #888;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1.5rem;
}
.post-content {
    color: #cccccc;
}
.post-content h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #90c0e0;
    margin: 2rem 0 1rem;
}
.post-content h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #90c0e0;
    margin: 1.5rem 0 0.75rem;
}
.post-content p {
    margin-bottom: 1.2rem;
}
.post-content figure {
    margin: 2rem 0;
}
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #444;
}
.post-content figcaption {
    font-size: 0.85rem;
    color: #aaa;
    text-align: center;
    margin-top: 0.5rem;
}
.post-footer {
    margin: 3rem 0 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
    font-size: 0.95rem;
}

/* ----- CONTACT SECTION (homepage) ----- */
.contact-section {
    background: #1e1e1e;
    border-radius: 16px;
    padding: 2rem;
    margin: 3rem 0 2rem;
    border: 1px solid #333;
}
.contact-section h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #90c0e0;
    margin-bottom: 1rem;
}
.contact-details {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    color: #cccccc;
}
.contact-details a {
    color: #90c0e0;
    border-bottom: 1px dotted #4a6a8a;
}
.contact-details a:hover {
    border-bottom: 1px solid #90c0e0;
}
.affiliation-note {
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 1rem;
    font-style: italic;
}

/* ----- FOOTER ----- */
.footer {
    text-align: center;
    margin-top: 4rem;
    color: #888;
    font-size: 0.85rem;
    border-top: 1px solid #333;
    padding-top: 2rem;
}
.footer a {
    color: #90c0e0;
    text-decoration: none;
}

/* ----- HELPER UTILITIES ----- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
