/* Modern CSS Custom Properties for Professional Portfolio */
:root {
    /* Primary Palette - Deep Ocean Blues */
    --primary-color: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #1e40af 100%);
    --secondary-gradient: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #2563eb 100%);

    /* Accent Colors - Electric Cyan & Emerald */
    --accent-color: #06b6d4;
    --accent-secondary: #10b981;
    --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);

    /* Neutral Palette - Sophisticated Grays */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --text-light: #94a3b8;
    --text-muted: #cbd5e1;

    /* Background System */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-accent: #eff6ff;
    --bg-dark: #0f172a;
    --bg-glass: rgba(255, 255, 255, 0.95);
    --bg-card: rgba(255, 255, 255, 0.8);

    /* Border System */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --border-accent: #dbeafe;

    /* Shadow System */
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgb(37 99 235 / 0.15);
    --shadow-accent: 0 10px 25px -5px rgb(6 182 212 / 0.1);

    /* Design System */
    --border-radius-sm: 0.375rem;
    --border-radius: 1.5rem;
    --border-radius-lg: 1.5rem;
    --border-radius-xl: 1rem;
    --border-radius-full: 9999px;

    /* Animation System */
    --transition-fast: all 0.15s ease;
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --transition-spring: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 5rem;
}

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

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

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

/* Enhanced Typography System */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
}

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.text-large {
    font-size: 1.125rem;
    line-height: 1.8;
}

.text-small {
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Enhanced Link Styles */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--border-radius-sm);
}

/* Modern Container System */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 640px) {
    .container {
        padding: 0 var(--space-lg);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--space-xl);
    }
}

/* Enhanced Section Styling */
.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.section-alt {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    position: relative;
}

.section-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-3xl);
    position: relative;
    color: var(--text-primary);
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 4rem;
    height: 4px;
    background: var(--primary-gradient);
    margin: var(--space-lg) auto 0;
    border-radius: var(--border-radius-full);
    box-shadow: var(--shadow-glow);
}

/* Modern Navigation with Glass Morphism */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    background: var(--bg-glass);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    transition: var(--transition-spring);
}

.nav-logo:hover {
    transform: translateY(-1px);
}

.logo-text {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    line-height: 1;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

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

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    position: relative;
    transition: var(--transition);
    border-radius: var(--border-radius);
    font-size: 0.925rem;
    letter-spacing: 0.025em;
}

.nav-link:hover {
    color: var(--primary-color);
    background: var(--bg-accent);
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: var(--border-radius-full);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    gap: 6px;
    padding: var(--space-sm);
    border-radius: var(--border-radius);
    transition: var(--transition);
    z-index: 1001;
    /* Ensure it's above other elements */
    width: 30px;
    height: 24px;
}

.hamburger:hover {
    background: var(--bg-accent);
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary) !important;
    transition: var(--transition);
    border-radius: var(--border-radius-full);
    display: block !important;
    /* Ensure spans are block elements */
}

.hamburger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg) !important;
    background-color: var(--primary-color) !important;
}

.hamburger.active span:nth-child(2) {
    opacity: 0 !important;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg) !important;
    background-color: var(--primary-color) !important;
}

/* Premium Hero Section with Modern Animations */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    position: relative;
    padding-top: 4.5rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%23e2e8f0" stroke-width="0.5" opacity="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.6;
    z-index: 0;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(20px, 20px);
    }
}

.hero::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
    z-index: 0;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.hero-title {
    margin-bottom: var(--space-xl);
}

.title-line {
    display: block;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.1;
    letter-spacing: -0.02em;
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.title-highlight {
    display: block;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite, slideInLeft 0.2s ease-out 0.4s both;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-description {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.stat {
    text-align: center;
    padding: var(--space-lg);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
    transition: var(--transition-spring);
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-accent);
}

.stat:hover::before {
    left: 0;
}

.stat-number {
    display: block;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 1s both;
}

/* Premium Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-spring);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    line-height: 1;
    letter-spacing: 0.025em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border: 1px solid var(--primary-gradient);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), 0 0 30px rgb(37 99 235 / 0.25);
    filter: brightness(1.05);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), 0 0 20px rgb(37 99 235 / 0.1);
}

.btn-resume {
    background: var(--success-gradient);
    color: white;
    box-shadow: var(--shadow-lg), 0 0 20px rgb(16 185 129 / 0.15);
    border: 1px solid var(--accent-secondary);
}

.btn-resume:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), 0 0 30px rgb(16 185 129 / 0.25);
    filter: brightness(1.05);
}

.btn svg {
    transition: var(--transition);
}

.btn:hover svg {
    transform: scale(1.1);
}

.btn-primary:hover svg {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
}

#watch-portfolio-btn {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--shadow-lg), 0 0 20px rgb(6 182 212 / 0.15);
    border: 1px solid var(--accent-color);
}

#watch-portfolio-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), 0 0 30px rgb(6 182 212 / 0.25);
    filter: brightness(1.05);
}

/* Enhanced Button Sizes */
.btn-sm {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
}

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.125rem;
}

.btn-xl {
    padding: var(--space-xl) var(--space-3xl);
    font-size: 1.25rem;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

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

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-resume {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: 2px solid transparent;
}

.btn-resume:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    color: white;
}

.btn-resume svg {
    transition: transform 0.3s ease;
}

.btn-resume:hover svg {
    transform: scale(1.1);
}

/* Modern About Section */
.about-content {
    display: grid;
    grid-template-columns: 300px 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.about-left {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: sticky;
    top: 2rem;
}

.profile-image-container {
    position: relative;
    display: inline-block;
}

.profile-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-primary);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl), 0 0 30px rgb(37 99 235 / 0.25);
}

