/* ============================================
   Anthony James Huben — Portfolio Styles
   Color palette inspired by resume:
     Deep green:  #0D3D2B
     Mid green:   #1A5A3C
     Accent:      #2A7A5A
     Light mint:  #A8E6CF
     Soft mint:   #88D4AB
   ============================================ */

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

:root {
    --deep: #0D3D2B;
    --mid: #1A5A3C;
    --accent: #2A7A5A;
    --mint: #A8E6CF;
    --soft-mint: #88D4AB;
    --dark: #222222;
    --gray: #555555;
    --light-gray: #666666;
    --bg: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 50%, #E8F5E9 100%);
    --bg-overlay: radial-gradient(ellipse at top left, rgba(168, 230, 207, 0.15), transparent 50%),
                  radial-gradient(ellipse at bottom right, rgba(136, 212, 171, 0.1), transparent 50%);
    --white: #FFFFFF;
    --shadow: 0 4px 24px rgba(13, 61, 43, 0.08);
    --shadow-lg: 0 8px 40px rgba(13, 61, 43, 0.12);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.25);
    --radius: 16px;
    --radius-lg: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Dark mode colors */
body.dark-mode {
    --deep: #A8E6CF;
    --mid: #88D4AB;
    --accent: #2A7A5A;
    --mint: #0D3D2B;
    --soft-mint: #1A5A3C;
    --dark: #E8F5E9;
    --gray: #B8C9BD;
    --light-gray: #9AB39F;
    --bg: linear-gradient(135deg, #0a0e14 0%, #151a23 50%, #0a0e14 100%);
    --bg-overlay: radial-gradient(ellipse at top left, rgba(168, 230, 207, 0.08), transparent 50%),
                  radial-gradient(ellipse at bottom right, rgba(42, 122, 90, 0.05), transparent 50%);
    --white: #1A1F26;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(26, 31, 38, 0.3);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation --- */
#navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1200px;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(50px) saturate(200%) brightness(1.1);
    -webkit-backdrop-filter: blur(50px) saturate(200%) brightness(1.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1),
                0 0 0 1px rgba(255, 255, 255, 0.15) inset,
                inset -1px -1px 3px rgba(0, 0, 0, 0.05),
                inset 1px 1px 3px rgba(255, 255, 255, 0.3);
    transition: all var(--transition-smooth);
}

body.dark-mode #navbar {
    background: linear-gradient(135deg, rgba(26, 31, 38, 0.35), rgba(26, 31, 38, 0.25));
    border: 1px solid rgba(168, 230, 207, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(168, 230, 207, 0.1) inset,
                inset -1px -1px 3px rgba(0, 0, 0, 0.3),
                inset 1px 1px 3px rgba(168, 230, 207, 0.1);
}

#navbar.scrolled {
    top: 8px;
    width: calc(100% - 64px);
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

body.dark-mode #navbar.scrolled {
    background: rgba(26, 31, 38, 0.4);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.nav-container {
    padding: 0 32px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 36px;
    height: 64px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: end;
}

.nav-logo {
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--deep);
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 36px;
    justify-content: center;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray);
    letter-spacing: 0.02em;
    transition: color var(--transition);
    position: relative;
}

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--deep);
    border-radius: 2px;
    transition: var(--transition);
}

