/* ==========================================
   MODERN 2025 DESIGN - GLASSMORPHISM STYLE
   ========================================== */

:root {
    /* Modern Monochrome Palette */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --bg-hover: #2d2d2d;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-tertiary: #a0a0a0;
    --text-muted: #707070;

    /* Accent Color - Electric Cyan */
    --accent-primary: #00d9ff;
    --accent-hover: #00b8d9;
    --accent-glow: rgba(0, 217, 255, 0.4);

    /* Glassmorphism */
    --glass-bg: rgba(26, 26, 26, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.3);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Transitions - Modern 2025 easing curves */
    --transition-fast: 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-normal: 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 600ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-spring: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Light Theme - Blanc et Turquoise 2025 */
body.light-theme {
    --bg-primary: #ffffff;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f8f9fa;
    --bg-hover: #f0f0f0;

    --text-primary: #0a0a0a;
    --text-secondary: #2a2a2a;
    --text-tertiary: #505050;
    --text-muted: #808080;

    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 217, 255, 0.15);
    --glass-shadow: rgba(0, 217, 255, 0.08);
}

/* ==========================================
   BASE STYLES
   ========================================== */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background var(--transition-normal), color var(--transition-normal);
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: var(--spacing-lg); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: var(--spacing-md); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: var(--spacing-sm); }
h4 { font-size: 1.25rem; margin-bottom: var(--spacing-sm); }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* ==========================================
   FLOATING NAVBAR - STRIPE/VERCEL STYLE
   ========================================== */

.floating-nav {
    position: fixed;
    top: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.floating-nav-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs);
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 20px rgba(0, 217, 255, 0.05);
}

/* Light theme navbar - Blanc avec accent turquoise */
body.light-theme .floating-nav-content {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 217, 255, 0.15);
    box-shadow:
        0 4px 16px rgba(0, 217, 255, 0.1),
        0 0 0 1px rgba(0, 217, 255, 0.08) inset;
}

.nav-link {
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-tertiary);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    border-radius: 50px;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-tertiary);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: -1;
}

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

.nav-link:hover::before {
    opacity: 1;
}

.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::before {
    opacity: 1;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
}

.lang-toggle {
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: var(--spacing-xs);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    transition: all 0.2s ease;
    margin-left: var(--spacing-xs);
}

.lang-toggle:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
}

.lang-text {
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: var(--spacing-xs);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    transition: all 0.2s ease;
    margin-left: var(--spacing-xs);
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
}

.theme-toggle svg {
    color: var(--text-primary);
}

.moon-icon {
    display: none;
}

body.light-theme .sun-icon {
    display: none;
}

body.light-theme .moon-icon {
    display: block;
}

/* ==========================================
   MAIN CONTENT
   ========================================== */

main {
    margin-top: 0;
    position: relative;
}

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl) var(--spacing-md);
    position: relative;
}

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

.hero-content {
    text-align: center;
}

.hero-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: var(--spacing-md);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
}

.site-name-animation {
    display: inline-block;
    position: relative;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* All base types use the same blue/cyan color */
.site-name-animation[data-base="binary"],
.site-name-animation[data-base="hexadecimal"],
.site-name-animation[data-base="octal"],
.site-name-animation[data-base="square"],
.site-name-animation[data-base="square-root"],
.site-name-animation[data-base="subtraction"],
.site-name-animation[data-base="division"],
.site-name-animation[data-base="multiplication"],
.site-name-animation[data-base="power"],
.site-name-animation[data-base="roman"] {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.site-name-animation::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: smoothBlink 2s ease-in-out infinite;
}

.hero-tagline {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--text-tertiary);
    font-weight: 400;
    margin-bottom: var(--spacing-xl);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    align-items: center;
}

.cta-button {
    padding: 0.75rem 1.75rem;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.15), rgba(0, 217, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover {
    background: rgba(0, 217, 255, 0.15);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 24px rgba(0, 217, 255, 0.2);
    transform: translateY(-2px);
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Light theme CTA buttons */
body.light-theme .cta-button {
    background: rgba(0, 217, 255, 0.12);
    border: 1px solid rgba(0, 217, 255, 0.3);
    color: var(--text-primary);
}

body.light-theme .cta-button:hover {
    background: rgba(0, 217, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 217, 255, 0.25);
}

body.light-theme .cta-secondary {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

body.light-theme .cta-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.3);
}

@keyframes smoothBlink {
    0%, 45% { opacity: 1; }
    50%, 95% { opacity: 0; }
    100% { opacity: 1; }
}

.hero-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.info-box,
.projects-preview,
.contact-preview {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 8px 32px var(--glass-shadow);
    transition: border-color 0.2s ease;
}

.info-box:hover,
.projects-preview:hover,
.contact-preview:hover {
    border-color: var(--accent-primary);
}

.info-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: var(--spacing-md);
    text-transform: capitalize;
}

