/*
Theme Name:   Science With George
Theme URI:    https://blog.georgeforge.cloud
Author:       Georgios Sergidis
Author URI:   https://blog.georgeforge.cloud
Description:  A colorful personal science portfolio theme for Georgios Sergidis — biomedical researcher, molecular biologist, and computational scientist.
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  science-with-george
Tags:         portfolio, one-page, science, colorful
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    --teal:        #1cabb0;
    --teal-dark:   #158a8e;
    --teal-light:  #d4f0f1;
    --gold:        #ffbd59;
    --gold-dark:   #e6a52e;
    --gold-light:  #fff4d9;
    --purple:      #e1a8f0;
    --purple-dark: #c47de3;
    --purple-light:#f6eafd;
    --dark:        #2d2d2d;
    --mid:         #5a5a5a;
    --muted:       #9a9a9a;
    --light:       #f8f9fa;
    --white:       #ffffff;
    --border:      #e8e8e8;

    --font:        Arial, Helvetica, sans-serif;
    --container:   1140px;
    --radius-sm:   8px;
    --radius-md:   12px;
    --radius-lg:   20px;
    --radius-pill: 50px;

    --shadow-card:  0 4px 20px rgba(0, 0, 0, 0.07);
    --shadow-hover: 0 10px 36px rgba(0, 0, 0, 0.14);
    --transition:   0.3s ease;
}


/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--dark);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--teal);
    text-decoration: none;
    transition: color var(--transition);
}

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

ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    font-weight: 700;
    line-height: 1.25;
    color: var(--dark);
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }


/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 90px 0;
}

.section-padding--lg {
    padding: 110px 0;
}

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

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 12px;
}

.section-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--mid);
    max-width: 580px;
    line-height: 1.7;
}

.section-title .accent-teal   { color: var(--teal); }
.section-title .accent-gold   { color: var(--gold-dark); }
.section-title .accent-purple { color: var(--purple-dark); }

/* Divider accent line */
.title-underline {
    width: 50px;
    height: 4px;
    border-radius: 2px;
    background: var(--teal);
    margin: 16px 0 28px;
}

.title-underline--center {
    margin: 16px auto 28px;
}

.title-underline--gold   { background: var(--gold); }
.title-underline--purple { background: var(--purple-dark); }


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 189, 89, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.7);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
    color: var(--white);
}

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

.btn-teal:hover {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(28, 171, 176, 0.4);
}


/* ============================================================
   SITE HEADER / NAVIGATION
   ============================================================ */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    transition: background var(--transition), box-shadow var(--transition);
    background: transparent;
}

#site-header.scrolled {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

#site-header.scrolled .nav-link { color: var(--dark); }
#site-header.scrolled .nav-link:hover { color: var(--teal); }
#site-header.scrolled .site-logo-text { color: var(--dark); }
#site-header.scrolled .hamburger span { background: var(--dark); }

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.site-logo img {
    height: 44px;
    width: auto;
}

.site-logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.footer-logo-img {
    height: 52px;
    width: auto;
    display: block;
    margin-bottom: 12px;
}

.site-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    transition: color var(--transition);
    line-height: 1.2;
}

.site-logo-text span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

/* Navigation menu */
.primary-nav {
    display: flex;
    align-items: center;
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link,
.primary-nav ul li a {
    display: block;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    border-radius: var(--radius-pill);
    transition: all var(--transition);
    text-decoration: none;
}

.nav-link:hover,
.primary-nav ul li a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.15);
}

.nav-cta,
.primary-nav ul li.menu-item-cta a {
    background: var(--gold);
    color: var(--dark) !important;
    padding: 8px 22px;
}

.nav-cta:hover,
.primary-nav ul li.menu-item-cta a:hover {
    background: var(--gold-dark);
    color: var(--dark) !important;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    z-index: 999;
}

.mobile-nav.open { display: block; }

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav ul li a {
    display: block;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.mobile-nav ul li a:hover { background: var(--teal-light); color: var(--teal); }


/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #1cabb0 0%, #128a8e 45%, #0f6e71 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 72px;
}

/* Decorative floating blobs */
.hero::before {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: rgba(255, 189, 89, 0.12);
    top: -100px;
    right: -100px;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(225, 168, 240, 0.15);
    bottom: -60px;
    left: 80px;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: var(--container);
    margin: 0 auto;
    padding: 80px 24px;
    width: 100%;
}

.hero-content { color: var(--white); }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title .name-highlight {
    color: var(--gold);
    display: block;
}

.hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    max-width: 460px;
    margin-bottom: 36px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.hero-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--gold);
}

.hero-stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    margin-top: 2px;
}

/* Hero visual / photo area */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-photo-frame {
    position: relative;
    width: 380px;
    height: 380px;
}

.hero-photo-bg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 3px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-photo-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.hero-photo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,189,89,0.2));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    gap: 10px;
}

/* Decorative orbit rings */
.hero-orbit-1,
.hero-orbit-2 {
    position: absolute;
    border-radius: 50%;
    border: 1.5px dashed rgba(255,255,255,0.25);
    pointer-events: none;
}

.hero-orbit-1 {
    width: 440px;
    height: 440px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-orbit-2 {
    width: 510px;
    height: 510px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Floating badge chips */
.hero-badge {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    white-space: nowrap;
}

.hero-badge .badge-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.badge-dot--teal   { background: var(--teal); }
.badge-dot--gold   { background: var(--gold); }
.badge-dot--purple { background: var(--purple-dark); }

.hero-badge-1 { top: 10%;  right: -20px; }
.hero-badge-2 { bottom: 18%; right: -30px; }
.hero-badge-3 { bottom: 5%;  left: 10%; }


/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
    position: relative;
    overflow: hidden;
    background-color: var(--white);
    background-image: radial-gradient(circle, rgba(28,171,176,0.06) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-image-wrap {
    position: relative;
}

.about-image-frame {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--purple-light) 0%, var(--teal-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.about-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--teal);
    font-size: 14px;
    font-weight: 600;
    gap: 12px;
    height: 100%;
}

/* Accent block behind image */
.about-image-accent {
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--gold);
    border-radius: var(--radius-md);
    bottom: -24px;
    right: -24px;
    z-index: -1;
    opacity: 0.6;
}

.about-content {}

.about-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.about-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.about-tag--teal   { background: var(--teal-light);   color: var(--teal-dark); }
.about-tag--gold   { background: var(--gold-light);   color: var(--gold-dark); }
.about-tag--purple { background: var(--purple-light); color: var(--purple-dark); }

.about-text {
    font-size: 16px;
    color: var(--mid);
    line-height: 1.8;
    margin-bottom: 32px;
}

/* What I Do list */
.what-i-do-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 36px;
}

.what-i-do-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
}

.what-i-do-item::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--teal);
    flex-shrink: 0;
}

.what-i-do-item:nth-child(3n+2)::before { background: var(--gold-dark); }
.what-i-do-item:nth-child(3n+3)::before { background: var(--purple-dark); }


/* ============================================================
   PROJECTS SECTION
   ============================================================ */
.projects-section {
    position: relative;
    overflow: hidden;
    background-color: var(--light);
    background-image: radial-gradient(circle, rgba(28,171,176,0.07) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
}

.projects-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.project-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

/* Colored top border — cycles through brand colors */
.project-card:nth-child(3n+1) { border-top: 4px solid var(--teal); }
.project-card:nth-child(3n+2) { border-top: 4px solid var(--gold); }
.project-card:nth-child(3n+3) { border-top: 4px solid var(--purple-dark); }

.project-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.project-card-image-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.project-card:nth-child(3n+1) .project-card-image-placeholder { background: linear-gradient(135deg, var(--teal-light), var(--teal)); color: var(--white); }
.project-card:nth-child(3n+2) .project-card-image-placeholder { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--dark); }
.project-card:nth-child(3n+3) .project-card-image-placeholder { background: linear-gradient(135deg, var(--purple-light), var(--purple)); color: var(--white); }

.project-card-body {
    padding: 26px 28px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.project-card-description {
    font-size: 15px;
    color: var(--mid);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.project-card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.tag-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.tag-pill--teal   { background: var(--teal-light);   color: var(--teal-dark); }
.tag-pill--gold   { background: var(--gold-light);   color: var(--gold-dark); }
.tag-pill--purple { background: var(--purple-light); color: var(--purple-dark); }

.project-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--teal);
    transition: gap var(--transition);
    margin-top: auto;
}

.project-card-link:hover { gap: 10px; color: var(--teal-dark); }

.project-card-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition);
}

.project-card-link:hover svg { transform: translateX(4px); }


/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
    background: linear-gradient(135deg, var(--gold) 0%, #ffd07a 100%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(28, 171, 176, 0.12);
    top: -100px;
    right: -80px;
    pointer-events: none;
}

