/* 90s Video Game Style CSS */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

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

:root {
    --primary: #ff6b97;
    --secondary: #4effef;
    --bg-dark: #051b2c;
    --bg-light: #062d49;
    --text: #ffffff;
    --highlight: #ffec27;
    --shadow: #5b0e94;
}

body {
    font-family: 'Press Start 2P', cursive;
    background-color: var(--bg-dark);
    color: var(--text);
    line-height: 1.4;
    background-image: 
        linear-gradient(0deg, transparent 24%, 
            rgba(255, 255, 255, .05) 25%, 
            rgba(255, 255, 255, .05) 26%, 
            transparent 27%, transparent 74%, 
            rgba(255, 255, 255, .05) 75%, 
            rgba(255, 255, 255, .05) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, 
            rgba(255, 255, 255, .05) 25%, 
            rgba(255, 255, 255, .05) 26%, 
            transparent 27%, transparent 74%, 
            rgba(255, 255, 255, .05) 75%, 
            rgba(255, 255, 255, .05) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    position: relative;
    overflow-x: hidden;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    z-index: 999;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Press Start 2P', cursive;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    text-shadow: 
        3px 3px 0 var(--shadow),
        -2px -2px 0 var(--secondary);
}

.title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    animation: none;
}

.subtitle {
    font-size: 0.9rem;
    text-align: center;
    color: var(--secondary);
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding: 0 10px;
}

.section-title::before {
    content: ">";
    position: absolute;
    left: -20px;
    color: var(--highlight);
    animation: blink 1s infinite;
}

/* Video Game Elements */
.game-section {
    background-color: var(--bg-light);
    padding: 2rem;
    margin-bottom: 3rem;
    position: relative;
    border: 4px solid var(--primary);
    box-shadow: 0 0 0 4px var(--secondary), 
                0 0 0 8px var(--shadow),
                0 5px 10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.game-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: repeating-linear-gradient(
        to right,
        var(--primary) 0%,
        var(--primary) 5%,
        var(--secondary) 5%,
        var(--secondary) 10%,
        var(--highlight) 10%,
        var(--highlight) 15%,
        var(--primary) 15%,
        var(--primary) 20%
    );
}

.pixelated-divider {
    height: 8px;
    background-image: linear-gradient(
        to right,
        var(--primary) 0%,
        var(--primary) 25%,
        var(--secondary) 25%,
        var(--secondary) 50%,
        var(--primary) 50%,
        var(--primary) 75%,
        var(--secondary) 75%,
        var(--secondary) 100%
    );
    background-size: 16px 8px;
    margin: 1rem 0 2rem;
}

/* 3D Stage Element */
.stage-3d {
    width: 100%;
    height: 250px;
    perspective: 1000px;
    position: relative;
    margin: 2rem 0;
    overflow: hidden;
    cursor: pointer;
}

.stage-3d::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(
        circle at center,
        rgba(255, 107, 151, 0.1) 0%,
        rgba(78, 255, 239, 0.05) 30%,
        transparent 70%
    );
    z-index: -1;
    animation: rotate-gradient 15s infinite linear;
}

.cube-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Truck Styles */
.truck {
    width: 180px;
    height: 80px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%) rotateX(-10deg) rotateY(45deg) scale(0.8);
    animation: truck-rotate 30s infinite linear;
    transition: transform 0.3s ease;
}

.truck-part {
    position: absolute;
    transform-style: preserve-3d;
}

.truck-face {
    position: absolute;
    backface-visibility: visible;
    border: 1px solid rgba(0, 0, 0, 0.3);
}

/* Cab Section */
.truck-cab {
    transform-style: preserve-3d;
    position: absolute;
    width: 80px;
    height: 60px;
    top: -30px;
    left: -90px;
}

.truck-cab-front {
    width: 80px;
    height: 60px;
    transform: translateZ(45px);
    background-color: #e74c3c;
}

.truck-cab-back {
    width: 80px;
    height: 60px;
    transform: translateZ(0px);
    background-color: #c0392b;
}

.truck-cab-right {
    width: 45px;
    height: 60px;
    transform: rotateY(90deg) translateZ(80px);
    background-color: #d35400;
}

.truck-cab-left {
    width: 45px;
    height: 60px;
    transform: rotateY(90deg) translateZ(0px);
    background-color: #d35400;
}

.truck-cab-top {
    width: 80px;
    height: 45px;
    transform: rotateX(90deg) translateZ(60px);
    background-color: #e74c3c;
}

.truck-cab-bottom {
    width: 80px;
    height: 45px;
    transform: rotateX(90deg) translateZ(0px);
    background-color: #7f8c8d;
}

