/* =================================================================
   MAIN STYLES - Andrew Gibson Portfolio
   ================================================================= */

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

/* ===== BASE & RESET ===== */

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

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

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--text-primary);
}

h1 {
    font-size: var(--text-6xl);
    font-weight: var(--font-black);
}

h2 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-md);
}

h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-sm);
}

p {
    margin-bottom: var(--space-sm);
    line-height: var(--leading-relaxed);
}

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

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

/* ===== UTILITY CLASSES ===== */

.container {
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--section-padding);
}

.section-title {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-lg);
    font-weight: var(--font-black);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-cyan));
    border-radius: 2px;
}

.section-subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-3xl);
    font-weight: var(--font-regular);
}

/* ===== NAVIGATION ===== */

.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(12px);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: var(--z-sticky);
    border-bottom: 1px solid var(--border-primary);
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.nav-logo {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--accent-primary);
}

.nav-menu {
    display: flex;
    gap: var(--space-xl);
    list-style: none;
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: var(--font-medium);
    font-size: var(--text-base);
    transition: color var(--transition-base);
}

.nav-menu a:hover {
    color: var(--accent-primary);
}

/* Tag Navigation (replaces FAB) */
.tag-nav {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: var(--z-sticky);
    opacity: 0;
    transition: opacity var(--transition-base);
    display: flex;
    align-items: stretch;
}

.tag-nav.visible {
    opacity: 1;
}

.tag-nav-menu {
    background: rgba(30, 42, 64, 0.85);
    backdrop-filter: blur(12px);
    border: 2px solid var(--border-primary);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    padding: 0;
    box-shadow: -6px 0 25px rgba(0, 0, 0, 0.4);
    min-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    pointer-events: none;
}

.tag-nav.active .tag-nav-menu {
    max-width: 250px;
    opacity: 1;
    padding: var(--space-md) var(--space-md) var(--space-md) var(--space-lg);
    pointer-events: all;
}

.tag-nav-button {
    width: 50px;
    height: 180px;
    background: rgba(30, 42, 64, 0.85);
    backdrop-filter: blur(12px);
    border: 2px solid var(--border-primary);
    border-right: none;
    border-left: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    position: relative;
    border-radius: 0 0 0 0;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.tag-nav-button:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    box-shadow: -6px 0 20px rgba(59, 130, 246, 0.2);
}

.tag-nav-button svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-primary);
    transition: all var(--transition-base);
}

.tag-nav.active .tag-nav-button svg {
    transform: rotate(180deg);
}

.tag-nav-menu a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--text-primary);
    font-weight: var(--font-medium);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.tag-nav-menu a:hover {
    background: var(--bg-hover);
    color: var(--accent-cyan);
    padding-left: calc(var(--space-md) + 5px);
}

/* ===== BUTTONS ===== */

.btn {
    display: inline-flex;
    align-items: center;
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    font-family: var(--font-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-cyan));
    color: white;
    transform: translateY(-2px);
    box-shadow: 
        0 10px 25px rgba(59, 130, 246, 0.4),
        0 0 20px rgba(59, 130, 246, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-cyan));
    color: white;
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 
        0 10px 25px rgba(59, 130, 246, 0.4),
        0 0 20px rgba(59, 130, 246, 0.2);
}

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

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 60% 40%;
    align-items: center;
    gap: var(--space-3xl);
    padding: var(--space-3xl) var(--space-3xl);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-tagline {
    font-size: var(--text-2xl);
    color: var(--accent-primary);
    margin-bottom: var(--space-md);
    font-weight: var(--font-semibold);
}

.hero-description {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-xl);
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    margin-right: 3rem;
}

/* Hero Otter Image */
.hero-otter {
    width: 100%;
    max-width: 600px;
    height: auto;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Add subtle pulse to make it feel more alive */
.hero-otter:hover {
    animation: float 6s ease-in-out infinite, pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1) translateY(0px);
    }
    50% {
        transform: scale(1.02) translateY(-20px);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-otter {
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .hero-otter {
        max-width: 300px;
    }
    
    /* Reduce animation intensity on mobile */
    @keyframes float {
        0%, 100% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-10px);
        }
    }
}

/* ===== PROFESSIONAL WORK SECTION ===== */

.work-section {
    background: var(--bg-secondary);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    align-items: start;
}

.work-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: visible;
    border: 2px solid var(--border-primary);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    perspective: 1000px;
    position: relative;
    min-height: 620px;
}

