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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom, #4a7c2c 0%, #8bc34a 50%, #cddc39 100%);
    min-height: 100vh;
    overflow: hidden;
    color: white;
}

.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: rgb(45, 45, 45);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 150;
}

.dashboard-header {
    position: absolute;
    top: 10px;
    right: 40px;
    text-align: right;
    z-index: 200;
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.user-info {
    margin-top: 10px;
    font-size: 1.2rem;
    opacity: 0.9;
}

.nav-menu {
    position: absolute;
    top: 30px;
    left: 40px;
    font-size: 1.3rem;
    z-index: 200;
}

.nav-menu ul {
    list-style: none;
}

.nav-menu li {
    margin: 15px 0;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.3s;
}

.nav-menu li:hover, .nav-menu li.active {
    opacity: 1;
}

.nav-menu li.active::before {
    content: "▶ ";
    color: white;
}

.carousel-container {
    position: absolute;
    bottom: 200px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 400px;
    perspective: 1500px;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-in-out;
}

.tile {
    position: absolute;
    width: 380px;
    height: 320px;
    background: linear-gradient(135deg, #7cb342 0%, #9ccc65 50%, #aed581 100%);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s ease;
    left: 50%;
    transform-origin: center;
    pointer-events: auto;
}

.tile:hover {
    transform: translateY(-10px) scale(1.05) !important;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
}

.tile-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
}

.tile-title {
    font-size: 1.8rem;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.tile-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 5px;
}

.counter {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    opacity: 0.8;
}

.controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    opacity: 0.9;
}

.xbox-button {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: #8bc34a;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    margin: 0 5px;
    color: white;
}

.content-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 200;
    display: none;
    overflow-y: auto;
    padding: 40px;
}

.content-modal.active {
    display: block;
}

.modal-content {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #4a7c2c 0%, #7cb342 100%);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.close-btn {
    float: right;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    opacity: 0.7;
    transition: opacity 0.3s;
    padding: 10px;
    margin: -10px;
}

.close-btn:hover {
    opacity: 1;
}

