#lead {
    position: relative;
    min-height: 500px;
    max-height: 1080px;
    .heading { display: flex; align-items: center; gap: 8px; }
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    --background-dark: #000000;      /* Black background */
    --background-gray: #F7F7F7;     /* Light gray */
    --border-color: #E5E5E5;        /* Subtle border */
    --shadow-light: rgba(0,0,0,0.08); /* Minimal shadow */
    --shadow-medium: rgba(0,0,0,0.15);
    
    /* Legacy variables for compatibility */
    --base-color: #000000;
    --base-color-hover: #64B5F6;
    --background: #FFFFFF;
    --background-alt: #F7F7F7;
    --border: #E5E5E5;
    --heading: #000000;
    --text: #707070;
    
    /* Smooth transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/*
    ----------------------------
    ----- Responsive Utils -----
    ----------------------------
*/

/* Improved Container System */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Responsive Typography */
.responsive-text {
    font-size: clamp(14px, 2.5vw, 18px);
}

.responsive-title {
    font-size: clamp(1.5rem, 4vw, 3rem);
    line-height: 1.2;
}

.responsive-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    line-height: 1.3;
}

/* Flexible Button Container */
.btn-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.btn-container .btn {
    flex: 0 1 auto;
    min-width: 140px;
}

/* Responsive Grid System */
.responsive-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

/* Spacing Utilities */
.section-padding {
    /* tightened vertical rhythm */
    padding: clamp(20px, 4vw, 60px) clamp(12px, 2.5vw, 40px);
}

.content-padding {
    padding: clamp(20px, 4vw, 40px);
}

/*
    ----------------------------
    ----- 2. Global Styles -----
    ----------------------------
*/

body {
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-primary);
    background-color: var(--background-light);
    line-height: 1.6;
    transition: var(--transition-smooth);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body.active {
    overflow: hidden;
    z-index: -1;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

/* Typography improvements */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    transition: var(--transition-fast);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    transition: var(--transition-fast);
}

/* ===== About section: centered headings & career text ===== */
#about .section-heading,
#about .focus-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
    font-weight: 800;
    color: var(--heading);
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: clamp(1.25rem, 3vw, 2rem);
}

#about .focus-title {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    font-weight: 700;
    color: var(--text-primary);
    opacity: 0.95;
}

#about .career-text,
#about p {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.9vw, 1.125rem);
    line-height: 1.6;
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
}

/* subtle decorative underline for the section heading */
#about .section-heading::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin: 10px auto 0;
    background: linear-gradient(90deg, rgba(100,100,100,0.12), rgba(0,0,0,0.12));
    border-radius: 2px;
}

/* ===== Focus areas 2x2 grid ===== */
#about .focus-areas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 18px;
}

/* Hero (lead) polish */
#lead {
        background: linear-gradient(180deg, rgba(10,10,10,0.96), rgba(6,15,30,0.9));
        color: var(--text-light);
        padding: 80px 0;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
}
#lead-content h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 8px; letter-spacing: -0.02em; }
#lead-content h2 { font-size: clamp(1rem, 2.5vw, 1.1rem); font-weight: 500; opacity: 0.9; margin: 0 0 12px; }

/* Consolidated button styles */
.btn-primary, .btn-rounded-white {
    --btn-bg: var(--accent-color);
    background: var(--btn-bg);
    color: #fff;
    border: 0;
    padding: 12px 20px;
    border-radius: 999px;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.btn-secondary { background:#fff;color:var(--primary-color); border: 2px solid rgba(255,255,255,0.06); }

/* LinkedIn-style button */
.btn-linkedin {
    background: #0A66C2;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 999px;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(10,102,194,0.18);
}
.btn-linkedin:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(10,102,194,0.22); }

/* Game-themed buttons (to match Mini Games / Tech Games controls) */
.btn-games {
    padding: 18px 25px;
    min-width: 170px;
    border-radius: 25px;
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid transparent;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease;
}
.btn-games:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.14); }
.btn-games.blue { background: #3498db; border-color: #3498db; }
.btn-games.green { background: #2ecc71; border-color: #2ecc71; }

/* Focus areas grid adjustment */
.focus-areas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 18px;
}
@media (min-width:700px){
    .focus-areas { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* Focus item card */
.focus-item {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    text-align: left;
    transition: transform .18s ease, box-shadow .18s ease;
}
.focus-item:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,0.10); }
.focus-item .focus-title { margin: 0 0 6px; font-size: 1.05rem; color: var(--heading); }
.focus-item p { margin: 0; color: var(--text-secondary); line-height:1.45; }

/* About center small utility */
.about-content-plain { text-align: center; max-width: 920px; margin: 0 auto; }

/* Entrance tweak when coming from splash */
.from-splash-enter #lead { animation: splashArrive .7s cubic-bezier(.2,.9,.2,1); }
@keyframes splashArrive { from { transform: translateY(18px) scale(.995); opacity:0 } to { transform:none; opacity:1 } }

/* Tighten vertical spacing between main sections */
#lead, #about, #experience, #education, #projects, #skills, #certifications, #contact, footer {
    padding-top: 28px;
    padding-bottom: 28px;
}

/* Reduce default heading spacing to bring sections closer */
h1, h2, h3 { margin-bottom: 0.6rem; }

@media (min-width: 700px) {
    #about .focus-areas {
        grid-template-columns: repeat(2, 1fr);
    }
}

#about .focus-item {
    background: var(--background-light);
    border-radius: 10px;
    padding: clamp(16px, 2.2vw, 22px);
    box-shadow: 0 6px 18px rgba(15,15,15,0.04), 0 2px 6px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#about .focus-item .focus-title {
    margin: 0 0 6px 0;
    font-size: clamp(1rem, 2.1vw, 1.125rem);
    color: var(--heading);
}

#about .focus-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 1.9vw, 1rem);
    line-height: 1.5;
}

/* 
    ----------------------------------
    ----- 3. Smooth Transitions -----
    ----------------------------------
*/

/* Page fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Apply animations to sections */
#lead {
    animation: fadeIn 1s ease-out;
}

#about {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

#experience {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

#education {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

#projects {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

#skills {
    animation: fadeInUp 0.8s ease-out 1s both;
}

#contact {
    animation: fadeInUp 0.8s ease-out 1.2s both;
}

/* Entrance animation when arriving from the splash page */
.from-splash-enter {
    animation: splashIn 600ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes splashIn {
    0% { opacity: 0; transform: scale(0.98) translateY(12px); }
    60% { opacity: 1; transform: scale(1.02) translateY(-6px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Hover transitions for interactive elements */
a, button, .btn {
    transition: var(--transition-fast);
}

a:hover, button:hover, .btn:hover {
    transform: translateY(-2px);
}

/* Card hover effects */
.project, .education-block, .certification-block {
    transition: var(--transition-smooth);
}

.project:hover, .education-block:hover, .certification-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-medium);
}

.no-js #experience-timeline > div {
    background: var(--background);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
}

.no-js #experience-timeline > div h3 {
    font-size: 1.5em;
    font-weight: 300;
    color: var(--heading);
    display: inline-block;
    margin: 0;
}

.no-js #experience-timeline > div h4 {
    font-size: 1.2em;
    font-weight: 300;
    color: #7e8890;
    margin: 0 0 15px 0;
}

.no-js #experience-timeline > div p {
    color: var(--text);
    font-size: 0.9em;
    margin: 0;
}

.no-js #experience-timeline:before,
.no-js #experience-timeline:after {
    content: none;
}

@keyframes dropHeader {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(0);
    }
}

header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
    animation-name: dropHeader;
    animation-iteration-count: 1;
    animation-timing-function: ease;
    animation-duration: 0.75s;
    backdrop-filter: blur(10px);
}

header ul {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    text-align: center;
    padding: 15px 25px;
    margin: 0;
    border-radius: 25px;
    box-shadow: 0 4px 20px var(--shadow-light);
    border: 1px solid var(--border-color);
}

header li {
    display: inline-block;
}

header a {
    display: block;
    color: var(--text-primary);
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 20px;
    transition: var(--transition-fast);
}

header a:hover {
    color: var(--text-light);
    text-decoration: none;
    background: var(--primary-color);
    transform: translateY(-2px);
}

header a:focus {
    color: var(--text-primary);
    text-decoration: none;
    outline: none;
}

header.active {
    display: block;
}

header.sticky {
    position: fixed;
    z-index: 999;
    top: 20px;
}

header.sticky ul {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 32px var(--shadow-medium);
}

#menu.active {
    display: block;
}

#mobile-menu-open {
    display: none;
    cursor: pointer;
    position: fixed;
    right: 15px;
    top: 10px;
    color: var(--base-color);
    font-size: 1.5em;
    z-index: 20;
    padding: 0 7px;
    border-radius: 4px;
    background: var(--background);
}

#mobile-menu-close {
    display: none;
    text-align: right;
    width: 100%;
    background: var(--background);
    font-size: 1.5em;
    padding-right: 15px;
    padding-top: 10px;
    cursor: pointer;
    color: var(--base-color);
}

#mobile-menu-close span {
    font-size: 0.5em;
    text-transform: uppercase;
}

#mobile-menu-close i {
    vertical-align: middle;
}

footer {
    padding: 20px 0;
}

.copyright {
    padding-top: 20px;
    text-align: center;
}

.copyright p {
    margin: 0;
    color: var(--text);
}

.social {
    text-align: right;
}

.social ul {
    margin: 5px 0 0 0;
    padding: 0;
}

.social li {
    display: inline-block;
    font-size: 1.25em;
    list-style: none;
}

.social a {
    display: block;
    color: var(--text);
    padding: 10px;
    text-decoration: none;
    transition: 0.5s ease all;
}

.social a:hover {
    color: var(--base-color);
}

.btn-rounded-white {
    display: inline-block;
    color: var(--text-light);
    padding: 18px 35px;
    border: 2px solid var(--text-light);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    background: transparent;
    min-height: 44px; /* Touch-friendly */
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
}

.btn-rounded-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--text-light);
    transition: var(--transition-smooth);
    z-index: -1;
}

.btn-rounded-white:hover {
    color: var(--text-primary);
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

.btn-rounded-white:hover::before {
    left: 0;
}

/* Special styling for games button */
.btn-rounded-white:last-child {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-light);
}

.btn-rounded-white:last-child::before {
    background: var(--text-light);
}

.btn-rounded-white:last-child:hover {
    color: var(--accent-color);
}

/* LinkedIn Button Custom Styling */
.btn-linkedin {
    color: #0077B5 !important;
    border-color: #0077B5 !important;
    background: transparent;
}

.btn-linkedin::before {
    background: #0077B5 !important;
}

.btn-linkedin:hover {
    color: #ffffff !important;
    border-color: #0077B5 !important;
    box-shadow: 0 10px 25px rgba(0, 119, 181, 0.3);
}

