/* ========================================
   Glassmorphism Design System
   Modern, professional, translucent style
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@500;600;700&display=swap');

/* CSS Variables */
:root {
    /* Glassmorphism Colors */
    --bg-gradient-start: #0f0c29;
    --bg-gradient-mid: #302b63;
    --bg-gradient-end: #24243e;

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);

    /* Accent Colors */
    --accent-primary: #667eea;
    --accent-secondary: #764ba2;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-glow: rgba(102, 126, 234, 0.4);

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-max: 1200px;
    --section-padding: 4rem;
    --card-radius: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Animated Background Orbs */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
}

body::before {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -200px;
    right: -100px;
    animation: float 15s ease-in-out infinite;
}

body::after {
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    bottom: -100px;
    left: -100px;
    animation: float 20s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 30px);
    }
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--accent-glow);
}

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

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========== Header ========== */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

nav ul li a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--text-primary);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

/* ========== Hero Section ========== */
.hero {
    padding: var(--section-padding) 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

.profile-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    text-align: center;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--glass-border);
    margin-bottom: 1.5rem;
    box-shadow: 0 0 30px var(--accent-glow);
}

.contact-grid {
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.contact-item {
    margin-bottom: 0.5rem;
}

.contact-item strong {
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-gradient);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

.social-links img {
    width: 28px;
    height: 28px;
    opacity: 1;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.position-title {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.lead {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.hero-text p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* ========== Main Content Grid ========== */
.section {
    padding: var(--section-padding) 0;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
}

/* ========== Content Column ========== */
.content-column h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-column h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.content-column h2:first-of-type {
    margin-top: 0;
}

/* Topic Items (Research, Teaching etc.) */
.topic-item,
.topics-list .topic-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topic-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.topic-item h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

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

.sub-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-left: 1rem;
    border-left: 2px solid var(--accent-primary);
    transition: all 0.2s ease;
}

.sub-links a:hover {
    color: var(--accent-primary);
    border-left-color: #fff;
    padding-left: 1.5rem;
}

/* ========== Sidebar Column ========== */
.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    box-shadow: var(--glass-shadow);
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.link-list {
    list-style: none;
}

.link-list li {
    margin-bottom: 0.75rem;
}

.link-list a {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: block;
    transition: all 0.2s ease;
}

.link-list a:hover {
    color: var(--accent-primary);
    transform: translateX(5px);
}

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

.book-promo img {
    max-width: 150px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.book-promo img:hover {
    transform: scale(1.05) rotate(-2deg);
}

/* ========== Footer ========== */
footer {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    text-align: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

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

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    background: var(--accent-gradient);
    color: #fff;
}

/* ========== Group Member Grid ========== */
.member-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    list-style: none;
    margin-top: 1.5rem;
}

.member-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    overflow: hidden;
    text-align: center;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease;
}

.member-item:hover {
    transform: translateY(-8px);
}

.member-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.member-info {
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Styled Lists */
.list-styled {
    list-style: none;
    padding: 0;
}

.list-styled li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
}

.list-styled li::before {
    content: "▸";
    color: var(--accent-primary);
    position: absolute;
    left: 0;
}

/* Contact Card */
.contact-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
}

.contact-card p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Group Sections */
.group-section {
    margin-bottom: 3rem;
}

.group-section h2 {
    margin-bottom: 1rem;
}

/* SC Logo */
.sc-logo {
    display: block;
    max-width: 180px;
    margin: 1.5rem 0;
    opacity: 0.9;
}

/* ========== Responsive Design ========== */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .profile-card {
        max-width: 350px;
        margin: 0 auto;
    }

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

    .sidebar-column {
        order: 2;
    }
}

@media (max-width: 700px) {
    :root {
        --section-padding: 2rem;
    }

    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .content-column h1 {
        font-size: 1.8rem;
    }

    .member-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}