/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
    position: relative;
}

h3 {
    font-size: 1.5rem;
    color: #334155;
}

p {
    color: #64748b;
    margin-bottom: 1rem;
}

.container {
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.bg-alt {
    background-color: #f1f5f9;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-secondary:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-3px);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-content {
    text-align: center;
    color: white;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    cursor: no-drop;

    background: linear-gradient(
        90deg,
        red,
        orange,
        yellow,
        green,
        cyan,
        blue,
        violet,
        red
    );
    background-size: 400% 100%;

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    animation: rainbow-shine 12s linear infinite;
}

@keyframes rainbow-shine {
    from {
        background-position: 100% 50%;
    }
    to {
        background-position: 0% 50%;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #1e293b;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    padding: 100px 0 0 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero-image-container {
    flex: 1;
}

.image-frame {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.profile-img {
    width: 150%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
    object-fit: cover;
    height: 800px;
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-35%, -50%);
    width: 160%;
    height: 105%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(124, 58, 237, 0.3));
    border-radius: 30px;
    filter: blur(20px);
    z-index: 0;
}

.mobile-name-title {
    display: none;
    text-align: center;
    margin-top: 30px;
}

.desktop-name-title {
    display: block;
}

.hero-text {
    flex: 1;
}

.subtitle {
    font-size: 1.3rem;
    color: #64748b;
    margin-bottom: 30px;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.hero-highlights {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

.highlight-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.highlight-card.premium {
    border-left: 4px solid #2563eb;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.highlight-icon {
    font-size: 1.8rem;
    color: #2563eb;
    margin-top: 5px;
}

.highlight-content h4 {
    margin-bottom: 5px;
}

.highlight-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 10px;
}

.highlight-link:hover {
    text-decoration: underline;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 10%;
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 10%;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, #2563eb, #7c3aed);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    padding-right: 40px;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 40px;
}

.timeline-date {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(30px);
}

.timeline-content.animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-content img.profile-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.timeline-content::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 50%;
    top: 25px;
    right: -10px;
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: auto;
    left: -10px;
}

/* Experience Cards */
.experience-cards {
    display: grid;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.experience-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(30px);
}

.experience-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.exp-date {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    background: #f1f5f9;
    padding: 5px 15px;
    border-radius: 20px;
}

.exp-list {
    list-style: none;
    margin: 20px 0;
}

.exp-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.exp-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tech-tag {
    background: #e0f2fe;
    color: #0369a1;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-category {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(30px);
}

.skill-category.animate {
    opacity: 1;
    transform: translateY(0);
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #1e293b;
}

.skill-category h3 i {
    color: #2563eb;
}

.skills-icons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.skill-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-align: center;
}

.skill-icon-item:hover {
    background: #e0f2fe;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill-icon-item i {
    font-size: 2rem;
    margin-bottom: 8px;
    color: #2563eb;
}

.skill-icon-item span {
    font-weight: 600;
    color: #334155;
    font-size: 0.9rem;
}