.shadow {
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

.shadow-large {
    box-shadow: 0 3px 6px rgba(0,0,0,0.08), 0 3px 6px rgba(0,0,0,0.15);
}

.heading {
    position: relative;
    display: inline-block;
    font-size: 2em;
    font-weight: 300;
    margin: 0 0 30px 0;
}

.heading:after {
    position: absolute;
    content: '';
    top: 100%;
    height: 1px;
    width: 50px;
    left: 0;
    right: 0;
    margin: 0 auto;
    background: var(--base-color);
}

.background-alt {
    background: var(--background-alt);
}

/*
    --------------------------
    ----- 3. Lead Styles -----
    --------------------------
*/

#lead {
    position: relative;
    height: 100vh;
.add-btn {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-left: 12px;
    border-radius: 50%;
    background: linear-gradient(180deg,#111,#333);
    color: #fff;
    border: none;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform .12s ease, box-shadow .12s ease;
}
.add-btn:hover{ transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,0.28); }
.add-btn:active{ transform: translateY(0); }
    min-height: 500px;
    max-height: 1080px;
.heading { display: flex; align-items: center; gap: 8px; }
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    background-size: cover;
    padding: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated Wave Background */
#lead::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600'%3E%3Cpath d='M0,150 C300,250 500,50 600,150 C700,250 900,50 1200,150 L1200,600 L0,600 Z' fill='%2364B5F6' fill-opacity='0.1'/%3E%3C/svg%3E") no-repeat center center;
    background-size: cover;
    animation: waveMove 20s ease-in-out infinite;
    z-index: 1;
}

#lead::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600'%3E%3Cpath d='M0,200 C400,100 600,300 800,200 C1000,100 1100,250 1200,200 L1200,600 L0,600 Z' fill='%2364B5F6' fill-opacity='0.05'/%3E%3C/svg%3E") no-repeat center center;
    background-size: cover;
    animation: waveMove 15s ease-in-out infinite reverse;
    z-index: 2;
}

@keyframes waveMove {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1);
    }
    25% {
        transform: translateX(-50px) translateY(-20px) scale(1.02);
    }
    50% {
        transform: translateX(30px) translateY(15px) scale(0.98);
    }
    75% {
        transform: translateX(-20px) translateY(-10px) scale(1.01);
    }
}

#lead-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.5s both;
    backdrop-filter: blur(2px);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 40px 20px;
    border: 1px solid rgba(100, 181, 246, 0.1);
}

/* Floating Particles Effect */
#lead .particle {
    position: absolute;
    background: rgba(100, 181, 246, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

#lead .particle:nth-child(1) {
    width: 8px;
    height: 8px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

#lead .particle:nth-child(2) {
    width: 12px;
    height: 12px;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 6s;
}

#lead .particle:nth-child(3) {
    width: 6px;
    height: 6px;
    top: 40%;
    left: 70%;
    animation-delay: 4s;
    animation-duration: 10s;
}

#lead .particle:nth-child(4) {
    width: 10px;
    height: 10px;
    top: 80%;
    left: 20%;
    animation-delay: 1s;
    animation-duration: 7s;
}

#lead .particle:nth-child(5) {
    width: 14px;
    height: 14px;
    top: 15%;
    left: 90%;
    animation-delay: 3s;
    animation-duration: 9s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-20px) translateX(10px) scale(1.1);
        opacity: 1;
    }
    50% {
        transform: translateY(-40px) translateX(-10px) scale(0.9);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-20px) translateX(15px) scale(1.05);
        opacity: 0.9;
    }
}

/* Enhanced wave effect with CSS gradients */
#lead .wave-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 200px;
    background: linear-gradient(45deg, 
        rgba(100, 181, 246, 0.1) 0%, 
        rgba(100, 181, 246, 0.05) 50%, 
        transparent 100%);
    border-radius: 50%;
    animation: waveRotate 25s linear infinite;
    z-index: 2;
}

#lead .wave-layer:nth-child(even) {
    animation-direction: reverse;
    animation-duration: 30s;
    background: linear-gradient(-45deg, 
        rgba(100, 181, 246, 0.08) 0%, 
        rgba(100, 181, 246, 0.03) 50%, 
        transparent 100%);
}

@keyframes waveRotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

#lead-content h1,
#lead-content h2 {
    margin: 0;
}

#lead-content h1 {
    color: var(--text-light);
    font-weight: 700;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 20px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    text-align: center;
}

#lead-content h2 {
    color: #CCCCCC;
    font-weight: 400;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    margin-bottom: 30px;
    opacity: 0.9;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#lead-overlay {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(45deg, rgba(15,15,35,0.3) 0%, rgba(26,26,46,0.1) 100%);
    z-index: 5;
}

#lead-down {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
    bottom: 15px;
    color: #fff;
}

#lead-down span {
    cursor: pointer;
    display: block;
    margin: 0 auto;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 3px solid #64B5F6;
    text-align: center;
}

#lead-down i {
    animation: pulsate 1.5s ease;
    animation-iteration-count: infinite;
    padding-top: 5px;
}

@keyframes pulsate {
    0% {
        transform: scale(1, 1);
    }
    50% {
        transform: scale(1.2, 1.2);
    }
    100% {
        transform: scale(1, 1);
    }
}

/*
    ---------------------------
    ----- 4. About Styles -----
    ---------------------------
*/

#about {
    padding: 75px 15px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

#about h2 {
    color: var(--heading);
    text-align: center;
}

#about p {
    color: var(--text);
    margin: 0;
}

#about .col-md-8 {
    text-align: center;
    margin: 0 auto;
}

#about .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#about .row {
    width: 100%;
    justify-content: center;
}

/*
    --------------------------------
    ----- 5. Experience Styles -----
    --------------------------------
*/

#experience {
    padding: 50px 15px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

#experience h2 {
    color: var(--heading);
}

#experience-timeline {
    margin: 30px auto 0 auto;
    position: relative;
    max-width: 1000px;
}

#experience-timeline:before {
    position: absolute;
    content: '';
    top: 0;
    bottom: 0;
    left: 303px;
    right: auto;
    height: 100%;
    width: 3px;
    background: var(--base-color);
    z-index: 0;
}

#experience-timeline:after {
    position: absolute;
    content: '';
    width: 3px;
    height: 40px;
    background: var(--base-color);
    background: linear-gradient(to bottom, var(--base-color), rgba(52, 152, 219, 0));
    top: 100%;
    left: 303px;
}

.vtimeline-content {
    margin-left: 350px;
    background: #fff;
    border: 1px solid #e6e6e6;
    padding: 15px;
    border-radius: 3px;
    text-align: left;
}

.vtimeline-content h3 {
    font-size: 1.5em;
    font-weight: 300;
    color: var(--heading);
    display: inline-block;
    margin: 0;
}

.vtimeline-content h4 {
    font-size: 1.2em;
    font-weight: 300;
    color: #7e8890;
    margin: 0 0 15px 0;
}

.vtimeline-content p {
    color: var(--text);
    font-size: 0.9em;
    margin: 0;
}

.vtimeline-point {
    position: relative;
    display: block;
    vertical-align: top;
    margin-bottom: 30px;
}

.vtimeline-icon {
    position: relative;
    color: #fff;
    width: 50px;
    height: 50px;
    background: var(--base-color);
    border-radius: 50%;
    float: left;
    z-index: 99;
    margin-left: 280px;
}

.vtimeline-icon i {
    display: block;
    font-size: 2em;
    margin-top: 10px;
}

.vtimeline-date {
    width: 260px;
    text-align: right;
    position: absolute;
    left: 0;
    top: 10px;
    font-weight: 300;
    color: #374054;
}

/*
    -------------------------------
    ----- 6. Education Styles -----
    -------------------------------
*/

#education {
    padding: 50px 15px 20px 15px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

#education h2 {
    color: var(--heading);
    margin-bottom: 50px;
}

.education-block {
    max-width: 700px;
    margin: 0 auto 30px auto;
    padding: 15px;
    border: 1px solid var(--border);
    text-align: left;
    border-radius: 20px; /* Squircle shape */
}

.education-block h3 {
    font-weight: 500;
    float: left;
    margin: 0;
    color: var(--heading);
}

.education-block span {
    color: var(--text);
    float: right;
}

.education-block h4 {
    color: var(--text);
    clear: both;
    font-weight: 500;
    margin: 0 0 15px 0;
}

.education-block p,
.education-block ul {
    margin: 0;
    color: var(--text);
    font-size: 0.9em;
}

.education-block ul {
    padding: 0 0 0 15px;
}

/*
    -------------------------------
    ----- 7. Project Styles -----
    -------------------------------
*/

#projects {
    padding: 50px 15px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

#projects h2 {
    color: var(--heading);
    margin-bottom: 50px;
}

.project {
    position: relative;
    max-width: 900px;
    margin: 0 auto 30px auto;
    overflow: hidden;
    background: #fff;
    border-radius: 20px; /* Squircle shape */
}

.project-image {
    float: left;
}

.project-info {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 300px;
    padding: 15px;
}

.project-info h3 {
    font-size: 1.5em;
    font-weight: 300;
    color: var(--heading);
    margin: 0 0 15px 0;
}

.project-info p {
    color: var(--text);
    margin: 0 0 15px 0;
    font-size: 0.9em;
}

.no-image .project-info {
    position: relative;
    margin: 0;
    padding: 30px 15px;
    transform: none;
}

#more-projects {
    display: none;
}

/*
    -------------------------------
    ----- 8. Skills Styles -----
    -------------------------------
*/

#skills {
    padding: 50px 15px;
    text-align: center;
}

#skills h2 {
    color: var(--heading);
    margin-bottom: 50px;
}

#skills ul {
    display: block;
    margin: 0 auto;
    padding: 0;
    max-width: 800px;
}

#skills li {
    display: inline-block;
    margin: 7px;
    padding: 5px 10px;
    color: var(--heading);
    background: #e4e4ea;
    list-style: none;
    cursor: default;
    font-size: 1.2em;
    border-radius: 15px; /* Squircle shape */
}

/*
    -------------------------------
    ----- 9. Contact Styles -----
    -------------------------------
*/

#contact {
    padding: 50px 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--text-secondary) 100%);
    text-align: center;
    position: relative;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-color);
}

#contact h2 {
    margin: 0 0 15px 0;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-intro {
    color: #FFFFFF;
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Enhanced centering for contact section */
#contact .row {
    justify-content: center;
    align-items: center;
}

#contact h2 {
    text-align: center;
    width: 100%;
}

#contact .contact-intro {
    text-align: center;
    display: block;
    width: 100%;
}

/* Mobile responsiveness for contact section */
@media (max-width: 768px) {
    #contact h2 {
        font-size: 2em;
        margin-bottom: 20px;
    }
    
    .contact-intro {
        font-size: 1.1em;
        padding: 0 15px;
        max-width: 90%;
    }
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#contact-form label {
    color: white;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    font-size: 1em;
}

#contact-form input,
#contact-form textarea {
    display: block;
    width: 100%;
    padding: 15px 20px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1em;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: rgba(0, 0, 0, 0.6);
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 105, 0, 0.3);
}

#contact-form textarea {
    height: 150px;
    resize: none;
}

#contact-form button {
    display: block;
    width: 100%;
    background: var(--accent-color);
    border-radius: 25px;
    padding: 15px 20px;
    border: 2px solid transparent;
    color: white;
    font-weight: 700;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 105, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

#contact-form button:hover {
    background: rgba(255, 105, 0, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 105, 0, 0.4);
    border-color: white;
}