/* Dark mode toggle */
.dark-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    color: var(--accent);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(42, 122, 90, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

body.dark-mode .dark-mode-toggle {
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.25), rgba(42, 122, 90, 0.15));
    border: 1.5px solid rgba(168, 230, 207, 0.4);
    box-shadow:
        0 8px 32px rgba(168, 230, 207, 0.3),
        inset 0 1px 0 rgba(168, 230, 207, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.dark-mode-toggle:hover {
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.5), rgba(42, 122, 90, 0.3));
    border-color: rgba(168, 230, 207, 0.8);
    transform: scale(1.08) translateY(-2px);
    box-shadow:
        0 12px 40px rgba(42, 122, 90, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

body.dark-mode .dark-mode-toggle:hover {
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.4), rgba(42, 122, 90, 0.25));
    box-shadow:
        0 12px 40px rgba(168, 230, 207, 0.5),
        inset 0 1px 0 rgba(168, 230, 207, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.dark-mode-toggle svg {
    width: 20px;
    height: 20px;
    position: absolute;
    transition: all var(--transition);
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

body.dark-mode .sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

body.dark-mode .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* --- Hero Section --- */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--deep) 0%, var(--mid) 50%, var(--accent) 100%);
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(168, 230, 207, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(136, 212, 171, 0.1) 0%, transparent 50%);
    z-index: 2;
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 3;
    padding: 0 24px;
}

.hero-greeting {
    font-size: 1rem;
    font-weight: 400;
    color: #A8E6CF;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.2s forwards;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(0, 0, 0, 0.6), 0 8px 16px rgba(0, 0, 0, 0.4);
}

.hero-name {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1.1;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.4s forwards;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 6px 20px rgba(0, 0, 0, 0.8), 0 12px 30px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: #88D4AB;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.6s forwards;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), 0 5px 16px rgba(0, 0, 0, 0.6), 0 10px 24px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(168, 230, 207, 0.7);
    letter-spacing: 0.05em;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.8s forwards;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(0, 0, 0, 0.6), 0 8px 16px rgba(0, 0, 0, 0.4);
}

.hero-cta {
    display: inline-block;
    padding: 16px 40px;
    border: 2px solid rgba(168, 230, 207, 0.8);
    color: #A8E6CF;
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.15), rgba(136, 212, 171, 0.05));
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    border-radius: 50px;
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 1.0s forwards;
    box-shadow:
        0 8px 32px rgba(168, 230, 207, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    margin-top: 56px;
}

.hero-cta:hover {
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.9), rgba(136, 212, 171, 0.7));
    color: #0D3D2B;
    border-color: rgba(168, 230, 207, 1);
    transform: translateY(-4px);
    box-shadow:
        0 16px 48px rgba(168, 230, 207, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.6),
        inset 0 -2px 0 rgba(42, 122, 90, 0.3);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeUp 0.8s 1.4s forwards;
}

.hero-scroll-indicator span {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(168, 230, 207, 0.5);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #A8E6CF, transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* --- Section Titles --- */
.section-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--deep);
    text-align: center;
    margin-bottom: 16px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin: 16px auto 0;
}

.section-intro {
    text-align: center;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 48px;
    font-size: 1.05rem;
}

/* --- About Section --- */
#about {
    padding: 140px 0 100px;
    position: relative;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(168, 230, 207, 0.2), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

body.dark-mode #about::before {
    background: radial-gradient(ellipse at center, rgba(168, 230, 207, 0.08), transparent 70%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    margin-top: 48px;
}

.about-text .about-lead {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--mid);
    margin-bottom: 20px;
    line-height: 1.6;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 16px;
}

.about-skills h3 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
    margin-top: 32px;
}

.about-skills h3:first-child {
    margin-top: 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(30px) saturate(200%) brightness(1.05);
    -webkit-backdrop-filter: blur(30px) saturate(200%) brightness(1.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(31, 38, 135, 0.08),
                0 0 0 1px rgba(255, 255, 255, 0.15) inset,
                inset -1px -1px 2px rgba(0, 0, 0, 0.03),
                inset 1px 1px 2px rgba(255, 255, 255, 0.2);
    transition: all var(--transition-smooth);
    text-align: center;
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(168, 230, 207, 0.4);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(42, 122, 90, 0.15),
                0 0 0 1px rgba(168, 230, 207, 0.3) inset;
}

body.dark-mode .skill-item:hover {
    background: linear-gradient(135deg, rgba(26, 31, 38, 0.45), rgba(26, 31, 38, 0.35));
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(168, 230, 207, 0.2) inset,
                inset -1px -1px 2px rgba(0, 0, 0, 0.2),
                inset 1px 1px 2px rgba(168, 230, 207, 0.1);
}

.skill-icon {
    width: 32px;
    height: 32px;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-icon svg {
    width: 100%;
    height: 100%;
}

.skill-icon.adobe {
    font-size: 1.5rem;
}

.skill-item span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
}

.skills-list li {
    padding: 8px 0;
    color: var(--gray);
    font-size: 0.925rem;
    border-bottom: 1px solid rgba(13, 61, 43, 0.06);
    position: relative;
    padding-left: 16px;
}

.skills-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--soft-mint);
}

