/* ===================================
   ACADEMIC PROFESSIONAL DESIGN
   Clean, minimal, research-focused
   =================================== */

:root {
    --accent-red: #DC143C;
    --pure-white: #FFFFFF;
    --deep-black: #000000;
    --dark-gray: #1a1a1a;
    --medium-gray: #2a2a2a;
    --light-gray: #cccccc;
    --subtle-gray: #5a2a2a;
    --card-bg: #6a2f2f;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #4a1a1a;
    color: var(--pure-white);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===================================
   BRAND EYE - Subtle Corner Element
   =================================== */

.brand-eye {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    z-index: 1000;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.brand-eye:hover {
    opacity: 1;
}

.eye-outer {
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-red);
    border-radius: 50% 0;
    position: relative;
}

.eye-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--accent-red);
    border-radius: 50%;
}

/* ===================================
   NAVIGATION
   =================================== */

.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 999;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--deep-black);
    text-decoration: none;
    transition: color 0.3s;
}

.brand-name:hover {
    color: var(--accent-red);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--deep-black);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-red);
}

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

/* ===================================
   HERO SECTION
   =================================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    position: relative;
    padding: 0 5%;
}

.hero-content {
    text-align: center;
    max-width: 900px;
}

.main-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--deep-black);
}

.subtitle {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--light-gray);
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
}

/* ===================================
   CONTENT SECTIONS
   =================================== */

.content-section {
    padding: 80px 5%;
    position: relative;
}

.content-section.alt-bg {
    background: var(--subtle-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3rem;
    color: var(--deep-black);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-red);
}

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

.lead-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--deep-black);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.body-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--light-gray);
    margin-bottom: 1.2rem;
}

/* ===================================
   GRIDS & CARDS
   =================================== */

.interests-grid,
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.interest-card,
.link-card {
    background: var(--card-bg);
    border: 1px solid #e0e0e0;
    padding: 2rem;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.interest-card:hover,
.link-card:hover {
    border-color: var(--accent-red);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--deep-black);
}

.card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--light-gray);
}

.link-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--deep-black);
}

.link-card p {
    font-size: 0.95rem;
    color: var(--light-gray);
}

/* ===================================
   FOOTER
   =================================== */

.main-footer {
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    background: var(--card-bg);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-text {
    font-size: 0.9rem;
    color: var(--light-gray);
    margin-bottom: 0.5rem;
}

.footer-link {
    margin-top: 0.5rem;
}

.footer-link a {
    color: var(--accent-red);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.3s;
}

.footer-link a:hover {
    opacity: 0.7;
}

/* ===================================
   PAGE TEMPLATES
   =================================== */

.page-header {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border-bottom: 1px solid #e0e0e0;
    padding: 0 5%;
    margin-top: 70px;
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    text-align: center;
}

.page-content {
    padding: 80px 5%;
}

/* Research/Paper Cards */
.research-grid,
.paper-grid,
.article-grid {
    display: grid;
    gap: 3rem;
    margin: 2rem 0;
}

.research-card,
.paper-card,
.article-card {
    background: var(--card-bg);
    border: 1px solid #e0e0e0;
    padding: 2.5rem;
    transition: all 0.3s;
}

.research-card:hover,
.paper-card:hover,
.article-card:hover {
    border-color: var(--accent-red);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.research-title,
.paper-title,
.article-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--deep-black);
}

.research-meta,
.paper-meta,
.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--light-gray);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.research-abstract,
.paper-abstract,
.article-excerpt {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--light-gray);
    margin-bottom: 1.5rem;
}

.research-tags,
.paper-tags,
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: var(--subtle-gray);
    color: var(--deep-black);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 3px;
    transition: all 0.3s;
}

.tag:hover {
    background: var(--accent-red);
    color: var(--pure-white);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
}

.status-active {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

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

.status-preprint {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Links */
.research-links,
.paper-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.link-button {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: var(--deep-black);
    color: var(--pure-white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid var(--deep-black);
}

.link-button:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

.link-button.secondary {
    background: transparent;
    color: var(--deep-black);
}

.link-button.secondary:hover {
    background: var(--deep-black);
    color: var(--pure-white);
}

/* CV Sections */
.cv-section {
    margin: 3rem 0;
}

.cv-section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--deep-black);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-red);
}

.cv-item {
    margin-bottom: 2.5rem;
}

.cv-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.cv-item-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--deep-black);
}

.cv-item-institution {
    font-size: 1.05rem;
    color: var(--accent-red);
    font-weight: 500;
}

.cv-item-date {
    font-size: 0.9rem;
    color: var(--light-gray);
}

.cv-item-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--light-gray);
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-email {
    font-size: 1.5rem;
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin: 2rem 0;
    transition: opacity 0.3s;
}

.contact-email:hover {
    opacity: 0.7;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-link {
    color: var(--deep-black);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.social-link:hover {
    color: var(--accent-red);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .main-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .interests-grid,
    .links-grid {
        grid-template-columns: 1fr;
    }

    .research-meta,
    .paper-meta,
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cv-item-header {
        flex-direction: column;
    }

    .brand-eye {
        width: 35px;
        height: 35px;
        bottom: 20px;
        right: 20px;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

*:focus-visible {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-red);
    color: var(--pure-white);
    padding: 8px;
    text-decoration: none;
    z-index: 100000;
}

.skip-link:focus {
    top: 0;
}

/* Selection */
::selection {
    background: var(--accent-red);
    color: var(--pure-white);
}