/*
    ---------------------------------------
    ----- 10. Optional Section Styles -----
    ---------------------------------------
*/

.optional-section {
    padding: 50px 15px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.optional-section h2 {
    color: var(--heading);
}

.optional-section-block {
    max-width: 700px;
    margin: 0 auto 30px auto;
    padding: 15px;
    border: 1px solid var(--border);
    background: #fff;
    text-align: left;
}

.optional-section-block h3 {
    font-weight: 500;
    margin: 0 0 15px 0;
    color: var(--heading);
}

.optional-section-block h4 {
    color: var(--text);
    clear: both;
    font-weight: 500;
    margin: 0 0 15px 0;
}

.optional-section-block p,
.optional-section-block ul {
    margin: 0 0 15px 0;
    color: var(--text);
    font-size: 0.9em;
}

.optional-section-block ul {
    padding: 0 0 0 15px;
}

/*
    -----------------------------
    ----- 11. Media Queries -----
    -----------------------------
*/

/* Collapse timeline */
@media only screen and (max-width: 750px) {
    #experience-timeline:before,
    #experience-timeline:after {
        left: 23px;
    }

    .vtimeline-date {
        width: auto;
        text-align: left;
        position: relative;
        margin-bottom: 15px;
        display: block;
        margin-left: 70px;
    }

    .vtimeline-icon {
        margin-left: 0;
    }

    .vtimeline-content {
        margin-left: 70px;
    }
}

/* Medium Devices */
@media only screen and (max-width: 992px) {
    #lead {
        height: auto;
        min-height: auto;
        max-height: auto;
        padding: 100px 15px;
    }

    #lead-content {
        position: relative;
        transform: none;
        left: auto;
        top: auto;
    }

    #lead-content h1 {
        font-size: 3em;
    }

    #lead-content h2 {
        font-size: 1.75em;
    }

    #about {
        text-align: center;
    }

    #about p {
        text-align: left;
    }
}

/* Small Devices */
@media only screen and (max-width: 768px) {
    header {
        position: fixed;
        display: none;
        z-index: 999;
        animation: none;
        bottom: 0;
        height: 100%;
    }

    #mobile-menu-open,
    #mobile-menu-close {
        display: block;
    }

    #menu {
        height: 100%;
        overflow-y: auto;
        box-shadow: none;
        border-radius: 0;
        width: 100%;
    }

    #menu li {
        display: block;
        margin-bottom: 10px;
    }

    #lead-content h1 {
        font-size: 2em;
    }

    #lead-content h2 {
        font-size: 1.3em;
    }

    #lead-content a {
        padding: 10px 20px;
    }

    #lead-down {
        display: none;
    }

    .education-block h3,
    .education-block span {
        float: none;
    }

    .project-image {
        display: none;
    }

    .project-info {
        position: relative;
        margin: 0;
        padding: 30px 15px;
        top: auto;
        transform: none;
    }

    footer {
        text-align: center;
        padding: 15px 0;
    }

    .copyright {
        padding-top: 15px;
    }

    .social {
        text-align: center;
    }
}

/* Extra Small Devices */
@media only screen and (max-width: 480px) {
    #lead-content h1 {
        font-size: 1.5em;
    }

    #lead-content h2 {
        font-size: 1em;
    }

    #lead-content a {
        font-size: 0.9em;
        padding: 5px 10px;
    }
    
    /* Hero section button layout for mobile */
    #lead div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
    }
}

/*
    ------------------------------
    ----- Enhanced Styles -----
    ------------------------------
*/

/* About Section Enhancements */
.about-content {
    margin-top: 20px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.lead-paragraph {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--text);
    text-align: center;
    max-width: 100%;
}

.highlight-box {
    background: #f8f9fa;
    border-left: 4px solid var(--base-color);
    padding: 20px;
    margin: 20px auto;
    border-radius: 5px;
    text-align: center;
    max-width: 100%;
}

.highlight-box h4 {
    color: var(--heading);
    margin-bottom: 15px;
    font-size: 1.1em;
    text-align: center;
}

.focus-list {
    list-style: none;
    padding: 0;
    text-align: left;
    display: inline-block;
    margin: 0 auto;
    max-width: 100%;
}

.focus-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.focus-list li:before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--base-color);
    font-size: 0.8em;
}

.career-objective {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--text-secondary) 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin: 25px auto 0;
    border-left: 4px solid var(--accent-color);
    text-align: center;
    max-width: 100%;
    box-shadow: var(--shadow-medium);
}

.career-objective h4 {
    color: var(--accent-color) !important;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}

.career-objective p {
    color: white !important;
    text-align: center;
}

.career-objective strong {
    color: white !important;
}

/* Experience Section Enhancements */
.job-description {
    margin-top: 15px;
}

.key-responsibilities h5 {
    color: var(--base-color);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95em;
}

.key-responsibilities ul {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.key-responsibilities li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
    line-height: 1.5;
}

.key-responsibilities li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--base-color);
    font-weight: bold;
}

.achievements {
    background: #e8f5e8;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 15px 0;
    border-left: 3px solid #28a745;
}

.skills-used {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.skill-tag {
    background: var(--base-color);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    margin-right: 8px;
    margin-bottom: 5px;
    display: inline-block;
}

/* Project Section Enhancements */
.project-header {
    margin-bottom: 15px;
}

.project-header h3 {
    margin-bottom: 5px;
    color: var(--heading);
}

.project-category {
    color: var(--base-color);
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-description {
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text);
}

.project-details {
    margin: 20px 0;
}

.project-details h5 {
    color: var(--heading);
    font-size: 0.95em;
    font-weight: 600;
    margin-bottom: 10px;
}

.tech-stack, .achievements {
    margin-bottom: 20px;
}

.tech-tags {
    margin-bottom: 15px;
}

.tech-tag {
    background: #f1f3f4;
    color: var(--heading);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    margin-right: 8px;
    margin-bottom: 8px;
    display: inline-block;
    border: 1px solid #e0e0e0;
}

.achievements ul {
    list-style: none;
    padding: 0;
}

.achievements li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    line-height: 1.4;
}

.achievements li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.project-links {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-project, .btn-project-secondary {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    margin-right: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.btn-project {
    background: var(--base-color);
    color: white;
    border: 2px solid var(--base-color);
}

.btn-project:hover {
    background: var(--base-color-hover);
    border-color: var(--base-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

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

.btn-project-secondary:hover {
    background: var(--base-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Responsive Design for Enhanced Elements */
@media only screen and (max-width: 768px) {
    .highlight-box {
        padding: 15px;
    }
    
    .career-objective {
        padding: 15px;
    }
    
    .skill-tag, .tech-tag {
        font-size: 0.8em;
        padding: 3px 8px;
    }
    
    .btn-project, .btn-project-secondary {
        display: block;
        text-align: center;
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/*
    ------------------------------
    ----- Enhanced Contact Styles -----
    ------------------------------
*/

#contact {
    padding: 100px 15px;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #64B5F6 100%);
    color: white;
    text-align: center;
}

#contact h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 2.5em;
}

.contact-intro {
    font-size: 1.2em;
    margin-bottom: 50px;
    color: #FFFFFF;
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 60px;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--heading);
    font-weight: 600;
    font-size: 0.95em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--base-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-contact-submit {
    background: linear-gradient(135deg, var(--base-color) 0%, var(--base-color-hover) 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.contact-info {
    margin-top: 40px;
}

.contact-info h3 {
    color: white;
    margin-bottom: 30px;
    font-size: 1.8em;
}

.contact-methods {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-method {
    min-width: 200px;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-link i {
    font-size: 1.5em;
    margin-right: 10px;
}

.contact-link span {
    font-weight: 600;
}

/*
    ------------------------------
    ----- Experience Section Fixes -----
    ------------------------------
*/

#experience-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

#experience-timeline:before {
    position: absolute;
    left: 50%;
    top: 0;
    content: '';
    width: 3px;
    height: 100%;
    background: var(--base-color);
    margin-left: -1.5px;
}

#experience-timeline > div {
    position: relative;
    margin-bottom: 30px;
    background: var(--background);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    width: calc(50% - 40px);
}

#experience-timeline > div:nth-child(even) {
    float: right;
    text-align: left;
}

#experience-timeline > div:nth-child(odd) {
    float: left;
    text-align: right;
}

#experience-timeline > div:before {
    content: attr(data-date);
    position: absolute;
    top: 50%;
    background: var(--base-color);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    white-space: nowrap;
    transform: translateY(-50%);
}

#experience-timeline > div:nth-child(odd):before {
    right: -200px;
}

#experience-timeline > div:nth-child(even):before {
    left: -200px;
}

#experience-timeline > div:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--base-color);
    border-radius: 50%;
    transform: translateY(-50%);
    border: 4px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#experience-timeline > div:nth-child(odd):after {
    right: -50px;
}

#experience-timeline > div:nth-child(even):after {
    left: -50px;
}

/* Mobile Experience Timeline */
@media only screen and (max-width: 768px) {
    #experience-timeline:before {
        left: 30px;
    }

    #experience-timeline > div {
        width: calc(100% - 80px);
        float: none !important;
        text-align: left !important;
        margin-left: 60px;
        margin-bottom: 25px;
    }

    #experience-timeline > div:before {
        left: -150px !important;
        right: auto !important;
        top: 20px !important;
        transform: none !important;
        font-size: 0.8em;
    }

    #experience-timeline > div:after {
        left: 20px !important;
        right: auto !important;
        top: 30px !important;
        transform: none !important;
        width: 15px;
        height: 15px;
    }
}

/*
    ------------------------------
    ----- General Layout Improvements -----
    ------------------------------
*/

/* Consistent Section Spacing */
.background-alt {
    padding: 100px 15px;
}

#about, #education, #skills {
    padding: 100px 15px;
}

/* Improved Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 15px;
}

h2.heading {
    font-size: 2.3em;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
}

h2.heading:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--base-color);
}

/* Enhanced Button Styles */
.btn-rounded-white {
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
}

.btn-rounded-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design Improvements */
@media only screen and (max-width: 768px) {
    h2.heading {
        font-size: 2em;
        margin-bottom: 40px;
    }

    .background-alt, #about, #education, #skills {
        padding: 60px 15px;
    }

    #contact {
        padding: 60px 15px;
    }

    #contact-form {
        padding: 25px;
    }

    .contact-methods {
        flex-direction: column;
        gap: 15px;
    }

    .contact-method {
        min-width: auto;
    }

    .contact-link {
        padding: 12px 15px;
    }
}

@media only screen and (max-width: 480px) {
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 14px;
    }

    .btn-contact-submit {
        padding: 12px 30px;
        font-size: 1em;
    }
}

/*
    ------------------------------
    ----- Game Modal Styles -----
    ------------------------------
*/

/* Modal Background */
.game-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease-out;
}

/* Modal Content Container */
.game-modal-content {
    position: relative;
    margin: 2% auto;
    max-width: min(1000px, 95vw);
    width: 95%;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    border: 2px solid #64B5F6;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(100, 181, 246, 0.3);
    overflow: hidden;
    animation: slideIn 0.4s ease-out;
    max-height: min(90vh, 800px);
    overflow-y: auto;
    box-sizing: border-box;
}

