/* Variables */
:root {
    --primary: #5B8C5A;
    --primary-dark: #4a7349;
    --secondary: #003459;
    --text: #333;
    --text-light: #666;
    --bg: #fff;
    --bg-light: #f8f9fa;
    --border: #e0e0e0;
    --max-width: 1080px;
    --nav-height: 106px;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base */
html {
    scroll-behavior: smooth;
}

[id] {
    scroll-margin-top: var(--nav-height);
}

body {
    font-family: 'Ubuntu', 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(0,0,0,0.8);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding-top: var(--nav-height);
    background: var(--primary);
}

.container {
    width: 80%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2em;
    margin-bottom: 1rem;
    color: var(--secondary);
}

h1 { font-size: 30px; font-weight: 700; }
h2 { font-size: 26px; font-weight: 700; }
h3 { font-size: 22px; font-weight: 700; }
h4 { font-size: 18px; font-weight: 700; }

p { margin-bottom: 1rem; }

a {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

/* Remove underlines from navigation, buttons, cards, logo, footer */
.navbar a,
.btn,
.card a,
.footer-links a,
.flip-card a {
    text-decoration: none;
}

/* Screen-reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==================== */
/* NAVIGATION           */
/* ==================== */
.navbar {
    background: var(--bg);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    box-shadow: 0 0 7px rgba(0,0,0,0.1);
    transition: height 0.3s ease;
}

.navbar.scrolled {
    height: 88px;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
    padding: 0 30px;
}

.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 72px;
    width: auto;
    transition: height 0.3s ease;
}

.navbar.scrolled .logo img {
    height: 47px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    color: var(--secondary);
}

.logo-text strong {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--secondary);
    transition: font-size 0.3s ease;
}

.navbar.scrolled .logo-text strong {
    font-size: 24px;
}

.logo-data {
    color: var(--primary);
}

.logo-science {
    color: var(--secondary);
}

.logo-text small {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-align: center;
    transition: font-size 0.3s ease;
}

.navbar.scrolled .logo-text small {
    font-size: 14px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 22px;
    align-items: center;
}

.nav-menu a {
    color: var(--secondary);
    font-weight: 500;
    font-size: 16px;
    padding: 0.5rem 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu .btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    background: var(--primary);
    color: white !important;
    padding: 9px 20px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
}

.nav-menu .btn-cta:hover {
    background: var(--secondary);
    transform: none;
}

.nav-menu .btn-cta::after {
    content: "\2197";
    font-size: 0.85em;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s, transform 0.2s;
}

.nav-menu .btn-cta:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.has-dropdown > a::after {
    content: '\25BE';
    font-size: 0.65em;
    margin-left: 0.3rem;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-top: 3px solid var(--primary);
    min-width: 240px;
    list-style: none;
    padding: 0.5rem 0;
}

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

.dropdown li a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--text);
    font-size: 0.9rem;
}

.dropdown li a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 50px;
    height: 6px;
    background: var(--text);
    transition: 0.3s;
}

/* ==================== */
/* HOMEPAGE HERO        */
/* ==================== */
.hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,52,89,0.51);
    z-index: 1;
}

/* Hero with integrated bottom ramp divider */
.hero-with-ramp {
    padding-bottom: 15px;
    margin-bottom: 0;
}

.hero-with-ramp .ramp-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 85px;
    z-index: 2;
    transform: scaleX(-1);
    line-height: 0;
}

.hero-with-ramp .ramp-svg svg {
    display: block;
    width: 100%;
    height: 100%;
}

.hero .container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-content {
    max-width: 450px;
    margin-left: auto;
    text-align: right;
    padding: 2rem 0;
}

