/* Game Developer Portfolio Styles */
:root {
    --primary: #1a1a2e;
    --secondary: #4cc9f0;
    --accent: #f72585;
    --light: #e2e2e2;
    --dark: #121212;
    --dark-accent: #16213e;
    --neon-green: #4ade80;
    --neon-blue: #60a5fa;
    --neon-pink: #f472b6;
    --pixel-size: 2px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    font-family: 'Ubuntu Mono', monospace;
    position: relative;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(76, 201, 240, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(247, 37, 133, 0.1) 0%, transparent 50%);
}

/* Pixel art corners */
.pixel-corners {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    background:
        linear-gradient(to right, var(--dark) var(--pixel-size), transparent var(--pixel-size)) 0 0,
        linear-gradient(to right, var(--dark) var(--pixel-size), transparent var(--pixel-size)) 0 100%,
        linear-gradient(to left, var(--dark) var(--pixel-size), transparent var(--pixel-size)) 100% 0,
        linear-gradient(to left, var(--dark) var(--pixel-size), transparent var(--pixel-size)) 100% 100%,
        linear-gradient(to bottom, var(--dark) var(--pixel-size), transparent var(--pixel-size)) 0 0,
        linear-gradient(to bottom, var(--dark) var(--pixel-size), transparent var(--pixel-size)) 100% 0,
        linear-gradient(to top, var(--dark) var(--pixel-size), transparent var(--pixel-size)) 0 100%,
        linear-gradient(to top, var(--dark) var(--pixel-size), transparent var(--pixel-size)) 100% 100%;
    background-repeat: no-repeat;
    background-size: 20px 20px;
}

/* Game HUD style header */
.game-hud {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(26, 26, 46, 0.9);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    z-index: 10;
    border-bottom: 2px solid var(--secondary);
    text-shadow: 0 0 5px rgba(76, 201, 240, 0.5);
}

.hud-score, .hud-level {
    color: var(--neon-green);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 5rem auto 2rem;
    padding: 0 20px;
}

/* Intro section */
.intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 10%;
    animation: fadeIn 1s ease-in-out;
}

.techie-tagline {
    font-size: 1.2rem;
    color: #ffffff;
    padding: 10px 15px;
    margin: 10px 0;
    /* border-radius: 12px; */
    /* box-shadow: 0 4px 8px rgba(0,0,0,0.2); */
}

/* Optional animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


.blinking-cursor {
    animation: blink 1s step-end infinite;
    font-weight: bold;
}
  
@keyframes blink {
    from, to { opacity: 0; }
    50% { opacity: 1; }
}

.game-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 2rem;
    color: var(--secondary);
    text-shadow: 0 0 10px rgba(76, 201, 240, 0.7);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.game-description {
    font-size: 1.1rem;
    margin-top: .5rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Developer stats */
.dev-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.stat {
    background-color: var(--dark-accent);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--secondary);
    box-shadow: 0 4px 15px rgba(76, 201, 240, 0.2);
    text-align: center;
    min-width: 120px;
}

.stat-number {
    display: block;
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    color: var(--neon-green);
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Projects grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    animation: fadeIn 1s ease-in-out;
}

.project-card {
    background-color: var(--dark-accent);
    border-radius: 8px;
    /* overflow: hidden; */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(76, 201, 240, 0.2);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(76, 201, 240, 0.3);
    border-color: var(--secondary);
}

.game-icon {
    position: absolute;
    top: -15px;
    left: 10px;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    border: 3px solid var(--dark);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    background-color: #303030;
    z-index: 2;
    object-fit: cover;
    transition: all 0.3s ease;
}

.project-card:hover .game-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(76, 201, 240, 0.4);
}

.project-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-image {
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
    font-family: 'Press Start 2P', cursive;
    font-size: 1.1rem;
}

.project-subtitle {
    font-style: italic;
    color: var(--neon-pink);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.project-description {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* View Details Button */
.view-details {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-details:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 201, 240, 0.4);
}

.view-details i {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.view-details:hover i {
    transform: translateX(3px);
}

/* Tech list */
.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1rem;
}

.tech-item {
    background-color: rgba(76, 201, 240, 0.1);
    color: var(--secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(76, 201, 240, 0.3);
    font-family: 'Ubuntu Mono', monospace;
}

/* Skills Section */
.skills-section {
    margin: 4rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(76, 201, 240, 0.2);
    border-bottom: 1px solid rgba(76, 201, 240, 0.2);
}

.section-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    color: var(--neon-green);
    margin-bottom: 2rem;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    gap: 1rem;
}

.skill-category {
    background-color: var(--dark-accent);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(76, 201, 240, 0.2);
}

.skill-category h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
}

