/* ============================================
   ADDT Website — Purple × AMOLED Black Theme
   ============================================ */

/* --- CSS Variables --- */
:root {
    --bg-primary: #000000;
    --bg-secondary: #050508;
    --bg-surface: #0A0A0F;
    --bg-card: #0D0D14;
    --bg-card-hover: #111119;
    --border-color: rgba(139, 92, 246, 0.12);
    --border-glow: rgba(139, 92, 246, 0.25);
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;
    --purple-400: #A78BFA;
    --purple-500: #8B5CF6;
    --purple-600: #7C3AED;
    --purple-700: #6D28D9;
    --purple-glow: rgba(139, 92, 246, 0.4);
    --purple-glow-strong: rgba(139, 92, 246, 0.6);
    --gradient-primary: linear-gradient(135deg, #8B5CF6 0%, #A855F7 50%, #C084FC 100%);
    --gradient-dark: linear-gradient(135deg, #6D28D9 0%, #8B5CF6 100%);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--purple-500) var(--bg-primary);
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--purple-600);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--purple-500);
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--purple-600);
    color: white;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- Pill Rain Container (CSS-animated, GPU, zero lag) --- */
#pill-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.rain-pill {
    position: absolute;
    top: -60px;
    left: var(--x);
    font-size: var(--size);
    opacity: 0.45;
    animation: pillFall var(--dur) var(--delay) linear infinite;
    will-change: transform;
    filter: drop-shadow(0 0 6px rgba(168,85,247,0.5));
}

@keyframes pillFall {
    0% {
        transform: translateY(0) translateX(0) rotate(var(--rot));
        opacity: 0.15;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.45;
    }
    100% {
        transform: translateY(calc(100vh + 120px)) translateX(var(--drift)) rotate(var(--rot-end));
        opacity: 0.1;
    }
}

/* --- Navigation --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    padding: 16px 0;
}

#navbar.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    z-index: 1;
}

.logo-pill {
    font-size: 1.5rem;
    animation: pill-bounce 2s ease-in-out infinite;
}

@keyframes pill-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple-500);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

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

.nav-cta {
    padding: 10px 20px;
    background: var(--purple-600);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.nav-cta:hover {
    background: var(--purple-500);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
    transform: translateY(-1px);
}

.nav-pill-btn {
    padding: 8px 14px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--purple-400);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-pill-btn:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: var(--purple-500);
    color: white;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    transform: scale(1.05);
}

/* --- Button Glitch on Hover --- */
.btn-primary, .btn-secondary, .btn-download, .btn-source, .nav-cta, .nav-pill-btn, .dl-btn { position: relative; }

.btn-primary:hover, .btn-secondary:hover, .btn-download:hover, .btn-source:hover, .nav-cta:hover, .nav-pill-btn:hover, .dl-btn:hover {
    animation: btn-shake 0.2s steps(4) infinite;
}

.btn-primary:hover::before, .btn-secondary:hover::before, .btn-download:hover::before, .btn-source:hover::before, .nav-cta:hover::before, .nav-pill-btn:hover::before, .dl-btn:hover::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: #ff0044;
    mix-blend-mode: screen;
    animation: btn-red 0.2s steps(4) infinite;
    pointer-events: none;
    z-index: 2;
}

.btn-primary:hover::after, .btn-secondary:hover::after, .btn-download:hover::after, .btn-source:hover::after, .nav-cta:hover::after, .nav-pill-btn:hover::after, .dl-btn:hover::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: #00ddff;
    mix-blend-mode: screen;
    animation: btn-cyan 0.2s steps(4) infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes btn-shake {
    0%   { transform: translate(0,0) skew(0); }
    25%  { transform: translate(-6px,-3px) skew(-2deg); }
    50%  { transform: translate(7px,4px) skew(2deg); }
    75%  { transform: translate(-4px,-2px) skew(-1deg); }
    100% { transform: translate(3px,-3px) skew(0.5deg); }
}

@keyframes btn-red {
    0%   { clip-path: inset(0 0 70% 0); transform: translate(-8px,3px); opacity: .85; }
    25%  { clip-path: inset(30% 0 40% 0); transform: translate(5px,-5px); opacity: .85; }
    50%  { clip-path: inset(55% 0 15% 0); transform: translate(-10px,1px); opacity: .85; }
    75%  { clip-path: inset(15% 0 60% 0); transform: translate(7px,-2px); opacity: .85; }
    100% { clip-path: inset(0 0 75% 0); transform: translate(-5px,4px); opacity: .85; }
}

@keyframes btn-cyan {
    0%   { clip-path: inset(70% 0 0 0); transform: translate(8px,-3px); opacity: .85; }
    25%  { clip-path: inset(40% 0 30% 0); transform: translate(-5px,5px); opacity: .85; }
    50%  { clip-path: inset(15% 0 55% 0); transform: translate(10px,-1px); opacity: .85; }
    75%  { clip-path: inset(60% 0 15% 0); transform: translate(-7px,2px); opacity: .85; }
    100% { clip-path: inset(75% 0 0 0); transform: translate(5px,-4px); opacity: .85; }
}

/* --- Section Common --- */
section {
    position: relative;
    z-index: 1;
    padding: 120px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.section-icon {
    display: inline-block;
    margin-right: 8px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
}

/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 500;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--purple-500);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7); }
    50% { box-shadow: 0 0 0 8px rgba(139, 92, 246, 0); }
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 20px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.3));
    position: relative;
    display: inline-block;
}

.gradient-text::before,
.gradient-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    pointer-events: none;
}
.gradient-text::before { animation: glitch-r 3s infinite; }
.gradient-text::after  { animation: glitch-c 3s infinite; }

