/* André Hampshire - Personal Academic Website */
/* Refined Edition with Editorial Layout */

html {
    scroll-behavior: smooth;
}

:root {
    --background-dark: #080810;
    --background-card: rgba(255, 255, 255, 0.02);
    --background-card-hover: rgba(255, 255, 255, 0.04);
    --text-primary: #e8e8ec;
    --text-secondary: #9a9aa8;
    --accent-primary: #d4d4dc;
    --accent-blue: #7a9cbe;
    --accent-blue-dim: rgba(122, 156, 190, 0.15);
    --accent-silver: #a8b4c4;
    --border-subtle: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.75;
    overflow-x: hidden;
    font-weight: 300;
}

/* Particle Canvas Background */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(8, 8, 16, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    padding: 1.25rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    transition: color 0.4s ease;
    position: relative;
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-blue);
    transition: width 0.4s ease;
    opacity: 0.6;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 22px;
    height: 1px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    color: var(--accent-silver);
    margin-bottom: 0.5rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.15em;
}

.hero-tagline {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.disciplines {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 3rem;
}

.discipline {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.5rem 0;
}

.discipline::after {
    content: '·';
    margin: 0 1.25rem;
    color: var(--accent-blue);
    opacity: 0.5;
}

.discipline:last-child::after {
    content: '';
    margin: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 3.5rem;
    left: 50%;
    transform: translateX(-50%);
    animation: float 5s ease-in-out infinite;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s ease;
    opacity: 0.5;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-silver);
    stroke-width: 1;
    transition: stroke 0.4s ease;
}

.scroll-indicator:hover svg {
    stroke: var(--accent-blue);
}

@keyframes float {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

/* Section Styles */
section {
    padding: 5rem 0;
    position: relative;
}

#welcome {
    padding: 4rem 0 2rem 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    letter-spacing: 0.03em;
}

.page-header {
    padding-top: 10rem;
    padding-bottom: 3rem;
    text-align: center;
}

.page-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 300;
    letter-spacing: 0.08em;
}

.page-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-style: italic;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.9;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    text-align: center;
    color: var(--text-primary);
    font-weight: 300;
    letter-spacing: 0.08em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 3rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.9;
}

/* Editorial Intro */
.editorial-intro {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-style: italic;
    font-weight: 400;
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    line-height: 1.9;
    letter-spacing: 0.01em;
}

/* Welcome Block */
.welcome-block {
    max-width: 750px;
    margin: 0 auto;
    padding-left: 2.5rem;
    border-left: 1px solid var(--accent-blue);
}

.welcome-title {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--accent-blue);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.welcome-content p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 1.5rem;
}

.welcome-content p:last-child {
    margin-bottom: 0;
}

.welcome-content strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Editorial Section Layout */
.editorial-section {
    padding: 2rem 0 6rem;
}

.editorial-item {
    display: grid;
    grid-template-columns: 60px 1fr 40px;
    gap: 2rem;
    align-items: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border-subtle);
    text-decoration: none;
    transition: all 0.4s ease;
    cursor: pointer;
}

.editorial-item:last-child {
    border-bottom: 1px solid var(--border-subtle);
}

.editorial-item:hover {
    padding-left: 1rem;
}

.editorial-item:hover .editorial-number {
    color: var(--accent-blue);
}

.editorial-item:hover h2 {
    color: var(--accent-blue);
}

.editorial-item:hover .editorial-arrow {
    opacity: 1;
    transform: translateX(5px);
    color: var(--accent-blue);
}

.editorial-number {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    transition: color 0.4s ease;
    opacity: 0.6;
}

.editorial-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.04em;
    transition: color 0.4s ease;
}

.editorial-content p {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 550px;
}

.editorial-arrow {
    font-family: 'Lato', sans-serif;
    font-size: 1.5rem;
    color: var(--text-secondary);
    opacity: 0.3;
    transition: all 0.4s ease;
    justify-self: end;
}

/* Editorial List (for internal page navigation) */
.editorial-list {
    max-width: 800px;
    margin: 0 auto;
}

.editorial-list .editorial-item {
    grid-template-columns: 1fr 40px;
}

/* Content Sections (for detailed pages like Research) */
.content-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.content-section:last-child {
    border-bottom: none;
}

.content-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--text-primary);
    font-weight: 300;
    letter-spacing: 0.06em;
    margin-bottom: 2rem;
}

.content-prose {
    max-width: 750px;
}