/* Windshield */
.truck-windshield {
    width: 70px;
    height: 30px;
    transform: translateZ(45.1px) translateY(10px) translateX(5px);
    background-color: #34495e;
    border: 2px solid #2c3e50;
}

/* Headlights */
.truck-headlight {
    width: 10px;
    height: 10px;
    transform: translateZ(45.2px) translateY(40px);
    background-color: #f1c40f;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(241, 196, 15, 0.8);
}

.truck-headlight-left {
    left: 10px;
}

.truck-headlight-right {
    right: 10px;
}

/* Exhaust Pipes */
.truck-exhaust {
    width: 5px;
    height: 40px;
    background-color: #95a5a6;
    transform: rotateX(-90deg) translateY(-40px);
}

.truck-exhaust-left {
    left: 15px;
    top: 0;
}

.truck-exhaust-right {
    right: 15px;
    top: 0;
}

/* Trailer Section */
.truck-trailer {
    transform-style: preserve-3d;
    position: absolute;
    width: 120px;
    height: 60px;
    top: -30px;
    left: 0px;
}

.truck-trailer-front {
    width: 120px;
    height: 60px;
    transform: translateZ(40px);
    background-color: #2c3e50;
}

.truck-trailer-back {
    width: 120px;
    height: 60px;
    transform: translateZ(-40px);
    background-color: #2c3e50;
}

.truck-trailer-right {
    width: 80px;
    height: 60px;
    transform: rotateY(90deg) translateZ(120px);
    background-color: #34495e;
}

.truck-trailer-left {
    width: 80px;
    height: 60px;
    transform: rotateY(90deg) translateZ(0px);
    background-color: #34495e;
}

.truck-trailer-top {
    width: 120px;
    height: 80px;
    transform: rotateX(90deg) translateZ(60px);
    background-color: #7f8c8d;
}

.truck-trailer-bottom {
    width: 120px;
    height: 80px;
    transform: rotateX(90deg) translateZ(-20px);
    background-color: #7f8c8d;
}

/* Wheels */
.truck-wheel {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #111;
    border-radius: 50%;
    transform-style: preserve-3d;
    transform: rotateX(90deg);
    border: 3px solid #333;
}

.truck-wheel::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #777;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.truck-wheel-front-left {
    top: 40px;
    left: -80px;
}

.truck-wheel-front-right {
    top: 40px;
    left: -25px;
}

.truck-wheel-back-left {
    top: 40px;
    left: -50px;
}

.truck-wheel-back-right {
    top: 40px;
    left: 5px;
}

.truck-wheel-trailer-left1 {
    top: 40px;
    left: 35px;
}

.truck-wheel-trailer-right1 {
    top: 40px;
    left: 90px;
}

.truck-wheel-trailer-left2 {
    top: 40px;
    left: 60px;
}

.truck-wheel-trailer-right2 {
    top: 40px;
    left: 115px;
}

/* Truck Animation */
@keyframes truck-rotate {
    0% { transform: translate(-50%, -50%) rotateX(-10deg) rotateY(0deg) scale(0.8); }
    100% { transform: translate(-50%, -50%) rotateX(-10deg) rotateY(360deg) scale(0.8); }
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.project-card {
    padding: 1.5rem;
    border: 4px solid var(--highlight);
    background-color: rgba(5, 27, 44, 0.7);
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 
        inset 0 0 12px var(--secondary),
        0 0 5px var(--highlight);
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        inset 0 0 15px var(--secondary),
        0 0 10px var(--highlight);
}

.project-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--highlight);
    text-shadow: 2px 2px 0 var(--shadow);
}

.project-desc {
    font-size: 0.7rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    line-height: 1.4;
}

.project-link {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.8rem;
    position: relative;
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--shadow);
    border: 2px solid var(--secondary);
    transition: all 0.3s ease;
}

.project-link:hover {
    background-color: var(--secondary);
    color: var(--bg-dark);
    transform: translateX(5px) scale(1.05);
}

/* Work Section */
.content-list {
    margin-top: 1.5rem;
}

.content-item {
    padding: 1.5rem;
    border-bottom: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
    background-color: rgba(5, 27, 44, 0.7);
    margin-bottom: 1rem;
}

.content-item:hover {
    background-color: rgba(6, 45, 73, 0.8);
    transform: translateX(5px);
    box-shadow: -5px 0 0 var(--highlight);
}

.content-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--highlight);
    text-shadow: 2px 2px 0 var(--shadow);
}