/* --- Work / Portfolio --- */
#work {
    padding: 100px 0;
    position: relative;
}

#work::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 400px;
    background: radial-gradient(ellipse at top right, rgba(136, 212, 171, 0.15), transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

body.dark-mode #work::before {
    background: radial-gradient(ellipse at top right, rgba(42, 122, 90, 0.08), transparent 70%);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 28px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 16px rgba(31, 38, 135, 0.08),
                0 0 0 1px rgba(255, 255, 255, 0.15) inset,
                inset -1px -1px 2px rgba(0, 0, 0, 0.04),
                inset 1px 1px 2px rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 230, 207, 0.3), transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.filter-btn:hover::before {
    width: 200px;
    height: 200px;
}

body.dark-mode .filter-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(168, 230, 207, 0.4);
    color: var(--deep);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgba(42, 122, 90, 0.2),
                0 0 0 1px rgba(168, 230, 207, 0.3) inset;
}

body.dark-mode .filter-btn:hover {
    background: rgba(26, 31, 38, 0.5);
    border-color: rgba(168, 230, 207, 0.3);
    color: var(--deep);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(168, 230, 207, 0.2) inset;
}

.filter-btn.active {
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.6), rgba(136, 212, 171, 0.5));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(168, 230, 207, 0.7);
    color: #0D3D2B;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(42, 122, 90, 0.25),
                0 0 0 1px rgba(255, 255, 255, 0.4) inset;
}

body.dark-mode .filter-btn.active {
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.4), rgba(136, 212, 171, 0.3));
    border-color: rgba(168, 230, 207, 0.5);
    color: #0D3D2B;
    box-shadow: 0 8px 24px rgba(168, 230, 207, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.project-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.07));
    backdrop-filter: blur(50px) saturate(200%) brightness(1.05);
    -webkit-backdrop-filter: blur(50px) saturate(200%) brightness(1.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1),
                0 0 0 1px rgba(255, 255, 255, 0.15) inset,
                inset -1px -1px 3px rgba(0, 0, 0, 0.05),
                inset 1px 1px 3px rgba(255, 255, 255, 0.2);
    transition: all var(--transition-smooth);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
                rgba(168, 230, 207, 0.6),
                rgba(136, 212, 171, 0.6),
                rgba(42, 122, 90, 0.6));
    opacity: 0;
    transition: opacity var(--transition);
}

body.dark-mode .project-card {
    background: linear-gradient(135deg, rgba(26, 31, 38, 0.4), rgba(26, 31, 38, 0.25));
    border: 1px solid rgba(168, 230, 207, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(168, 230, 207, 0.1) inset,
                inset -1px -1px 3px rgba(0, 0, 0, 0.3),
                inset 1px 1px 3px rgba(168, 230, 207, 0.08);
}

.project-card:hover {
    transform: translateY(-12px) scale(1.01);
    border-color: rgba(168, 230, 207, 0.4);
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 24px 60px rgba(42, 122, 90, 0.2),
                0 0 0 1px rgba(168, 230, 207, 0.3) inset;
}

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

body.dark-mode .project-card:hover {
    border-color: rgba(168, 230, 207, 0.25);
    background: rgba(26, 31, 38, 0.5);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(168, 230, 207, 0.2) inset;
}

.project-card.hidden {
    display: none;
}

.project-video {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.project-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.project-info {
    padding: 24px;
}

.project-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(42, 122, 90, 0.08);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 12px;
}

.project-info h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--deep);
    margin-bottom: 12px;
}