.work-card.featured {
    min-height: 620px;
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.25);
    border-color: var(--accent-primary);
}

/* Card flip container */
.card-flip-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.work-card.flipped .card-flip-container {
    transform: rotateY(180deg);
}

/* Front and back faces */
.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
}

.card-front {
    display: flex;
    flex-direction: column;
}

.card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    padding: var(--space-xl);
    gap: var(--space-md);
}

.card-back-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-sm);
}

.card-back-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    line-height: var(--leading-tight);
}

.card-back-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: var(--text-2xl);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.card-back-close:hover {
    background: var(--bg-hover);
    color: var(--accent-primary);
}

.card-back-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.stat-item {
    background: var(--bg-tertiary);
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-primary);
}

.stat-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--accent-primary);
}

.card-back-summary {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
    flex-grow: 1;
}

.card-back-cta {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

/* Featured Card (Customer Service Programs) spans 2 columns */
.work-card.featured {
    grid-column: span 2;
}

/* ===== FEATURED CARD SPLIT ANIMATION ===== */
/* Override flip behavior for featured cards - use split-from-center curtain reveal */

.work-card.featured .card-flip-container {
    transform-style: flat;
    transition: none;
}

.work-card.featured.flipped .card-flip-container {
    transform: none;
}

/* Featured card uses curtain-reveal instead of flip */
.work-card.featured .card-front,
.work-card.featured .card-back {
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    transform: none;
}

/* Front card - splits from center using clip-path */
.work-card.featured .card-front {
    z-index: 2;
    /* Start fully visible */
    clip-path: inset(0 0 0 0);
    transition: clip-path 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease 0.3s;
}

/* When flipped, clip from center outward (reveal back) */
.work-card.featured.flipped .card-front {
    /* Clip to nothing - reveal from center */
    clip-path: inset(0 50% 0 50%);
    opacity: 0;
}

/* Back card - revealed behind the splitting front */
.work-card.featured .card-back {
    z-index: 1;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.4s ease 0.1s,
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.work-card.featured.flipped .card-back {
    opacity: 1;
    transform: scale(1);
}

/* Featured card back layout adjustments for wider card */
.work-card.featured .card-back {
    padding: var(--space-xl) var(--space-3xl);
}

.work-card.featured .card-back-stats {
    grid-template-columns: repeat(4, 1fr);
}

.work-card.featured .card-back-summary {
    font-size: var(--text-base);
    max-width: 800px;
}

.work-card.featured .card-back-header {
    margin-bottom: var(--space-md);
}

.work-card.featured .card-back-title {
    font-size: var(--text-2xl);
}

/* ===== END FEATURED CARD SPLIT ANIMATION ===== */

.work-card-image {
    height: 250px;
    background: var(--bg-tertiary);
    border-bottom: 2px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    overflow: hidden;
}

.work-card.featured .work-card-image-featured {
    height: 350px;
}

.work-card-image-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 20% 80%;
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 40%;
}

.work-card-content {
    padding: var(--space-xl);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.work-card-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.tech-tag {
    background: var(--bg-tertiary);
    color: var(--accent-secondary);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    border: 1px solid var(--border-primary);
}

.work-card-description {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
    flex-grow: 1;
}

/* Flip hint at bottom of card front */
.card-flip-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    color: var(--text-muted);
    font-size: var(--text-sm);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-primary);
    margin-top: auto;
    transition: color var(--transition-base);
}

.card-flip-hint svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-base);
}

.work-card:hover .card-flip-hint {
    color: var(--accent-primary);
}

.work-card:hover .card-flip-hint svg {
    transform: rotateY(180deg);
}

.work-card-cta {
    color: var(--accent-primary);
    font-weight: var(--font-semibold);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    transition: gap var(--transition-base);
}

.work-card-cta:hover {
    gap: var(--space-sm);
}

.work-card-cta::after {
    content: '→';
}

/* ===== EDUCATIONAL LAB SECTION ===== */

.educational-section {
    background: var(--bg-primary);
}

.simulator-context {
    background: var(--bg-card);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--accent-primary);
    border: 2px solid var(--border-primary);
    border-left-width: 4px;
    border-left-color: var(--accent-primary);
    margin-bottom: var(--space-xl);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.simulator-context h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-md);
}

.simulator-instructions {
    margin-top: var(--space-lg);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1));
    border-left: 4px solid var(--accent-cyan);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.instruction-icon {
    font-size: var(--text-3xl);
    flex-shrink: 0;
    line-height: 1;
}

