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

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0d1b2a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.loader-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    border-top-color: var(--secondary-color);
    animation-delay: -0.3s;
}

.loader-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    border-top-color: var(--accent-color);
    animation-delay: -0.6s;
}

.loader-text {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    animation: pulse 1.5s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

:root {
    --primary-color: #64ffda;
    --secondary-color: #a78bfa;
    --accent-color: #f59e0b;
    --bg-dark: #0a192f;
    --bg-light: #112240;
    --bg-lighter: #1e3a5f;
    --text-primary: #e6f1ff;
    --text-secondary: #8892b0;
    --text-muted: #495670;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    cursor: none !important;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none !important;
}

* {
    cursor: none !important;
}

a, button, input, textarea, select {
    cursor: none !important;
}

*::-webkit-scrollbar-thumb {
    cursor: none !important;
}

*::-webkit-scrollbar-track {
    cursor: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(10, 25, 47, 0.98);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 2rem 2rem;
    overflow: hidden;
}

.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slideshow img,
.hero-slideshow video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slideshow img.active,
.hero-slideshow video.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
                rgba(10, 25, 47, 0.7) 0%,
                rgba(10, 25, 47, 0.6) 50%,
                rgba(17, 34, 64, 0.85) 85%,
                rgb(17, 34, 64) 100%);
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.title-line {
    display: block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-height: 1.2em;
}

.title-line::after {
    content: '|';
    background: var(--primary-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: blink 0.7s infinite;
    margin-left: 2px;
}

.title-line.typing-complete::after {
    display: none;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.15s ease;
    animation: fadeInUp 1s ease-out 0.4s both;
    font-size: 1rem;
}

.cta-button:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    animation: fadeInUp 1s ease-out 0.6s both;
    z-index: 2;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    animation: scrollAnimation 2s ease-in-out infinite;
}

/* Projects Section */
.projects {
    padding: 8rem 0;
    background-color: var(--bg-dark);
    position: relative;
}

.games-section {
    background: linear-gradient(to bottom, var(--bg-light) 0%, var(--bg-dark) 15%);
}

.art-section {
    background: linear-gradient(to bottom, var(--bg-dark) 0%, var(--bg-light) 100%);
}

.tools-section {
    background: linear-gradient(to bottom, var(--bg-light) 0%, var(--bg-dark) 100%);
}

.art-section .container,
.tools-section .container {
    position: relative;
    z-index: 2;
}

.art-section .project-card,
.tools-section .project-card {
    background-color: var(--bg-dark);
    transition: transform 0.1s ease-out, box-shadow 0.25s ease-out;
}

.art-section .project-overlay,
.tools-section .project-overlay {
    transition: opacity 0.25s ease-out !important;
}

.art-section .project-image img,
.tools-section .project-image img {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Section Headers */
.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    position: relative;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Games Section Header - Numbered Style */
.games-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 4rem;
}

.section-number {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    opacity: 0.3;
    min-width: 80px;
}

.section-header-content {
    flex: 1;
}

.games-header .section-title {
    text-align: left;
    margin-bottom: 0.5rem;
}

.games-header .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 0.75rem 0 0 0;
    border-radius: 2px;
}

.games-header .section-subtitle {
    text-align: left;
    margin-top: 1rem;
    font-size: 1rem;
    opacity: 0.8;
}

/* Art Section Header - Artistic Style */
.art-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.art-number {
    font-size: 8rem;
    font-weight: 300;
    font-style: italic;
    color: var(--secondary-color);
    opacity: 0.1;
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    line-height: 1;
    pointer-events: none;
}

.art-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.art-title .title-word {
    display: inline-block;
    color: var(--text-primary);
    font-style: italic;
    position: relative;
}

.section-subtitle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.subtitle-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.section-subtitle-wrapper .section-subtitle {
    margin: 0;
    font-size: 1rem;
    font-style: italic;
}

/* Tools Section Header - Technical/Code Style */
.tools-header {
    text-align: center;
    margin-bottom: 4rem;
}

.tools-number-wrapper {
    margin-bottom: 1rem;
}

.tools-number {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: var(--primary-color);
    background: rgba(100, 255, 218, 0.1);
    padding: 0.25rem 0.75rem;
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 4px;
    letter-spacing: 2px;
}

.tools-number::before {
    content: '#';
    opacity: 0.6;
    margin-right: 0.25rem;
}

.tools-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tools-bracket {
    font-size: clamp(3rem, 6vw, 4rem);
    color: var(--primary-color);
    font-weight: 300;
    font-family: 'Courier New', monospace;
    opacity: 0.6;
    line-height: 1;
}

.tools-title {
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-primary);
}

.tools-subtitle {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0;
}

.code-symbol {
    color: var(--primary-color);
    opacity: 0.7;
}