.project-info p {
    font-size: 0.925rem;
    color: var(--gray);
    margin-bottom: 8px;
}

.project-role {
    font-size: 0.875rem !important;
    color: var(--mid) !important;
}

.project-meta {
    font-size: 0.8rem !important;
    color: var(--light-gray) !important;
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    color: var(--deep);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all var(--transition);
    box-shadow:
        0 6px 20px rgba(13, 61, 43, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

body.dark-mode .project-link {
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.2), rgba(42, 122, 90, 0.1));
    border: 1.5px solid rgba(168, 230, 207, 0.3);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(168, 230, 207, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.project-link:hover {
    border-color: rgba(136, 212, 171, 0.8);
    color: #FFFFFF;
    background: linear-gradient(135deg, rgba(136, 212, 171, 0.8), rgba(42, 122, 90, 0.6));
    transform: translateY(-2px);
    box-shadow:
        0 10px 28px rgba(42, 122, 90, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

body.dark-mode .project-link:hover {
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.5), rgba(42, 122, 90, 0.35));
    border-color: rgba(168, 230, 207, 0.7);
    color: #0D3D2B;
    box-shadow:
        0 10px 28px rgba(168, 230, 207, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.project-docs {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.docs-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mid);
    margin-right: 4px;
    width: 100%;
    margin-bottom: 4px;
}

.doc-tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(168, 230, 207, 0.3);
    color: var(--mid);
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 50px;
}

/* --- Art Section --- */
#art {
    padding: 100px 0;
    position: relative;
}

#art::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 450px;
    background: radial-gradient(ellipse at top right, rgba(168, 230, 207, 0.18), transparent 70%);
    filter: blur(85px);
    pointer-events: none;
}

body.dark-mode #art::before {
    background: radial-gradient(ellipse at top right, rgba(42, 122, 90, 0.09), transparent 70%);
}

.art-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 48px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.art-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.07));
    backdrop-filter: blur(50px) saturate(200%) brightness(1.05);
    -webkit-backdrop-filter: blur(50px) saturate(200%) brightness(1.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1),
                0 0 0 1px rgba(255, 255, 255, 0.15) inset,
                inset -1px -1px 3px rgba(0, 0, 0, 0.05),
                inset 1px 1px 3px rgba(255, 255, 255, 0.2);
    transition: all var(--transition-smooth);
    position: relative;
}

body.dark-mode .art-card {
    background: linear-gradient(135deg, rgba(26, 31, 38, 0.4), rgba(26, 31, 38, 0.25));
    border: 1px solid rgba(168, 230, 207, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(168, 230, 207, 0.1) inset,
                inset -1px -1px 3px rgba(0, 0, 0, 0.3),
                inset 1px 1px 3px rgba(168, 230, 207, 0.08);
}

.art-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 16px 48px rgba(42, 122, 90, 0.18),
                0 0 0 1px rgba(168, 230, 207, 0.3) inset;
    border-color: rgba(168, 230, 207, 0.35);
}

body.dark-mode .art-card:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(168, 230, 207, 0.2) inset;
    border-color: rgba(168, 230, 207, 0.25);
}

.art-image-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.08), rgba(136, 212, 171, 0.05));
}

body.dark-mode .art-image-wrapper {
    background: linear-gradient(135deg, rgba(13, 61, 43, 0.15), rgba(26, 90, 60, 0.1));
}

.art-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-smooth);
}

.art-card:hover .art-image-wrapper img {
    transform: scale(1.05);
}

.art-info {
    padding: 24px;
}

.art-info h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--deep);
    margin-bottom: 12px;
    line-height: 1.3;
}

.art-info p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gray);
}

.art-info em {
    font-style: italic;
    color: var(--mid);
}

body.dark-mode .art-info em {
    color: var(--soft-mint);
}

/* Responsive layout for art grid */
@media (max-width: 768px) {
    .art-grid {
        gap: 32px;
    }
}