/* When game is active, make modal full screen */
.game-modal-body.game-active {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 10000 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.game-modal-body.game-active ~ .game-modal-header {
    display: none !important;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Modal Header */
.game-modal-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-bottom: 2px solid #64B5F6;
    color: #ffffff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-modal-header h2 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 600;
    color: #ffffff;
}

.game-close-btn {
    font-size: 2em;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
    transition: var(--transition-fast);
    color: #64B5F6;
    background: rgba(100, 181, 246, 0.1);
    border: 1px solid #64B5F6;
}

.game-close-btn:hover {
    background: #64B5F6;
    color: #000000;
    transform: scale(1.1);
}

/* Modal Body */
.game-modal-body {
    padding: 0;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    position: relative;
}

/*
    ------------------------------------
    ----- Enhanced Side-by-Side Layout -----
    ------------------------------------
*/

.game-layout-container {
    display: flex;
    min-height: 650px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Game Selection Menu - Full Width Initially */
.game-selection-menu {
    flex: 1;
    padding: 40px;
    text-align: center;
    display: block !important;
    opacity: 1;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(0);
    border-right: none;
    background: transparent;
    overflow-y: auto;
}

/* Transform into compact sidebar when instructions are shown */
.game-layout-container.show-instructions .game-selection-menu {
    flex: 0 0 280px; /* Fixed width sidebar */
    transform: translateX(0);
    padding: 20px 15px;
    background: linear-gradient(145deg, #ffffff 0%, #f1f3f4 100%);
    border-right: 3px solid var(--accent-color);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
}

/* Game Instructions - Expanded Space */
.game-instructions-screen {
    flex: 1;
    padding: 40px;
    background: linear-gradient(135deg, var(--background-light) 0%, rgba(255, 105, 0, 0.02) 100%);
    border-left: none;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    position: relative;
}

/* Enhanced instructions display */
.game-layout-container.show-instructions .game-instructions-screen {
    opacity: 1;
    transform: translateX(0);
    flex: 1; /* Take remaining space after sidebar */
}

/*
    ------------------------------------
    ----- Game Selection Menu Styles -----
    ------------------------------------
*/

.game-selection-menu.hide {
    opacity: 0;
    pointer-events: none;
}

.game-selection-menu h3 {
    color: var(--text-primary);
    font-size: 2em;
    margin-bottom: 30px;
    font-weight: 700;
    transition: all 0.4s ease;
}

/* Compact sidebar title with enhanced styling */
.game-layout-container.show-instructions .game-selection-menu h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: var(--accent-color);
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    background: linear-gradient(135deg, transparent, rgba(255, 105, 0, 0.1));
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Enhanced sidebar background */
.game-layout-container.show-instructions .game-selection-menu {
    background: linear-gradient(180deg, var(--background-dark) 0%, rgba(0, 0, 0, 0.95) 100%);
    border-right: 3px solid var(--accent-color);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
    scroll-behavior: smooth;
}

/* Custom scrollbar for sidebar */
.game-layout-container.show-instructions .game-selection-menu::-webkit-scrollbar {
    width: 6px;
}

.game-layout-container.show-instructions .game-selection-menu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.game-layout-container.show-instructions .game-selection-menu::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

/* Sidebar gradient overlay */
.game-layout-container.show-instructions .game-selection-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, var(--accent-color) 0%, transparent 100%);
    opacity: 0.1;
    pointer-events: none;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    transition: all 0.4s ease;
}

/* Compact sidebar grid - single column */
.game-layout-container.show-instructions .games-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: none;
}

.game-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #64B5F6;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 8px 32px rgba(255, 105, 0, 0.1);
}

/* Compact cards in sidebar layout */
.game-layout-container.show-instructions .game-card {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid rgba(255, 105, 0, 0.5);
}

.game-layout-container.show-instructions .game-card:hover {
    background: linear-gradient(135deg, #2d2d2d 0%, #404040 100%);
    border-color: #64B5F6;
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.3);
    transform: translateX(5px);
}

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

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

.game-card:hover {
    transform: translateY(-10px);
    border-color: #42A5F5;
    box-shadow: 0 15px 40px rgba(100, 181, 246, 0.3);
    background: linear-gradient(135deg, #2d2d2d 0%, #404040 100%);
}

.game-icon {
    font-size: 3em;
    margin-bottom: 15px;
    display: block;
    transition: all 0.3s ease;
}

/* Compact icons in sidebar layout */
.game-layout-container.show-instructions .game-icon {
    font-size: 1.8em;
    margin-bottom: 8px;
}

.game-card h4 {
    color: #ffffff;
    font-size: 1.4em;
    margin: 15px 0 10px 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Compact titles in sidebar layout */
.game-layout-container.show-instructions .game-card h4 {
    font-size: 1em;
    margin: 8px 0 6px 0;
    font-weight: 500;
}

.game-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 0.95em;
    line-height: 1.5;
    transition: all 0.3s ease;
}

/* Hide descriptions in sidebar layout for space efficiency */
.game-layout-container.show-instructions .game-card p {
    display: none;
}

.select-game-btn {
    background: linear-gradient(45deg, #64B5F6, #42A5F5);
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(255, 105, 0, 0.3);
}

.select-game-btn:hover {
    background: linear-gradient(45deg, #42A5F5, #90CAF9);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 105, 0, 0.5);
}

/* Smaller buttons in side layout */
.game-layout-container.show-instructions .select-game-btn {
    padding: 8px 15px;
    font-size: 0.7em;
}

.select-game-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 105, 0, 0.4);
}

/*
    ------------------------------------
    ----- Instructions Container -----
    ------------------------------------
*/

.instructions-container {
    max-width: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #64B5F6;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(255, 105, 0, 0.2);
    min-height: 600px;
    overflow-y: auto;
}

.instructions-container h2 {
    color: #64B5F6;
    margin-bottom: 15px;
    margin-top: 0;
    font-size: 2.2em;
    font-weight: bold;
    text-align: center;
    border-bottom: 3px solid #64B5F6;
    padding-bottom: 10px;
}

.game-preview-icon {
    font-size: 4em;
    margin: 15px auto 25px auto;
    display: block;
    text-align: center;
    color: #64B5F6;
}

.instructions-content h3 {
    color: #ffffff;
    margin: 25px 0 18px 0;
    font-size: 1.3em;
    border-bottom: 2px solid #64B5F6;
    padding-bottom: 8px;
    text-align: left;
}

.instruction-text {
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 105, 0, 0.2);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    font-size: 1.1em;
    color: var(--text-dark);
    line-height: 1.6;
}

.instruction-item {
    margin: 10px 0;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.difficulty-selection {
    margin: 30px 0;
}

.difficulty-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.difficulty-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 25px;
    border: 2px solid rgba(255, 105, 0, 0.3);
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    box-shadow: 0 8px 32px rgba(255, 105, 0, 0.1);
}

.difficulty-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 105, 0, 0.3);
    background: linear-gradient(135deg, #2d2d2d 0%, #404040 100%);
    border-color: #64B5F6;
}

.difficulty-btn.selected {
    border-color: #64B5F6;
    background: linear-gradient(135deg, #64B5F6 0%, #42A5F5 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 105, 0, 0.4);
}

.difficulty-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.difficulty-label {
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 5px;
}

.difficulty-desc {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.instruction-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.instruction-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.back-btn {
    background: var(--text-secondary);
    color: white;
}

.back-btn:hover {
    background: var(--text-dark);
    transform: translateY(-2px);
}

.start-btn {
    background: var(--primary-color);
    color: white;
}

.start-btn:hover:not(:disabled) {
    background: #e55a00;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 105, 0, 0.4);
}

.start-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/*
    ------------------------------------
    ----- Floating Chatbot Button -----
    ------------------------------------
*/

.floating-chatbot-btn {
    position: fixed;
    bottom: clamp(15px, 4vw, 30px);
    right: clamp(15px, 4vw, 30px);
    width: clamp(50px, 12vw, 70px);
    height: clamp(50px, 12vw, 70px);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--text-secondary) 100%);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.floating-chatbot-btn:hover {
    width: 160px;
    border-radius: 35px;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 105, 0, 0.4);
}

.floating-chatbot-btn .chatbot-icon {
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 2;
}

.floating-chatbot-btn .chatbot-text {
    position: absolute;
    right: 20px;
    color: white;
    font-weight: bold;
    font-size: 12px;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.floating-chatbot-btn:hover .chatbot-text {
    opacity: 1;
}

.floating-chatbot-btn:hover .chatbot-icon {
    transform: translateX(-25px);
}

.chatbot-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent-color);
    opacity: 0.6;
    animation: chatbot-pulse 2s infinite;
    z-index: 1;
}

.floating-chatbot-btn:hover .chatbot-pulse {
    animation: none;
    opacity: 0;
}

@keyframes chatbot-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .floating-chatbot-btn {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }
    
    .floating-chatbot-btn:hover {
        width: 140px;
        border-radius: 30px;
    }
    
    .floating-chatbot-btn .chatbot-icon {
        font-size: 20px;
    }
    
    .floating-chatbot-btn .chatbot-text {
        font-size: 11px;
        right: 15px;
    }
    
    .floating-chatbot-btn:hover .chatbot-icon {
        transform: translateX(-20px);
    }
}

/*
    ------------------------------------
    ----- Floating Theme Button -----
    ------------------------------------
*/

.floating-theme-btn {
    position: fixed;
    left: clamp(15px, 4vw, 30px);
    bottom: clamp(15px, 4vw, 30px);
    width: clamp(50px, 12vw, 70px);
    height: clamp(50px, 12vw, 70px);
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border: 2px solid #d35400;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: clamp(18px, 4vw, 28px);
    color: white;
}

.floating-theme-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .floating-theme-btn {
        left: 20px;
        bottom: 20px;
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

/*
    ------------------------------------
    ----- Chatbot Modal Styles -----
    ------------------------------------
*/

.chatbot-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.chatbot-modal-content {
    position: relative;
    background-color: #ffffff;
    margin: 5% auto;
    width: 90%;
    max-width: 800px;
    height: 85vh;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.chatbot-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--text-secondary) 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 20px 20px 0 0;
    border-left: 4px solid var(--accent-color);
}

.chatbot-avatar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.robot-emoji {
    font-size: 1.2em;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.chatbot-info h3 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
    color: var(--accent-color);
}

.chatbot-status {
    margin: 5px 0 0 0;
    font-size: 0.9em;
    opacity: 0.9;
}

.chatbot-close {
    font-size: 2em;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.chatbot-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 85%;
}

.bot-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: var(--accent-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.user-message .message-avatar {
    background: var(--primary-color);
    color: white;
}

.message-content {
    background: white;
    padding: 15px 18px;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.user-message .message-content {
    background: var(--primary-color);
    color: white;
}

.bot-message .message-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 15px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid white;
}

.user-message .message-content::before {
    content: '';
    position: absolute;
    right: -8px;
    top: 15px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid var(--primary-color);
}

.message-content p {
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.quick-action-btn {
    background: rgba(0, 0, 0, 0.1);
    color: #000000;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.quick-action-btn:hover {
    background: #64B5F6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 105, 0, 0.3);
}

.chat-input-area {
    background: white;
    border-top: 1px solid #e0e0e0;
    padding: 20px;
}

.chat-input-container {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.chat-input-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 105, 0, 0.1);
}

#chatInput {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 1rem;
    outline: none;
    color: #333;
}