.hero h1 {
    font-size: 40px;
    color: white;
    font-style: italic;
    font-weight: 700;
    line-height: 1.4em;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero .btn {
    background: var(--primary);
    color: white;
}

.hero .btn:hover {
    background: var(--secondary);
}

/* ==================== */
/* RAMP DIVIDERS        */
/* ==================== */

/*
 * Divi ramp2 SVG dividers with layered opacity curves.
 * The SVG viewBox is 0 0 1280 140, with 3 layered paths.
 * Divi flips horizontally via transform: scaleX(-1).
 * The ramp div has the LOWER section's background color.
 * The SVG fills with the UPPER section's color (via the fill attribute in HTML).
 */

.ramp {
    position: relative;
    z-index: 1;
    height: 85px;
    line-height: 0;
    font-size: 0;
}

.ramp svg {
    display: block;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    margin: -1px;
    transform: scaleX(-1);
}

/* Background = upper section color; SVG fill (in HTML) = lower section color */
.ramp-green-to-blue { background: var(--primary); }
.ramp-blue-to-green { background: var(--secondary); }
.ramp-blue-to-white { background: var(--secondary); }
.ramp-green-to-white { background: var(--primary); }
.ramp-white-to-green { background: var(--bg); }
.ramp-white-to-blue { background: var(--bg); }

/* ==================== */
/* COLORED SECTIONS     */
/* ==================== */
.section-green {
    background: var(--primary);
    color: white;
    padding: 4% 0;
}

.section-green h1,
.section-green h2,
.section-green h3,
.section-green p,
.section-green a {
    color: white;
}

.section-blue {
    background: var(--secondary);
    color: white;
    padding: 4% 0;
}

.section-blue h1,
.section-blue h2,
.section-blue h3,
.section-blue p,
.section-blue a {
    color: white;
}

.section-white {
    background: var(--bg);
    padding: 4% 0;
}

/* ==================== */
/* QUOTE SECTION        */
/* ==================== */
.quote-section {
    background: var(--primary);
    padding: 2% 0;
    text-align: center;
    color: white;
}

.quote-section blockquote {
    font-size: 26px;
    font-style: italic;
    margin-bottom: 0.0rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.quote-section cite {
    font-style: normal;
    font-size: 0.95rem;
    opacity: 0.85;
}

/* ==================== */
/* TWO COLUMN SECTIONS  */
/* ==================== */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5.5%;
    align-items: center;
    padding: 2% 0;
}

.two-col.reverse {
    direction: rtl;
}

.two-col.reverse > * {
    direction: ltr;
}

.two-col-image img {
    width: 100%;
    max-width: 480px;
}

.about-portrait img {
    aspect-ratio: 3 / 2.8;
    object-fit: cover;
    object-position: center 15%;
}

.two-col-content h2 {
    margin-bottom: 1.25rem;
}

.two-col-content p {
    margin-bottom: 1em;
}

/* Inherit section colors */
.section-blue .two-col-content h2,
.section-blue .two-col-content p {
    color: white;
}

.section-green .two-col-content h2,
.section-green .two-col-content p {
    color: white;
}

/* ==================== */
/* BUTTONS              */
/* ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 9px 20px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 18px;
    line-height: 1.4;
}

.btn::after {
    content: "\2197";
    font-size: 0.85em;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s, transform 0.2s;
}

.btn:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.btn:hover {
    transform: scale(1.1);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary);
    color: white;
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

/* Buttons on colored backgrounds */
.section-blue .btn-primary {
    background: var(--primary);
    color: white;
}

.section-blue .btn-primary:hover {
    background: var(--secondary);
    color: white;
}

.section-green .btn-primary {
    background: var(--secondary);
    color: white;
}

.section-green .btn-primary:hover {
    background: var(--secondary);
    color: white;
}

/* ==================== */
/* FOOTER               */
/* ==================== */
footer {
    background: var(--primary);
    color: white;
    padding: 1% 0;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.footer-logo {
    padding-top: 3rem;
}

.footer-logo img {
    height: 60px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--secondary);
}

/* ==================== */
/* SECTIONS / PAGES     */
/* ==================== */
.section {
    padding: 4rem 0;
}

.section-light {
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* ==================== */
/* FLIP CARDS           */
/* ==================== */
.flip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.flip-card {
    flex: 0 1 calc((100% - 4rem) / 3);
    perspective: 1000px;
    height: 320px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 8px;
    overflow: hidden;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.flip-card-front {
    background-size: cover;
    background-position: center;
    transform: rotateY(0deg);
}

.flip-card-front::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
}

.flip-card-front h3 {
    position: relative;
    z-index: 1;
    color: white;
    font-size: 22px;
    font-weight: 700;
    padding: 1.5rem;
    text-align: center;
    width: 100%;
}

.flip-card-front--no-image {
    align-items: center !important;
    justify-content: center !important;
}

.flip-card-back {
    background: var(--primary);
    transform: rotateY(180deg);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
}

.flip-card-back p {
    color: white;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.flip-card-back .btn-outline-light {
    display: inline-block;
    margin-top: 1.5rem;
    color: white;
    border: 2px solid white;
    background: transparent;
    padding: 0.3em 1em;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
}

.flip-card-back .btn-outline-light:hover {
    background: white;
    color: var(--primary);
}

/* ==================== */
/* CARDS (overview)     */
/* ==================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--primary);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.card img {
    width: calc(100% - 2rem);
    height: 200px;
    object-fit: cover;
    margin: 1rem 1rem 0 1rem;
    border-radius: 0;
}

.card-body {
    padding: 1.5rem;
}

.card-body p {
    color: white;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.card-body .btn {
    background: var(--secondary);
    color: white;
    width: 100%;
    text-align: center;
}

.card-body .btn:hover {
    background: var(--secondary);
    color: white;
}

/* Simple cards for generic use */
.simple-card {
    background: var(--bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.simple-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.simple-card h3 {
    color: var(--primary);
}

/* ==================== */
/* ACCORDION            */
/* ==================== */
.accordion {
    margin-top: 1.5rem;
}

.accordion-item {
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 0.5rem;
    background: white;
}

.accordion-header {
    width: 100%;
    padding: 1rem 1.25rem;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-family: inherit;
    transition: background 0.2s;
}

.accordion-header:hover {
    background: var(--bg-light);
}

.accordion-header::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--primary);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 1rem;
}

.accordion-item.active .accordion-header::after {
    content: '\2212';
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-body-inner {
    padding: 0 1.25rem 1.25rem;
    color: var(--secondary);
}

.accordion-body-inner p {
    margin-bottom: 0.75rem;
}

.accordion-body-inner ul {
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.accordion-body-inner a {
    color: var(--primary);
}

.accordion-item.active .accordion-body {
    max-height: 500px;
}

/* ==================== */
/* PROJECT CARDS        */
/* ==================== */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-card {
    background: white;
    border-left: 4px solid var(--primary);
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.project-tag {
    display: inline-block;
    background: var(--secondary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2em 0.7em;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.project-card h3 {
    color: var(--secondary);
    font-size: 20px;
    margin-bottom: 0.5rem;
}

.project-card p {
    color: rgba(0,0,0,0.75);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.project-card a {
    color: var(--primary);
}

/* ==================== */
/* TEACHING              */
/* ==================== */
.teaching-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.teaching-item {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 1.5rem;
}

.teaching-item h4 {
    color: white;
    margin-bottom: 0.3rem;
}

.teaching-type {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.85);
    padding: 0.1em 0.6em;
    border-radius: 4px;
    margin-bottom: 0.8rem;
}

.teaching-item p {
    margin: 0;
}

/* ==================== */
/* PUBLICATIONS          */
/* ==================== */
.publications-scroll {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.publications-scroll::-webkit-scrollbar {
    width: 6px;
}

.publications-scroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

.publications-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.publications-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

.publications-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.publications-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    font-size: 0.9rem;
    line-height: 1.6;
}

.publications-list li:last-child {
    border-bottom: none;
}

.publications-list a {
    color: var(--primary);
}

.pub-year {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1em 0.5em;
    border-radius: 3px;
    margin-right: 0.4rem;
    vertical-align: middle;
}

/* ==================== */
/* PROFILE / ABOUT      */
/* ==================== */
.profile {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: start;
}

.profile-image img {
    width: 260px;
    max-width: 65%;
    height: auto;
}

.profile-content {
    flex: 1;
}

/* Timeline (center-aligned, alternating left/right) */
.timeline {
    position: relative;
    padding: 2rem 0;
}

/* Vertical center line */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--secondary);
    transform: translateX(-50%);
}

.timeline-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.timeline-list li {
    position: relative;
    width: 45%;
    padding: 1.2rem 1.5rem;
    background: var(--secondary);
    color: white;
    margin-bottom: 2rem;
}

/* Odd items: left side */
.timeline-list li:nth-child(odd) {
    margin-right: auto;
    margin-left: 0;
    text-align: right;
}

/* Even items: right side */
.timeline-list li:nth-child(even) {
    margin-left: auto;
    margin-right: 0;
    text-align: left;
}

/* Circle marker on the center line */
.timeline-list li::before {
    content: '';
    position: absolute;
    top: 1.2rem;
    width: 18px;
    height: 18px;
    background: var(--secondary);
    border-radius: 50%;
    border: 3px solid white;
    z-index: 1;
}

/* Odd items: marker to the right */
.timeline-list li:nth-child(odd)::before {
    right: -13.5%;
    transform: translateX(50%);
}

/* Even items: marker to the left */
.timeline-list li:nth-child(even)::before {
    left: -13.5%;
    transform: translateX(-50%);
}

/* Connector line from card to center */
.timeline-list li::after {
    content: '';
    position: absolute;
    top: 1.65rem;
    width: 8%;
    height: 2px;
    background: var(--secondary);
}

.timeline-list li:nth-child(odd)::after {
    right: -8%;
}

.timeline-list li:nth-child(even)::after {
    left: -8%;
}

.timeline-list li strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

/* Override strong color inside green cards */
.timeline-list li strong {
    color: white;
    font-size: 0.95rem;
}

/* Publications */
.publications {
    margin-top: 3rem;
}

.publications ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.publications li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    line-height: 1.6;
}

.publications li:last-child {
    border-bottom: none;
}

.publications a {
    color: var(--primary);
}

/* ==================== */
/* FORMS                */
/* ==================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 140, 90, 0.15);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Contact form */
.contact-form {
    max-width: 600px;
}

/* ==================== */
/* PAGE HEADER          */
/* ==================== */
.page-header {
    background: var(--bg-light);
    padding: 3rem 0;
    margin-bottom: 0;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

.page-header p {
    margin: 0;
    color: var(--text-light);
}

/* ==================== */
/* CONTENT PAGES        */
/* ==================== */
.content {
    padding: 2rem 0 4rem;
}

.content h2 {
    margin-top: 2rem;
}

.content h3 {
    margin-top: 1.5rem;
    color: var(--text);
}

.content h4 {
    margin-top: 1.25rem;
    color: var(--text);
    font-size: 1.1rem;
}

.content ul, .content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* ==================== */
/* PROJECT CARDS        */
/* ==================== */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-card {
    background: var(--bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 2rem;
    border-left: 4px solid var(--primary);
}

.project-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.project-card ul {
    margin-left: 1.5rem;
    margin-bottom: 0;
}

/* ==================== */
/* RESPONSIVE           */
/* ==================== */
@media (max-width: 980px) {
    /* Timeline collapses to left-aligned single column */
    .timeline::before {
        left: 15px;
    }

    .timeline-list li {
        width: calc(100% - 45px);
        margin-left: 45px !important;
        margin-right: 0 !important;
        text-align: left !important;
    }

    .timeline-list li::before {
        left: -33px !important;
        right: auto !important;
        transform: none !important;
    }

    .timeline-list li::after {
        left: -18px !important;
        right: auto !important;
        width: 15px;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .two-col.reverse {
        direction: ltr;
    }

    .two-col-image {
        text-align: center;
    }

    .flip-grid {
        flex-direction: column;
        align-items: center;
    }

    .flip-card {
        flex: 0 0 auto;
        width: 100%;
        max-width: 320px;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .profile {
        grid-template-columns: 1fr;
    }

    .profile-image {
        text-align: center;
    }

    .profile-image img {
        max-width: 260px;
    }

    .container {
        width: 90%;
    }

    .navbar {
        position: relative;
    }

    main {
        padding-top: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

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

    .nav-menu li a {
        display: block;
        padding: 0.75rem 0;
    }

    .nav-menu .btn-cta {
        text-align: center;
        justify-content: center;
        margin-top: 0.75rem;
        padding: 12px 20px;
    }

    .dropdown {
        display: block;
        position: static;
        box-shadow: none;
        border-top: none;
        min-width: 0;
        padding: 0 0 0 1rem;
    }

    .has-dropdown > a::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .logo img {
        height: 58px;
    }

    .logo-text strong {
        font-size: 29px;
    }

    .logo-text small {
        font-size: 18px;
    }

    .nav-toggle {
        gap: 6px;
    }

    .nav-toggle span {
        width: 40px;
        height: 5px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .hero {
        min-height: 350px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .section-green,
    .section-blue,
    .section-white,
    .quote-section {
        padding: 50px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        text-align: center;
    }

    .footer-logo img {
        height: 60px;
    }

    .quote-section blockquote {
        font-size: 1.2rem;
    }

    .ramp {
        height: 50px;
    }

    .flip-card {
        height: 280px;
        max-width: 280px;
    }
}