/* --- Published Articles --- */
#articles {
    padding: 100px 0;
    position: relative;
}

#articles::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 350px;
    background: radial-gradient(ellipse at bottom left, rgba(168, 230, 207, 0.2), transparent 70%);
    filter: blur(70px);
    pointer-events: none;
}

body.dark-mode #articles::before {
    background: radial-gradient(ellipse at bottom left, rgba(42, 122, 90, 0.1), transparent 70%);
}

/* --- GitHub Projects --- */
#github {
    padding: 100px 0;
    position: relative;
}

#github::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(136, 212, 171, 0.15), transparent 70%);
    filter: blur(90px);
    pointer-events: none;
}

body.dark-mode #github::before {
    background: radial-gradient(ellipse at center, rgba(42, 122, 90, 0.08), transparent 70%);
}

.github-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.github-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.07));
    backdrop-filter: blur(50px) saturate(200%) brightness(1.05);
    -webkit-backdrop-filter: blur(50px) saturate(200%) brightness(1.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 24px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1),
                0 0 0 1px rgba(255, 255, 255, 0.15) inset,
                inset -1px -1px 3px rgba(0, 0, 0, 0.05),
                inset 1px 1px 3px rgba(255, 255, 255, 0.2);
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.github-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg,
                rgba(168, 230, 207, 0.6),
                rgba(136, 212, 171, 0.6),
                rgba(42, 122, 90, 0.6));
    opacity: 0.5;
    transition: opacity var(--transition);
}

body.dark-mode .github-card {
    background: linear-gradient(135deg, rgba(26, 31, 38, 0.4), rgba(26, 31, 38, 0.25));
    border: 1px solid rgba(168, 230, 207, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(168, 230, 207, 0.1) inset,
                inset -1px -1px 3px rgba(0, 0, 0, 0.3),
                inset 1px 1px 3px rgba(168, 230, 207, 0.08);
}

.github-card:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: rgba(168, 230, 207, 0.4);
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 24px 60px rgba(42, 122, 90, 0.2),
                0 0 0 1px rgba(168, 230, 207, 0.3) inset;
}

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

body.dark-mode .github-card:hover {
    border-color: rgba(168, 230, 207, 0.25);
    background: rgba(26, 31, 38, 0.5);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(168, 230, 207, 0.2) inset;
}

.github-icon {
    width: 40px;
    height: 40px;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.github-icon svg {
    width: 100%;
    height: 100%;
}

.github-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.github-card h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--deep);
    line-height: 1.3;
}

.github-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    white-space: nowrap;
}

.github-stars {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(42, 122, 90, 0.1);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
}

.github-description {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
}