.non-tech-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.non-tech-skill {
    background: #f1f5f9;
    color: #475569;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.non-tech-skill:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

.languages-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.language-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.language-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.language-item i {
    color: #2563eb;
    font-size: 1.2rem;
    width: 24px;
}

.language-name {
    font-weight: 600;
    color: #334155;
    flex: 1;
}

.language-level {
    color: #64748b;
    font-size: 0.9rem;
    background: #f1f5f9;
    padding: 3px 12px;
    border-radius: 12px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 0;
    transform: translateY(30px);
}

.project-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.project-year {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    background: #f1f5f9;
    padding: 5px 15px;
    border-radius: 20px;
}

.project-desc {
    flex-grow: 1;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.project-tech-tag {
    background: #e0f2fe;
    color: #0369a1;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.project-footer {
    margin-top: auto;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.project-link:hover {
    text-decoration: underline;
}
/* ===== Awards & Achievements Grid - GOLD THEME ===== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.achievement-card {
    background: linear-gradient(145deg, #ffffff, #fafafa);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
    background-size: 200% 100%;
    animation: goldShine 3s linear infinite;
}

@keyframes goldShine {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.achievement-card.premium {
    border: 2px solid #ffd700;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.2);
}

.achievement-card.featured {
    grid-column: span 2;
}

.achievement-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.25);
}

.achievement-card:hover::before {
    animation: goldShine 1s linear infinite;
}

.achievement-header {
    display: flex;
    align-items: center;
    padding: 25px 25px 15px;
    background: linear-gradient(135deg, #fff9db 0%, #ffe066 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.achievement-icon {
    font-size: 2.2rem;
    color: #d4af37;
    margin-right: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.achievement-title-info {
    flex: 1;
}

.achievement-title-info h3 {
    margin: 0 0 5px 0;
    color: #1e293b;
    font-size: 1.4rem;
}

.achievement-date {
    color: #854d0e;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.achievement-image-carousel {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    cursor: default;
}

.achievement-description {
    padding: 20px 25px;
    margin: 0;
    color: #475569;
    line-height: 1.7;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.achievement-description strong {
    color: #d4af37;
    font-weight: 700;
}

.achievement-links {
    padding: 15px 25px 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.achievement-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fff9db 0%, #ffe066 100%);
    color: #854d0e;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* ===== Leadership Grid - BLUE THEME ===== */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.leadership-card {
    background: linear-gradient(145deg, #ffffff, #f0f9ff);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.leadership-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6, #2563eb);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.leadership-card:hover::before {
    opacity: 1;
}

.leadership-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.2);
    background: linear-gradient(145deg, #ffffff, #eff6ff);
}

.leadership-header {
    display: flex;
    align-items: center;
    padding: 25px 25px 15px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.leadership-icon {
    font-size: 2.2rem;
    color: #2563eb;
    margin-right: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15);
    transition: all 0.3s ease;
}

.leadership-card:hover .leadership-icon {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}

.leadership-title-info {
    flex: 1;
}

.leadership-title-info h3 {
    margin: 0 0 5px 0;
    color: #1e293b;
    font-size: 1.3rem;
}

.leadership-date {
    color: #1d4ed8;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.leadership-image-carousel {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    cursor: default;
}

.leadership-description {
    padding: 20px 25px;
    margin: 0;
    color: #475569;
    line-height: 1.7;
    background: linear-gradient(to right, transparent, #f8fafc, transparent);
}

/* ===== Games Grid - PURPLE/GAMING THEME ===== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.game-card {
    background: linear-gradient(145deg, #ffffff, #faf5ff);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.game-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(139, 92, 246, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover::after {
    opacity: 1;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.2);
    background: linear-gradient(145deg, #ffffff, #f3e8ff);
}

.game-header {
    display: flex;
    align-items: center;
    padding: 25px 25px 15px;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.game-icon {
    font-size: 2.2rem;
    color: #8b5cf6;
    margin-right: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.15);
    transition: all 0.3s ease;
}

.game-card:hover .game-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.25);
    animation: gameIconGlow 1s ease-in-out infinite alternate;
}

@keyframes gameIconGlow {
    from {
        box-shadow: 0 6px 20px rgba(139, 92, 246, 0.25);
    }
    to {
        box-shadow: 0 6px 25px rgba(139, 92, 246, 0.4);
    }
}

.game-title-info {
    flex: 1;
}

.game-title-info h3 {
    margin: 0 0 5px 0;
    color: #1e293b;
    font-size: 1.4rem;
}

.game-company {
    color: #7c3aed;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.game-image-carousel {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    cursor: default;
}

.game-description {
    padding: 20px 25px;
    margin: 0;
    color: #475569;
    line-height: 1.7;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.game-description strong {
    color: #8b5cf6;
    font-weight: 700;
}

.game-skills {
    padding: 15px 25px 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.game-skill-tag {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #7c3aed;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.game-card:hover .game-skill-tag {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

/* Shared carousel styles for all sections */
.achievement-image-carousel .carousel-container,
.leadership-image-carousel .carousel-container,
.game-image-carousel .carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.achievement-image-carousel .carousel-slide,
.leadership-image-carousel .carousel-slide,
.game-image-carousel .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateX(100%);
}

.achievement-image-carousel .carousel-slide.active,
.leadership-image-carousel .carousel-slide.active,
.game-image-carousel .carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.achievement-image-carousel .carousel-slide img,
.leadership-image-carousel .carousel-slide img,
.game-image-carousel .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.achievement-image-carousel .carousel-prev,
.achievement-image-carousel .carousel-next,
.leadership-image-carousel .carousel-prev,
.leadership-image-carousel .carousel-next,
.game-image-carousel .carousel-prev,
.game-image-carousel .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #1e293b;
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.achievement-image-carousel:hover .carousel-prev,
.achievement-image-carousel:hover .carousel-next,
.leadership-image-carousel:hover .carousel-prev,
.leadership-image-carousel:hover .carousel-next,
.game-image-carousel:hover .carousel-prev,
.game-image-carousel:hover .carousel-next {
    opacity: 1;
}

.achievement-image-carousel .carousel-prev:hover,
.achievement-image-carousel .carousel-next:hover,
.leadership-image-carousel .carousel-prev:hover,
.leadership-image-carousel .carousel-next:hover,
.game-image-carousel .carousel-prev:hover,
.game-image-carousel .carousel-next:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Different colors for each section */
.achievement-image-carousel .carousel-prev,
.achievement-image-carousel .carousel-next {
    color: #d4af37;
}

.leadership-image-carousel .carousel-prev,
.leadership-image-carousel .carousel-next {
    color: #2563eb;
}

.game-image-carousel .carousel-prev,
.game-image-carousel .carousel-next {
    color: #8b5cf6;
}

.achievement-image-carousel .carousel-prev,
.leadership-image-carousel .carousel-prev,
.game-image-carousel .carousel-prev {
    left: 10px;
}

.achievement-image-carousel .carousel-next,
.leadership-image-carousel .carousel-next,
.game-image-carousel .carousel-next {
    right: 10px;
}

.achievement-image-carousel .carousel-indicators,
.leadership-image-carousel .carousel-indicators,
.game-image-carousel .carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.achievement-image-carousel .indicator,
.leadership-image-carousel .indicator,
.game-image-carousel .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.achievement-image-carousel .indicator.active {
    background: #d4af37;
    transform: scale(1.2);
}

.leadership-image-carousel .indicator.active {
    background: #2563eb;
    transform: scale(1.2);
}

.game-image-carousel .indicator.active {
    background: #8b5cf6;
    transform: scale(1.2);
}

.achievement-image-carousel .indicator:hover,
.leadership-image-carousel .indicator:hover,
.game-image-carousel .indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animations */
.achievement-card,
.leadership-card,
.game-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.achievement-card:nth-child(1) { animation-delay: 0.1s; }
.achievement-card:nth-child(2) { animation-delay: 0.2s; }
.achievement-card:nth-child(3) { animation-delay: 0.3s; }
.achievement-card:nth-child(4) { animation-delay: 0.4s; }
.achievement-card:nth-child(5) { animation-delay: 0.5s; }
.achievement-card:nth-child(6) { animation-delay: 0.6s; }

.leadership-card:nth-child(1) { animation-delay: 0.1s; }
.leadership-card:nth-child(2) { animation-delay: 0.2s; }
.leadership-card:nth-child(3) { animation-delay: 0.3s; }
.leadership-card:nth-child(4) { animation-delay: 0.4s; }
.leadership-card:nth-child(5) { animation-delay: 0.5s; }
.leadership-card:nth-child(6) { animation-delay: 0.6s; }
.leadership-card:nth-child(7) { animation-delay: 0.7s; }

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }
.game-card:nth-child(5) { animation-delay: 0.5s; }
.game-card:nth-child(6) { animation-delay: 0.6s; }
.game-card:nth-child(7) { animation-delay: 0.7s; }
.game-card:nth-child(8) { animation-delay: 0.8s; }

/* Remove duplicate styles and fix conflicts */
.achievement-modal,
.leadership-modal,
.game-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.achievement-modal.active,
.leadership-modal.active,
.game-modal.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
    padding: 20px;
}


/* Responsive adjustments */
@media (max-width: 1200px) {
    .achievement-card.featured {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .achievements-grid,
    .leadership-grid,
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .achievement-image-carousel,
    .leadership-image-carousel,
    .game-image-carousel {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .achievement-header,
    .leadership-header,
    .game-header {
        padding: 20px 20px 15px;
    }
    
    .achievement-description,
    .leadership-description,
    .game-description {
        padding: 15px 20px;
    }
    
    .achievement-links,
    .game-skills {
        padding: 15px 20px 20px;
    }
}


/* Modal Base Styles */
.achievement-modal,
.leadership-modal,
.game-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.achievement-modal.active,
.leadership-modal.active,
.game-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

/* Modal Content */
.achievement-modal-content,
.leadership-modal-content,
.game-modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 24px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
                0 0 100px rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Close Button */
.achievement-modal-close,
.leadership-modal-close,
.game-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: #666;
    background: rgba(0, 0, 0, 0.05);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border: none;
    backdrop-filter: blur(10px);
}

.achievement-modal-close:hover,
.leadership-modal-close:hover,
.game-modal-close:hover {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
    transform: rotate(90deg);
}

/* Modal Header */
.achievement-modal-header,
.leadership-modal-header,
.game-modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(to right, transparent, rgba(0, 123, 255, 0.03), transparent);
}

.achievement-modal-header h2,
.leadership-modal-header h2,
.game-modal-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.achievement-date-modal,
.leadership-date-modal,
.game-company-modal {
    margin: 8px 0 0;
    color: #007bff;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.achievement-date-modal::before,
.leadership-date-modal::before {
    content: "📅";
    font-size: 14px;
}

.game-company-modal::before {
    content: "🏢";
    font-size: 14px;
}

/* Modal Body */
.achievement-modal-body,
.leadership-modal-body,
.game-modal-body {
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* Carousel Container */
/* Consistent carousel container styling */
.achievement-modal-carousel-container,
.leadership-modal-carousel-container,
.game-modal-carousel-container {
    padding: 30px;
    background: rgba(0, 123, 255, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}



/* 2. SUPPORTS MULTIPLE IMAGES PER ITEM */
/* Carousel container with proper sizing */
.achievement-modal-carousel,
.leadership-modal-carousel,
.game-modal-carousel {
    position: relative;
    width: 100%;
    height: 400px; /* Fixed height for consistent layout */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Slides container for multiple images */
.achievement-modal-slides-container,
.leadership-modal-slides-container,
.game-modal-slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.achievement-modal-slide,
.leadership-modal-slide,
.game-modal-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.achievement-modal-slide.active,
.leadership-modal-slide.active,
.game-modal-slide.active {
    opacity: 1;
    z-index: 1;
}

/* 1. SHOWS FULL IMAGES WITHOUT CROPPING */
.achievement-modal-slide img,
.leadership-modal-slide img,
.game-modal-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* ← KEY: Shows full image without cropping */
    display: block;
    background: #f8f9fa; /* Light background for transparent images */
}

.highlight-content img {
    width: 20%;
    height: 20%;
    object-fit: contain; /* ← KEY: Shows full image without cropping */
    display: block;
    background: #f8f9fa; /* Light background for transparent images */
}

/* 4. NAVIGATION ARROWS AND INDICATORS */
/* Navigation buttons */
.achievement-modal-carousel-prev,
.achievement-modal-carousel-next,
.leadership-modal-carousel-prev,
.leadership-modal-carousel-next,
.game-modal-carousel-prev,
.game-modal-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #007bff;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.achievement-modal-carousel-prev:hover,
.achievement-modal-carousel-next:hover,
.leadership-modal-carousel-prev:hover,
.leadership-modal-carousel-next:hover,
.game-modal-carousel-prev:hover,
.game-modal-carousel-next:hover {
    background: #007bff;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.achievement-modal-carousel-prev,
.leadership-modal-carousel-prev,
.game-modal-carousel-prev {
    left: 20px;
}

.achievement-modal-carousel-next,
.leadership-modal-carousel-next,
.game-modal-carousel-next {
    right: 20px;
}

/* Carousel indicators */
.achievement-modal-carousel-indicators,
.leadership-modal-carousel-indicators,
.game-modal-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.achievement-modal-indicator,
.leadership-modal-indicator,
.game-modal-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.achievement-modal-indicator:hover,
.leadership-modal-indicator:hover,
.game-modal-indicator:hover {
    background: rgba(0, 123, 255, 0.5);
    transform: scale(1.2);
}

.achievement-modal-indicator.active,
.leadership-modal-indicator.active,
.game-modal-indicator.active {
    background: #007bff;
    transform: scale(1.2);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

/* Game Modal Image */
.game-modal-image {
    padding: 30px;
    background: rgba(0, 123, 255, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.game-modal-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Modal Details */
.achievement-modal-details,
.leadership-modal-details,
.game-modal-details {
    padding: 30px;
}

.achievement-modal-details h3,
.leadership-modal-details h3,
.game-modal-details h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.achievement-modal-details h3:nth-of-type(1)::before {
    content: "📝";
}

.achievement-modal-details h3:nth-of-type(2)::before {
    content: "🏆";
}

.leadership-modal-details h3:nth-of-type(1)::before {
    content: "📋";
}

.leadership-modal-details h3:nth-of-type(2)::before {
    content: "✅";
}

.game-modal-details h3:nth-of-type(1)::before {
    content: "🎮";
}

.game-modal-details h3:nth-of-type(2)::before {
    content: "💡";
}

.game-modal-details h3:nth-of-type(3)::before {
    content: "📊";
}

.achievement-modal-description,
.leadership-modal-description,
.modal-description {
    margin: 0 0 25px 0;
    line-height: 1.7;
    color: #444;
    font-size: 16px;
    background: rgba(0, 123, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #007bff;
}

/* Stats Container */
.modal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0 30px;
}

.stat-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 123, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #007bff, #0056b3);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.15);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 5px;
    font-family: 'Space Grotesk', sans-serif;
}

.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Skills Container */
.modal-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 30px;
}

.game-skill-tag {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
}

.game-skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Links Container */
.achievement-modal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.achievement-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.achievement-link:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.achievement-link i {
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .achievement-modal-content,
    .leadership-modal-content,
    .game-modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 20px;
    }
    
    .achievement-modal-header h2,
    .leadership-modal-header h2,
    .game-modal-header h2 {
        font-size: 24px;
    }
    
    .achievement-modal-carousel,
    .leadership-modal-carousel,
    .game-modal-carousel {
        height: 350px;
    }
    
    .game-modal-image img {
        height: 250px;
    }
    
    .modal-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .achievement-modal,
    .leadership-modal,
    .game-modal {
        padding: 10px;
        backdrop-filter: blur(5px);
    }
    
    .achievement-modal-content,
    .leadership-modal-content,
    .game-modal-content {
        width: 100%;
        max-height: 95vh;
        margin: 10px;
        border-radius: 20px;
    }
    
    .achievement-modal-header,
    .leadership-modal-header,
    .game-modal-header {
        padding: 25px 20px 15px;
    }
    
    .achievement-modal-header h2,
    .leadership-modal-header h2,
    .game-modal-header h2 {
        font-size: 22px;
    }
    
    .achievement-modal-carousel-container,
    .leadership-modal-carousel-container,
    .game-modal-image {
        padding: 20px;
    }
    
    .achievement-modal-carousel,
    .leadership-modal-carousel {
        height: 250px;
    }
    
    /* Adjust navigation buttons for touch */
    .achievement-modal-carousel-prev,
    .achievement-modal-carousel-next,
    .leadership-modal-carousel-prev,
    .leadership-modal-carousel-next,
    .game-modal-carousel-prev,
    .game-modal-carousel-next {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    .achievement-modal-carousel-prev,
    .leadership-modal-carousel-prev {
        left: 10px;
    }
    
    .achievement-modal-carousel-next,
    .leadership-modal-carousel-next {
        right: 10px;
    }
    
    .game-modal-image img {
        height: 200px;
    }
    
    .achievement-modal-details,
    .leadership-modal-details,
    .game-modal-details {
        padding: 20px;
    }
    
    .modal-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .achievement-modal-description,
    .leadership-modal-description,
    .modal-description {
        font-size: 15px;
        padding: 15px;
    }
    
    .achievement-modal-links {
        flex-direction: column;
    }
    
    .achievement-link {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .achievement-modal-header h2,
    .leadership-modal-header h2,
    .game-modal-header h2 {
        font-size: 20px;
    }
    
    .achievement-date-modal,
    .leadership-date-modal,
    .game-company-modal {
        font-size: 14px;
    }
    
    .achievement-modal-carousel,
    .leadership-modal-carousel,
    .game-modal-carousel {
        height: 250px;
    }
    
    .game-modal-image img {
        height: 180px;
    }
    
    .achievement-modal-details h3,
    .leadership-modal-details h3,
    .game-modal-details h3 {
        font-size: 18px;
    }
    
    .stat-value {
        font-size: 22px;
    }
    
    .achievement-modal-close,
    .leadership-modal-close,
    .game-modal-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
}

/* Scrollbar Styling for Modal Content */
.achievement-modal-content::-webkit-scrollbar,
.leadership-modal-content::-webkit-scrollbar,
.game-modal-content::-webkit-scrollbar {
    width: 8px;
}

.achievement-modal-content::-webkit-scrollbar-track,
.leadership-modal-content::-webkit-scrollbar-track,
.game-modal-content::-webkit-scrollbar-track {
    background: rgba(0, 123, 255, 0.05);
    border-radius: 4px;
}

.achievement-modal-content::-webkit-scrollbar-thumb,
.leadership-modal-content::-webkit-scrollbar-thumb,
.game-modal-content::-webkit-scrollbar-thumb {
    background: rgba(0, 123, 255, 0.2);
    border-radius: 4px;
}

.achievement-modal-content::-webkit-scrollbar-thumb:hover,
.leadership-modal-content::-webkit-scrollbar-thumb:hover,
.game-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 123, 255, 0.3);
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .achievement-modal-carousel-prev,
    .achievement-modal-carousel-next,
    .leadership-modal-carousel-prev,
    .leadership-modal-carousel-next {
        width: 50px;
        height: 50px;
        font-size: 22px;
        background: rgba(255, 255, 255, 0.95);
    }
    
    .stat-item:hover,
    .achievement-link:hover,
    .game-skill-tag:hover {
        transform: none;
    }
    
    /* Larger indicators for touch */
    .achievement-modal-indicator,
    .leadership-modal-indicator,
    .game-modal-indicator {
        width: 12px;
        height: 12px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .achievement-modal-content,
    .leadership-modal-content,
    .game-modal-content {
        background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #e0e0e0;
    }
    
    .achievement-modal-header h2,
    .leadership-modal-header h2,
    .game-modal-header h2 {
        color: #ffffff;
    }
    
    .achievement-date-modal,
    .leadership-date-modal,
    .game-company-modal {
        color: #4dabf7;
    }
    
    .achievement-modal-description,
    .leadership-modal-description,
    .modal-description {
        background: rgba(0, 123, 255, 0.08);
        color: #d0d0d0;
        border-left-color: #4dabf7;
    }

    .achievement-modal-slide img,
    .leadership-modal-slide img,
    .game-modal-slide img {
        background: #2d2d2d; /* Dark background for dark mode */
    }
    
    .achievement-modal-carousel,
    .leadership-modal-carousel,
    .game-modal-carousel {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    .stat-item {
        background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
        border-color: rgba(0, 123, 255, 0.2);
    }
    
    .stat-label {
        color: #a0a0a0;
    }
    
    .achievement-link {
        background: rgba(0, 123, 255, 0.15);
        color: #4dabf7;
        border-color: rgba(0, 123, 255, 0.3);
    }
    
    .achievement-link:hover {
        background: #007bff;
        color: #ffffff;
    }
    
    .achievement-modal-close,
    .leadership-modal-close,
    .game-modal-close {
        color: #a0a0a0;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .achievement-modal-close:hover,
    .leadership-modal-close:hover,
    .game-modal-close:hover {
        color: #ff6b81;
        background: rgba(255, 107, 129, 0.1);
    }
}

/* Print Styles */
@media print {
    .achievement-modal,
    .leadership-modal,
    .game-modal {
        background: white;
        position: static;
        display: block;
        height: auto;
    }
    
    .achievement-modal-content,
    .leadership-modal-content,
    .game-modal-content {
        max-width: 100%;
        max-height: none;
        box-shadow: none;
        border: 1px solid #ddd;
        margin: 0;
    }
    
    .achievement-modal-close,
    .leadership-modal-close,
    .game-modal-close,
    .achievement-modal-carousel-prev,
    .achievement-modal-carousel-next,
    .leadership-modal-carousel-prev,
    .leadership-modal-carousel-next {
        display: none;
    }
}

/* For landscape images (wider than tall) */
@media (orientation: landscape) {
    .achievement-modal-slide img,
    .leadership-modal-slide img,
    .game-modal-slide img {
        object-fit: contain;
        width: auto;
        max-width: 100%;
        max-height: 100%;
    }
}

/* Auto-fit for mixed image sizes */
.achievement-modal-slide img[width][height],
.leadership-modal-slide img[width][height],
.game-modal-slide img[width][height] {
    /* Let images with explicit dimensions use their natural size */
    object-fit: scale-down;
}





/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.contact-card {
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(30px);
}

.contact-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.contact-icon {
    font-size: 1.8rem;
    color: #2563eb;
    margin-top: 5px;
}

.contact-details h4 {
    margin-bottom: 8px;
    color: #1e293b;
}

.contact-details a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #2563eb;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(30px);
}

.contact-form.animate {
    opacity: 1;
    transform: translateY(0);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #334155;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo .logo {
    color: white;
    font-size: 2rem;
    margin-bottom: 15px;
    position: relative;
}

/* Golden shining effect for JoshuaNg in footer */
.footer-logo .logo {
    background: linear-gradient(
        90deg,
        red,
        orange,
        yellow,
        green,
        cyan,
        blue,
        violet,
        red
    );
    background-size: 400% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow-shine 12s linear infinite;
}

@keyframes rainbow-shine {
    from {
        background-position: 100% 50%;
    }
    to {
        background-position: 0% 50%;
    }
}

.footer-logo p {
    color: #cbd5e1;
    max-width: 300px;
}

.footer-links {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #2563eb;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #2563eb;
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #94a3b8;
    margin-bottom: 10px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.3);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .achievement-card.featured {
        grid-column: span 1;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-image-container {
        order: 1;
    }
    
    .desktop-name-title {
        display: none;
    }
    
    .mobile-name-title {
        display: block;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 0;
        padding-left: 70px;
    }
    
    .timeline-content::before {
        left: -10px;
        right: auto;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Fix footer for laptop - keep horizontal layout */
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    .footer-logo, .footer-links, .footer-social {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.3rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .hero {
        padding: 150px 0 70px;
    }
    
    .skills-grid,
    .achievements-grid,
    .leadership-grid,
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .exp-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Mobile footer layout */
    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px; /* space between sections */
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px; /* space between links */
    }

    .footer-logo {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo,
    .footer-links,
    .footer-social {
        width: 100%;
    }

    .footer-social {
        display: flex;
        justify-content: center;
        gap: 16px;
    }

    .footer-logo .logo {
    font-size: 1.3rem;
    font-weight: 700;
    }


}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-item:nth-child(even) {
        padding-left: 50px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-content::before {
        left: -30px;
    }
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-out {
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-out.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations */
.stagger-delay-1 { transition-delay: 0.1s; }
.stagger-delay-2 { transition-delay: 0.2s; }
.stagger-delay-3 { transition-delay: 0.3s; }
.stagger-delay-4 { transition-delay: 0.4s; }
.stagger-delay-5 { transition-delay: 0.5s; }



