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

/* CSS Variables for Light/Dark Mode */
:root {
    --bg-primary: #f5f5f5;
    --bg-secondary: #fff;
    --bg-card: #fff;
    --bg-hover: #242424;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-tertiary: #444;
    --text-muted: #999;
    --border-color: #e0e0e0;
    --border-hover: #DA1D1D;
    --shadow-sm: rgba(0, 0, 0, 0.05);
    --shadow-md: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(218, 29, 29, 0.2);
    --gradient-start: #fff;
    --gradient-end: #f5f5f5;
    --code-bg: #1a1a1a;
    --metric-bg: #f5f5f5;
}

[data-theme="dark"] {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-card: #1a1a1a;
    --bg-hover: #DA1D1D;
    --text-primary: #e5e5e5;
    --text-secondary: #a1a1a1;
    --text-tertiary: #d4d4d4;
    --text-muted: #737373;
    --border-color: #2a2a2a;
    --border-hover: #DA1D1D;
    --shadow-sm: rgba(0, 0, 0, 0.3);
    --shadow-md: rgba(0, 0, 0, 0.4);
    --shadow-lg: rgba(218, 29, 29, 0.3);
    --gradient-start: #1a1a1a;
    --gradient-end: #0f0f0f;
    --code-bg: #0a0a0a;
    --metric-bg: #242424;
}

/* Base Styles */
body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.dark-mode-toggle:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
    color: #fff;
    transform: scale(1.1);
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 8px var(--shadow-sm);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .navbar {
    background: rgba(26, 26, 26, 0.95);
}

.navbar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-left .nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.3em;
    transition: color 0.3s ease;
}

.nav-logo-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #DA1D1D;
    object-fit: cover;
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 0.95em;
}

.nav-link:hover,
.nav-link.active {
    color: #DA1D1D;
}

.contact-nav-btn {
    background: linear-gradient(135deg, #DA1D1D 0%, #9A0101 100%);
    color: #fff;
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(218, 29, 29, 0.2);
}

.contact-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(218, 29, 29, 0.3);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 80px 40px 60px;
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    transition: background 0.3s ease;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-profile {
    position: relative;
}

.profile-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--bg-secondary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
    transition: border-color 0.3s ease;
}