@keyframes glitch-r {
    0%,85%,92%,100% { opacity:0; transform:translate(0); }
    86% { opacity:.9; transform:translate(-6px,3px); -webkit-text-fill-color:#ff0044; }
    87% { opacity:.9; transform:translate(-8px,-2px); -webkit-text-fill-color:#ff0044; }
    88% { opacity:.5; transform:translate(-3px,5px); -webkit-text-fill-color:#ff0044; }
}
@keyframes glitch-c {
    0%,85%,92%,100% { opacity:0; transform:translate(0); }
    86% { opacity:.9; transform:translate(6px,-3px); -webkit-text-fill-color:#00ddff; }
    87% { opacity:.9; transform:translate(8px,2px); -webkit-text-fill-color:#00ddff; }
    88% { opacity:.5; transform:translate(3px,-5px); -webkit-text-fill-color:#00ddff; }
}
@keyframes glitch-shake {
    0%,83%,90%,100% { transform:translate(0); }
    84% { transform:translate(-8px,-3px); }
    85% { transform:translate(10px,4px) skew(-2deg); }
    86% { transform:translate(-12px,-5px) skew(2deg); }
    87% { transform:translate(6px,6px) skew(-1deg); }
    88% { transform:translate(-4px,-2px); }
    89% { transform:translate(2px,1px); }
}
.glitch-target { animation: glitch-shake 3s infinite; }

.hero-sub {
    color: var(--text-primary);
}

.hero-tagline {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--purple-400);
    margin-bottom: 16px;
    font-weight: 500;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--purple-600);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.3);
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
}

.btn-primary:hover {
    background: var(--purple-500);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Visual (orbs) */
.hero-visual {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--purple-600);
    top: -100px;
    right: -100px;
    animation: orb-drift 8s ease-in-out infinite;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--purple-700);
    bottom: -80px;
    left: -80px;
    animation: orb-drift 10s ease-in-out infinite reverse;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: #A855F7;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orb-pulse 4s ease-in-out infinite;
}

@keyframes orb-drift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

@keyframes orb-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.1; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.2; }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    z-index: 2;
    animation: fade-in-up 1s ease 1.5s both;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--purple-500);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* --- About Section --- */
#about {
    /* transparent — pills visible through it */
}

.about-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(139, 92, 246, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
}

.about-card:hover::before {
    opacity: 1;
}

.about-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(139, 92, 246, 0.1);
}

.about-card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.about-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.about-card strong {
    color: var(--purple-400);
}

.about-card em {
    color: var(--text-primary);
    font-style: italic;
}

/* --- Projects Section --- */
.projects-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(139, 92, 246, 0.08), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.project-card:hover .project-card-glow {
    opacity: 1;
}

.project-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(139, 92, 246, 0.08);
}

.project-card.featured {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.06);
    grid-column: span 1;
}

.project-card.more-projects {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.project-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    z-index: 1;
}

.featured-badge {
    background: linear-gradient(135deg, #8B5CF6, #A855F7);
    color: white;
    animation: badge-glow 2s ease-in-out infinite;
}

@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(139, 92, 246, 0.5); }
    50% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.8); }
}

.project-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-icon {
    font-size: 2rem;
    line-height: 1;
}

.project-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.project-ver {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
    flex: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-tech span {
    padding: 4px 10px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--purple-400);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

.project-links {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--purple-600);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.btn-download:hover {
    background: var(--purple-500);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
    transform: translateY(-1px);
}

.btn-source {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition);
}

.btn-source:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

/* --- Team Section --- */
#team {
    /* transparent — pills visible through it */
}

.team-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    gap: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(139, 92, 246, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
}

.team-card:hover::before {
    opacity: 1;
}

.team-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
}

.team-avatar {
    flex-shrink: 0;
    position: relative;
}

.avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.avatar-ring {
    position: absolute;
    inset: -3px;
    border-radius: 14px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.team-card:hover .avatar-ring {
    opacity: 0.3;
}

.team-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.team-role {
    font-size: 0.82rem;
    color: var(--purple-400);
    font-weight: 600;
}

.team-handle {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-bottom: 8px;
}

.team-info p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.team-info em {
    color: var(--text-primary);
    font-style: italic;
}

/* --- Patients Section --- */
.patients-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.patient-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    text-align: center;
    transition: var(--transition);
}

.patient-item:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.08);
}

.patient-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.patient-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --- Connect Section --- */
.connect-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.connect-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.connect-card:hover {
    border-color: var(--purple-500);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
    transform: translateY(-4px);
}

.connect-icon {
    color: var(--purple-400);
    font-size: 2rem;
    transition: var(--transition);
}

.connect-card:hover .connect-icon {
    color: var(--purple-300);
    transform: scale(1.1);
}

.connect-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.connect-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.connect-link {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--purple-400);
    padding: 4px 12px;
    background: rgba(139, 92, 246, 0.08);
    border-radius: 100px;
}

/* --- Footer --- */
footer {
    position: relative;
    z-index: 1;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 60px 24px 32px;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--purple-400);
}

.footer-disclaimer {
    max-width: 600px;
}

.footer-disclaimer p {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
    line-height: 1.5;
}

.footer-disclaimer strong {
    color: var(--purple-400);
}

.footer-bottom {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    width: 100%;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; max-width: 600px; }
    .connect-grid { grid-template-columns: 1fr; max-width: 400px; }
    .patients-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .projects-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .patients-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; align-items: center; }

    section { padding: 80px 16px; }
    .section-title { font-size: 2rem; }

    .hero-title { font-size: clamp(2.2rem, 8vw, 3.5rem); }
    .hero-tagline { font-size: 1.1rem; }

    .floating-pill { display: none; }
}

@media (max-width: 480px) {
    .team-card { flex-direction: column; align-items: center; text-align: center; }
    .team-avatar { margin-bottom: 8px; }
    .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
}