.profile-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: var(--primary-gradient);
    z-index: 1;
    animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.4;
    }
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: var(--space-lg);
    color: var(--text-secondary);
}

.contact-info {
    margin-top: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(4px);
}

.contact-label {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-item a {
    color: var(--primary-color);
    font-weight: 500;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.highlight-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: var(--space-xl);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: var(--transition-spring);
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-accent);
}

.highlight-card h3 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-lg);
    font-size: 1.25rem;
    font-weight: 700;
}

.highlight-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.highlight-card li {
    padding-left: var(--space-lg);
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 500;
}

.highlight-card li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1em;
}

/* Modern Timeline Design */
.timeline {
    position: relative;
    padding-left: var(--space-2xl);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    border-radius: var(--border-radius-full);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-3xl);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-xl);
    padding: var(--space-xl);
    border: 1px solid var(--border-light);
    transition: var(--transition-spring);
    box-shadow: var(--shadow-sm);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 30px;
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 4px var(--primary-color);
    z-index: 1;
}

.timeline-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-accent);
}

.timeline-date {
    display: inline-block;
    background: var(--accent-gradient);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--border-radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    letter-spacing: 0.025em;
}

.timeline-content h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    font-size: 1.375rem;
    font-weight: 700;
}

.timeline-content h4 {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    font-weight: 600;
}

.company-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.company-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.timeline-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.timeline-content li {
    padding-left: var(--space-lg);
    position: relative;
    color: var(--text-secondary);
    line-height: 1.7;
}

.timeline-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Modern Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.skill-category {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: var(--space-xl);
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--border-light);
    transition: var(--transition-spring);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
}

.skill-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-accent);
}

.skill-category h3 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-lg);
    font-weight: 700;
    font-size: 1.25rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.skill-tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: var(--border-radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
    transition: var(--transition-spring);
    cursor: default;
    white-space: nowrap;
}

.skill-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.skill-tag.expert {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-color);
    font-weight: 600;
}

.skill-tag.expert:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Modern Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.project-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-xl);
    padding: var(--space-xl);
    border: 1px solid var(--border-light);
    transition: var(--transition-spring);
    position: relative;
    overflow: hidden;
    height: fit-content;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), var(--shadow-accent);
    border-color: var(--border-accent);
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.project-header h3 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
    transition: var(--transition-spring);
    color: var(--text-secondary);
}

.project-link:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.project-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.project-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: var(--space-xs) 0;
}

.feature::before {
    content: '✓';
    color: var(--accent-secondary);
    font-weight: bold;
    font-size: 1.1em;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.tech-tag {
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.tech-tag:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-1px);
}

/* Contact Section */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-text {
    margin-bottom: var(--space-2xl);
}

.contact-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition-spring);
    font-weight: 500;
}

.contact-method:hover {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.contact-method svg {
    color: var(--primary-color);
    transition: var(--transition);
}

/* Floating Elements */
.floating-linkedin {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: 1000;
}

.linkedin-float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transition: var(--transition-spring);
    text-decoration: none;
}

.linkedin-float-btn:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(37, 99, 235, 0.4);
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.video-modal.active {
    display: flex;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: var(--bg-primary);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.video-modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.video-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
}

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

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-muted);
    padding: var(--space-xl) 0;
    text-align: center;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.footer-content p {
    margin-bottom: var(--space-sm);
    color: var(--text-muted);
}

.footer-content p:first-child {
    font-weight: 600;
    color: white;
}

/* Floating LinkedIn Button */
.floating-linkedin {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.linkedin-float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #0077b5;
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 119, 181, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse-float 2s infinite;
}

.linkedin-float-btn:hover {
    background: #005885;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.6);
}

@keyframes pulse-float {

    0%,
    100% {
        transform: translateY(0);
        box-shadow: 0 4px 20px rgba(0, 119, 181, 0.4);
    }

    50% {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 119, 181, 0.6);
    }
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    opacity: 0;
    visibility: hidden;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.8);
    /* Fallback background */
}