.blog-post {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.blog-post:hover {
    background: rgba(255,255,255,0.2);
}

.blog-date {
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.blog-full-content {
    line-height: 1.8;
}

.blog-full-content h1,
.blog-full-content h2,
.blog-full-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog-full-content p {
    margin-bottom: 15px;
}

.blog-full-content code {
    background: rgba(0,0,0,0.3);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.blog-full-content pre {
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 15px 0;
}

.blog-full-content pre code {
    background: none;
    padding: 0;
}

h1, h2 {
    margin-bottom: 20px;
}

a {
    color: #cddc39;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.back-to-list {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.back-to-list:hover {
    background: rgba(255,255,255,0.3);
}

.avatar-container {
    position: absolute;
    top: 35%;
    left: 25%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 50;
    pointer-events: none;
}

.avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
}

.avatar-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 5px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.avatar-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.gamertag {
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 5px;
}

.gamerscore {
    font-size: 1rem;
    opacity: 0.8;
}

.info-section {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 50;
    max-width: 400px;
    padding: 20px;
}

/* Hide info section on mobile */
@media (max-width: 768px) {
    .info-section {
        display: none !important;
    }
}

.info-title {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.info-text {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.social-icon {
    font-size: 2.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
    cursor: pointer;
    pointer-events: auto;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5));
}

.project-card {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    margin: 25px 0;
    border-radius: 12px;
    transition: background 0.3s;
}

.project-card:hover {
    background: rgba(255,255,255,0.15);
}

.project-card h2 {
    margin-bottom: 15px;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.project-image {
    aspect-ratio: 16/9;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    transition: transform 0.3s;
    cursor: pointer;
    overflow: hidden;
}

.project-image:hover {
    transform: scale(1.05);
}

.sync-spinner {
    width: 80px;
    height: 80px;
    margin: 100px auto;
    border: 8px solid rgba(255,255,255,0.2);
    border-top: 8px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.content-modal.syncing .modal-content {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

/* ========================================
   MOBILE OPTIMIZATION - Tablet & Mobile
   ======================================== */

@media (max-width: 1024px) {
    .top-bar {
        height: 60px;
    }

    .dashboard-header {
        top: 15px;
        right: 20px;
    }

    .dashboard-title {
        font-size: 1.8rem;
    }

    .user-info {
        font-size: 1rem;
    }

    .nav-menu {
        top: 20px;
        left: 20px;
        font-size: 1.1rem;
    }

    .avatar-container {
        top: 25%;
        left: 50%;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

    .avatar-image {
        font-size: 3.5rem;
    }

    .gamertag {
        font-size: 1.3rem;
    }

    .info-section {
        top: 40%;
        max-width: 90%;
        padding: 15px;
    }

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

    .info-text {
        font-size: 0.95rem;
    }

    .social-links {
        gap: 15px;
    }

    .social-icon {
        font-size: 2rem;
    }

    .carousel-container {
        bottom: 150px;
        height: 350px;
    }

    .tile {
        width: 320px;
        height: 280px;
    }

    .tile-icon {
        font-size: 4rem;
    }

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

    .tile-subtitle {
        font-size: 0.85rem;
    }

    .counter {
        bottom: 60px;
        font-size: 1.1rem;
    }

    .controls {
        bottom: 20px;
        font-size: 0.95rem;
    }

    .modal-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .top-bar {
        height: 50px;
    }

    .dashboard-header {
        top: 10px;
        right: 15px;
    }

    .dashboard-title {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }

    .user-info {
        font-size: 0.85rem;
        margin-top: 5px;
    }

    .nav-menu {
        top: 15px;
        left: 15px;
        font-size: 0.95rem;
    }

    .nav-menu li {
        margin: 10px 0;
    }

    /* Stack avatar vertically on mobile */
    .avatar-container {
        top: 18%;
        left: 50%;
        transform: translate(-50%, 0);
    }

    .avatar {
        width: 70px;
        height: 70px;
        margin-bottom: 8px;
    }

    .avatar-image {
        font-size: 2.5rem;
    }

    .gamertag {
        font-size: 1rem;
        margin-bottom: 3px;
    }

    .gamerscore {
        font-size: 0.85rem;
        margin-bottom: 0;
    }

    /* Optimize carousel for mobile - MOVED LOWER */
    .carousel-container {
        bottom: 200px;
        height: 250px;
        width: 100%;
        perspective: 1000px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

    .tile {
        width: 240px;
        height: 200px;
        border-radius: 12px;
        margin-left: -120px;
    }

    .tile-icon {
        font-size: 3rem;
        margin-bottom: 15px;
    }

    .tile-title {
        font-size: 1.3rem;
    }

    .tile-subtitle {
        font-size: 0.75rem;
    }

    /* Disable hover effects on mobile (use tap instead) */
    .tile:hover {
        transform: none !important;
        box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    }

    .counter {
        bottom: 120px;
        font-size: 1rem;
    }

    .controls {
        bottom: 80px;
        font-size: 0.85rem;
    }

    .xbox-button {
        width: 26px;
        height: 26px;
        line-height: 26px;
        font-size: 0.9rem;
    }

    /* Modal optimizations */
    .content-modal {
        padding: 20px;
    }

    .modal-content {
        padding: 25px 20px;
        border-radius: 12px;
    }

    .close-btn {
        font-size: 1.8rem;
        padding: 8px;
    }

    .blog-post {
        padding: 15px;
        margin: 15px 0;
    }

    .blog-post h2 {
        font-size: 1.3rem;
    }

    .blog-post p {
        font-size: 0.9rem;
    }

    .project-gallery {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .project-card {
        padding: 20px;
        margin: 20px 0;
    }

    .project-card h2 {
        font-size: 1.4rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .dashboard-title {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }

    .user-info {
        font-size: 0.7rem;
    }

    .nav-menu {
        font-size: 0.8rem;
    }

    .avatar-container {
        top: 16%;
    }

    .avatar {
        width: 60px;
        height: 60px;
        margin-bottom: 6px;
    }

    .avatar-image {
        font-size: 2rem;
    }

    .gamertag {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }

    .gamerscore {
        font-size: 0.75rem;
    }

    .carousel-container {
        bottom: 180px;
        height: 220px;
    }

    .tile {
        width: 200px;
        height: 170px;
        margin-left: -100px;
    }

    .tile-icon {
        font-size: 2.2rem;
        margin-bottom: 8px;
    }

    .tile-title {
        font-size: 1rem;
    }

    .tile-subtitle {
        font-size: 0.65rem;
    }

    .counter {
        bottom: 105px;
        font-size: 0.85rem;
    }

    .controls {
        bottom: 65px;
        font-size: 0.7rem;
    }

    .xbox-button {
        width: 22px;
        height: 22px;
        line-height: 22px;
        font-size: 0.75rem;
    }

    .modal-content {
        padding: 20px 15px;
    }

    .blog-post {
        padding: 12px;
    }

    h1 {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 1.1rem;
    }
}

/* Landscape mode adjustments for mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .avatar-container {
        display: none;
    }

    .info-section {
        top: 20%;
    }

    .carousel-container {
        bottom: 80px;
        height: 200px;
    }

    .tile {
        height: 160px;
    }

    .counter {
        bottom: 30px;
    }

    .controls {
        bottom: 8px;
    }
}

.resume-content {
    padding: 32px 40px;
    font-family: system-ui, sans-serif;
    line-height: 1.6;
}

.resume-content h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.resume-content h2 {
    font-size: 22px;
    margin-top: 28px;
    margin-bottom: 8px;
}

.resume-content p {
    margin-bottom: 10px;
    font-size: 16px;
}

.resume-preview-container {
    text-align: center;
    margin: 40px 0 20px 0;
}

.resume-preview {
    width: 100%;
    max-width: 550px;       /* Increased preview size */
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.20);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resume-preview:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.resume-download {
    display: inline-block;
    padding: 14px 26px;
    background-color: #0066cc;
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s ease;
    margin-top: 10px;
}

.resume-download:hover {
    background-color: #0052a3;
}

/* Optional: Improve spacing of the close button */
.close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
}
/* =========================
   Cinematic Strip Gallery
   ========================= */
.cinematic-strip {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    scroll-behavior: smooth;
}

.cinematic-strip::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.strip-item {
    flex: 0 0 auto;
    width: 320px;
    height: 150px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: #111;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    perspective: 500px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

.strip-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.92;
    transition: opacity 0.25s ease, transform 0.3s ease;
}

/* Hover Effects */
.strip-item:hover {
    transform: scale(1.08) translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

.strip-item:hover img {
    opacity: 1;
    transform: scale(1.02);
}

/* Fade-in animation */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optional Auto-scroll on desktop */
@media (min-width: 768px) {
    .cinematic-strip {
        animation: autoScroll 25s linear infinite;
    }
}

@keyframes autoScroll {
    0% { scroll-snap-align: start; }
    100% { scroll-snap-align: end; }
}

/* =========================
   Lightbox Modal
   ========================= */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: fixed;
    top: 30px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.avatar-image img {
    width: 100px;         /* Adjust this number to change size */
    height: 100px;        /* Keep this equal to width for a square */
    object-fit: cover;   /* Crops the image so it doesn't distort */

    border-radius: 50px;
}