#chatInput::placeholder {
    color: #999;
}

.send-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1em;
}

.send-btn:hover:not(:disabled) {
    background: #e55a00;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 105, 0, 0.3);
}

.send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.chat-footer {
    margin-top: 10px;
    text-align: center;
}

.chat-footer small {
    color: #666;
    font-style: italic;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: typingAnimation 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingAnimation {
    0%, 60%, 100% { opacity: 0.3; }
    30% { opacity: 1; }
}

/* Responsive Design */
@media only screen and (max-width: 768px) {
    .chatbot-modal-content {
        margin: 0;
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
    
    .chatbot-header {
        border-radius: 0;
    }
    
    .message {
        max-width: 95%;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .quick-action-btn {
        width: 100%;
        text-align: center;
    }
}

/*
    ------------------------------------
    ----- Game Container Styles -----
    ------------------------------------
*/

.game-area {
    display: flex;
    flex-direction: column;
    width: 75%;
    height: 100%;
    background-color: var(--background-light);
    position: relative;
}

/* Full-screen game area styling */
.game-modal-body.game-active .game-area {
    width: 100% !important;
    height: 100vh !important;
    background-color: #000 !important;
}

/* Hide game header in full-screen mode */
.game-modal-body.game-active .game-header {
    display: none !important;
}

/* Make canvas fill the screen in full-screen mode */
.game-modal-body.game-active #gameCanvas {
    width: 100vw !important;
    height: 100vh !important;
    background-color: #000 !important;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--background-gray);
    border-bottom: 2px solid var(--border-color);
}

.back-btn {
    background: var(--text-secondary);
    color: var(--text-light);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    cursor: pointer;
    transition: var(--transition-fast);
}

.back-btn:hover {
    background: var(--primary-color);
    transform: translateX(-2px);
}

#currentGameTitle {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.game-score {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 1.1em;
}

#gameCanvas {
    display: block;
    background-color: #f0f0f0;
    width: 100%;
    height: calc(100% - 120px);
    min-height: 400px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin: 5px;
    box-sizing: border-box;
}

/* Game Canvas Container for Overlay Support */
.game-canvas-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
}

/* Game Over Overlay */
.game-over-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
    border-radius: 8px;
    margin: 5px;
}

.game-over-content {
    text-align: center;
    color: white;
    animation: gameOverSlideIn 0.5s ease-out;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.game-over-icon {
    font-size: 4em;
    margin-bottom: 15px;
    animation: gameOverPulse 1s ease-in-out infinite;
}

.game-over-content h2 {
    font-size: 2.5em;
    margin: 0 0 15px 0;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #ff4444;
}

.final-score {
    font-size: 1.8em;
    font-weight: bold;
    margin: 15px 0;
    color: #ffdd44;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.game-over-message {
    font-size: 1.2em;
    margin-top: 10px;
    opacity: 0.9;
    font-style: italic;
}

@keyframes gameOverSlideIn {
    0% {
        transform: translateY(-50px) scale(0.8);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes gameOverPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

#gameControls {
    padding: 15px;
    background: var(--background-gray);
    text-align: center;
}

.game-instructions {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-bottom: 10px;
}

#gameOverMessage {
    color: var(--accent-color);
    font-size: 1.5em;
    font-weight: bold;
    margin: 15px 0;
}

.leaderboard-tabs {
    display: flex;
    margin-bottom: 15px;
    background: var(--background-gray);
    border-radius: 8px;
    padding: 3px;
}

.tab-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition-fast);
    font-size: 0.8em;
    font-weight: 500;
}

.tab-btn.active {
    background: var(--accent-color);
    color: var(--text-light);
}

.tab-btn:hover:not(.active) {
    background: var(--border-color);
}

/* Game Styles (adapted for modal) */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

.game-wrapper {
    display: flex;
    width: 100%;
    height: 600px;
    min-height: 600px;
    font-family: 'Press Start 2P', cursive;
    user-select: none;
    background-color: var(--background-light);
    border-radius: 0 0 15px 15px;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    position: relative;
}

/* When game is active, make wrapper fill entire screen */
.game-modal-body.game-active .game-wrapper {
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    border-radius: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    background-color: #000 !important; /* Solid black background */
}

/* Full-screen close button */
.fullscreen-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2em;
    color: white;
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    font-weight: bold;
}

.fullscreen-close-btn:hover {
    background-color: rgba(255, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Show full-screen close button only when game is active */
.game-modal-body.game-active .fullscreen-close-btn {
    display: flex !important;
}

.game-wrapper.hide {
    opacity: 0;
    pointer-events: none;
}

.game-container {
    position: relative;
    width: 75%;
    height: 100%;
    background-color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#gameCanvas {
    display: block;
    background-color: #f0f0f0;
    width: 100%;
    height: 77.77%;
}

.leaderboard-container {
    width: 25%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--text-secondary));
    color: var(--text-light);
    padding: 20px 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    border-left: 3px solid var(--accent-color);
    border-radius: 0 0 15px 0;
}

.leaderboard-container h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #f1c40f;
    text-align: center;
}

.leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.leaderboard-list li {
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 5px;
    padding: 4px 6px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.leaderboard-list li span:first-child {
    font-weight: bold;
    color: #bdc3c7;
}

.leaderboard-list li span:last-child {
    color: #ffffff;
}

#gameControls {
    width: 100%;
    height: 22.23%;
    background-color: #eee;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
    position: relative;
}

#scoreDisplay {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1rem;
    color: #333;
    display: none;
}

#gameOverMessage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: #e74c3c;
    font-weight: bold;
    text-align: center;
    display: none;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid #e74c3c;
    animation: gameMessageFadeIn 0.5s ease-out;
}

@keyframes gameMessageFadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.game-button {
    padding: 10px 25px;
    font-size: 1.2rem;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 5px 10px rgba(46, 204, 113, 0.4);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: 15px;
}

.game-button:hover:not(:disabled) {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(46, 204, 113, 0.6);
}

.game-button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.game-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* Enhanced Restart Button Styling */
#restartGameBtn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 20px;
}

#restartGameBtn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

#restartGameBtn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
}

#restartButton {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 20px;
    font-size: 1rem;
    display: none;
    z-index: 2;
    margin-top: 0;
}

.game-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 30;
}

.game-menu h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 20px;
}

.game-menu label {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 10px;
}

.game-menu select,
.game-menu input[type="text"] {
    padding: 8px 15px;
    font-size: 1rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: #f0f0f0;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
    text-align: center;
}

.game-menu select:focus,
.game-menu input[type="text"]:focus {
    border-color: #3498db;
}

/* Responsive Game Modal */
@media only screen and (max-width: 768px) {
    .game-modal-content {
        margin: 2% auto;
        max-width: 98%;
        max-height: 95vh;
    }

    .game-wrapper {
        height: 500px;
        min-height: 500px;
        flex-direction: column;
    }

    .game-area {
        width: 100%;
        height: 75%;
    }

    .leaderboard-container {
        width: 100%;
        height: 25%;
        border-left: none;
        border-top: 3px solid var(--accent-color);
        border-radius: 0 0 15px 15px;
    }

    #gameCanvas {
        height: calc(100% - 100px);
        min-height: 300px;
    }

    .game-header {
        padding: 10px 15px;
    }

    .back-btn {
        padding: 6px 12px;
        font-size: 0.8em;
    }

    #currentGameTitle {
        font-size: 1.1em;
    }

    .game-score {
        font-size: 1em;
    }

    .game-menu h2 {
        font-size: 1.5rem;
    }

    .game-menu label,
    .game-menu select,
    .game-menu input[type="text"] {
        font-size: 0.9rem;
    }
    
    /* Mobile Game Over Overlay */
    .game-over-content {
        padding: 25px 20px;
        margin: 10px;
    }
    
    .game-over-content h2 {
        font-size: 2em;
        margin-bottom: 10px;
    }
    
    .game-over-icon {
        font-size: 3em;
        margin-bottom: 10px;
    }
    
    .final-score {
        font-size: 1.5em;
        margin: 10px 0;
    }
    
    .game-over-message {
        font-size: 1em;
    }
    
    #restartGameBtn {
        padding: 12px 25px;
        font-size: 1em;
        margin-top: 15px;
    }
}

/*
    ------------------------------
    ----- Certifications Styles -----
    ------------------------------
*/

#certifications {
    padding: 50px 15px;
    text-align: center;
}

#certifications h2 {
    color: var(--heading);
    margin-bottom: 50px;
}

.certification-block {
    max-width: 350px;
    margin: 0 auto 30px auto;
    padding: 15px;
    border: 1px solid var(--border);
    background: var(--background);
    text-align: left;
    border-radius: 20px; /* Squircle shape */
}

.certification-block h3 {
    font-weight: 500;
    float: left;
    margin: 0;
    color: var(--heading);
    margin-bottom: 15px;
    font-size: 16px;
    border-bottom: 2px solid var(--base-color);
    padding-bottom: 5px;
    width: 100%;
}

.certification-block ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.certification-block ul li {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text);
    position: relative;
    padding-left: 20px;
}

.certification-block ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--base-color);
    font-weight: bold;
}

@media only screen and (max-width: 768px) {
    .certification-block {
        margin: 0 auto 30px auto;
    }
}

/* Skill Tags in Certifications */
.skill-tag {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-light);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75em;
    font-weight: 500;
    margin: 3px 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
}

.skill-tag:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
}

/*
    ------------------------------
    ----- Timeline Styles -----
    ------------------------------
*/

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-color), var(--primary-color));
    border-radius: 2px;
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-item:nth-child(odd) .timeline-card {
    margin-right: auto;
    margin-left: 0;
    text-align: left;
    transform: translateX(-60px);
}

.timeline-item:nth-child(even) .timeline-card {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
    transform: translateX(60px);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border: 4px solid var(--background-light);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 4px 8px var(--shadow-light);
    transition: var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 6px 15px var(--shadow-medium);
}

.timeline-card {
    background: var(--background-light);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    width: 45%;
    box-shadow: 0 8px 25px var(--shadow-light);
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
}

.timeline-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px var(--shadow-medium);
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 12px solid transparent;
    z-index: 3;
}

.timeline-item:nth-child(odd) .timeline-card::before {
    right: -24px;
    border-left-color: var(--border-color);
    transform: translateY(-50%);
}

.timeline-item:nth-child(even) .timeline-card::before {
    left: -24px;
    border-right-color: var(--border-color);
    transform: translateY(-50%);
}

.timeline-card:hover::before {
    border-left-color: var(--accent-color);
    border-right-color: var(--accent-color);
}

.timeline-date {
    font-size: 0.9em;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-card h3 {
    color: var(--text-primary);
    font-size: 1.3em;
    margin: 10px 0 5px 0;
    font-weight: 700;
}

.timeline-card h4 {
    color: var(--text-secondary);
    font-size: 1.0em;
    margin: 5px 0 15px 0;
    font-weight: 500;
}

.timeline-summary {
    color: var(--text-secondary);
    font-size: 0.95em;
    margin: 10px 0 20px 0;
    line-height: 1.5;
}

.view-details-btn {
    background: var(--accent-color);
    color: var(--text-light);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-details-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 105, 0, 0.4);
}

