@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
/* ==========================================================================
   1. BASE RESET & MINECRAFT PROFESSIONAL THEME STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121215; /* Obsidian Background */
    /* Add the block grid */
    background-image: 
        linear-gradient(#1e2029 1px, transparent 1px),
        linear-gradient(90deg, #1e2029 1px, transparent 1px);
    background-size: 64px 64px; /* Represents a 64x64 texture block */
    background-position: center center;
    color: #d4d7d9;
    line-height: 1.6;
}
header {
    background-color: #1e2029; 
    padding: 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid #353945; 
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 40px;
}
.logo {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    font-weight: bold;
    color: #ba98e7d5; 
    text-shadow: 2px 2px 0px rgba(0,0,0,0.5);
    line-height: 1.5;
    white-space: nowrap; 
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 12px; 
    align-items: center;
}

.nav-links a {
    background-color: #1e2029;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 2px solid transparent; 
}
/* 1. About - Iron */
.nav-links li:nth-child(1) a { border-color: #D4D7D9; color: #D4D7D9 !important; }
.nav-links li:nth-child(1) a:hover { 
    background-color: #D4D7D9; color: #121215 !important; 
    box-shadow: 0 0 10px rgba(212, 215, 217, 0.2); 
}

/* 2. Programming - Copper */
.nav-links li:nth-child(2) a { border-color: #E77C56; color: #E77C56 !important; }
.nav-links li:nth-child(2) a:hover { 
    background-color: #E77C56; color: #121215 !important; 
    box-shadow: 0 0 10px rgba(231, 124, 86, 0.2); 
}

/* 3. Games - Gold */
.nav-links li:nth-child(3) a { border-color: #FCEE4B; color: #FCEE4B !important; }
.nav-links li:nth-child(3) a:hover { 
    background-color: #FCEE4B; color: #121215 !important; 
    box-shadow: 0 0 10px rgba(252, 238, 75, 0.2); 
}

/* 4. 3D Models - Redstone */
.nav-links li:nth-child(4) a { border-color: #FF3333; color: #FF3333 !important; }
.nav-links li:nth-child(4) a:hover { 
    background-color: #FF3333; color: #121215 !important; 
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.2); 
}

/* 5. Certifications - Emerald */
.nav-links li:nth-child(5) a { border-color: #55FF55; color: #55FF55 !important; }
.nav-links li:nth-child(5) a:hover { 
    background-color: #55FF55; color: #121215 !important; 
    box-shadow: 0 0 10px rgba(85, 255, 85, 0.2); 
}

/* 6. Contact - Lapis Lazuli */
.nav-links li:nth-child(6) a { border-color: #4A76D2; color: #4A76D2 !important; }
.nav-links li:nth-child(6) a:hover { 
    background-color: #4A76D2; color: #fff !important; /* White text for contrast */
    box-shadow: 0 0 10px rgba(74, 118, 210, 0.2); 
}

/* 7. Resume - Diamond */
.nav-links li:nth-child(7) a { border-color: #55FFFF; color: #55FFFF !important; }
.nav-links li:nth-child(7) a:hover { 
    background-color: #55FFFF; color: #121215 !important; 
    box-shadow: 0 0 10px rgba(85, 255, 255, 0.2); 
}

.nav-links a:hover {
    background-color: #55FFFF;
    color: #121215 !important;
    box-shadow: 0 0 10px rgba(85, 255, 255, 0.2);
}
main {
    max-width: 1200px;
    margin: 100px auto 40px auto; 
    padding: 0 20px;
}
section {
    margin-bottom: 80px;
}
h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-left: 4px solid #55FF55; 
    padding-left: 15px;
    color: #fff;
    line-height: 1.5;
}
.about-text h3, 
.card-header h3, 
.contact-text h3, 
.carousel-content h4 {
    font-family: 'Press Start 2P', cursive;
    line-height: 1.4;
}

.about-text h3 { font-size: 1rem; margin-bottom: 15px; }
.card-header h3 { font-size: 0.85rem; }
.contact-text h3 { font-size: 0.9rem; }
.carousel-content h4 { font-size: 0.8rem; }

/* ==========================================================================
   2. ABOUT ME SPLIT CARD
   ========================================================================== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: center;
    background-color: #1e2029;
    border: 2px solid #353945;
    border-radius: 12px;
    padding: 30px;
}
.profile-image-wrapper {
    width: 100%;
    height: 320px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #353945;
    background-color: #0b0c0f;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-text h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 10px;
}
.about-text p {
    color: #b0b7c3;
    font-size: 1rem;
    margin-bottom: 15px;
}

/* ==========================================================================
   3. SHOWCASE CONTAINERS & CARDS
   ========================================================================== */
.showcase-container, .games-showcase-container, .models-showcase-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 40px;
}
.project-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.project-card {
    background-color: #1e2029;
    border: 2px solid #353945;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.project-card.active {
    border-color: #55FF55;
    background-color: #181a21;
    box-shadow: 0 0 10px rgba(85, 255, 85, 0.1);
}
.card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.card-header h3 {
    font-size: 1.15rem;
    color: #fff;
    margin-right: auto;
}
.badge {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
}
.cs-badge { background-color: #178600; color: #fff; }
.py-badge { background-color: #3572A5; color: #fff; }
.engine-badge, .tool-badge { background-color: #4f566b; color: #fff; }
.github-link {
    color: #55FFFF;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 5px;
}
.github-link:hover {
    text-decoration: underline;
}

/* Carousel Components */
.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #121215;
    border: 1px solid #353945;
    border-radius: 6px;
    padding: 12px;
    margin: 15px 0;
    gap: 10px;
}
.carousel-content {
    flex: 1;
    text-align: center;
    min-height: 85px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.carousel-content h4 {
    color: #55FFFF;
    font-size: 1.05rem;
    margin-bottom: 5px;
}
.carousel-content p {
    font-size: 0.85rem;
    color: #b0b7c3;
    margin-bottom: 0 !important;
    line-height: 1.4;
}
.carousel-arrow {
    background: #1e2029;
    border: 1px solid #353945;
    color: #d4d7d9;
    font-size: 1.1rem;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    user-select: none;
}
.carousel-arrow:hover {
    background-color: #55FF55;
    color: #121215;
    border-color: #55FF55;
}
/* ==========================================================================
   CERTIFICATIONS SECTION
   ========================================================================== */
.cert-showcase-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 40px;
}
.cert-image-wrapper {
    width: 100%;
    height: 240px;
    background-color: #0b0c0f;
    border: 2px solid #353945;
    border-radius: 6px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cert-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile rule for the new container */
@media (max-width: 900px) {
    .cert-showcase-container { grid-template-columns: 1fr; }
}
/* ==========================================================================
   4. IDE & MEDIA VIEWERS
   ========================================================================== */
.code-window {
    background-color: #0b0c0f;
    border: 1px solid #353945;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: sticky;
    top: 100px;
}
.window-header {
    background-color: #1e2029;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #353945;
}
.window-dots {
    display: flex;
    gap: 8px;
    margin-right: 20px;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background-color: #ff5f56; }
.yellow { background-color: #ffbd2e; }
.green { background-color: #27c93f; }
.window-title {
    font-family: monospace;
    font-size: 0.85rem;
    color: #7e899c;
}
pre { margin: 0; padding: 20px; overflow-x: auto; max-height: 520px; }
code {
    font-family: 'Consolas', 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #a9b2c3;
    display: block;
    white-space: pre-wrap; 
}

.media-window-wrapper {
    background-color: #0b0c0f;
    border: 2px solid #353945;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.media-window-header {
    background-color: #1e2029;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #353945;
}
.media-window-title {
    font-family: monospace;
    font-size: 0.85rem;
    color: #7e899c;
}
.audio-toggle-btn {
    background-color: #1e2029;
    border: 1px solid #353945;
    color: #55FF55;
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.audio-toggle-btn:hover {
    background-color: #55FF55;
    color: #121215;
    border-color: #55FF55;
}
.media-container {
    position: relative;
    width: 100%;
    height: 360px;
    background-color: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.portfolio-video, .sketchfab-iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.portfolio-video { object-fit: cover; }
/* Execution Container Styles */
.execution-container {
    display: none;
    width: 100%;
    height: 520px;
    background-color: #0b0c0f;
    text-align: center;
}
.execution-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Keeps the GIF's aspect ratio intact */
}

/* ==========================================================================
   CONTACT & SOCIAL LINKS (Minecraft Ore Themed)
   ========================================================================== */
.contact-subtitle {
    color: #b0b7c3;
    max-width: 600px;
    margin-bottom: 30px;
}
.contact-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 25px;
}
.contact-card {
    background-color: #1e2029;
    border: 2px solid #353945;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Email Card - Diamond Blue Theme */
.email-card { 
    gap: 20px; 
    border-color: #55FFFF; 
}
.email-card:hover {
    border-color: #55FFFF;
    background-color: #171a23;
    box-shadow: 0 0 10px rgba(85, 255, 255, 0.15);
    transform: translateY(-3px);
}
.contact-icon { font-size: 2.5rem; }
.contact-text h3 { color: #fff; font-size: 1.2rem; margin-bottom: 4px; }
.contact-text p { color: #55FFFF; font-weight: 500; }

.social-links-grid { display: flex; flex-direction: column; gap: 15px; }
.social-card { padding: 20px; font-weight: 600; justify-content: center; }

/* WhatsApp - Emerald Ore Theme */
.social-card.whatsapp { 
    color: #55FF55; 
    background-color: #1e2029; 
    border-color: #55FF55; 
}
.social-card.whatsapp:hover { 
    background-color: #55FF55; 
    color: #121215; 
    box-shadow: 0 0 10px rgba(85, 255, 255, 0.15);
    transform: translateY(-3px);
}

/* Instagram - Redstone Ore Theme */
.social-card.instagram { 
    color: #FF3333; 
    background-color: #1e2029; 
    border-color: #FF3333; 
}
.social-card.instagram:hover { 
    background-color: #FF3333; 
    color: #121215; 
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.15);
    transform: translateY(-3px);
}
/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 900px) {
    .about-container { grid-template-columns: 1fr; text-align: center; }
    .profile-image-wrapper { max-width: 320px; margin: 0 auto; }
    .showcase-container, .games-showcase-container, .models-showcase-container, .cert-showcase-container { grid-template-columns: 1fr; }
    .code-window { position: relative; top: 0; }
    .contact-container { grid-template-columns: 1fr; }
}

@media (max-width: 550px) {
    .media-container { height: 240px; }
    
    /* Shrink overlay button slightly on smaller phones so it fits nicely */
    .overlay-btn {
        padding: 6px 10px;
        font-size: 0.55rem;
        bottom: 15px;
    }
}
/* ==========================================================================
   CERTIFICATIONS GRID
   ========================================================================== */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.cert-card {
    background-color: #1e2029;
    border: 2px solid #353945;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.cert-card:hover {
    border-color: #55FF55;
    box-shadow: 0 0 10px rgba(85, 255, 85, 0.1);
    transform: translateY(-3px);
}
.cert-image-wrapper {
    width: 100%;
    height: 220px;
    background-color: #0b0c0f;
    border-bottom: 2px solid #353945;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cert-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.cert-card:hover .cert-img {
    transform: scale(1.05); /* Slight zoom effect on hover */
}
.cert-info {
    padding: 20px;
}
.cert-info h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.4;
}
.cert-info .badge {
    display: inline-block;
    margin-bottom: 15px;
}
.cert-info p {
    color: #b0b7c3;
    font-size: 0.9rem;
}
/* ==========================================================================
   RESUME BUTTONS
   ========================================================================== */
.nav-resume-btn {
    background-color: #1e2029;
    border: 2px solid #55FFFF; /* Diamond Blue */
    color: #55FFFF !important;
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
}
.nav-resume-btn:hover {
    background-color: #55FFFF;
    color: #121215 !important;
    box-shadow: 0 0 10px rgba(85, 255, 255, 0.2);
}

.btn-primary {
    background-color: #1e2029;
    border: 2px solid #55FF55; /* XP Green */
    color: #55FF55;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.75rem;
    transition: all 0.3s ease;
   
    display: block; 
    width: fit-content; 
    margin: 20px auto 0 auto;
}
.btn-primary:hover {
    background-color: #55FF55;
    color: #121215;
    box-shadow: 0 0 15px rgba(85, 255, 85, 0.2);
}
.btn-play-game {
    background-color: #1e2029;
    border: 2px solid #FCEE4B; /* Gold Ore */
    color: #FCEE4B;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.65rem;
    transition: all 0.3s ease;
}
.btn-play-game:hover {
    background-color: #FCEE4B;
    color: #121215;
    box-shadow: 0 0 10px rgba(252, 238, 75, 0.2);
}
.overlay-btn {
    position: absolute;
    bottom: 25px; /* Distance from the bottom of the video */
    left: 50%;
    transform: translateX(-50%); /* Perfectly centers it horizontally */
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8); /* Strong shadow to separate it from video background */
}

/* Enhances the hover effect to pop over the moving video */
.overlay-btn:hover {
    box-shadow: 0 4px 20px rgba(252, 238, 75, 0.5);
    transform: translateX(-50%) scale(1.05); /* Slight pop up effect */
}