.github-tech {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.github-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    color: var(--deep);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all var(--transition);
    margin-top: auto;
    box-shadow:
        0 6px 20px rgba(13, 61, 43, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

body.dark-mode .github-link {
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.2), rgba(42, 122, 90, 0.1));
    border: 1.5px solid rgba(168, 230, 207, 0.3);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(168, 230, 207, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.github-link:hover {
    border-color: rgba(168, 230, 207, 0.9);
    color: #FFFFFF;
    background: linear-gradient(135deg, rgba(136, 212, 171, 0.9), rgba(42, 122, 90, 0.7));
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    transform: translateY(-3px);
    box-shadow:
        0 12px 32px rgba(42, 122, 90, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

body.dark-mode .github-link:hover {
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.7), rgba(42, 122, 90, 0.5));
    border-color: rgba(168, 230, 207, 1);
    color: #0D3D2B;
    box-shadow:
        0 12px 32px rgba(168, 230, 207, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3);
}

.github-footer {
    text-align: center;
    margin-top: 48px;
}

.github-footer p {
    font-size: 1rem;
    color: var(--gray);
}

.github-profile-link {
    color: var(--accent);
    font-weight: 600;
    transition: color var(--transition);
}

.github-profile-link:hover {
    color: var(--deep);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.article-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.07));
    backdrop-filter: blur(50px) saturate(200%) brightness(1.05);
    -webkit-backdrop-filter: blur(50px) saturate(200%) brightness(1.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 32px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1),
                0 0 0 1px rgba(255, 255, 255, 0.15) inset,
                inset -1px -1px 3px rgba(0, 0, 0, 0.05),
                inset 1px 1px 3px rgba(255, 255, 255, 0.2);
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.article-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
                transparent,
                rgba(168, 230, 207, 0.5),
                transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

body.dark-mode .article-card {
    background: linear-gradient(135deg, rgba(26, 31, 38, 0.4), rgba(26, 31, 38, 0.25));
    border: 1px solid rgba(168, 230, 207, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(168, 230, 207, 0.1) inset,
                inset -1px -1px 3px rgba(0, 0, 0, 0.3),
                inset 1px 1px 3px rgba(168, 230, 207, 0.08);
}

.article-card:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: rgba(168, 230, 207, 0.4);
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 20px 50px rgba(42, 122, 90, 0.2),
                0 0 0 1px rgba(168, 230, 207, 0.3) inset;
}

.article-card:hover::after {
    opacity: 1;
}

body.dark-mode .article-card:hover {
    border-color: rgba(168, 230, 207, 0.25);
    background: rgba(26, 31, 38, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(168, 230, 207, 0.2) inset;
}

.article-card h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
}

.article-card a {
    color: var(--deep);
    text-decoration: none;
    transition: color var(--transition);
}

.article-card a:hover {
    color: var(--accent);
}

.article-publication {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
}

.article-excerpt {
    font-size: 0.925rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.6;
}

/* --- Experience Timeline --- */
#experience {
    padding: 100px 0;
    position: relative;
}

#experience::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 50%;
    height: 600px;
    background: radial-gradient(ellipse at right, rgba(168, 230, 207, 0.15), transparent 70%);
    filter: blur(85px);
    pointer-events: none;
}

body.dark-mode #experience::before {
    background: radial-gradient(ellipse at right, rgba(42, 122, 90, 0.08), transparent 70%);
}

.timeline {
    margin-top: 48px;
}

.timeline-section {
    margin-bottom: 48px;
}

.timeline-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--mint);
}

.timeline-item {
    position: relative;
    padding-left: 32px;
    padding-bottom: 40px;
    border-left: 2px solid rgba(168, 230, 207, 0.4);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg);
}

.timeline-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.07));
    backdrop-filter: blur(50px) saturate(200%) brightness(1.05);
    -webkit-backdrop-filter: blur(50px) saturate(200%) brightness(1.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1),
                0 0 0 1px rgba(255, 255, 255, 0.15) inset,
                inset -1px -1px 3px rgba(0, 0, 0, 0.05),
                inset 1px 1px 3px rgba(255, 255, 255, 0.2);
    transition: all var(--transition-smooth);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg,
                rgba(168, 230, 207, 0.6),
                rgba(136, 212, 171, 0.6));
    opacity: 0;
    transition: opacity var(--transition);
}

body.dark-mode .timeline-content {
    background: linear-gradient(135deg, rgba(26, 31, 38, 0.4), rgba(26, 31, 38, 0.25));
    border: 1px solid rgba(168, 230, 207, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(168, 230, 207, 0.1) inset,
                inset -1px -1px 3px rgba(0, 0, 0, 0.3),
                inset 1px 1px 3px rgba(168, 230, 207, 0.08);
}

.timeline-content:hover {
    transform: translateX(8px);
    border-color: rgba(168, 230, 207, 0.4);
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 16px 48px rgba(42, 122, 90, 0.18),
                0 0 0 1px rgba(168, 230, 207, 0.3) inset;
}

.timeline-content:hover::before {
    opacity: 1;
}

body.dark-mode .timeline-content:hover {
    border-color: rgba(168, 230, 207, 0.25);
    background: rgba(26, 31, 38, 0.5);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35),
                0 0 0 1px rgba(168, 230, 207, 0.2) inset;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.timeline-header h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark);
}