/* Responsive Timeline */
@media only screen and (max-width: 768px) {
    .timeline-line {
        left: 30px;
    }
    
    .timeline-item {
        margin-bottom: 40px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-card {
        width: calc(100% - 80px);
        margin-left: 60px !important;
        margin-right: 0 !important;
        text-align: left !important;
        transform: none !important;
    }
    
    .timeline-card::before {
        left: -24px !important;
        right: auto !important;
        border-right-color: var(--border-color) !important;
        border-left-color: transparent !important;
    }
    
    .timeline-card:hover::before {
        border-right-color: var(--accent-color) !important;
        border-left-color: transparent !important;
    }
}

/*
    ------------------------------
    ----- Detail Modal Styles -----
    ------------------------------
*/

.detail-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease-out;
}

.detail-modal-content {
    position: relative;
    margin: 3% auto;
    max-width: 800px;
    width: 90%;
    background-color: var(--background-light);
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    animation: slideInUp 0.4s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.detail-modal-header {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--accent-color);
}

.detail-modal-header h2 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 600;
    color: var(--text-light);
}

.detail-close-btn {
    font-size: 30px;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 5px 10px;
    border-radius: 50%;
}

.detail-close-btn:hover {
    background: var(--accent-color);
    transform: rotate(90deg);
}

.detail-modal-body {
    padding: 30px;
    background: var(--background-light);
}

.modal-section {
    margin-bottom: 25px;
}

.modal-section h3 {
    color: var(--primary-color);
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 8px;
}

.modal-section h4 {
    color: var(--text-primary);
    font-size: 1.2em;
    margin: 15px 0 10px 0;
    font-weight: 600;
}

.modal-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-section ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.modal-section ul li {
    color: var(--text-secondary);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.modal-section ul li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 0.8em;
}

.modal-achievement {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f9ff 100%);
    border-left: 4px solid #28a745;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.modal-achievement strong {
    color: #28a745;
}

.modal-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.modal-skill-tag {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
}

/* Responsive Modal */
@media only screen and (max-width: 768px) {
    .detail-modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }
    
    .detail-modal-header {
        padding: 20px;
    }
    
    .detail-modal-header h2 {
        font-size: 1.4em;
    }
    
    .detail-modal-body {
        padding: 20px;
    }
    
    .modal-skills {
        gap: 8px;
    }
    
    .modal-skill-tag {
        padding: 6px 12px;
        font-size: 0.8em;
    }
}

/* 
    ------------------------------------
    ----- Game Layout Responsive -----
    ------------------------------------
*/

@media only screen and (max-width: 768px) {
    .game-layout-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .game-selection-menu {
        flex: 1;
        border-right: none;
        border-bottom: 2px solid var(--border-color);
        transform: none !important;
        padding: 20px;
    }
    
    .game-layout-container.show-instructions .game-selection-menu {
        flex: 0.3;
        transform: none !important;
    }
    
    .game-instructions-screen {
        flex: 0.7;
        border-left: none;
        border-top: 2px solid var(--accent-color);
        transform: translateY(100%) !important;
    }
    
    .game-layout-container.show-instructions .game-instructions-screen {
        transform: translateY(0) !important;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .game-layout-container.show-instructions .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .instructions-container {
        padding: 15px;
    }
    
    .instructions-container h2 {
        font-size: 1.5em;
    }
    
    .game-preview-icon {
        font-size: 2.5em;
    }
}

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

/* Large Desktop (1200px and up) */
@media only screen and (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced button positioning for large screens */
    .btn {
        font-size: 1.1em;
        padding: 15px 35px;
    }
    
    .game-modal-content {
        max-width: 1000px;
    }
    
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* Desktop (992px to 1199px) */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Tablet Landscape (768px to 991px) */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 20px;
    }
    
    /* Header adjustments */
    #lead h1 {
        font-size: 2.5em;
    }
    
    #lead h2 {
        font-size: 1.5em;
    }
    
    /* Button improvements for tablet */
    .btn {
        font-size: 1em;
        padding: 12px 25px;
        min-width: 140px;
    }
    
    /* Game layout adjustments */
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .game-card {
        padding: 20px;
    }
    
    /* Contact form adjustments */
    #contact-form {
        padding: 30px;
        margin: 0 10px;
    }
    
    /* Chatbot positioning */
    .floating-chatbot-btn {
        right: 20px;
        bottom: 20px;
        width: 60px;
        height: 60px;
    }
}

/* Tablet Portrait (481px to 767px) */
@media only screen and (min-width: 481px) and (max-width: 767px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    /* Header mobile optimization */
    #lead {
        padding: 100px 15px;
    }
    
    #lead h1 {
        font-size: 2.2em;
        line-height: 1.2;
    }
    
    #lead h2 {
        font-size: 1.3em;
        margin-bottom: 30px;
    }
    
    /* Button optimization for tablet portrait */
    .btn {
        font-size: 0.95em;
        padding: 14px 28px;
        min-width: 160px;
        display: block;
        margin: 10px auto;
        text-align: center;
    }
    
    /* Navigation improvements */
    #menu {
        text-align: center;
        padding: 10px 0;
    }
    
    #menu li {
        display: inline-block;
        margin: 0 8px;
    }
    
    /* Games layout for tablet */
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .game-card {
        padding: 18px;
        text-align: center;
    }
    
    .game-card h4 {
        font-size: 1.2em;
    }
    
    .select-game-btn {
        width: 100%;
        padding: 10px;
        font-size: 0.9em;
    }
    
    /* Contact form tablet optimization */
    #contact-form {
        padding: 25px;
        margin: 0 5px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    /* Chatbot adjustments */
    .floating-chatbot-btn {
        right: 15px;
        bottom: 15px;
        width: 55px;
        height: 55px;
    }
    
    .chatbot-modal-content {
        width: 95%;
        height: 85vh;
        margin: 5% auto;
    }
}

/* Mobile Landscape & Small Tablets (376px to 480px) */
@media only screen and (min-width: 376px) and (max-width: 480px) {
    /* Enhanced mobile layout */
    #lead {
        padding: 80px 15px;
        text-align: center;
    }
    
    #lead h1 {
        font-size: 2em;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    #lead h2 {
        font-size: 1.1em;
        margin-bottom: 25px;
    }
    
    /* Optimized button layout */
    .btn {
        font-size: 0.9em;
        padding: 12px 20px;
        min-width: 140px;
        width: auto;
        display: inline-block;
        margin: 8px 5px;
    }
    
    .btn-rounded-white {
        background: rgba(255, 255, 255, 0.95);
        color: var(--primary-color);
        border: 2px solid var(--primary-color);
    }
    
    /* Games optimized for small screens */
    .games-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .game-card {
        padding: 20px;
        margin-bottom: 10px;
    }
    
    .game-icon {
        font-size: 2.5em;
    }
    
    .select-game-btn {
        width: 100%;
        padding: 12px;
        font-size: 0.85em;
        border-radius: 20px;
    }
    
    /* Contact form mobile */
    #contact {
        padding: 60px 10px;
    }
    
    #contact h2 {
        font-size: 2em;
    }
    
    #contact-form {
        padding: 20px;
        margin: 0;
        border-radius: 10px;
    }
    
    /* Chatbot mobile optimization */
    .floating-chatbot-btn {
        right: 15px;
        bottom: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.2em;
    }
    
    .chatbot-modal-content {
        width: 100%;
        height: 100vh;
        margin: 0;
        border-radius: 0;
    }
}

/* Small Mobile (up to 375px) */
@media only screen and (max-width: 375px) {
    /* Compact mobile layout */
    body {
        font-size: 14px;
    }
    
    #lead {
        padding: 60px 10px;
    }
    
    #lead h1 {
        font-size: 1.8em;
        line-height: 1.1;
    }
    
    #lead h2 {
        font-size: 1em;
        margin-bottom: 20px;
    }
    
    /* Stack buttons vertically on very small screens */
    .btn {
        font-size: 0.85em;
        padding: 10px 15px;
        width: calc(100% - 20px);
        max-width: 280px;
        display: block;
        margin: 8px auto;
        text-align: center;
    }
    
    /* Navigation for small screens */
    #menu li {
        display: block;
        margin: 5px 0;
        text-align: center;
    }
    
    #menu a {
        display: block;
        padding: 8px 15px;
        font-size: 0.9em;
    }
    
    /* Single column games */
    .games-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 10px;
    }
    
    .game-card {
        padding: 15px;
        margin-bottom: 8px;
    }
    
    .game-icon {
        font-size: 2.2em;
    }
    
    .game-card h4 {
        font-size: 1.1em;
    }
    
    .game-card p {
        font-size: 0.85em;
    }
    
    /* Contact adjustments */
    #contact {
        padding: 50px 5px;
    }
    
    #contact h2 {
        font-size: 1.8em;
    }
    
    .contact-intro {
        font-size: 1em;
        padding: 0 10px;
    }
    
    #contact-form {
        padding: 15px;
        margin: 0 5px;
    }
    
    .form-group label {
        font-size: 0.9em;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 0.9em;
        padding: 10px;
    }
    
    /* Chatbot full screen on small mobile */
    .floating-chatbot-btn {
        right: 10px;
        bottom: 10px;
        width: 45px;
        height: 45px;
        font-size: 1.1em;
    }
    
    .chatbot-modal-content {
        width: 100%;
        height: 100vh;
        margin: 0;
        border-radius: 0;
    }
}

/* Ultra-wide screens (1400px and up) */
@media only screen and (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Enhanced spacing for ultra-wide */
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .btn {
        font-size: 1.2em;
        padding: 18px 40px;
    }
    
    #lead h1 {
        font-size: 3.5em;
    }
    
    #lead h2 {
        font-size: 2em;
    }
}

/* Aspect Ratio Optimizations */
@media only screen and (max-aspect-ratio: 1/1) {
    /* Portrait orientation adjustments */
    .floating-chatbot-btn {
        bottom: 80px; /* Account for mobile browser UI */
    }
    
    .game-layout-container {
        flex-direction: column;
    }
    
    .chatbot-modal-content {
        height: 90vh;
    }
}