.info-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

.project-links,
.contact-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.quick-link {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
}

.quick-link:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* ==========================================
   BENTO GRID LAYOUT - 2025 STYLE
   ========================================== */

.section-container {
    max-width: 1400px;
    margin: var(--spacing-2xl) auto;
    padding: 0 var(--spacing-xl);
}

/* Bento Grid System - Ultra 2025 Style */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

/* Skills section gets horizontal layout */
#skills .bento-grid {
    display: flex;
    flex-direction: column;
}

#skills .bento-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

#skills .skill-header {
    margin-bottom: 0;
}

#skills .skill-description {
    margin: 0;
}

.bento-item {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: var(--spacing-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.bento-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(0, 217, 255, 0.2),
        rgba(0, 217, 255, 0.05),
        rgba(0, 217, 255, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento-item:hover {
    border-color: rgba(0, 217, 255, 0.4);
    box-shadow:
        0 8px 24px rgba(0, 217, 255, 0.12),
        0 0 0 1px rgba(0, 217, 255, 0.2) inset;
    transform: translateY(-2px);
}

.bento-item:hover::before {
    opacity: 1;
}

/* Light theme cards - Blanc avec accent turquoise */
body.light-theme .bento-item {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 217, 255, 0.15);
    box-shadow:
        0 2px 8px rgba(0, 217, 255, 0.08),
        0 0 0 1px rgba(0, 217, 255, 0.05) inset;
}

body.light-theme .bento-item:hover {
    border-color: rgba(0, 217, 255, 0.4);
    box-shadow:
        0 8px 24px rgba(0, 217, 255, 0.15),
        0 0 0 1px rgba(0, 217, 255, 0.3) inset;
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    #skills .bento-item {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    #skills .skill-header {
        margin-bottom: var(--spacing-sm);
    }

    .bento-item {
        padding: var(--spacing-md);
    }
}

.terminal-window {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    overflow: hidden;
    margin: var(--spacing-xl) 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.terminal-window::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(0, 217, 255, 0.2),
        rgba(0, 217, 255, 0.05),
        rgba(0, 217, 255, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.terminal-window:hover {
    border-color: rgba(0, 217, 255, 0.4);
    box-shadow:
        0 8px 24px rgba(0, 217, 255, 0.12),
        0 0 0 1px rgba(0, 217, 255, 0.2) inset;
    transform: translateY(-2px);
}

.terminal-window:hover::before {
    opacity: 1;
}

/* Light theme terminal window */
body.light-theme .terminal-window {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 217, 255, 0.15);
    box-shadow:
        0 2px 8px rgba(0, 217, 255, 0.08),
        0 0 0 1px rgba(0, 217, 255, 0.05) inset;
}

body.light-theme .terminal-window:hover {
    border-color: rgba(0, 217, 255, 0.4);
    box-shadow:
        0 8px 24px rgba(0, 217, 255, 0.15),
        0 0 0 1px rgba(0, 217, 255, 0.3) inset;
}

.terminal-header {
    background: transparent;
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-prompt {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.terminal-body {
    padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-2xl) var(--spacing-xl);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.section-number {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--accent-primary);
    font-family: 'JetBrains Mono', monospace;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */

.brendan-style {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: var(--spacing-lg) var(--spacing-xl);
    line-height: 1.6;
}

/* Light theme brendan-style */
body.light-theme .brendan-style {
    background: rgba(0, 217, 255, 0.03);
    border: 1px solid rgba(0, 217, 255, 0.1);
}

.brendan-style strong {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 1rem;
    display: block;
    margin-bottom: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.brendan-style p {
    margin: var(--spacing-sm) 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.simple-hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent);
    margin: var(--spacing-md) 0;
}

.interest-list {
    list-style: none;
    margin: var(--spacing-sm) 0;
    padding: 0;
    display: grid;
    gap: 0.25rem;
}

.interest-list li {
    padding: 0.25rem var(--spacing-sm);
    color: var(--text-secondary);
    position: relative;
    border-radius: var(--radius-sm);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.9rem;
}

.interest-list li::before {
    content: '●';
    color: var(--accent-primary);
    font-size: 0.5rem;
    opacity: 0.6;
}

.interest-list li:hover {
    color: var(--text-primary);
}

/* ==========================================
   SKILLS SECTION
   ========================================== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.skill-category {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: var(--spacing-xl);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-category:hover {
    border-color: rgba(0, 217, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.08);
}

/* Light theme skill-category */
body.light-theme .skill-category {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 217, 255, 0.12);
}

body.light-theme .skill-category:hover {
    border-color: rgba(0, 217, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.12);
}

.skill-header {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.skill-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-item {
    padding: 0.35rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==========================================
   PROJECTS SECTION
   ========================================== */

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: var(--spacing-sm) 0;
}

.tech-tag {
    padding: 0.35rem 0.75rem;
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 6px;
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: rgba(0, 217, 255, 0.15);
    border-color: var(--accent-primary);
}

/* Light theme tech tags */
body.light-theme .tech-tag {
    background: rgba(0, 217, 255, 0.12);
    border: 1px solid rgba(0, 217, 255, 0.25);
}

body.light-theme .tech-tag:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--accent-primary);
}

.project-description {
    color: var(--text-secondary);
    margin: var(--spacing-sm) 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.project-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.skill-link {
    position: relative;
    padding: 0.5rem 1rem;
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.skill-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(0, 217, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-link:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: rgba(0, 217, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.2);
    transform: translateY(-1px);
}

.skill-link:hover::before {
    opacity: 1;
}

/* Light theme buttons */
body.light-theme .skill-link {
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid rgba(0, 217, 255, 0.25);
    color: var(--text-primary);
}

body.light-theme .skill-link:hover {
    background: rgba(0, 217, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.25);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */

.contact-links-modern {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.contact-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.15);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 24px rgba(0, 217, 255, 0.15);
    transform: translateX(8px);
}

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

.contact-icon {
    color: var(--accent-primary);
    flex-shrink: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.contact-platform {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.contact-username {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.contact-arrow {
    color: var(--accent-primary);
    opacity: 0;
    transform: translate(-8px, 0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card:hover .contact-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

/* Light theme contact cards */
body.light-theme .contact-card {
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid rgba(0, 217, 255, 0.2);
}

body.light-theme .contact-card:hover {
    background: rgba(0, 217, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 217, 255, 0.2);
}

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

.modern-footer {
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-2xl) var(--spacing-xl);
    margin-top: var(--spacing-2xl);
    text-align: center;
    position: relative;
}

/* Light theme footer */
body.light-theme .modern-footer {
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(0, 217, 255, 0.15);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--accent-primary);
}

.footer-copyright {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.back-to-top {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 48px;
    height: 48px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 50%;
    color: var(--accent-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 24px rgba(0, 217, 255, 0.3);
    transform: translateY(-4px);
}

/* Light theme back to top */
body.light-theme .back-to-top {
    background: rgba(0, 217, 255, 0.15);
    border: 1px solid rgba(0, 217, 255, 0.35);
}

body.light-theme .back-to-top:hover {
    background: rgba(0, 217, 255, 0.25);
    box-shadow: 0 8px 24px rgba(0, 217, 255, 0.3);
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), rgba(0, 217, 255, 0.5));
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease;
}

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

@media (max-width: 1024px) {
    :root {
        font-size: 15px;
    }

    .header-content,
    .nav-content {
        padding: var(--spacing-md) var(--spacing-lg);
    }

    .section-container {
        padding: 0 var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }

    .floating-nav-content {
        padding: 0.35rem;
        gap: 0.25rem;
    }

    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .theme-toggle {
        width: 32px;
        height: 32px;
    }

    .hero {
        padding: var(--spacing-2xl) var(--spacing-md);
    }

    .hero-name {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
    }

    .section-container {
        padding: 0 var(--spacing-md);
        margin: var(--spacing-xl) auto;
    }

    .terminal-body {
        padding: var(--spacing-lg);
    }

    .brendan-style {
        padding: var(--spacing-md) var(--spacing-lg);
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .project-links {
        flex-direction: column;
    }

    .tech-tags {
        gap: 0.35rem;
    }

    .tech-tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: var(--spacing-md);
        right: var(--spacing-md);
    }

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .theme-toggle {
        width: 36px;
        height: 36px;
    }

    .info-box,
    .projects-preview,
    .contact-preview {
        padding: var(--spacing-md);
    }

    .quick-link {
        font-size: 0.85rem;
    }
}

/* ==========================================
   ANIMATIONS & UTILITIES
   ========================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn var(--transition-slow) ease-out;
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

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

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