.timeline-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}

.timeline-company {
    font-size: 0.9rem;
    color: var(--light-gray);
    font-style: italic;
    margin-bottom: 16px;
}

.timeline-content ul {
    list-style: none;
}

.timeline-content li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--gray);
}

.timeline-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--soft-mint);
    font-weight: 700;
}

.timeline-projects {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeline-project {
    display: block;
    font-size: 0.85rem;
    color: var(--light-gray);
    padding-left: 18px;
    position: relative;
    transition: color var(--transition);
}

.timeline-project::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--soft-mint);
}

.timeline-project:hover {
    color: var(--accent);
}

/* --- Education --- */
#education {
    padding: 100px 0;
    position: relative;
}

#education::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 400px;
    background: radial-gradient(ellipse at top right, rgba(168, 230, 207, 0.18), transparent 70%);
    filter: blur(75px);
    pointer-events: none;
}

body.dark-mode #education::before {
    background: radial-gradient(ellipse at top right, rgba(42, 122, 90, 0.1), transparent 70%);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.education-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.07));
    backdrop-filter: blur(50px) saturate(200%) brightness(1.05);
    -webkit-backdrop-filter: blur(50px) saturate(200%) brightness(1.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1),
                0 0 0 1px rgba(255, 255, 255, 0.15) inset,
                inset -1px -1px 3px rgba(0, 0, 0, 0.05),
                inset 1px 1px 3px rgba(255, 255, 255, 0.2);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
                transparent,
                var(--accent),
                transparent);
    transition: opacity var(--transition);
}

body.dark-mode .education-card {
    background: linear-gradient(135deg, rgba(26, 31, 38, 0.4), rgba(26, 31, 38, 0.25));
    border: 1px solid rgba(168, 230, 207, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(168, 230, 207, 0.1) inset,
                inset -1px -1px 3px rgba(0, 0, 0, 0.3),
                inset 1px 1px 3px rgba(168, 230, 207, 0.08);
}

.education-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top, rgba(168, 230, 207, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.education-card:hover {
    transform: translateY(-14px) scale(1.02);
    border-color: rgba(168, 230, 207, 0.4);
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 28px 70px rgba(42, 122, 90, 0.25),
                0 0 0 1px rgba(168, 230, 207, 0.3) inset;
}

body.dark-mode .education-card:hover {
    border-color: rgba(168, 230, 207, 0.25);
    background: rgba(26, 31, 38, 0.5);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(168, 230, 207, 0.2) inset;
}

.education-card:hover::after {
    opacity: 1;
}

.education-card.animation-focus {
    border-top-color: #e74c3c;
}

.education-card.graduate-focus {
    border-top-color: #3498db;
}

.education-card.screenwriting-focus {
    border-top-color: #2ecc71;
}

.education-card.foundation-focus {
    border-top-color: #f39c12;
}

.education-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.education-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.education-icon svg {
    width: 100%;
    height: 100%;
}

.education-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--deep);
    margin-bottom: 8px;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.education-school {
    font-size: 0.875rem;
    color: var(--mid);
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.education-meta {
    font-size: 0.8rem;
    color: var(--light-gray);
    position: relative;
    z-index: 1;
}

.education-focus {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(42, 122, 90, 0.15);
    position: relative;
    z-index: 1;
}

/* --- Contact --- */
#contact {
    padding: 100px 0;
    position: relative;
}

#contact::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 350px;
    background: radial-gradient(ellipse at bottom, rgba(136, 212, 171, 0.2), transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

body.dark-mode #contact::before {
    background: radial-gradient(ellipse at bottom, rgba(42, 122, 90, 0.12), transparent 70%);
}

.contact-intro {
    text-align: center;
    color: var(--gray);
    max-width: 500px;
    margin: 0 auto 48px;
    font-size: 1.05rem;
}

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

.contact-card {
    text-align: center;
    padding: 40px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.07));
    backdrop-filter: blur(50px) saturate(200%) brightness(1.05);
    -webkit-backdrop-filter: blur(50px) saturate(200%) brightness(1.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1),
                0 0 0 1px rgba(255, 255, 255, 0.15) inset,
                inset -1px -1px 3px rgba(0, 0, 0, 0.05),
                inset 1px 1px 3px rgba(255, 255, 255, 0.2);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 230, 207, 0.2), transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.contact-card:hover::before {
    width: 300px;
    height: 300px;
}

