:root {
    --primary-color: #4A90E2;
    --secondary-color: #50C878;
    --accent-color: #FF6B6B;
    --dark-bg: #0a0a0a;
    --light-bg: #1a1a2e;
    --text-light: #ffffff;
    --text-muted: #a0a0a0;
    --card-bg: #16213e;
    --border-color: #3a3a3a;
}

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

body {
    font-family: 'Space Mono', monospace;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: var(--text-light);
    overflow-x: hidden;
    min-height: 100vh;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(74, 144, 226, 0.5);
}

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

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

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 20px 50px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(74, 144, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(80, 200, 120, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 107, 107, 0.05) 0%, transparent 50%);
    animation: bgAnimation 20s ease infinite;
}

@keyframes bgAnimation {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-20px, -20px) rotate(120deg); }
    66% { transform: translate(20px, -20px) rotate(240deg); }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.typing-text {
    display: block;
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.name-highlight {
    display: block;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(74, 144, 226, 0.5); }
    to { text-shadow: 0 0 30px rgba(74, 144, 226, 0.8), 0 0 40px rgba(80, 200, 120, 0.5); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

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

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

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

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

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

.contact-info {
    display: flex;
    gap: 1rem;
}

.contact-info a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border-radius: 50%;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.contact-info a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.hero-image {
    position: relative;
}

.image-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 4px solid var(--primary-color);
    box-shadow: 0 10px 40px rgba(74, 144, 226, 0.3);
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.icon-float {
    position: absolute;
    font-size: 2rem;
    color: var(--primary-color);
    animation: float 3s ease-in-out infinite;
}

.icon-float:nth-child(1) { top: -30px; left: -30px; animation-delay: 0s; }
.icon-float:nth-child(2) { top: -30px; right: -30px; animation-delay: 0.5s; }
.icon-float:nth-child(3) { bottom: -30px; left: -30px; animation-delay: 1s; }
.icon-float:nth-child(4) { bottom: -30px; right: -30px; animation-delay: 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--dark-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-family: 'Orbitron', sans-serif;
    position: relative;
    display: inline-block;
    width: 100%;
}

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

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.2);
    border-color: var(--primary-color);
}

.about-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-card h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.about-card p {
    line-height: 1.6;
    color: var(--text-muted);
}

/* Experience Section */
.experience {
    padding: 80px 0;
    background: var(--light-bg);
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    padding: 0 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-date {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 10px;
}

.timeline-content {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.timeline-content h3 {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.timeline-content h4 {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.timeline-content ul {
    list-style: none;
    margin-bottom: 15px;
}

.timeline-content li {
    margin-bottom: 8px;
    color: var(--text-muted);
    text-align: left;
}

.timeline-content li::before {
    content: '▸ ';
    color: var(--primary-color);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.timeline-item:nth-child(odd) .tech-tags {
    justify-content: flex-end;
}

.tag {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
}

/* Skills Section */
.skills {
    padding: 80px 0;
    background: var(--dark-bg);
}

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

.skill-category {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.skill-category h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-item {
    background: var(--light-bg);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

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

.certificates {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.certificates h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: center;
}

.cert-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cert-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.cert-item h4 {
    color: var(--text-light);
    margin-bottom: 5px;
}

.cert-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Game Section */
.game-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.game-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-top: 30px;
}

.game-controls {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.game-controls h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.control-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.game-btn {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.game-btn:hover:not(:disabled) {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.game-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.face-upload {
    margin-bottom: 30px;
}

.face-upload h4 {
    color: var(--text-light);
    margin-bottom: 15px;
}

.face-upload input[type="file"] {
    width: 100%;
    padding: 8px;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.game-instructions {
    margin-bottom: 30px;
}

.game-instructions h4 {
    color: var(--text-light);
    margin-bottom: 15px;
}

.game-instructions ul {
    list-style: none;
}

.game-instructions li {
    color: var(--text-muted);
    margin-bottom: 8px;
}

.game-instructions kbd {
    background: var(--light-bg);
    padding: 3px 8px;
    border-radius: 3px;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    font-weight: bold;
}

.game-score {
    background: var(--light-bg);
    padding: 15px;
    border-radius: 8px;
}

.score-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--text-light);
}

.score-item span:last-child {
    color: var(--secondary-color);
    font-weight: bold;
}

.game-canvas-container {
    position: relative;
    background: var(--card-bg);
    border-radius: 10px;
    border: 2px solid var(--primary-color);
    overflow: hidden;
}

#marioGame {
    display: block;
    width: 100%;
    height: 400px;
    background: linear-gradient(to bottom, #87CEEB 0%, #98D8C8 100%);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.game-overlay.hidden {
    display: none;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    padding: 50px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-info h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.footer-info p {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.quote {
    font-style: italic;
    color: var(--primary-color);
}

.footer-links h4,
.footer-contact h4,
.footer-interests h4 {
    color: var(--text-light);
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 8px;
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 10px;
}

.interest-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.interest-icons span {
    color: var(--text-muted);
}

.interest-icons i {
    color: var(--primary-color);
    margin-right: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--light-bg);
        width: 100%;
        padding: 20px;
        transition: 0.3s;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item::after {
        left: 20px !important;
    }

    .game-container {
        grid-template-columns: 1fr;
    }
}