.instruction-content {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

.instruction-content strong {
    color: var(--accent-cyan);
    font-weight: var(--font-semibold);
}

.simulator-embed {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    min-height: 750px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.simulator-embed iframe {
    width: 100%;
    height: 700px;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ===== ALPHA SHOWCASE SECTION ===== */

.alpha-section {
    background: linear-gradient(135deg, var(--bg-primary) 0%, #0f1419 50%, #1a1535 100%);
    position: relative;
    overflow: hidden;
}

.alpha-section .section-title {
    background: linear-gradient(135deg, var(--text-primary), var(--accent-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.alpha-section .section-title::after {
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.alpha-section .section-subtitle {
    position: relative;
    z-index: 2;
}

/* Animated background effect */
.alpha-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
}

.alpha-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    opacity: 0.5;
}

@keyframes pulse {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.1; }
    50% { transform: translate(10%, 10%) scale(1.1); opacity: 0.15; }
}

.alpha-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
    position: relative;
    z-index: 2;
}

.alpha-card {
    background: rgba(30, 42, 64, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid rgba(139, 92, 246, 0.3);
    position: relative;
    transition: all var(--transition-base);
    box-shadow: 
        0 0 20px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.alpha-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 0.5s;
}

.alpha-card:hover::before {
    left: 100%;
}

.alpha-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 0 30px rgba(139, 92, 246, 0.3),
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: var(--accent-purple);
}

.alpha-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(168, 85, 247, 0.95));
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 0 15px rgba(139, 92, 246, 0.5),
        0 4px 10px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alpha-card-image {
    height: 220px;
    background: linear-gradient(135deg, rgba(15, 20, 25, 0.9), rgba(26, 21, 53, 0.9));
    border-bottom: 2px solid rgba(139, 92, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
}

.alpha-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    position: relative;
    z-index: 1;
    padding: var(--space-sm);
}

.alpha-card-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.alpha-card-content {
    padding: var(--space-xl);
    position: relative;
    z-index: 1;
}

.alpha-card-content h3 {
    background: linear-gradient(135deg, var(--text-primary), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.about-section {
    background: var(--bg-primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
}

.about-content h3 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
}

.about-content p {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-md);
}

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

.contact-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    text-align: center;
}

.contact-description {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.contact-links a {
    font-size: var(--text-xl);
    color: var(--accent-primary);
    font-weight: var(--font-semibold);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    transition: all var(--transition-base);
}

.contact-links a:hover {
    color: var(--accent-secondary);
    transform: scale(1.05);
}

/* ===== ALPHA PROJECT MODALS ===== */

.alpha-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 28, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.alpha-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.alpha-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: all 0.3s ease;
    display: none;
}

.alpha-modal.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    display: block;
}

.alpha-modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-size: var(--text-xl);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.alpha-modal-close:hover {
    background: var(--accent-purple);
    color: white;
}

.alpha-modal-header {
    padding: var(--space-xl);
    padding-right: calc(var(--space-xl) + 44px);
    border-bottom: 1px solid var(--border-primary);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, transparent 100%);
}

.alpha-modal-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-primary));
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
}

.alpha-modal-header h3 {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin: 0;
    line-height: var(--leading-tight);
}

.alpha-modal-body {
    padding: var(--space-xl);
}

.alpha-modal-section {
    margin-bottom: var(--space-lg);
}

.alpha-modal-section:last-child {
    margin-bottom: 0;
}

.alpha-modal-section h4 {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--accent-purple);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.alpha-modal-section p {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin: 0;
}

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

.alpha-modal-list li {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    padding: var(--space-sm) 0;
    padding-left: var(--space-lg);
    position: relative;
}

.alpha-modal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-purple);
    border-radius: var(--radius-full);
}

.alpha-modal-list li strong {
    color: var(--text-primary);
}

.alpha-modal-tech {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-top: var(--space-lg);
}

.alpha-modal-tech h4 {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.alpha-modal-tech .tech-stack {
    gap: var(--space-xs);
}

/* Alpha card clickable styling */
.alpha-card[data-alpha-modal] {
    cursor: pointer;
}

.alpha-card[data-alpha-modal]:hover {
    transform: translateY(-4px);
}

.alpha-modal-trigger {
    background: transparent;
    border: 1px solid var(--accent-purple);
    color: var(--accent-purple);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: all var(--transition-base);
}

.alpha-modal-trigger:hover {
    background: var(--accent-purple);
    color: white;
}