.video-modal.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.video-modal-content {
    position: relative;
    width: 90vw;
    max-width: 800px;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.8) translateY(-50px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.video-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.video-modal-close:hover {
    background: var(--primary-color);
    transform: rotate(90deg);
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    background: #000;
}

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

/* ========================================
   RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS
   ======================================== */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--space-lg);
    }

    .hero-stats {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: var(--space-md);
    }    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }

    .about-left {
        position: static;
        margin-bottom: var(--space-xl);
    }

    .profile-image {
        width: 220px;
        height: 220px;
    }

    .profile-ring {
        top: -6px;
        left: -6px;
        right: -6px;
        bottom: -6px;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: var(--space-lg);
    }

    .project-category {
        margin-bottom: var(--space-2xl);
    }

    .category-title {
        font-size: 1.375rem;
    }

    .contact-methods {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

.category-title {
    margin-top: 2rem;
}

.project-icon {
    width: 50px;
    height: 50px;
}

.project-icon svg {
    width: 28px;
    height: 28px;
}

/* Tablets */
@media (max-width: 768px) {
    :root {
        --space-4xl: 3rem;
        --space-3xl: 2.5rem;
        --space-2xl: 2rem;
    }

    .nav-container {
        padding: 0 var(--space-md);
    }

    .nav-menu {
        position: fixed;
        top: 4.5rem;
        left: 0;
        width: 100%;
        height: calc(100vh - 4.5rem);
        background: var(--bg-glass);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        /* For Safari support */
        border-top: 1px solid var(--border-light);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: var(--space-lg);
        padding: var(--space-2xl) var(--space-lg);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        visibility: hidden;
        /* Hide menu by default */
    }

    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
        /* Show when active */
    }

    .nav-link {
        font-size: 1.125rem;
        padding: var(--space-md) var(--space-lg);
        border-radius: var(--border-radius-lg);
        width: 100%;
        text-align: center;
    }

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

    .hamburger {
        display: flex !important;
        z-index: 1001;
        position: relative;
    }

    .hero {
        min-height: 90vh;
        padding-top: 5rem;
    }

    .hero-container {
        padding: 0 var(--space-md);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
        text-align: center;
    }

    .timeline {
        padding-left: var(--space-lg);
    }

    .timeline-item {
        padding: var(--space-lg);
    }

    .timeline-item::before {
        left: -25px;
        width: 10px;
        height: 10px;
        border-width: 2px;
        box-shadow: 0 0 0 3px var(--primary-color);
    }

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

    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .project-card {
        padding: var(--space-lg);
    }

    .project-category {
        margin-bottom: var(--space-xl);
    }

    .category-title {
        font-size: 1.25rem;
        margin-bottom: var(--space-lg);
    }

    .project-icon {
        width: 50px;
        height: 50px;
    }

    .project-icon svg {
        width: 28px;
        height: 28px;
    }

    .floating-linkedin {
        bottom: var(--space-md);
        right: var(--space-md);
    }

    .linkedin-float-btn {
        width: 50px;
        height: 50px;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    :root {
        --space-4xl: 2rem;
        --space-3xl: 1.5rem;
        --space-2xl: 1.25rem;
        --space-xl: 1rem;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .section {
        padding: var(--space-3xl) 0;
    }

    .hero-container {
        padding: 0 var(--space-md);
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }

    .stat {
        padding: var(--space-md);
    }

    .hero-actions {
        gap: var(--space-sm);
    }

    .btn {
        padding: var(--space-md) var(--space-lg);
        font-size: 0.9rem;
    }

    .contact-info {
        padding: var(--space-md);
    }

    .profile-image {
        width: 180px;
        height: 180px;
    }

    .profile-ring {
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
    }

    .timeline-item {
        padding: var(--space-md);
    }

    .timeline-date {
        font-size: 0.8rem;
        padding: var(--space-xs) var(--space-sm);
    }

    .timeline-content h3 {
        font-size: 1.25rem;
    }

    .skill-category {
        padding: var(--space-lg);
    }

    .highlight-card {
        padding: var(--space-lg);
    }

    .project-card {
        padding: var(--space-md);
    }

    .contact-methods {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .contact-method {
        padding: var(--space-md);
        font-size: 0.9rem;
    }

    .video-modal {
        padding: var(--space-md);
    }

    .floating-linkedin {
        bottom: var(--space-sm);
        right: var(--space-sm);
    }

    .linkedin-float-btn {
        width: 45px;
        height: 45px;
    }
}

/* Additional Mobile Improvements for Projects */
@media (max-width: 480px) {
    .project-category {
        margin-bottom: var(--space-lg);
    }

    .category-title {
        font-size: 1.125rem;
        margin-bottom: var(--space-md);
    }

    .category-title::after {
        margin-left: var(--space-sm);
    }

    .project-card {
        padding: var(--space-md);
    }

    .project-icon {
        width: 45px;
        height: 45px;
        margin-bottom: var(--space-md);
    }

    .project-icon svg {
        width: 24px;
        height: 24px;
    }

    .project-header h4 {
        font-size: 1.125rem;
    }

    .project-features {
        gap: var(--space-xs);
        margin-bottom: var(--space-md);
    }

    .feature {
        font-size: 0.875rem;
        padding: var(--space-xs) 0;
    }

    .tech-tag {
        font-size: 0.75rem;
        padding: var(--space-xs) var(--space-sm);
    }

    .project-stats {
        font-size: 0.7rem;
        padding: 2px var(--space-xs);
    }
}

/* Ultra-wide screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        max-width: 600px;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .hero::before {
        background-size: 40px 40px;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero::before {
        animation: none;
    }

    .hero::after {
        animation: none;
    }

    .title-highlight {
        animation: none;
        background: var(--primary-color);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

/* Print styles */
@media print {

    .navbar,
    .floating-linkedin,
    .video-modal,
    .hero-actions {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .section {
        padding: 1rem 0;
        break-inside: avoid;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: white;
    }

    .timeline::before {
        background: #000;
    }
}

/* Focus styles for accessibility */
.btn:focus-visible,
.nav-link:focus-visible,
.contact-method:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--border-radius);
}

/* Selection styles */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--border-radius-full);
}

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