.skill-list {
    list-style-type: none;
}

.skill-list li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(76, 201, 240, 0.1);
    font-size: 0.95rem;
}

.skill-list li:last-child {
    border-bottom: none;
}

/* Footer */
.game-footer {
    background-color: var(--primary);
    padding: 3rem 0 1.5rem;
    text-align: center;
    margin-top: 3rem;
}

.contact-cta {
    margin-bottom: 2rem;
}

.contact-cta h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    color: var(--neon-green);
    margin-bottom: 1.5rem;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-button.email {
    background-color: var(--accent);
    color: white;
}

.contact-button.linkedin {
    background-color: #0a66c2;
    color: white;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.footer-copyright {
    margin-top: 2rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.pixel-heart {
    color: var(--accent);
    text-shadow: 0 0 5px rgba(247, 37, 133, 0.7);
}

/* Enhanced Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--dark-accent);
    margin: 2% auto;
    padding: 25px;
    padding-top: 40px;
    border-radius: 8px;
    width: 80%;
    max-width: 900px;
    position: relative;
    border: 2px solid var(--secondary);
    box-shadow: 0 0 30px rgba(76, 201, 240, 0.4);
    animation: modalFadeIn 0.3s ease-out;
}

/* Thumbnail Container */
.thumbnail-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
    padding: 10px 0;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary) var(--dark-accent);
    -webkit-overflow-scrolling: touch;
}

/* Thumbnail Styles */
.thumbnail {
    width: 80px;
    height: 80px;
    min-width: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    background-color: var(--dark);
}

.thumbnail:hover, .thumbnail.active {
    border-color: var(--secondary);
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(76, 201, 240, 0.5);
}

#modal-media-container {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-bottom: 15px;
}

.image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Thumbnail Wrapper */
.thumbnail-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Media Type Badge */
.media-type-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(0,0,0,0.7);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    pointer-events: none;
}

/* Modal Navigation Buttons */
.modal-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    margin: 15px 0;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 30, 30, 0.8);
    color: var(--secondary);
    border: 2px solid var(--secondary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Game-style Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    color: var(--light);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent);
    border-radius: 50%;
    border: 2px solid var(--light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.close:hover {
    background-color: var(--secondary);
    color: var(--dark);
    transform: rotate(90deg) scale(1.1);
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(76, 201, 240, 0.7);
}

.close:before, .close:after {
    content: '';
    position: absolute;
    width: 60%;
    height: 2px;
    background-color: currentColor;
}

.close:before {
    transform: rotate(45deg);
}

.close:after {
    transform: rotate(-45deg);
}

/* Remove default × character */
.close span {
    display: none;
}

.nav-arrow:hover {
    background: var(--secondary);
    color: var(--dark);
    transform: translateY(-50%) scale(1.1);
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

/* Media container positioning */
#modal-media-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    margin: 0 auto;
}

/* Scrollbar styling */
.thumbnail-container::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-container::-webkit-scrollbar-track {
    background: var(--dark-accent);
    border-radius: 3px;
}

.thumbnail-container::-webkit-scrollbar-thumb {
    background-color: var(--secondary);
    border-radius: 3px;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes modalScaleIn {
    0%   { opacity: 0; transform: scale(0.95); }
    50%  { opacity: 1; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1.00); }
}

.modal-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(76, 201, 240, 0.3);
}

.modal-header h2 {
    color: var(--secondary);
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section h3 {
    color: var(--neon-green);
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-list {
    list-style-type: none;
    padding-left: 1rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.feature-list li:before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.project-role {
    background: rgba(247, 37, 133, 0.1);
    padding: 0.5rem;
    border-radius: 4px;
    border-left: 3px solid var(--accent);
    font-size: 0.9rem;
}

.close {
    color: var(--light);
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 10px;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: var(--accent);
}

/* Back to top button */
#backToTop {
    position: fixed;
    bottom: -100px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(247, 37, 133, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
    bottom: 30px;
}

#backToTop:hover {
    background-color: var(--secondary);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(76, 201, 240, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .game-title {
        font-size: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .intro {
        padding: 0 5%;
    }
    
    .dev-stats {
        gap: 1rem;
    }
    
    .stat {
        padding: 0.8rem 1rem;
        min-width: 100px;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .skills-grid {
        grid-template-columns: repeat(2, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .game-title {
        font-size: 1.2rem;
    }
    
    .game-description {
        font-size: 1rem;
    }
    
    .dev-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-button {
        width: 100%;
        justify-content: center;
    }

    .skills-grid {
        grid-template-columns: repeat(1, minmax(250px, 1fr));
    }
}