.contact-section::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(225, 168, 240, 0.2);
    bottom: -40px;
    left: 40px;
    pointer-events: none;
}

.contact-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.contact-inner .section-title { color: var(--dark); }

.contact-inner .title-underline { background: var(--teal); }

.contact-lead {
    font-size: 18px;
    color: rgba(45, 45, 45, 0.8);
    margin-bottom: 44px;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 18px 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
}

.contact-method:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    color: var(--dark);
}

.contact-method-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-method-icon--teal   { background: var(--teal);   color: var(--white); }
.contact-method-icon--purple { background: var(--purple-dark); color: var(--white); }
.contact-method-icon--dark   { background: var(--dark);   color: var(--white); }

.social-links {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 18px;
    font-weight: 700;
    transition: all var(--transition);
    text-decoration: none;
    border: 2px solid rgba(0,0,0,0.08);
}

.social-link:hover {
    background: var(--teal);
    color: var(--white);
    transform: translateY(-3px);
    border-color: var(--teal);
}


/* ============================================================
   SITE FOOTER
   ============================================================ */
#site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand .footer-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-teal { color: var(--teal); }

.footer-tagline {
    font-size: 15px;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 260px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    font-weight: 700;
    transition: all var(--transition);
    text-decoration: none;
}

.footer-social-link:hover {
    background: var(--teal);
    color: var(--white);
}

.footer-heading {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    font-size: 15px;
    color: rgba(255,255,255,0.55);
    transition: color var(--transition);
}

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

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 12px;
}

.footer-contact-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    margin-top: 7px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: rgba(255,255,255,0.4);
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
    transition: color var(--transition);
}

.footer-bottom a:hover { color: var(--teal); }


/* ============================================================
   BLOG INDEX (index.php)
   ============================================================ */
.blog-page {
    padding-top: 72px;
    min-height: 100vh;
}

.blog-hero {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    padding: 80px 0 60px;
    color: var(--white);
    text-align: center;
}

.blog-hero h1 {
    font-size: 48px;
    color: var(--white);
    margin-bottom: 12px;
}

.blog-hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 60px 0;
}

.post-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    border-top: 4px solid var(--teal);
}

.post-card:nth-child(3n+2) { border-top-color: var(--gold); }
.post-card:nth-child(3n+3) { border-top-color: var(--purple-dark); }

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.post-card-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.post-card-thumbnail-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 36px;
}

.post-card-body { padding: 24px 26px 28px; }

.post-card-date {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 8px;
}

.post-card-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.35;
}

.post-card-title a {
    color: inherit;
}

.post-card-title a:hover { color: var(--teal); }

.post-card-excerpt {
    font-size: 15px;
    color: var(--mid);
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--teal);
}

.read-more:hover { gap: 10px; color: var(--teal-dark); }

.no-posts {
    text-align: center;
    padding: 80px 24px;
    color: var(--mid);
}

.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0 60px;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    color: var(--mid);
    border: 2px solid var(--border);
    transition: all var(--transition);
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
}


/* ============================================================
   STATIC PAGE TEMPLATE (page.php)
   ============================================================ */
.page-wrapper {
    padding-top: 72px;
    min-height: 100vh;
}

.page-hero {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    padding: 80px 0 60px;
    color: var(--white);
    text-align: center;
}

.page-hero h1 {
    font-size: 44px;
    color: var(--white);
}

.page-content-wrap {
    padding: 64px 0 90px;
}

.page-content {
    max-width: 760px;
    margin: 0 auto;
    font-size: 17px;
    color: var(--mid);
    line-height: 1.85;
}

.page-content h2 {
    font-size: 28px;
    color: var(--dark);
    margin: 36px 0 14px;
}

.page-content h3 {
    font-size: 22px;
    color: var(--dark);
    margin: 28px 0 10px;
}

.page-content p { margin-bottom: 20px; }

.page-content ul,
.page-content ol {
    margin: 0 0 20px 24px;
}

.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }

.page-content li { margin-bottom: 8px; }

.page-content a { color: var(--teal); font-weight: 600; }
.page-content a:hover { text-decoration: underline; }

.page-content img { border-radius: var(--radius-md); margin: 20px 0; }

.page-content blockquote {
    border-left: 4px solid var(--teal);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--teal-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--dark);
    font-style: italic;
}


/* ============================================================
   SCROLL ANIMATIONS
   All sections are visible by default (no JS = no animation).
   When JS loads it adds 'js-loaded' to <body>, enabling the
   fade-in reveal. This prevents sections being permanently
   invisible if JS fails or is slow to execute.
   ============================================================ */