/* Game Card Styles */
.game-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    padding: var(--space-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 280px;
    /* Fixed height for consistency */
    min-width: 250px;
    max-width: 300px;
    box-shadow: var(--shadow-sm);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: var(--primary-color);
}

.game-card:hover::before {
    opacity: 0.05;
}

.game-card.featured {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(6, 182, 212, 0.05) 100%);
}

.game-card.featured::after {
    content: 'Featured';
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: var(--accent-gradient);
    color: white;
    padding: 2px 8px;
    border-radius: var(--border-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.game-thumbnail {
    width: 100%;
    height: 160px;
    /* Fixed height for thumbnail */
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: var(--space-md);
    position: relative;
    background: var(--bg-tertiary);
    z-index: 1;
}

.game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-thumbnail:hover img {
    transform: scale(1.05);
}

/* Fallback styles for different game categories */
.game-thumbnail.casino {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

.game-thumbnail.action {
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
}

.game-thumbnail.music {
    background: linear-gradient(135deg, #3742fa 0%, #2f3542 100%);
}

.game-thumbnail.sports {
    background: linear-gradient(135deg, #2ed573 0%, #1e90ff 100%);
}

.game-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.game-info h6 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-sm) 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-type {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    background: var(--bg-tertiary);
    padding: 4px 8px;
    border-radius: var(--border-radius);
    display: inline-block;
    margin-bottom: var(--space-sm);
}

.game-play-btn {
    position: absolute;
    bottom: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.game-play-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
    background: var(--secondary-gradient);
}

.game-play-btn svg {
    width: 16px;
    height: 16px;
    margin-left: 2px;
    /* Slight offset for play icon */
}

/* More Games Card */
.more-games-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius-lg);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    padding: var(--space-lg);
    height: 280px;
    /* Same height as game cards */
    min-width: 250px;
    max-width: 300px;
    color: white;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.more-games-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-xl);
}

.more-games-card h6 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: var(--space-sm) 0;
}

.more-games-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.more-games-card .plus-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
    font-weight: bold;
}

/* Games Showcase Styles */
.games-showcase {
    margin: var(--space-lg) 0;
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
}

.games-showcase h5 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

/* Gaming Section Styles */
.games-scroll-container {
    margin: var(--space-lg) 0;
    border-radius: var(--border-radius-lg);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.games-scroll-area {
    max-height: 600px;
    overflow-y: auto;
    padding: var(--space-md);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-template-rows: repeat(2, 1fr);
    gap: var(--space-md);
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-tertiary);
    justify-items: center;
}

/* Custom scrollbar for WebKit browsers */
.games-scroll-area::-webkit-scrollbar {
    width: 6px;
}

.games-scroll-area::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
}

.games-scroll-area::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.games-scroll-area::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Loading Games Styles */
.loading-games {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    color: var(--text-secondary);
    font-style: italic;
}

.loading-games p {
    position: relative;
    animation: loadingPulse 2s infinite;
}

@keyframes loadingPulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Fix for game icons with viewBox - specific targeting only */
.game-thumbnail svg[viewBox],
.game-play-btn svg[viewBox],
.more-games-card svg[viewBox] {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

/* Fallback icon styles */
.fallback-icon {
    display: none;
    /* Hidden by default */
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--border-radius);
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 2rem;
    /* Reasonable size relative to container */
    text-transform: uppercase;
    letter-spacing: 1px;
}