.content-prose p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 1.5rem;
}

.content-prose p:last-child {
    margin-bottom: 0;
}

.content-prose strong {
    color: var(--text-primary);
    font-weight: 400;
}

/* Framework Grid (for Research page) */
.framework-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border-subtle);
    margin: 3rem 0;
}

.framework-item {
    background: var(--background-dark);
    padding: 2.5rem;
}

.framework-item h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--text-primary);
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}

.framework-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* Publication Items */
.publication-item {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.publication-item:last-child {
    border-bottom: none;
}

.publication-category {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--accent-blue);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 2.5rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.publication-category:first-of-type {
    margin-top: 0;
}

.publication-status {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
}

.publication-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.publication-date {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.publication-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    max-width: 700px;
}

/* Profile Links */
.profile-links {
    display: flex;
    gap: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 3rem;
}

.profile-link {
    text-decoration: none;
    transition: all 0.4s ease;
}

.profile-link h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--text-primary);
    font-weight: 400;
    margin-bottom: 0.5rem;
    transition: color 0.4s ease;
}

.profile-link p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.profile-link:hover h3 {
    color: var(--accent-blue);
}

/* About Section */
.about-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 4rem;
    align-items: start;
    padding: 3rem 0;
}

.about-photo {
    width: 100%;
    filter: grayscale(30%) contrast(1.05);
    opacity: 0.9;
    transition: all 0.5s ease;
}

.about-photo:hover {
    filter: grayscale(10%) contrast(1);
    opacity: 1;
}

.about-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.25rem;
    color: var(--text-primary);
    font-weight: 300;
    margin-bottom: 0.5rem;
    letter-spacing: 0.06em;
}

.about-role {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--accent-silver);
    font-style: italic;
    margin-bottom: 2rem;
}

.about-bio p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 1.5rem;
}

/* Credentials Grid */
.credentials-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border-subtle);
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border-subtle);
}

.credential-block {
    background: var(--background-dark);
    padding: 2.5rem;
}

.credential-block h3 {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--accent-silver);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
}

.credential-item {
    margin-bottom: 1.25rem;
}

.credential-item:last-child {
    margin-bottom: 0;
}

.credential-item strong {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 400;
    display: block;
    margin-bottom: 0.2rem;
}

.credential-item span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.credential-item a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.credential-item a:hover {
    color: var(--text-primary);
}

/* Links */
.text-link {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.text-link:hover {
    color: var(--text-primary);
}

.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.4s ease;
    letter-spacing: 0.02em;
}

.arrow-link:hover {
    color: var(--text-primary);
}

/* Placeholder */
.placeholder-message {
    text-align: center;
    padding: 4rem 2rem;
    border: 1px solid var(--border-subtle);
    max-width: 500px;
    margin: 0 auto;
}

.placeholder-message h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--accent-silver);
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.placeholder-message p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Poetry Styles */
.poem-container {
    max-width: 600px;
    margin: 0 auto 4rem;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.poem-container:last-child {
    border-bottom: none;
}

.poem-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--text-primary);
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
}

.poem-meta {
    font-size: 0.9rem;
    color: var(--accent-blue);
    margin-bottom: 2rem;
    font-style: italic;
}

.poem-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.poem-text p {
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    margin-top: 4rem;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(8, 8, 16, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        padding: 2.5rem;
        transition: left 0.4s ease;
        gap: 2rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 0.05em;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .disciplines {
        flex-direction: column;
        gap: 0;
    }

    .discipline::after {
        content: '';
        margin: 0;
    }

    .editorial-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 2.5rem 0;
    }

    .editorial-list .editorial-item {
        grid-template-columns: 1fr;
    }

    .editorial-number {
        font-size: 0.75rem;
    }

    .editorial-content h2 {
        font-size: 1.8rem;
    }

    .editorial-arrow {
        display: none;
    }

    .editorial-item:hover {
        padding-left: 0;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-photo {
        max-width: 260px;
        margin: 0 auto;
    }

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

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

    .profile-links {
        flex-direction: column;
        gap: 2rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .editorial-intro {
        font-size: 1.15rem;
    }

    .welcome-block {
        padding-left: 1.5rem;
    }

    .welcome-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .logo {
        font-size: 1.25rem;
        letter-spacing: 0.15em;
    }

    .editorial-content h2 {
        font-size: 1.5rem;
    }

    .page-title {
        font-size: 2rem;
    }
}