.profile-gradient {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(218, 29, 29, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.hero-text {
    flex: 1;
    min-width: 400px;
}

.hero-title {
    font-size: 4em;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #DA1D1D 0%, #9A0101 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5em;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

.hero-description {
    font-size: 1.15em;
    line-height: 1.8;
    color: var(--text-tertiary);
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

.hero-highlight {
    color: #DA1D1D;
    font-weight: 600;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5em;
    font-weight: 700;
    color: #DA1D1D;
    display: block;
}

.stat-label {
    font-size: 0.9em;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

/* Section Titles */
.section-title {
    font-size: 2em;
    margin-bottom: 30px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 60px;
    transition: color 0.3s ease;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-color) 0%, transparent 100%);
}

/* Featured Games */
.featured-section {
    margin-bottom: 80px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Game Card Container */
.game-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 480px;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 24px var(--shadow-lg);
}

/* Thumbnail */
.game-thumbnail {
    width: 100%;
    height: 320px;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    background-color: #f5f5f5;
    flex-shrink: 0;
}

[data-theme="dark"] .game-thumbnail {
    background-color: #2a2a2a;
}

/* Game Info Section - Now slides up */
.game-info {
    position: relative;
    padding: 16px 20px 20px 20px;
    background: var(--bg-card);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.game-card:hover .game-info {
    transform: translateY(-320px);
    /* Adjusted to leave spacing at bottom too */
}

/* Content below the visible area */
.game-info-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Always visible header */
.game-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.game-role-tag {
    display: inline-block;
    background: #DA1D1D;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 500;
    width: fit-content;
    align-self: flex-start;
}

.game-title {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    transition: color 0.3s ease;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-owner {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin: 0;
    transition: color 0.3s ease;
}

/* Default playing count - visible by default */
.game-metrics-default {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 6px;
}

.metric-playing-default {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-online {
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

.status-offline {
    background: #94a3b8;
}

.playing-count {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.playing-label {
    font-size: 0.75em;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hidden content that reveals on hover */
.game-expanded-content {
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.game-timeline {
    color: var(--text-secondary);
    font-size: 0.85em;
    transition: color 0.3s ease;
}

.game-description {
    color: var(--text-tertiary);
    line-height: 1.5;
    font-size: 0.95em;
    transition: color 0.3s ease;
    min-height: 5.7em;
    /* Fixed height for ~4 lines */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Full metrics - three boxes horizontal */
.game-metrics-full {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.metric-box {
    padding: 12px 8px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.metric-box:hover::before {
    opacity: 0.15;
}

/* Visits - Blue */
.metric-visits {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.metric-visits::before {
    background: white;
}

/* Favorites - Golden */
.metric-favorites {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.metric-favorites::before {
    background: white;
}

/* Like Ratio - Green */
.metric-likes {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
}

.metric-likes::before {
    background: white;
}

.metric-icon {
    font-size: 1.2em;
    margin-bottom: 4px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-icon svg {
    width: 20px;
    height: 20px;
}

.metric-value {
    font-size: 1.1em;
    font-weight: 700;
    color: white;
    margin-bottom: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.metric-label {
    font-size: 0.6em;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
}

/* Play Button */
.game-actions {
    margin-top: 8px;
}

.btn-play {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #10b981 0%, #22c55e 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1em;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
}

.play-icon {
    font-size: 1.2em;
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-play:hover .play-icon {
    transform: translateX(4px);
}

/* Remove old overlay styles */
.game-overlay {
    display: none;
}

/* Single row for all three metrics - HORIZONTAL */
.metric-row-three {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.metric-box {
    padding: 12px 8px;
    /* Smaller padding */
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.metric-box:hover::before {
    opacity: 0.15;
}

/* Visits - Blue */
.metric-visits {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
}

.metric-visits::before {
    background: white;
}

/* Playing - Blue (removed, no longer needed) */

/* Favorites - Golden */
.metric-favorites {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    border: none;
}

.metric-favorites::before {
    background: white;
}

/* Like Ratio - Green */
.metric-likes {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
    border: none;
}

.metric-likes::before {
    background: white;
}

.metric-icon {
    font-size: 1.2em;
    margin-bottom: 4px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-icon svg {
    width: 20px;
    height: 20px;
}

.metric-value {
    font-size: 1.1em;
    /* Slightly smaller */
    font-weight: 700;
    color: white;
    margin-bottom: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.metric-label {
    font-size: 0.6em;
    /* Slightly smaller */
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
}

/* Play Button - Larger & More Prominent */
.overlay-actions {
    margin-top: 12px;
    padding-top: 0;
}

.btn-play {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 20px 32px;
    /* Taller button */
    background: linear-gradient(135deg, #10b981 0%, #22c55e 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1em;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
}

.btn-play:active {
    transform: translateY(0);
}

.play-icon {
    font-size: 1.2em;
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-play:hover .play-icon {
    transform: translateX(4px);
}

/* Dark mode adjustments */
[data-theme="dark"] .game-thumbnail {
    background-color: #2a2a2a;
}

[data-theme="dark"] .playing-count {
    color: var(--text-primary);
}

/* Loading and Error States */
.loading,
.error {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 1.1em;
}

.error {
    color: #DA1D1D;
}

/* Buttons */
.btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    font-size: 0.9em;
}

.btn-primary {
    background: linear-gradient(135deg, #00E676 0%, #00C853 100%) !important;
    color: #fff !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    padding: 16px 40px !important;
    border-radius: 12px !important;
    font-size: 0.95em;
    max-width: 200px;
    margin: 0 auto;
}

.btn-primary::before {
    content: '▶';
    font-size: 0.9em;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00C853 0%, #00B248 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 230, 118, 0.4) !important;
}

/* Skills Section */
.skills-section {
    margin-bottom: 80px;
}

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

.skill-card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(218, 29, 29, 0.15);
    border-color: #DA1D1D;
}

.skill-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.skill-title {
    font-size: 1.3em;
    color: #1a1a1a;
    margin-bottom: 12px;
    font-weight: 600;
}

.skill-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.95em;
}

[data-theme="dark"] .skill-card {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

[data-theme="dark"] .skill-card:hover {
    border-color: #DA1D1D;
}

[data-theme="dark"] .skill-title {
    color: #e5e5e5;
}

[data-theme="dark"] .skill-description {
    color: #b0b0b0;
}

/* Tech Stack */
.tech-stack {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: 0 2px 8px var(--shadow-sm);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.tech-tag {
    background: var(--metric-bg);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    color: var(--text-tertiary);
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.tech-tag:hover {
    background: #DA1D1D;
    color: #fff;
    border-color: #DA1D1D;
}

/* Work With Me Section */
.work-with-me {
    margin: 4rem 0;
    text-align: center;
}

.availability-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 2.5rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #4caf50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.availability-badge-large.unavailable {
    background: #ffebee;          /* light red bg */
    color: #c62828;               /* dark red text */
}

.availability-badge-large.unavailable .status-dot {
    background: #f44336;          /* red dot */
    animation: none;              /* optional: remove pulse to look "inactive" */
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.work-grid-centered {
    display: flex;
    justify-content: center;
    margin: 0 auto 2rem;
    max-width: 600px;
}

.info-card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: left;
    width: 100%;
}

.info-card-title {
    font-size: 1.4em;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    width: 45px;
    height: 45px;
    background: #f5f5f5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 0.85em;
    color: #999;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: #1a1a1a;
    font-weight: 500;
}

.cta-center {
    text-align: center;
    margin-top: 2rem;
}

.cta-button {
    display: inline-block;
    background: #dc2626;
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
    font-size: 1.05em;
}

.cta-button:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

[data-theme="dark"] .info-card {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

[data-theme="dark"] .info-card-title {
    color: #e5e5e5;
}

[data-theme="dark"] .info-icon {
    background: #0f0f0f;
}

[data-theme="dark"] .info-label {
    color: #666;
}

[data-theme="dark"] .info-value {
    color: #e5e5e5;
}

/* Contact Section */
.contact-section {
    text-align: center;
    padding: 60px 20px 40px;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
    transition: border-color 0.3s ease;
}

.contact-title {
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.contact-subtitle {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 40px;
    transition: color 0.3s ease;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95em;
    box-shadow: 0 4px 12px var(--shadow-md);
}

.contact-link.roblox {
    background: linear-gradient(135deg, #E74C3C, #C0392B);
    color: #fff;
}

.contact-link.roblox:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
}

.contact-link.devforum {
    background: linear-gradient(135deg, #00A2FF, #0066CC);
    color: #fff;
}

.contact-link.devforum:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 162, 255, 0.4);
}

.contact-link.github {
    background: linear-gradient(135deg, #333, #000);
    color: #fff;
}

.contact-link.github:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.contact-link.twitter {
    background: linear-gradient(135deg, #1DA1F2, #0d8bd9);
    color: #fff;
}

.contact-link.twitter:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(29, 161, 242, 0.4);
}

.contact-link.twitch {
    background: linear-gradient(135deg, #9146FF, #772CE8);
    color: #fff;
}

.contact-link.twitch:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(145, 70, 255, 0.4);
}

.contact-link.discord {
    background: linear-gradient(135deg, #5865F2, #4752C4);
    color: #fff;
}

.contact-link.discord:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.4);
}

.contact-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Copyright */
.copyright {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
    font-size: 0.9em;
    border-top: 1px solid var(--border-color);
    transition: color 0.3s ease, border-color 0.3s ease;
}

/* ============================================
   REFERENCES PAGE STYLES
   ============================================ */

/* References Header */
.references-header {
    text-align: center;
    padding: 80px 0 0;
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(180deg, #fff 0%, #f5f5f5 100%);
}

.references-title {
    font-size: 3em;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #DA1D1D 0%, #9A0101 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.references-subtitle {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 40px;
}

/* Featured References (carousel) */
.featured-references {
    margin-bottom: 80px;
    position: relative;
}

.testimonial-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
    padding: 40px 0;
}

.carousel-click-area {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease;
}

.carousel-click-area:hover {
    background: rgba(0, 0, 0, 0.02);
}

.carousel-click-area.prev-area {
    left: 0;
}

.carousel-click-area.next-area {
    right: 0;
}

.carousel-container {
    width: 100%;
    overflow: visible;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 60px;
    align-items: center;
    justify-content: flex-start;
    padding: 0 calc(50% - 325px);
    /* Center the first card */
}

.carousel-card {
    min-width: 650px;
    max-width: 650px;
    flex-shrink: 0;
    transition: all 0.5s ease-in-out;
}

.carousel-card .quote-card {
    width: 100%;
    transform: scale(0.75);
    opacity: 0.3;
    transition: all 0.5s ease-in-out;
    pointer-events: none;
}

.carousel-card.active .quote-card {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e0e0e0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dot:hover {
    background: #DA1D1D;
    transform: scale(1.2);
}

.dot.active {
    background: #DA1D1D;
    width: 32px;
    border-radius: 6px;
}

.quote-date {
    color: #999;
    font-size: 0.85em;
    margin-top: 5px;
}

.quote-card {
    background: #fff;
    border-radius: 16px;
    padding: 35px;
    border: 1px solid #e0e0e0;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(218, 29, 29, 0.15);
    border-color: #DA1D1D;
}

.quote-icon {
    font-size: 3em;
    color: #DA1D1D;
    opacity: 0.2;
    line-height: 0;
    margin-bottom: 20px;
}

.quote-text {
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
    margin-bottom: 25px;
    font-style: italic;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quote-author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #DA1D1D;
}

.quote-author-info {
    flex: 1;
}

.quote-author-name {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.quote-author-role {
    color: #666;
    font-size: 0.9em;
}

.quote-author-links {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.social-icon {
    width: 20px;
    height: 20px;
    color: #666;
    transition: color 0.2s ease;
}

.social-icon:hover {
    color: #DA1D1D;
}

/* References Section */
.references-section {
    margin-bottom: 80px;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.reference-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 30px 25px 25px;
}

.reference-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(218, 29, 29, 0.15);
    border-color: #DA1D1D;
}

.reference-profile {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
}

.reference-gradient {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(218, 29, 29, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.reference-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e0e0e0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    transition: border-color 0.3s ease;
}

.reference-content {
    padding: 0;
}

.reference-name {
    font-size: 1.5em;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.reference-role {
    color: #666;
    font-size: 1em;
    margin-bottom: 15px;
}

.reference-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.reference-social-link {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    transition: all 0.3s ease;
    color: #666;
}

.reference-social-link:hover {
    transform: scale(1.1);
}

/* Twitter/X link styling */
.reference-social-link.twitter-link {
    background: #000;
    color: #fff;
}

/* Roblox link styling - matches footer */
.reference-social-link.roblox-link {
    background: #DA1D1D;
    color: #fff;
}

.reference-contact {
    font-size: 0.9em;
    color: #666;
}

.reference-contact a {
    color: #DA1D1D;
    text-decoration: none;
}

.reference-contact a:hover {
    text-decoration: underline;
}

/* Dark Mode Styles for References */
[data-theme="dark"] .references-header {
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
}

[data-theme="dark"] .references-title {
    background: linear-gradient(135deg, #DA1D1D 0%, #FF4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .references-subtitle {
    color: #b0b0b0;
}

[data-theme="dark"] .quote-card {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

[data-theme="dark"] .quote-text {
    color: #b0b0b0;
}

[data-theme="dark"] .quote-author-name {
    color: #e5e5e5;
}

[data-theme="dark"] .quote-author-role {
    color: #b0b0b0;
}

[data-theme="dark"] .quote-date {
    color: #888;
}

[data-theme="dark"] .carousel-click-area:hover {
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .dot {
    background: #2a2a2a;
}

[data-theme="dark"] .dot:hover,
[data-theme="dark"] .dot.active {
    background: #DA1D1D;
}

[data-theme="dark"] .reference-card {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

[data-theme="dark"] .reference-image {
    border-color: #2a2a2a;
}

[data-theme="dark"] .reference-name {
    color: #e5e5e5;
}

[data-theme="dark"] .reference-role {
    color: #b0b0b0;
}

[data-theme="dark"] .reference-social-link {
    background: #0f0f0f;
    color: #b0b0b0;
}

[data-theme="dark"] .reference-social-link.twitter-link {
    background: #000;
    color: #fff;
}

[data-theme="dark"] .reference-social-link.roblox-link {
    background: #DA1D1D;
    color: #fff;
}

[data-theme="dark"] .reference-contact {
    color: #b0b0b0;
}

/* Responsive Design */
@media (max-width: 768px) {

    .quote-grid,
    .references-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark Mode Specific Styles */
[data-theme="dark"] select {
    background: #1a1a1a;
    color: #b0b0b0;
}

[data-theme="dark"] select option {
    background: #1a1a1a;
    color: #b0b0b0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-content {
        padding: 0 20px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-link {
        font-size: 0.85em;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        min-width: auto;
    }

    .hero-title {
        font-size: 2.5em;
    }

    .hero-subtitle {
        font-size: 1.2em;
    }

    .hero-stats {
        justify-content: center;
    }

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

    .work-grid-centered {
        max-width: 100%;
    }
}