.reveal {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* JS is confirmed running — hide elements ready for reveal */
body.js-loaded .reveal {
    opacity: 0;
    transform: translateY(30px);
}

/* IntersectionObserver adds .visible when element enters viewport */
body.js-loaded .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }


/* ============================================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {

    .section-title { font-size: 30px; }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero-title { font-size: 48px; }

    .hero-description { margin-left: auto; margin-right: auto; }

    .hero-buttons { justify-content: center; }

    .hero-stats { justify-content: center; }

    .hero-visual { order: -1; }

    .hero-photo-frame { width: 280px; height: 280px; }
    .hero-orbit-1 { width: 330px; height: 330px; }
    .hero-orbit-2 { width: 390px; height: 390px; }

    .hero-badge-1 { top: 0;    right: 0; }
    .hero-badge-2 { bottom: 0; right: 0; }
    .hero-badge-3 { display: none; }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-wrap { max-width: 400px; margin: 0 auto; }

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

    .footer-inner { grid-template-columns: 1fr 1fr; }

    .blog-posts-grid { grid-template-columns: 1fr 1fr; }

    .hamburger { display: flex; }
    .primary-nav { display: none; }
}


/* ============================================================
   RESPONSIVE — MOBILE (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {

    .hero-title { font-size: 38px; }

    .hero-photo-frame { width: 220px; height: 220px; }
    .hero-orbit-1 { width: 260px; height: 260px; }
    .hero-orbit-2 { width: 310px; height: 310px; }

    .hero-stats { gap: 20px; flex-wrap: wrap; justify-content: center; }

    .what-i-do-list { grid-template-columns: 1fr; }

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

    .contact-methods { flex-direction: column; align-items: center; }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .blog-posts-grid { grid-template-columns: 1fr; }

    .section-padding { padding: 64px 0; }
}


/* ============================================================
   FULL-SITE MOLECULE ANIMATION SYSTEM
   ============================================================ */

/* --- Keyframes --- */

/* Organic multi-axis drift (main animation for most molecules) */
@keyframes mol-drift {
    0%   { transform: translate(0px,    0px)  rotate(0deg);  }
    20%  { transform: translate(12px,  -20px) rotate(12deg); }
    40%  { transform: translate(-5px,  -32px) rotate(22deg); }
    60%  { transform: translate(-18px, -14px) rotate(9deg);  }
    80%  { transform: translate(7px,   -6px)  rotate(-9deg); }
    100% { transform: translate(0px,    0px)  rotate(0deg);  }
}

/* Slow full-rotation for silhouette/feature molecules */
@keyframes mol-slow-spin {
    from { transform: rotate(0deg)   scale(1);    }
    50%  { transform: rotate(180deg) scale(1.06); }
    to   { transform: rotate(360deg) scale(1);    }
}

/* Opacity pulse for foreground accent molecules */
@keyframes mol-glow {
    0%, 100% { opacity: 0.32; }
    50%       { opacity: 0.55; }
}

/* Keep mol-float for blobs */
@keyframes mol-float {
    0%   { transform: translateY(0px)   rotate(0deg);  }
    50%  { transform: translateY(-24px) rotate(12deg); }
    100% { transform: translateY(0px)   rotate(0deg);  }
}