@media only screen and (min-aspect-ratio: 16/9) {
    /* Wide landscape adjustments */
    .container {
        max-width: 85%;
    }
    
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Touch-friendly improvements for all mobile devices */
@media (hover: none) and (pointer: coarse) {
    /* Touch targets */
    .btn {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    .game-card {
        cursor: pointer;
        touch-action: manipulation;
    }
    
    .select-game-btn {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    /* Larger tap targets for navigation */
    #menu a {
        min-height: 44px;
        padding: 12px 15px;
    }
    
    .floating-chatbot-btn {
        min-width: 50px;
        min-height: 50px;
    }
}

/* High DPI display optimizations */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min--moz-device-pixel-ratio: 2),
       only screen and (min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi) {
    
    /* Crisp borders and shadows for retina */
    .btn {
        border-width: 1px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .game-card {
        border-width: 1px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
}

/*
    ------------------------------------
    ----- Projects Grid Layout -----
    ------------------------------------
*/

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.project-card {
    background: var(--background-light);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
    text-align: center;
}

.project-icon {
    font-size: 2.5em;
    flex-shrink: 0;
}

.project-title-area {
    text-align: center;
}

.project-title-area h3 {
    margin: 0 0 8px 0;
    font-size: 1.4em;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.project-category {
    background: var(--accent-color);
    color: var(--text-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    display: inline-block;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.project-details {
    margin-top: 20px;
}

.tech-stack h5,
.achievements h5 {
    margin: 15px 0 10px 0;
    font-size: 1em;
    font-weight: 600;
    color: var(--text-primary);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tech-tag {
    background: rgba(255, 105, 0, 0.1);
    color: var(--accent-color);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
    border: 1px solid rgba(255, 105, 0, 0.2);
}

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

.achievements li {
    padding: 5px 0;
    color: var(--text-secondary);
    font-size: 0.9em;
    position: relative;
    padding-left: 20px;
}

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

/*
    ------------------------------------
    ----- Certifications Grid Layout -----
    ------------------------------------
*/

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

.certification-card {
    background: var(--background-light);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.certification-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.cert-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 105, 0, 0.1);
}

.cert-icon {
    font-size: 1.8em;
    flex-shrink: 0;
}

.cert-header h3 {
    margin: 0;
    font-size: 1.2em;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.cert-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cert-list {
    flex: 1;
    margin-bottom: 15px;
}

.cert-item {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9em;
    line-height: 1.4;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    padding-left: 15px;
}

.cert-item:last-child {
    border-bottom: none;
}

.cert-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.cert-count {
    background: var(--accent-color);
    color: var(--text-light);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-align: center;
    margin-top: auto;
}

.featured-skills .skill-tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin-bottom: 15px;
}

.skill-tag-cert {
    background: rgba(255, 105, 0, 0.1);
    color: var(--accent-color);
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
    border: 1px solid rgba(255, 105, 0, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.skill-tag-cert:hover {
    background: var(--accent-color);
    color: var(--text-light);
}

/* Responsive adjustments for card layouts */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .project-icon {
        font-size: 2em;
    }
    
    .cert-header {
        gap: 10px;
    }
    
    .cert-icon {
        font-size: 1.5em;
    }
    
    .skill-tags-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

@media (max-width: 480px) {
    .projects-grid,
    .certifications-grid {
        margin-top: 20px;
    }
    
    .project-card,
    .certification-card {
        padding: 20px;
    }
    
    .project-title-area h3 {
        font-size: 1.2em;
    }
    
    .cert-header h3 {
        font-size: 1.1em;
    }
}

/*
    ------------------------------------
    ----- Experience Grid Layout -----
    ------------------------------------
*/

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.experience-card {
    background: var(--background-light);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.experience-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.exp-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
    text-align: center;
}

.exp-icon {
    font-size: 1.8em;
    flex-shrink: 0;
}

.exp-title-area {
    text-align: center;
}

.exp-title-area h3 {
    margin: 0 0 5px 0;
    font-size: 1.3em;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.exp-title-area h4 {
    margin: 0 0 8px 0;
    font-size: 1em;
    font-weight: 600;
    color: var(--text-secondary);
}

.exp-period {
    background: var(--accent-color);
    color: var(--text-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    display: inline-block;
}

.exp-description {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.exp-skills h5 {
    margin: 15px 0 8px 0;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--text-primary);
}

/*
    ------------------------------------
    ----- Education Grid Layout -----
    ------------------------------------
*/

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.education-card {
    background: var(--background-light);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.education-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.edu-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
    text-align: center;
}

.edu-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.edu-title-area {
    text-align: center;
}

.edu-title-area h3 {
    margin: 0 0 8px 0;
    font-size: 1.4em;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.edu-title-area h4 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-secondary);
}

.edu-period {
    background: var(--accent-color);
    color: var(--text-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    display: inline-block;
}

.edu-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.edu-focus h5 {
    margin: 15px 0 10px 0;
    font-size: 1em;
    font-weight: 600;
    color: var(--text-primary);
}

.focus-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.focus-tag {
    background: rgba(255, 105, 0, 0.1);
    color: var(--accent-color);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
    border: 1px solid rgba(255, 105, 0, 0.2);
}

/*
    ------------------------------------
    ----- Skills Grid Layout -----
    ------------------------------------
*/

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

.skill-card {
    background: var(--background-light);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 105, 0, 0.1);
}

.skill-icon {
    font-size: 1.8em;
    flex-shrink: 0;
}

.skill-header h3 {
    margin: 0;
    font-size: 1.2em;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.skill-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.skill-list {
    flex: 1;
    margin-bottom: 15px;
}

.skill-item {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.9em;
    line-height: 1.3;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    padding-left: 15px;
}

.skill-item:last-child {
    border-bottom: none;
}

.skill-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.skill-count {
    background: var(--accent-color);
    color: var(--text-light);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-align: center;
    margin-top: auto;
}

/* Responsive adjustments for all card layouts */
@media (max-width: 768px) {
    .experience-grid,
    .education-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .exp-header,
    .edu-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .exp-icon,
    .edu-icon,
    .skill-icon {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .experience-grid,
    .education-grid,
    .skills-grid {
        margin-top: 20px;
    }
    
    .experience-card,
    .education-card,
    .skill-card {
        padding: 15px;
    }
    
    .exp-title-area h3,
    .edu-title-area h3 {
        font-size: 1.2em;
    }
    
    .skill-header h3 {
        font-size: 1.1em;
    }
}

/*
    --------------------------------
    ----- ETA: Echoes of Rebirth -----
    --------------------------------
*/

/* Enhanced ETA Game Container for Better Playability */
.eta-game-container {
    width: 100%;
    max-width: 1200px;
    height: 700px;
    margin: 20px auto;
    border-radius: 20px;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    border: 3px solid #ffd700;
    position: relative;
}

.eta-game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 215, 0, 0.05) 50%, transparent 70%);
    pointer-events: none;
    animation: subtleShimmer 8s linear infinite;
}

@keyframes subtleShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Game Screen Base */
.eta-game-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    color: white;
    padding: 30px 20px;
    box-sizing: border-box;
    position: relative;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ffd700 rgba(255, 255, 255, 0.1);
}

.eta-game-screen::-webkit-scrollbar {
    width: 8px;
}

.eta-game-screen::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.eta-game-screen::-webkit-scrollbar-thumb {
    background: #ffd700;
    border-radius: 4px;
}

/* Enhanced D&D Interface */
.eta-dnd-interface {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    width: 100%;
    max-width: 1100px;
    height: 100%;
    align-items: start;
}

.eta-dm-section {
    background: linear-gradient(135deg, #1a0033 0%, #2d1b4e 50%, #0f001a 100%);
    border: 2px solid #ffd700;
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(15px);
    box-shadow: inset 0 0 30px rgba(255, 215, 0, 0.1);
}

.dm-avatar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.dm-avatar .moon-icon {
    font-size: 40px;
    animation: moonPulse 4s ease-in-out infinite;
}

@keyframes moonPulse {
    0%, 100% { 
        transform: scale(1);
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }
    50% { 
        transform: scale(1.1);
        text-shadow: 0 0 30px rgba(255, 215, 0, 1), 0 0 40px rgba(255, 255, 255, 0.6);
    }
}

.dm-label {
    color: #ffd700;
    font-weight: bold;
    font-size: 18px;
}

.dm-mood-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: auto;
    animation: moodPulse 2s ease-in-out infinite;
}

.dm-mood-indicator.neutral { background: #4caf50; }
.dm-mood-indicator.concerned { background: #64B5F6; }
.dm-mood-indicator.encouraging { background: #2196f3; }
.dm-mood-indicator.ominous { background: #f44336; }

@keyframes moodPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}

.dm-narration h3 {
    color: #ffd700;
    font-size: 22px;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.dm-voice {
    font-style: italic;
    font-size: 16px;
    line-height: 1.6;
    color: #e1bee7;
    margin-bottom: 10px;
}

.dm-additional-context {
    color: #b39ddb;
    font-size: 14px;
    opacity: 0.9;
}

/* Enhanced Player Section */
.eta-player-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.eta-dice-area {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.dice-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.dice-icon {
    font-size: 24px;
    animation: diceRoll 2s ease-in-out infinite;
}

@keyframes diceRoll {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(90deg); }
    50% { transform: rotate(180deg); }
    75% { transform: rotate(270deg); }
}

.roll-dice-btn {
    background: linear-gradient(45deg, #64B5F6, #42A5F5);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 0, 0.4);
}

.roll-dice-btn:hover {
    background: linear-gradient(45deg, #42A5F5, #64B5F6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 0, 0.6);
}

.last-roll {
    font-size: 14px;
    color: #ffd700;
    font-weight: bold;
}

.dice-history h5 {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 16px;
}

.recent-rolls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.roll-result {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid #ffd700;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 12px;
    color: #ffd700;
}

.no-rolls {
    color: #999;
    font-style: italic;
    font-size: 12px;
}

/* Enhanced Choice Buttons */
.eta-choices {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.eta-choice-btn {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
    color: white;
    border: none;
    padding: 18px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.3);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.eta-choice-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: left 0.5s ease;
}

.eta-choice-btn:hover::before {
    left: 100%;
}

.eta-choice-btn:hover {
    background: linear-gradient(45deg, #a569bd, #9b59b6);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(155, 89, 182, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

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

.dnd-action-btn {
    background: linear-gradient(45deg, #64B5F6, #42A5F5);
}

.dnd-action-btn:hover {
    background: linear-gradient(45deg, #42A5F5, #64B5F6);
}

/* Game State Display */
.eta-game-state {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

.eta-fragmented-memories h4 {
    color: #e1bee7;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.memories-list {
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.memory-echo {
    background: rgba(155, 89, 182, 0.2);
    border-left: 3px solid #9b59b6;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 5px;
    font-size: 14px;
    color: #e1bee7;
}

.no-memories {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.eta-curse-status h4 {
    color: #ffd700;
    margin-bottom: 15px;
}

.curse-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.curse-info > div {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
}

.current-life {
    color: #ffd700;
    font-weight: bold;
}

.lives-remaining {
    color: #64B5F6;
}

.lunar-eclipse {
    color: #e1bee7;
}

/* Enhanced Character Selection */
.eta-character-select {
    padding: 30px 20px;
}

.character-sheet {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.dm-character-intro {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.dm-intro-text .dm-voice {
    font-size: 18px;
    line-height: 1.6;
    color: #e1bee7;
    margin: 15px 0;
}

.character-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.character-stats h3 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 20px;
}

.stat-block {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.stat {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    color: #ffd700;
    font-size: 14px;
}

.character-abilities h3 {
    color: #e1bee7;
    margin-bottom: 15px;
    font-size: 20px;
}

.abilities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.ability-tag {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.special-ability {
    background: rgba(155, 89, 182, 0.2);
    border: 1px solid #9b59b6;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
}

.special-ability h4 {
    color: #e1bee7;
    margin-bottom: 8px;
}

/* Adventure Module Preview */
.adventure-module-preview {
    background: linear-gradient(135deg, #2d1b4e 0%, #4a148c 50%, #1a0033 100%);
    border: 2px solid #9c27b0;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    text-align: center;
}

.adventure-module-preview h3 {
    color: #e1bee7;
    margin-bottom: 15px;
    font-size: 22px;
}

.module-description {
    color: #d1c4e9;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.module-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    text-align: left;
}

.module-details p {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid #9c27b0;
    margin: 0;
}

/* Eclipse Bonus Display */
.eclipse-bonus {
    background: linear-gradient(45deg, #1565c0, #1976d2);
    border: 2px solid #64b5f6;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 0 30px rgba(100, 181, 246, 0.3);
}

.eclipse-bonus h4 {
    color: #e3f2fd;
    margin-bottom: 10px;
    font-size: 18px;
}

/* Character Action Buttons */
.character-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.dnd-ready-btn {
    background: linear-gradient(45deg, #4caf50, #66bb6a);
    font-size: 18px;
    padding: 20px 25px;
}

.dnd-info-btn {
    background: linear-gradient(45deg, #2196f3, #42a5f5);
}

.eclipse-trigger-btn {
    background: linear-gradient(45deg, #673ab7, #7986cb);
}

.dice-test-btn {
    background: linear-gradient(45deg, #64B5F6, #90CAF9);
}

/* Responsive Design for ETA Game */
@media (max-width: 1024px) {
    .eta-dnd-interface {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .eta-game-container {
        height: 600px;
    }
}

@media (max-width: 768px) {
    .eta-game-container {
        height: 500px;
        margin: 10px;
        border-radius: 15px;
    }
    
    .eta-game-screen {
        padding: 20px 15px;
    }
    
    .character-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-block {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .character-actions {
        grid-template-columns: 1fr;
    }
    
    .eta-choice-btn {
        padding: 15px 20px;
        font-size: 15px;
    }
    
    .dm-avatar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .eta-game-container {
        height: 450px;
        margin: 5px;
    }
    
    .dm-avatar .moon-icon {
        font-size: 32px;
    }
    
    .dm-narration h3 {
        font-size: 18px;
    }
    
    .dm-voice {
        font-size: 14px;
    }
    
    .stat-block {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .stat {
        padding: 8px;
        font-size: 12px;
    }
}

/* Loading and Transition Effects */
.eta-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.eta-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 215, 0, 0.3);
    border-top: 4px solid #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Fade In Animations */
.eta-game-screen {
    animation: fadeInUp 0.8s ease-out;
}

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

/* Button Hover Sound Effect Simulation */
.eta-choice-btn:hover {
    animation: buttonGlow 0.3s ease-in-out;
}

@keyframes buttonGlow {
    0% { box-shadow: 0 6px 20px rgba(155, 89, 182, 0.3); }
    50% { box-shadow: 0 8px 25px rgba(155, 89, 182, 0.6), 0 0 20px rgba(255, 255, 255, 0.2); }
    100% { box-shadow: 0 10px 25px rgba(155, 89, 182, 0.5); }
}

/* Experience and Project Card Click Hints */
.exp-click-hint,
.project-click-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px;
    background: var(--accent-color);
    color: white;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    opacity: 0.9;
}

.exp-click-hint:hover,
.project-click-hint:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.3);
}

.exp-click-hint i,
.project-click-hint i {
    transition: var(--transition-fast);
}

.experience-card:hover .exp-click-hint i,
.project-card:hover .project-click-hint i {
    transform: translateX(3px);
}

/* Make experience and project cards clickable */
.experience-card,
.project-card {
    cursor: pointer;
    transition: var(--transition-smooth);
}

.experience-card:hover,
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

/* Modal Styles for Experience and Projects */
.detail-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.detail-modal-content {
    background-color: var(--background-light);
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.3s ease-out;
}

.detail-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(135deg, var(--primary-color), #333);
    color: white;
    border-radius: 15px 15px 0 0;
    position: sticky;
    top: 0;
    z-index: 10001;
}

.detail-modal-header h2 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 600;
}

.detail-close-btn {
    color: white;
    font-size: 2em;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-fast);
    line-height: 1;
    padding: 5px 10px;
    border-radius: 50%;
}

.detail-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.detail-modal-body {
    padding: 30px;
    line-height: 1.7;
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section h3 {
    color: var(--primary-color);
    font-size: 1.4em;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-section h3 i {
    color: var(--accent-color);
}

.modal-section p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.modal-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.modal-tech-tag {
    background: var(--background-gray);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.modal-achievements {
    background: var(--background-gray);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.modal-achievements ul {
    margin: 0;
    padding-left: 20px;
}

.modal-achievements li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* Project Modal Specific Styles */
.project-modal .modal-section {
    border-left: 3px solid var(--accent-color);
    padding-left: 20px;
    margin-left: 10px;
}

/* Experience Modal Specific Styles */
.experience-modal .detail-modal-header {
    background: linear-gradient(135deg, #2c5530, #4a7c59);
}

.experience-modal .modal-section h3 {
    border-bottom-color: #4a7c59;
}

.experience-modal .modal-section h3 i {
    color: #4a7c59;
}

.experience-modal .modal-section {
    border-left: 3px solid #4a7c59;
    padding-left: 20px;
    margin-left: 10px;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design for Modals */
@media (max-width: 768px) {
    .detail-modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }
    
    .detail-modal-header {
        padding: 15px 20px;
    }
    
    .detail-modal-header h2 {
        font-size: 1.4em;
    }
    
    .detail-modal-body {
        padding: 20px;
    }
    
    .modal-section {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .detail-modal-content {
        width: 98%;
        margin: 2% auto;
    }
    
    .detail-modal-header {
        padding: 12px 15px;
    }
    
    .detail-modal-body {
        padding: 15px;
    }
}

/* Mobile responsive styles for About section */
@media (max-width: 768px) {
    #about .container {
        display: block;
        text-align: center;
    }
    
    #about .col-md-4,
    #about .col-md-8 {
        width: 100%;
        text-align: center;
        margin: 0 auto;
    }
    
    .about-content {
        max-width: 100%;
        padding: 0 10px;
        margin: 20px auto;
    }
    
    .highlight-box,
    .career-objective {
        margin: 20px auto;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    #about {
        padding: 40px 10px;
    }
    
    .about-content {
        padding: 0 5px;
    }
    
    .lead-paragraph {
        font-size: 1em;
        line-height: 1.5;
    }
    
    .highlight-box,
    .career-objective {
        padding: 15px;
        margin: 15px auto;
    }
}

/* Conference Room Activities Styles */
.conference-room-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.conference-room-modal-content {
    background-color: #ffffff;
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: conferenceRoomSlideIn 0.3s ease-out;
}

@keyframes conferenceRoomSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.conference-room-modal-header {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 20px 30px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.conference-room-modal-header h2 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.conference-room-close-btn {
    font-size: 2em;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.conference-room-close-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.conference-room-modal-body {
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.conference-room-welcome {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 2px solid #f39c12;
}

.conference-room-welcome p {
    font-size: 1.1em;
    color: #2c3e50;
    margin: 0;
    line-height: 1.6;
}

.conference-room-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin: 0 auto;
    max-width: 1100px;
}

.conference-room-game-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.conference-room-game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(243, 156, 18, 0.1), transparent);
    transition: left 0.5s;
}

.conference-room-game-card:hover::before {
    left: 100%;
}

.conference-room-game-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.2);
    border-color: #f39c12;
}

.conference-room-game-card .game-icon {
    font-size: 3em;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    line-height: 1;
    display: block;
    width: 100%;
    text-align: center;
}

.conference-room-game-card h4 {
    color: #2c3e50;
    margin: 15px 0 10px 0;
    font-size: 1.3em;
    font-weight: 700;
}

.conference-room-game-card p {
    color: #5a6c7d;
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 20px;
}

.conference-room-game-card .play-button {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9em;
    margin-top: 15px;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(243, 156, 18, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.conference-room-game-card:hover .play-button {
    background: linear-gradient(135deg, #e67e22, #d35400);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
    transform: translateY(-2px);
}

/* Conference Room Game Modal */
.conference-room-game-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.conference-room-game-modal-content {
    background-color: #ffffff;
    margin: 1% auto;
    padding: 0;
    border-radius: 15px;
    width: 95%;
    max-width: 1000px;
    max-height: 95vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    animation: conferenceRoomGameSlideIn 0.4s ease-out;
}

@keyframes conferenceRoomGameSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.conference-room-game-modal-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.conference-room-game-modal-header h2 {
    margin: 0;
    font-size: 1.6em;
    font-weight: 700;
}

.conference-room-game-close-btn {
    font-size: 1.8em;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    opacity: 0.8;
    transition: all 0.3s;
    padding: 5px 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.conference-room-game-close-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.conference-room-game-modal-body {
    padding: 20px;
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    max-height: calc(95vh - 80px);
    overflow-y: auto;
}

.conference-room-game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#conferenceRoomGameCanvas {
    border: 3px solid #34495e;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    height: auto;
}

.conference-room-game-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#conferenceRoomGameScore {
    font-size: 1.3em;
    font-weight: bold;
    color: #2c3e50;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

#conferenceRoomGameStatus {
    font-size: 1.1em;
    color: #5a6c7d;
    text-align: center;
    min-height: 1.5em;
}

#conferenceRoomGameControls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.conference-room-btn {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(243, 156, 18, 0.3);
}

.conference-room-btn:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
}

.conference-room-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(243, 156, 18, 0.3);
}

/* Disabled state for non-office themes */
body:not(.office-theme) #conferenceRoomButton {
    opacity: 0.6;
    filter: grayscale(50%);
    position: relative;
}

body:not(.office-theme) #conferenceRoomButton::after {
    content: '🔒';
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .conference-room-modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .conference-room-games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .conference-room-game-card {
        padding: 20px;
    }
    
    .conference-room-game-modal-content {
        width: 98%;
        margin: 2% auto;
    }
    
    #conferenceRoomGameCanvas {
        max-width: 100%;
    }
    
    #conferenceRoomGameControls {
        flex-direction: column;
        gap: 10px;
    }
    
    .conference-room-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .conference-room-modal-header,
    .conference-room-game-modal-header {
        padding: 15px 20px;
    }
    
    .conference-room-modal-header h2,
    .conference-room-game-modal-header h2 {
        font-size: 1.4em;
    }
    
    .conference-room-modal-content {
        margin: 5% auto;
        width: 95%;
        max-height: 85vh;
    }
    
    .conference-room-modal-header {
        padding: 15px 20px;
    }
    
    .conference-room-modal-header h2 {
        font-size: 1.4em;
    }
    
    .conference-room-modal-body {
        padding: 20px 15px;
    }
    
    .conference-room-welcome {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .conference-room-welcome p {
        font-size: 1em;
    }
    
    .conference-room-games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .conference-room-game-card {
        padding: 20px;
    }
    
    .conference-room-game-card .game-icon {
        font-size: 2.5em;
    }
    
    .conference-room-game-card h4 {
        font-size: 1.2em;
    }
    
    .conference-room-game-card p {
        font-size: 0.9em;
    }
    
    .conference-room-game-card .play-button {
        padding: 10px 20px;
        font-size: 0.85em;
    }
}
