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

html {
    scroll-behavior: smooth;
}

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes neonPulse {
    0%, 100% {
        text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
    }
    50% {
        text-shadow: 0 0 20px currentColor, 0 0 30px currentColor, 0 0 40px currentColor;
    }
}

@keyframes glitch {
    0%, 100% {
        text-shadow: 2px 0 var(--primary-color), -2px 0 var(--accent-color);
    }
    25% {
        text-shadow: -2px 0 var(--primary-color), 2px 0 var(--accent-color);
    }
    50% {
        text-shadow: 2px 0 var(--accent-color), -2px 0 var(--primary-color);
    }
    75% {
        text-shadow: -2px 0 var(--accent-color), 2px 0 var(--primary-color);
    }
}

:root {
    --primary-color: #ea00d9;
    --secondary-color: #0abdc6;
    --accent-color: #711c91;
    --warning-color: #133e7c;
    --text-dark: #ea00d9;
    --text-light: #0abdc6;
    --bg-light: #000000;
    --bg-dark: #000000;
    --surface-dark: #0a0a0a;
    --surface-darker: #050505;
    --white: #000000;
    --border-color: #711c91;
    --shadow: 0 4px 10px rgba(234, 0, 217, 0.2);
    --shadow-lg: 0 10px 30px rgba(10, 189, 198, 0.3);
    --glow-primary: 0 0 20px rgba(234, 0, 217, 0.6);
    --glow-secondary: 0 0 20px rgba(10, 189, 198, 0.6);
    --glow-accent: 0 0 20px rgba(113, 28, 145, 0.6);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-dark);
    overflow-x: hidden;
}


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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(234, 0, 217, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}


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


.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: var(--glow-primary);
    animation: neonPulse 2s ease-in-out infinite;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}


.nav-link:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px currentColor;
}

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #000000 100%);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(234, 0, 217, 0.03) 35px, rgba(234, 0, 217, 0.03) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(10, 189, 198, 0.03) 35px, rgba(10, 189, 198, 0.03) 70px);
    pointer-events: none;
}


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

.profile-image {
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.profile-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(234, 0, 217, 0.5), 0 0 60px rgba(234, 0, 217, 0.3);
    transition: all 0.3s ease;
    animation: scaleIn 1s ease-out 0.5s both;
}

.profile-image img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(234, 0, 217, 0.7), 0 0 80px rgba(234, 0, 217, 0.4);
}


.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite, glitch 5s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.5));
}


.hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px currentColor;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-dark);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 136, 0.1);
    transition: left 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.5);
}


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

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover {
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    border-color: transparent;
}

.btn-secondary:hover::before {
    left: 0;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    text-shadow: 0 0 15px currentColor;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--surface-dark) 0%, var(--surface-darker) 100%);
    position: relative;
}


.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    text-shadow: 0 0 20px currentColor;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    box-shadow: var(--glow-primary);
}

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

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

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

.stat-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--surface-dark), var(--surface-darker));
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}


.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px currentColor;
}

.stat-item p {
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
}

/* Projects Section */
.projects {
    padding: 5rem 0;
    background: var(--bg-light);
}


.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: linear-gradient(135deg, var(--surface-dark), var(--surface-darker));
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}


.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
    border-color: var(--primary-color);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px currentColor;
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    background-color: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background-color: var(--secondary-color);
    color: var(--bg-dark);
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.5);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 0.5rem;
}

.project-link:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

/* Skills Section */
.skills {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--surface-dark) 0%, var(--surface-darker) 100%);
}


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

.skill-category {
    background: linear-gradient(135deg, var(--surface-dark), var(--surface-darker));
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}


.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(113, 28, 145, 0.1) 0%, transparent 70%);
    border-radius: 1rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.skill-category:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(113, 28, 145, 0.3), 0 0 20px rgba(113, 28, 145, 0.1);
}

.skill-category:hover::before {
    opacity: 1;
}

.skill-category h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skill-category i {
    color: var(--primary-color);
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-item {
    padding: 0.5rem 1rem;
    background-color: transparent;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(234, 0, 217, 0.2), transparent);
    transition: left 0.5s ease;
}

.skill-item:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: rgba(234, 0, 217, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

.skill-item:hover::before {
    left: 100%;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    text-align: center;
    background: var(--bg-light);
    position: relative;
}


.contact-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Game Section */
.game-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--surface-dark) 0%, var(--surface-darker) 100%);
    position: relative;
}

.game-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-align: center;
}

.game-container {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

#gameCanvas {
    border: 2px solid var(--primary-color);
    border-radius: 0.5rem;
    box-shadow: 0 0 30px rgba(234, 0, 217, 0.3);
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
    max-width: 100%;
    height: auto;
}

.game-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 300px;
    align-self: flex-start;
}

.game-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--surface-dark), var(--surface-darker));
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.stat span {
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 0 0 10px currentColor;
}

.game-instructions {
    background: linear-gradient(135deg, var(--surface-dark), var(--surface-darker));
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    text-align: left;
}

.game-instructions h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px currentColor;
}

.game-instructions p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.game-instructions strong {
    color: var(--secondary-color);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--surface-darker) 0%, var(--bg-dark) 100%);
    color: var(--text-light);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}


/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
    box-shadow: 0 0 5px currentColor;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--surface-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 2rem 0;
        border-top: 1px solid var(--border-color);
    }
    
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        padding: 0.5rem 0;
        display: block;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    
    .hero {
        padding: 60px 20px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .profile-image img {
        width: 150px;
        height: 150px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 2rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about {
        padding: 3rem 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem 0.5rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .stat-item p {
        font-size: 0.875rem;
    }
    
    .projects {
        padding: 3rem 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-content h3 {
        font-size: 1.25rem;
    }
    
    .skills {
        padding: 3rem 0;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .contact {
        padding: 3rem 0;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-links a {
        font-size: 1.25rem;
    }
    
    /* Game responsive */
    #gameCanvas {
        width: 100%;
        max-width: 600px;
        height: auto;
    }
    
    .game-container {
        flex-direction: column;
        align-items: center;
    }
    
    .game-info {
        min-width: auto;
        width: 100%;
        max-width: 600px;
        gap: 1.5rem;
    }
    
    .game-stats {
        flex-direction: row;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .game-instructions {
        padding: 1.5rem;
        text-align: center;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-stats {
        gap: 1.5rem;
    }
}

/* Additional Animation Classes */
.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.scale-in {
    animation: scaleIn 0.6s ease-out;
}