/* --- Universal molecule container (all sections) --- */
.hero-molecules,
.section-molecules {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* === HERO MOLECULES === */
.hero-mol {
    position: absolute;
    animation: mol-drift ease-in-out infinite;
    opacity: 0.35;
}
.hero-mol svg { display: block; }

/* Mid-layer: prominent drifting molecules */
.hero-mol-1 { width: 160px; top: 6%;    left: 2%;   animation-duration: 9s;  animation-delay: 0s;   }
.hero-mol-2 { width:  90px; top: 4%;    right: 10%; animation-duration: 11s; animation-delay: 1.5s; }
.hero-mol-3 { width: 120px; bottom: 10%;left: 6%;   animation-duration: 10s; animation-delay: 3s;   }
.hero-mol-4 { width:  70px; top: 42%;   right: 3%;  animation-duration: 7.5s;animation-delay: 0.8s; opacity: 0.28; }
.hero-mol-5 { width:  55px; top: 22%;   left: 40%;  animation-duration: 13s; animation-delay: 2.5s; opacity: 0.26; }
.hero-mol-6 { width: 110px; bottom: 6%; right: 16%; animation-duration: 9.5s;animation-delay: 4s;   }
/* Background silhouettes */
.hero-mol-7 { width: 240px; top: -40px; left: -60px; animation: mol-slow-spin 28s linear infinite;        opacity: 0.12; }
.hero-mol-9 { width: 180px; bottom: -50px; right: -40px; animation: mol-slow-spin 22s linear infinite reverse; opacity: 0.14; }
/* Foreground accent (smallest, glowing) */
.hero-mol-8 { width: 45px; top: 55%; left: 22%;
    animation: mol-glow 4s ease-in-out infinite, mol-drift 8s ease-in-out infinite;
    animation-delay: 1s, 1s;
    opacity: 0.32; }

/* Extra hero gradient blobs */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: mol-float ease-in-out infinite;
}
.hero-blob-3 {
    width: 380px; height: 380px;
    background: rgba(28, 171, 176, 0.10);
    top: 25%; left: -110px;
    animation-duration: 12s; animation-delay: 1s;
}
.hero-blob-4 {
    width: 240px; height: 240px;
    background: rgba(255, 189, 89, 0.13);
    bottom: 12%; right: 2%;
    animation-duration: 9s; animation-delay: 3.5s;
}

/* === ABOUT SECTION MOLECULES === */
.about-mol {
    position: absolute;
    animation: mol-drift ease-in-out infinite;
}
.about-mol svg { display: block; }

/* Large silhouette (top-right) */
.about-mol-1 { width: 220px; top: -60px;   right: -60px; animation-duration: 16s; animation-delay: 0s;   opacity: 0.12; }
/* Mid molecules */
.about-mol-2 { width: 100px; bottom: 15%;  left: -20px;  animation-duration: 10s; animation-delay: 2s;   opacity: 0.28; }
.about-mol-3 { width:  75px; top: 35%;     right:  4%;   animation-duration: 12s; animation-delay: 1s;   opacity: 0.30; }
/* Foreground accent (glowing) */
.about-mol-4 { width:  40px; bottom:  8%;  right: 18%;
    animation: mol-glow 5s ease-in-out infinite, mol-drift 7s ease-in-out infinite;
    animation-delay: 3.5s, 3.5s;
    opacity: 0.38; }

/* === PROJECTS SECTION MOLECULES === */
.projects-mol {
    position: absolute;
    animation: mol-drift ease-in-out infinite;
}
.projects-mol svg { display: block; }

/* Background silhouette */
.projects-mol-1 { width: 260px; top: -70px; left: -70px; animation: mol-slow-spin 20s linear infinite; animation-delay: 0s; opacity: 0.10; }
/* Mid molecules */
.projects-mol-2 { width: 110px; top: 12%;     right: -10px; animation-duration: 9s;  animation-delay: 1s;   opacity: 0.28; }
.projects-mol-3 { width:  80px; bottom: 12%;  right: -15px; animation-duration: 13s; animation-delay: 4s;   opacity: 0.26; }
.projects-mol-4 { width:  65px; bottom: 25%;  left:    2%;  animation-duration:  8s; animation-delay: 2s;   opacity: 0.30; }
/* Foreground accent */
.projects-mol-5 { width:  42px; top: 48%;     left:   42%;
    animation: mol-glow 3.5s ease-in-out infinite, mol-drift 6s ease-in-out infinite;
    animation-delay: 0.5s, 0.5s;
    opacity: 0.38; }

/* === CONTACT SECTION MOLECULES === */
/* Gold bg → use teal + white for high contrast */
.contact-mol {
    position: absolute;
    animation: mol-drift ease-in-out infinite;
}
.contact-mol svg { display: block; }

.contact-mol-1 { width: 170px; top: 10%;     left:  -30px; animation-duration: 12s; animation-delay: 0s;   opacity: 0.32; }
.contact-mol-2 { width:  90px; bottom: 15%;  right:   5%;  animation-duration:  8s; animation-delay: 1.5s; opacity: 0.40; }
.contact-mol-3 { width:  55px; top:  8%;     right:   8%;
    animation: mol-glow 4s ease-in-out infinite, mol-drift 10s ease-in-out infinite;
    animation-delay: 3s, 3s;
    opacity: 0.42; }
.contact-mol-4 { width: 200px; bottom: -60px; left: -50px; animation: mol-slow-spin 22s linear infinite; animation-delay: 2s; opacity: 0.18; }
