/* ===================================
   Academic Classification Stylesheet
   Blumenbach Text Aesthetic
   =================================== */

/* ===================================
   CSS Reset & Base Styles
   =================================== */

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

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

body {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #2a2520;
    background-color: #e8e4d9;
    background-image:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" /></filter><rect width="100" height="100" filter="url(%23noise)" opacity="0.03"/></svg>');
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, serif;
    font-weight: normal;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h1 {
    font-size: 2rem;
    font-weight: normal;
}

h2 {
    font-size: 1.5rem;
    font-weight: normal;
}

h3 {
    font-size: 1.25rem;
    font-weight: normal;
}

h4 {
    font-size: 1rem;
    font-weight: normal;
}

p {
    margin-bottom: 1rem;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
}

a {
    color: #2a2520;
    text-decoration: underline;
    text-decoration-color: rgba(42, 37, 32, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s ease;
}

a:hover {
    text-decoration-color: rgba(42, 37, 32, 0.8);
}

code, .mono {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    letter-spacing: 0;
}

/* ===================================
   Layout & Container
   =================================== */

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 4rem;
}

.section {
    padding: 4rem 0;
    border-bottom: 0.5px solid rgba(42, 37, 32, 0.15);
}

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

/* Three-column grid layout */
.academic-grid {
    display: grid;
    grid-template-columns: 120px 1fr 200px;
    gap: 2rem;
    align-items: start;
}

/* ===================================
   Navigation
   =================================== */

nav {
    padding: 2rem 0 1rem;
    border-bottom: none;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.nav-logo {
    font-family: Georgia, serif;
    font-size: 0.875rem;
    font-style: italic;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    color: rgba(42, 37, 32, 0.6);
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #2a2520;
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    padding: 3rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 200px 1fr 120px;
    gap: 2rem;
    align-items: start;
}

.hero-number {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: rgba(42, 37, 32, 0.5);
    padding-top: 0.25rem;
    text-align: right;
}

.hero-main h1 {
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.hero-subtitle {
    font-size: 0.875rem;
    color: rgba(42, 37, 32, 0.6);
    margin-bottom: 1.5rem;
    text-transform: none;
    text-align: left;
}

.hero-bio {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.hero-bio p {
    text-align: justify;
}

.hero-aside {
    font-size: 0.875rem;
    text-align: left;
}

.profile-image {
    width: 100%;
    max-width: 180px;
    height: auto;
    margin-bottom: 1rem;
    border: 0.5px solid rgba(42, 37, 32, 0.2);
}

.credentials {
    margin-bottom: 1.5rem;
}

.credential-item {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 0.5px solid rgba(42, 37, 32, 0.1);
}

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

.credential-label {
    font-size: 0.75rem;
    color: rgba(42, 37, 32, 0.5);
    margin-bottom: 0.25rem;
    text-transform: none;
    font-style: italic;
}

.credential-value {
    font-size: 0.875rem;
    font-weight: normal;
    line-height: 1.4;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-links a {
    font-size: 0.75rem;
    text-decoration: none;
    color: rgba(42, 37, 32, 0.6);
    border: none;
    padding: 0;
}

.social-links a:hover {
    color: #2a2520;
}

/* ===================================
   Section Headers
   =================================== */

.section-header {
    margin-bottom: 2rem;
}

.section-number {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: rgba(42, 37, 32, 0.5);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.section-description {
    font-size: 0.875rem;
    color: rgba(42, 37, 32, 0.6);
    max-width: 700px;
    text-align: left;
    font-style: italic;
}

/* ===================================
   Impact / Research Areas
   =================================== */

.impact-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.impact-entry {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 0.5px solid rgba(42, 37, 32, 0.1);
}

.impact-entry:last-child {
    border-bottom: none;
}

.impact-number {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: rgba(42, 37, 32, 0.5);
    padding-top: 0.25rem;
    text-align: right;
}

.impact-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.impact-details {
    margin-bottom: 0.75rem;
}

.impact-detail-item {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    display: flex;
    gap: 1rem;
}

.impact-detail-label {
    font-style: italic;
    color: rgba(42, 37, 32, 0.6);
    min-width: 100px;
}

.impact-detail-value {
    color: #2a2520;
}

.impact-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    text-align: justify;
}

/* ===================================
   Publications
   =================================== */

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.publication {
    display: grid;
    grid-template-columns: 1fr 60px;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 0.5px solid rgba(42, 37, 32, 0.1);
}

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

.publication-number {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: rgba(42, 37, 32, 0.5);
    padding-top: 0.25rem;
    text-align: right;
}

.publication-content {
    max-width: 100%;
}

.publication-meta {
    font-size: 0.75rem;
    color: rgba(42, 37, 32, 0.5);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.publication-year {
    font-family: 'Courier New', monospace;
}

.publication-venue {
    font-style: italic;
}

.publication-tags {
    display: inline;
    margin-left: 1rem;
}

.publication-tag {
    font-size: 0.75rem;
    color: rgba(42, 37, 32, 0.4);
    font-style: italic;
    text-transform: lowercase;
    letter-spacing: 0;
}

.publication-tag:before {
    content: "/ ";
}

.publication-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0;
    font-style: italic;
}

.publication-authors {
    font-size: 0.875rem;
    color: rgba(42, 37, 32, 0.7);
    margin-bottom: 0.5rem;
}

.publication-authors strong {
    color: #2a2520;
    font-weight: normal;
    font-style: italic;
}

.publication-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #2a2520;
    margin-bottom: 0.75rem;
    text-align: justify;
}

.publication-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.publication-link {
    font-size: 0.75rem;
    text-decoration: none;
    color: rgba(42, 37, 32, 0.6);
    border: none;
    padding: 0;
}

.publication-link:hover {
    color: #2a2520;
}

.publication-link:before {
    content: "[";
}

.publication-link:after {
    content: "]";
}

/* ===================================
   Platforms / Projects
   =================================== */

.platforms-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.platform {
    display: grid;
    grid-template-columns: 1fr 80px;
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 0.5px solid rgba(42, 37, 32, 0.1);
}

.platform:last-child {
    border-bottom: none;
}

.platform-number {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: rgba(42, 37, 32, 0.5);
    padding-top: 0.25rem;
    text-align: right;
}

.platform-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.platform-status {
    display: inline;
    font-size: 0.75rem;
    color: rgba(42, 37, 32, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Courier New', monospace;
}

.platform-tags {
    font-size: 0.75rem;
    color: rgba(42, 37, 32, 0.4);
    margin-bottom: 1rem;
    font-style: italic;
}

.platform-tag {
    text-transform: lowercase;
}

.platform-tag:before {
    content: "/ ";
}

.platform-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: justify;
}

.platform-details {
    margin-bottom: 1rem;
}

.platform-detail-item {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    display: flex;
    gap: 1rem;
}

.platform-detail-label {
    font-style: italic;
    color: rgba(42, 37, 32, 0.6);
    min-width: 100px;
}

.platform-detail-value {
    color: #2a2520;
}

.platform-links {
    display: flex;
    gap: 1rem;
}

.platform-link {
    font-size: 0.75rem;
    text-decoration: none;
    color: rgba(42, 37, 32, 0.6);
}

.platform-link:hover {
    color: #2a2520;
}

.platform-link:before {
    content: "[";
}

.platform-link:after {
    content: "]";
}

/* Remove old styles */
.impact-grid,
.platforms-grid {
    display: none;
}

.platform-stats,
.platform-stat,
.platform-stat-value,
.platform-stat-label {
    display: none;
}

/* ===================================
   Contact Section
   =================================== */

.contact-list {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 2rem;
}

.contact-number {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: rgba(42, 37, 32, 0.5);
    padding-top: 0.25rem;
    text-align: right;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 0.5px solid rgba(42, 37, 32, 0.1);
}

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

.contact-label {
    font-size: 0.875rem;
    font-style: italic;
    color: rgba(42, 37, 32, 0.6);
    min-width: 120px;
}

.contact-value {
    font-size: 0.875rem;
    flex: 1;
}

.contact-value a {
    text-decoration: none;
    color: #2a2520;
}

.contact-value a:hover {
    text-decoration: underline;
}

/* Remove old contact grid */
.contact-grid,
.contact-info {
    display: none;
}

/* ===================================
   Footer
   =================================== */

footer {
    padding: 2rem 0;
    border-top: 0.5px solid rgba(42, 37, 32, 0.15);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(42, 37, 32, 0.5);
}

.footer-copyright {
    font-size: 0.75rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.75rem;
    text-decoration: none;
    color: rgba(42, 37, 32, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links a:hover {
    color: #2a2520;
}

/* ===================================
   Responsive Design
   =================================== */

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

    .hero-grid {
        grid-template-columns: 180px 1fr 100px;
    }

    .profile-image {
        max-width: 160px;
    }

    .impact-entry,
    .publication,
    .platform,
    .contact-list {
        grid-template-columns: 1fr 80px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 13px;
    }

    .container {
        padding: 0 1.5rem;
    }

    nav .container {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .nav-logo {
        margin-bottom: 0.5rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.7rem;
    }

    /* Stack hero grid on mobile */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-aside {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 1rem;
        align-items: start;
    }

    .profile-image {
        max-width: 100px;
        margin-bottom: 0;
    }

    .credentials {
        margin-bottom: 0;
    }

    .social-links {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .hero-number {
        text-align: left;
        order: -1;
    }

    .hero-main {
        order: 1;
    }

    /* Stack all content grids */
    .impact-entry,
    .publication,
    .platform,
    .contact-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .publication-number,
    .platform-number,
    .impact-number,
    .contact-number {
        padding-top: 0;
        text-align: left;
        order: -1;
        margin-bottom: 0.5rem;
    }

    /* Adjust detail items for mobile */
    .impact-detail-item,
    .platform-detail-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .impact-detail-label,
    .platform-detail-label {
        min-width: unset;
    }

    .contact-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .contact-label {
        min-width: unset;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Typography adjustments */
    p {
        text-align: left;
        hyphens: none;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.125rem;
    }

    .section {
        padding: 3rem 0;
    }

    .hero {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px;
    }

    .container {
        padding: 0 1rem;
    }

    .nav-links a {
        font-size: 0.65rem;
        letter-spacing: 0.05em;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .profile-image {
        max-width: 80px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .publication-links,
    .platform-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ===================================
   Utility Classes
   =================================== */

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

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

.uppercase {
    text-transform: uppercase;
}

.italic {
    font-style: italic;
}