/* About Section Header - Simple & Clean */
.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-header .section-title {
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-underline {
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    margin: 0 auto;
    border-radius: 2px;
}

/* Skills Section Header - Energetic Style */
.skills-header {
    text-align: center;
    margin-bottom: 3rem;
}

.skills-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.skills-header .section-title {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skills-header .section-subtitle {
    margin-top: 0.5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    align-items: start;
    transform-style: preserve-3d;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    will-change: transform;
    filter: blur(0.3px) contrast(1.02);
}

.project-card {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-lighter) 100%);
    border-radius: 12px;
    overflow: visible;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    transform-style: preserve-3d;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    transform: translateZ(0);
    outline: 1px solid transparent;
    filter: contrast(1.01);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover {
    box-shadow: 0 20px 50px rgba(100, 255, 218, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px) translateZ(0);
}

.project-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
    border-radius: 12px 12px 0 0;
}

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

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(10, 25, 47, 0.85));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-out;
    padding-bottom: 1.5rem;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-project-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.15s ease;
    letter-spacing: 0.5px;
    padding: 0;
}

.view-project-btn:hover {
    color: var(--primary-color);
}

.project-info {
    padding: 1.75rem;
    position: relative;
    border-radius: 0 0 12px 12px;
}

.project-category {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-extra-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.project-card:hover .project-extra-content {
    max-height: 300px;
    opacity: 1;
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.938rem;
    margin-bottom: 1rem;
    padding-top: 0.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.813rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.tag:hover {
    background-color: rgba(100, 255, 218, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* About Section */
.about {
    padding: 8rem 0;
    background: linear-gradient(to bottom, var(--bg-dark) 0%, var(--bg-light) 20%, var(--bg-light) 100%);
}

/* Skills Section */
.skills-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0d1b2a 50%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.skills-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(100, 255, 218, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(167, 139, 250, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.skills-section .container {
    position: relative;
    z-index: 1;
}

.skills-section .section-subtitle {
    margin-bottom: 4rem;
}

.skills-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-lighter) 100%);
    padding: 3rem 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.1);
    transform: translateY(-5px);
}

.category-title {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(100, 255, 218, 0.2);
    font-weight: 600;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skill-group-title {
    font-size: 1rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    background-color: rgba(100, 255, 218, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 255, 218, 0.2);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 2rem;
}

.about-text .section-title::after {
    margin: 1rem 0 0;
}

.about-paragraph {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.resume-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.3);
}

.resume-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(100, 255, 218, 0.4);
}

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

.resume-button:hover .resume-icon {
    transform: translateY(3px);
}

.skills {
    margin-top: 3rem;
}

.skills-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--bg-lighter);
    border-radius: 8px;
    transition: var(--transition);
}

.skill-item:hover {
    background-color: rgba(100, 255, 218, 0.1);
    transform: translateX(5px);
}

.skill-icon {
    font-size: 1.5rem;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 5/6;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    z-index: -1;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Timeline */
.timeline-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.timeline {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    padding-bottom: 2.5rem;
    cursor: pointer;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-expand {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    font-weight: 300;
}

.timeline-item.expanded .timeline-expand {
    transform: rotate(45deg);
}

.timeline-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.4s ease;
    margin-top: 0;
}

.timeline-item.expanded .timeline-details {
    max-height: 300px;
    margin-top: 1rem;
}

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

.timeline-details li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.timeline-details li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid var(--bg-light);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.2);
    z-index: 1;
}

.timeline-content {
    background: linear-gradient(135deg, var(--bg-lighter) 0%, rgba(30, 58, 95, 0.5) 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 3px solid var(--primary-color);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-content:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.timeline-date {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.timeline-company {
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-description {
    color: var(--text-secondary);
    font-size: 0.938rem;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background: linear-gradient(to bottom, var(--bg-light) 0%, var(--bg-dark) 20%, var(--bg-dark) 100%);
}

/* Contact Section Header - Inviting Style */
.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.contact-accent {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.contact-accent::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    animation: underlineGrow 1.5s ease-out forwards;
}

@keyframes underlineGrow {
    to {
        transform: scaleX(1);
    }
}

.contact-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2rem;
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-lighter) 0%, rgba(30, 58, 95, 0.5) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.2);
    transform: translateY(-2px);
}

.contact-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background-color: var(--bg-light);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--bg-lighter);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
}

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

.submit-button {
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--bg-dark);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.submit-button:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
}

/* Footer */
.footer {
    padding: 2rem 0;
    background-color: var(--bg-light);
    text-align: center;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer p {
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--primary-color);
}

/* Image Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    cursor: none !important;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
    cursor: none !important;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
    transition: var(--transition);
    z-index: 100001;
}

.lightbox-nav:hover {
    color: var(--primary-color);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.125rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem 2rem;
    border-radius: 8px;
}

/* Project Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow-y: auto;
    animation: fadeIn 0.3s ease-out;
    cursor: none !important;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-lighter) 100%);
    border-radius: 16px;
    max-width: 1200px;
    width: 100%;
    position: relative;
    animation: slideUp 0.4s ease-out;
    max-height: 90vh;
    overflow-y: auto;
    cursor: none !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Custom Scrollbar */