body.dark-mode .contact-card {
    background: linear-gradient(135deg, rgba(26, 31, 38, 0.4), rgba(26, 31, 38, 0.25));
    border: 1px solid rgba(168, 230, 207, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(168, 230, 207, 0.1) inset,
                inset -1px -1px 3px rgba(0, 0, 0, 0.3),
                inset 1px 1px 3px rgba(168, 230, 207, 0.08);
}

.contact-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(168, 230, 207, 0.4);
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 24px 60px rgba(42, 122, 90, 0.2),
                0 0 0 1px rgba(168, 230, 207, 0.3) inset;
}

body.dark-mode .contact-card:hover {
    border-color: rgba(168, 230, 207, 0.25);
    background: rgba(26, 31, 38, 0.5);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(168, 230, 207, 0.2) inset;
}

.contact-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    color: var(--accent);
}

.contact-card h3 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 0.925rem;
    color: var(--gray);
}

/* --- Social Media Links --- */
.social-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
}

.social-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(30px) saturate(200%) brightness(1.05);
    -webkit-backdrop-filter: blur(30px) saturate(200%) brightness(1.05);
    color: var(--accent);
    box-shadow: 0 4px 16px rgba(31, 38, 135, 0.1),
                0 0 0 1px rgba(255, 255, 255, 0.15) inset,
                inset -1px -1px 2px rgba(0, 0, 0, 0.05),
                inset 1px 1px 2px rgba(255, 255, 255, 0.25);
    transition: all var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 230, 207, 0.3), transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.social-icon:hover::before {
    width: 100px;
    height: 100px;
}

.social-icon svg {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
}

.social-icon:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 16px 40px rgba(42, 122, 90, 0.25),
                0 0 0 1px rgba(168, 230, 207, 0.4) inset;
    color: var(--deep);
    border-color: rgba(168, 230, 207, 0.5);
}

body.dark-mode .social-icon:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(168, 230, 207, 0.3) inset;
}

/* --- Footer --- */
footer {
    padding: 32px 0;
    background: var(--deep);
    text-align: center;
}

body.dark-mode footer {
    background: #0a0e14;
}

footer p {
    font-size: 0.8rem;
    color: rgba(168, 230, 207, 0.8);
}

body.dark-mode footer p {
    color: rgba(168, 230, 207, 0.95);
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s, transform 0.7s;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .education-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .github-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #navbar {
        top: 8px;
        width: calc(100% - 32px);
        border-radius: var(--radius);
    }

    #navbar.scrolled {
        top: 8px;
        width: calc(100% - 32px);
    }

    .nav-container {
        grid-template-columns: auto auto;
        gap: 16px;
        height: 56px;
        padding: 0 20px;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 16px;
        right: 16px;
        background: var(--glass-bg);
        backdrop-filter: blur(40px) saturate(180%);
        -webkit-backdrop-filter: blur(40px) saturate(180%);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-lg);
        box-shadow: var(--glass-shadow);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 16px 0;
        display: none;
        grid-column: 1 / -1;
    }

    body.dark-mode .nav-links {
        background: var(--glass-bg);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 24px;
        width: 100%;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

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

    .timeline-header {
        flex-direction: column;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .education-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .education-grid {
        grid-template-columns: 1fr;
    }

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

    .filter-tabs {
        gap: 6px;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .education-card {
        padding: 24px 16px;
    }

    .education-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 16px;
    }

    .education-card h3 {
        font-size: 0.9rem;
    }
}
