/* EIAI Institute - Modern/Futuristic Design */

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

:root {
    /* Modern Color Palette - Light Blue Theme */
    --color-dark: #0a1929;
    --color-dark-secondary: #1a2332;
    --color-accent: #0ea5e9;
    --color-accent-bright: #38bdf8;
    --color-accent-dim: #0284c7;
    --color-text: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #64748b;
    --color-bg: #ffffff;
    --color-bg-subtle: #f8fafc;
    --color-bg-muted: #f1f5f9;
    --color-border: #e2e8f0;

    /* Spacing System */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-8: 3rem;
    --space-10: 4rem;
    --space-12: 6rem;

    /* Border Radius - Removed for 2025 modern design */
    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
    --radius-xl: 0;
    --radius-2xl: 0;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);

    /* Layout */
    --max-width: 1280px;
    --content-width: 1024px;
}

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

/* Typography & Base */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-top: var(--space-8);
    margin-bottom: var(--space-5);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    margin-bottom: var(--space-4);
}

p {
    margin-bottom: var(--space-4);
    line-height: 1.7;
}

a {
    color: var(--color-accent);
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

/* Header */
header {
    background: linear-gradient(135deg, #075985 0%, #0369a1 100%);
    color: white;
    padding: var(--space-8) var(--space-6);
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(56, 189, 248, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(14, 165, 233, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.logo {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-3);
    position: relative;
    z-index: 1;
}

header p {
    font-size: clamp(0.875rem, 2vw, 1rem);
    opacity: 0.85;
    font-weight: 400;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    letter-spacing: 0.01em;
}

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    text-align: center;
}

nav a {
    display: inline-block;
    color: var(--color-text-secondary);
    padding: var(--space-4) var(--space-5);
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
}

nav a:hover {
    text-decoration: none;
    color: var(--color-text-secondary);
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-10) var(--space-6);
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: var(--space-6) 0 var(--space-10);
    margin-bottom: var(--space-8);
}

.hero h1 {
    margin-bottom: var(--space-5);
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.hero p {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    color: var(--color-text-secondary);
    max-width: 720px;
    margin: 0 auto var(--space-6);
    line-height: 1.6;
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    background: var(--color-accent);
    color: white;
    padding: var(--space-4) var(--space-8);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    margin-top: var(--space-4);
}

.cta-button:hover {
    text-decoration: none;
    color: white;
}

/* Grid System */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: var(--space-6);
    margin: var(--space-10) 0;
}

.grid-item {
    background: var(--color-bg);
    padding: var(--space-6);
}

.grid-item h3 {
    color: var(--color-text);
    font-size: 1.25rem;
    margin-bottom: var(--space-3);
    font-weight: 700;
}

.grid-item p {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* News Section */
section {
    margin: var(--space-12) 0;
}

section h2 {
    margin-bottom: var(--space-6);
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    padding: var(--space-4) 0;
    margin-bottom: var(--space-4);
}

ul li i {
    color: var(--color-accent);
    font-style: normal;
    font-weight: 600;
}

/* Team Page */
.team-intro {
    text-align: center;
    margin-bottom: var(--space-12);
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
}

.team-intro h1 {
    margin-bottom: var(--space-5);
}

.team-intro p {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 640px;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: var(--space-6);
    margin: var(--space-10) 0;
}

.team-member {
    background: var(--color-bg);
    padding: var(--space-6);
}

.member-name {
    color: var(--color-text);
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.member-role {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8125rem;
}

.member-details {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.member-details p {
    margin-bottom: var(--space-2);
}

.member-details a {
    word-break: break-all;
    font-size: 0.875rem;
    display: inline-block;
    margin-top: var(--space-3);
}

.advisory-board {
    background: var(--color-bg-subtle);
    padding: var(--space-10) var(--space-6);
    margin-top: var(--space-12);
}

.advisory-board h2 {
    text-align: center;
    margin-top: 0;
}

.advisory-board p {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 1.0625rem;
    font-weight: 500;
}

/* Contact Page */
.contact-container {
    max-width: 680px;
    margin: var(--space-12) auto;
    padding: var(--space-10);
    background: var(--color-bg);
    text-align: center;
}

.contact-title {
    color: var(--color-text);
    font-size: clamp(2rem, 5vw, 2.75rem);
    margin-bottom: var(--space-5);
}

.contact-description {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.linktree-button {
    display: inline-block;
    background: var(--color-accent);
    color: white;
    padding: var(--space-5) var(--space-8);
    text-decoration: none;
    font-size: 1.0625rem;
    font-weight: 600;
    margin: var(--space-6) 0;
}

.linktree-button:hover {
    text-decoration: none;
    color: white;
}

.contact-container a:not(.linktree-button) {
    display: block;
    margin: var(--space-4) 0;
    font-size: 0.9375rem;
    padding: var(--space-3);
}

/* Glossary Page */
dl {
    margin: var(--space-6) 0;
}

dt {
    font-weight: 700;
    color: var(--color-text);
    font-size: 1.125rem;
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
    padding-top: var(--space-4);
    letter-spacing: -0.01em;
}

dt:first-child {
    margin-top: 0;
}

dd {
    color: var(--color-text-secondary);
    margin-left: 0;
    margin-bottom: var(--space-6);
    line-height: 1.7;
    padding-left: var(--space-5);
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
}

/* Research & Events Pages */
.main-content > h1 {
    margin-bottom: var(--space-8);
}

.main-content > p {
    padding: var(--space-4) 0;
    margin-bottom: var(--space-4);
    background: var(--color-bg);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #075985 0%, #0369a1 100%);
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    padding: var(--space-8) var(--space-6);
    margin-top: auto;
}

footer p {
    margin: 0;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --space-6: 1.5rem;
        --space-8: 2rem;
        --space-10: 2.5rem;
        --space-12: 3rem;
    }

    nav a {
        padding: var(--space-3) var(--space-4);
        font-size: 0.875rem;
    }

    .grid-container,
    .team-grid {
        gap: var(--space-4);
    }

    .contact-container {
        padding: var(--space-6);
    }
}

@media (max-width: 480px) {
    nav {
        text-align: center;
    }

    nav a {
        padding: var(--space-3);
        font-size: 0.8125rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