.modal-content::-webkit-scrollbar {
    width: 12px;
    cursor: none !important;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 10px;
    cursor: none !important;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--bg-lighter);
    border-radius: 10px;
    border: 2px solid var(--bg-dark);
    cursor: none !important;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
    cursor: none !important;
}

/* Firefox */
.modal-content {
    scrollbar-width: thin;
    scrollbar-color: var(--bg-lighter) var(--bg-dark);
}

/* Global scrollbar styling */
body::-webkit-scrollbar {
    width: 12px;
}

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

body::-webkit-scrollbar-thumb {
    background: var(--bg-lighter);
    border-radius: 10px;
    border: 2px solid var(--bg-dark);
}

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

html {
    scrollbar-width: thin;
    scrollbar-color: var(--bg-lighter) var(--bg-dark);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--primary-color);
    background-color: rgba(100, 255, 218, 0.1);
    transform: rotate(90deg);
}

.modal-body {
    padding: 0.5rem 2rem 2rem 2rem;
}

.modal-header {
    margin-bottom: 0.75rem;
}

.modal-title {
    font-size: 2.5rem;
    margin-bottom: 0;
    color: var(--text-primary);
}

.modal-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.modal-tag {
    padding: 0.5rem 1rem;
    background-color: var(--bg-lighter);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.modal-gallery-carousel {
    margin-bottom: 2.5rem;
}

.carousel-container {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

.carousel-images {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 0;
    padding-bottom: 62.5%;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    display: block;
}

.carousel-image video,
video.carousel-image {
    cursor: none !important;
}

.carousel-image.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    color: var(--text-primary);
    border: none;
    width: 60px;
    height: 80px;
    font-size: 3rem;
    font-weight: 200;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    opacity: 0;
}

.carousel-nav:hover {
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.15);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.carousel-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    z-index: 10;
    opacity: 0;
    transition: var(--transition);
}

.carousel-images:hover .carousel-nav,
.carousel-images:hover .carousel-dots {
    opacity: 1;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--bg-lighter);
    border: 2px solid var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.dot:hover {
    background-color: var(--text-secondary);
    border-color: var(--primary-color);
}

.dot.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--bg-lighter);
}

.modal-info-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-info-item p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.modal-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-link {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.modal-link:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
}

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

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

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

@keyframes scrollAnimation {
    0%, 100% {
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        transform: scaleY(1);
        transform-origin: top;
    }
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Additional Section Variations */
.games-section .project-card {
    border-left: 3px solid transparent;
    transition: all 0.3s ease, border-left-color 0.3s ease;
}

.games-section .project-card:hover {
    border-left-color: var(--primary-color);
}

.art-section .project-card {
    border-radius: 16px;
    overflow: hidden;
}

.art-section .project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.art-section .project-card:hover::before {
    opacity: 1;
}

.tools-section .project-card {
    border: 1px solid rgba(100, 255, 218, 0.2);
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(10, 25, 47, 0.8) 100%);
}

.tools-section .project-card:hover {
    border-color: rgba(100, 255, 218, 0.4);
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.15), 0 20px 50px rgba(0, 0, 0, 0.3);
}

.tools-section .project-category {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    background: rgba(100, 255, 218, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(100, 255, 218, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--bg-light);
        flex-direction: column;
        padding: 2rem;
        transform: translateX(100%);
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .mobile-toggle {
        display: flex;
    }

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

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .timeline-container {
        order: -1;
        margin-bottom: 3rem;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    /* Responsive Section Headers */
    .games-header {
        flex-direction: column;
        gap: 1rem;
    }

    .section-number {
        font-size: 3rem;
        min-width: auto;
    }

    .games-header .section-title,
    .games-header .section-subtitle {
        text-align: center;
    }

    .games-header .section-title::after {
        margin: 0.75rem auto 0;
    }

    .art-number {
        font-size: 5rem;
        top: -1rem;
    }

    .art-title {
        flex-direction: column;
        gap: 0.5rem;
    }

    .section-subtitle-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .subtitle-line {
        width: 40px;
    }

    .tools-title-wrapper {
        gap: 0.5rem;
    }

    .tools-number {
        font-size: 0.9rem;
    }

    .tools-bracket {
        font-size: 2.5rem;
    }

    .tools-title {
        font-size: 1.5rem;
    }

    .tools-subtitle {
        font-size: 0.85rem;
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 5rem 1rem 2rem;
    }

    .projects,
    .about,
    .contact {
        padding: 4rem 0;
    }

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

    .modal-content {
        margin: 1rem;
        max-height: 95vh;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.75rem;
    }

    .modal-info-grid {
        grid-template-columns: 1fr;
    }

    .carousel-images {
        width: 100%;
    }

    .carousel-nav {
        width: 50px;
        height: 60px;
        font-size: 2rem;
    }

    .carousel-prev {
        left: 0.5rem;
    }

    .carousel-next {
        right: 0.5rem;
    }

    .carousel-dots {
        bottom: 1rem;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
}