.content-desc {
    font-size: 0.7rem;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.content-link {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.7rem;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    padding: 5px 10px;
    background-color: var(--shadow);
    border: 2px solid var(--secondary);
}

.content-link:hover {
    background-color: var(--secondary);
    color: var(--bg-dark);
    transform: translateX(5px);
}

/* Social Links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: left;
    text-decoration: none;
    color: var(--text);
    font-size: 0.7rem;
    padding: 0.8rem 1.2rem;
    background-color: var(--shadow);
    border: 3px solid var(--primary);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    text-transform: uppercase;
    width: 100%;
    max-width: 280px;
}

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

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    background-color: var(--primary);
    color: var(--bg-dark);
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--highlight);
}

.social-link i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    font-size: 0.7rem;
    background-color: var(--bg-light);
    border-top: 4px solid var(--primary);
    position: relative;
}
.cursor-pointer
{
    cursor:pointer;
}

.heart {
    color: var(--primary);
    display: inline-block;
    animation: pulse 1.5s infinite;
}

/* Animations */
@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@keyframes cube-rotate {
    0% { transform: translate(-50%, -50%) rotateX(-20deg) rotateY(0deg); }
    100% { transform: translate(-50%, -50%) rotateX(-20deg) rotateY(360deg); }
}

@keyframes cube-bounce {
    0%, 100% { transform: translate(-50%, -60%) rotateX(-20deg) rotateY(var(--rotation)); }
    50% { transform: translate(-50%, -40%) rotateX(-15deg) rotateY(calc(var(--rotation) + 180deg)); }
}

@keyframes cube-pulse {
    0% { --rotation: 0deg; }
    100% { --rotation: 360deg; }
}

@keyframes face-color {
    0% { filter: hue-rotate(0deg); }
    33% { filter: hue-rotate(60deg); }
    66% { filter: hue-rotate(180deg); }
    100% { filter: hue-rotate(360deg); }
}

@keyframes textGlitch {
    0%, 100% { text-shadow: 3px 3px 0 var(--shadow), -2px -2px 0 var(--secondary); }
    98%, 99% { text-shadow: -2px -2px 0 red, 3px 3px 0 blue; }
}

/* Console-style blinking cursor */
.cursor-blink {
    display: inline-block;
    width: 10px;
    height: 15px;
    background-color: var(--highlight);
    animation: blink 1s infinite;
    vertical-align: middle;
    margin-left: 5px;
    transform: translateY(-2px);
}

/* Pixel Grid for Larger Screens */
@media (min-width: 769px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-card, .content-item {
        position: relative;
    }
    
    .project-card::after, .content-item::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: linear-gradient(0deg, transparent 24%, rgba(255, 255, 255, .02) 25%, rgba(255, 255, 255, .02) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, .02) 75%, rgba(255, 255, 255, .02) 76%, transparent 77%, transparent), linear-gradient(90deg, transparent 24%, rgba(255, 255, 255, .02) 25%, rgba(255, 255, 255, .02) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, .02) 75%, rgba(255, 255, 255, .02) 76%, transparent 77%, transparent);
        background-size: 4px 4px;
        pointer-events: none;
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .cube {
        width: 60px;
        height: 60px;
    }
    
    .cube-face {
        width: 60px;
        height: 60px;
    }
    
    .cube-front, .cube-back, .cube-right, .cube-left, .cube-top, .cube-bottom {
        transform: translateZ(30px);
    }
    
    .cube-back {
        transform: rotateY(180deg) translateZ(30px);
    }
    
    .cube-right {
        transform: rotateY(90deg) translateZ(30px);
    }
    
    .cube-left {
        transform: rotateY(-90deg) translateZ(30px);
    }
    
    .cube-top {
        transform: rotateX(90deg) translateZ(30px);
    }
    
    .cube-bottom {
        transform: rotateX(-90deg) translateZ(30px);
    }
}

/* Additional Effects */
.glitch {
    position: relative;
    animation: none;
}

.crt-on {
    animation: none;
}

@keyframes crt-on {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.1)
    );
    background-size: 100% 4px;
    z-index: 998;
    pointer-events: none;
    opacity: 0.15;
}

/* Particles around the cube */
.particle {
    position: absolute;
    background-color: var(--secondary);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

@keyframes particle-float {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(1);
        opacity: 0;
    }
}

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

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
        border-color: #00d4ff;
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
        border-color: #4effef;
    }
}

/* Selection arrow animation */
@keyframes subtle-pulse {
    0% { opacity: 0.7; transform: translateY(-50%) scale(1); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.2); }
    100% { opacity: 0.7; transform: translateY(-50%) scale(1); }
}

/* Arrow styles for project cards */
.selection-arrow {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--highlight);
    animation: subtle-pulse 2s ease-in-out infinite;
    pointer-events: none;
    text-shadow: 0 0 5px var(--highlight);
}

#model-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
