/* 80s Retro Portfolio Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Righteous', cursive;
    background: #0a0a0a;
    min-height: 100vh;
    overflow-x: hidden;
    color: #fff;
    margin: 0;
    padding: 0;
}

/* Jukebox Entry Screen */
.jukebox-entry {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #1a0033, #330066, #4d0099);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 1s ease-out;
}

.jukebox-entry.fade-out {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Jukebox Machine */
.jukebox-machine {
    width: 320px;
    height: 480px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 20px;
    border: 4px solid #444;
    box-shadow: 
        0 0 50px rgba(255, 0, 255, 0.3),
        inset 0 0 30px rgba(0, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.jukebox-top {
    height: 160px;
    background: linear-gradient(145deg, #333, #222);
    border-radius: 16px 16px 0 0;
    position: relative;
    overflow: hidden;
}

.jukebox-glass {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    height: 90px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
    border-radius: 10px;
    border: 2px solid #555;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.glass-reflection {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
}

.jukebox-lights {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.light {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    animation: lightBlink 2s ease-in-out infinite;
}

.light-1 {
    background: #ff0080;
    animation-delay: 0s;
}

.light-2 {
    background: #00ff80;
    animation-delay: 0.7s;
}

.light-3 {
    background: #8000ff;
    animation-delay: 1.4s;
}

@keyframes lightBlink {
    0%, 50%, 100% { opacity: 0.3; }
    25% { opacity: 1; box-shadow: 0 0 20px currentColor; }
}

.jukebox-middle {
    height: 240px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.cd-display {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #222, #111);
    border-radius: 50%;
    border: 4px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
}

.start-cd {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.start-cd:hover {
    transform: scale(1.05);
    animation: cdSpin 3s linear infinite;
    background: radial-gradient(circle, #00ff80, #00cc66, #009944);
    box-shadow: 0 0 20px rgba(0, 255, 128, 0.8);
}

@keyframes cdSpin {
    from { transform: scale(1.05) rotate(0deg); }
    to { transform: scale(1.05) rotate(360deg); }
}

.cd-surface {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #ff0080 0deg,
        #00ff80 120deg,
        #8000ff 240deg,
        #ff0080 360deg
    );
    position: relative;
    box-shadow: 
        0 0 30px rgba(255, 0, 128, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.cd-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: #000;
    border-radius: 50%;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
}

.cd-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 900;
    color: #000;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

.cd-reflection {
    position: absolute;
    top: 15%;
    left: 15%;
    width: 40%;
    height: 40%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.jukebox-controls {
    display: flex;
    gap: 20px;
}

.juke-btn {
    padding: 12px 24px;
    background: linear-gradient(145deg, #444, #222);
    border: 2px solid #666;
    border-radius: 8px;
    color: #00ff80;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.juke-btn:hover {
    background: linear-gradient(145deg, #555, #333);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 255, 128, 0.5);
    transform: translateY(-2px);
}

.jukebox-bottom {
    height: 80px;
    background: linear-gradient(145deg, #333, #222);
    border-radius: 0 0 16px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.speaker-grill {
    width: 80%;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.grill-line {
    height: 8px;
    background: linear-gradient(90deg, #111, #333, #111);
    border-radius: 4px;
}

/* Custom Cursor */
.cursor {
    --r: 0deg;
    position: fixed;
    left: -8px;
    top: -6px;
    pointer-events: none;
    user-select: none;
    display: none;
    transform: translate(var(--x), var(--y));
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4));
    z-index: 10000;
}

.cursor svg {
    display: block;
    width: 28px;
    height: 28px;
    transform: rotate(var(--r));
}

.jukebox-entry {
    cursor: none;
}

/* Entry Text */
.entry-text {
    margin-top: 30px;
    text-align: center;
    z-index: 2;
    max-width: 90vw;
    padding: 0 20px;
}

.retro-title {
    font-family: 'Russo One', sans-serif;
    font-size: 2.5rem;
    background: linear-gradient(45deg, #ff0080, #00ff80, #8000ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(255, 0, 128, 0.5);
    margin-bottom: 15px;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.retro-subtitle {
    font-size: 1rem;
    color: #00ff80;
    text-shadow: 0 0 10px rgba(0, 255, 128, 0.5);
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { text-shadow: 0 0 10px rgba(0, 255, 128, 0.5); }
    to { text-shadow: 0 0 20px rgba(0, 255, 128, 0.8), 0 0 30px rgba(0, 255, 128, 0.3); }
}

/* Text Display */
.text-display {
    width: 200px;
    height: 30px;
    background: linear-gradient(145deg, #111, #000);
    border: 2px solid #333;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.jukebox-glass .scrolling-text {
    position: absolute;
    white-space: nowrap;
    color: #00ff80;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0, 255, 128, 0.8);
    animation: scrollGlass 10s linear infinite;
    width: 100%;
    text-align: center;
}

@keyframes scrollGlass {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(200px);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Retro Portfolio Main Site */
.retro-portfolio {
    display: none;
    background: #0a0a0a;
    min-height: 100vh;
    position: relative;
}

.retro-portfolio.show {
    display: block;
    animation: portfolioFadeIn 1s ease-out;
}

@keyframes portfolioFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#main-particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

/* Scroll Sections */
.scroll-section {
    min-height: 100vh;
    padding: 80px 40px;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.8s ease-out;
}

.scroll-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a0033, #330066, #4d0099);
    position: relative;
    overflow: hidden;
}

.retro-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 0, 128, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 128, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.neon-title {
    font-family: 'Russo One', sans-serif;
    font-size: 5rem;
    color: #fff;
    text-shadow: 
        0 0 10px #ff0080,
        0 0 20px #ff0080,
        0 0 40px #ff0080,
        0 0 80px #ff0080;
    animation: neonFlicker 3s ease-in-out infinite alternate;
    margin-bottom: 20px;
}

@keyframes neonFlicker {
    0%, 100% {
        text-shadow: 
            0 0 10px #ff0080,
            0 0 20px #ff0080,
            0 0 40px #ff0080,
            0 0 80px #ff0080;
    }
    50% {
        text-shadow: 
            0 0 5px #ff0080,
            0 0 10px #ff0080,
            0 0 20px #ff0080,
            0 0 40px #ff0080;
    }
}

.neon-subtitle {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: #00ff80;
    text-shadow: 0 0 20px #00ff80;
    margin-bottom: 40px;
    letter-spacing: 4px;
}

.hero-tagline {
    font-size: 1.5rem;
    color: #8000ff;
    text-shadow: 0 0 15px #8000ff;
}

.typing-text {
    border-right: 2px solid #8000ff;
    animation: typing 4s steps(40) infinite, blink 1s infinite;
}

@keyframes typing {
    0%, 50%, 100% { width: 0; }
    25%, 75% { width: 100%; }
}

@keyframes blink {
    0%, 50% { border-color: #8000ff; }
    51%, 100% { border-color: transparent; }
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #ff0080, transparent);
    border-radius: 50%;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #00ff80, transparent);
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, #8000ff, transparent);
    border-radius: 20px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

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

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title {
    font-family: 'Russo One', sans-serif;
    font-size: 3rem;
    color: #fff;
    text-shadow: 0 0 20px #ff0080;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.scan-line {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff80, transparent);
    margin: 0 auto;
    animation: scanMove 2s ease-in-out infinite;
}

@keyframes scanMove {
    0%, 100% { transform: scaleX(0.5); opacity: 0.5; }
    50% { transform: scaleX(1); opacity: 1; }
}

/* About Section */
.about-section {
    background: linear-gradient(135deg, #001122, #003344);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-terminal {
    background: #000;
    border: 2px solid #00ff80;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 255, 128, 0.3);
}

.terminal-header {
    background: #333;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #00ff80;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn.red { background: #ff4444; }
.btn.yellow { background: #ffff44; }
.btn.green { background: #44ff44; }

.terminal-title {
    font-family: 'Orbitron', monospace;
    color: #00ff80;
    font-size: 0.9rem;
}

.terminal-body {
    padding: 20px;
    font-family: 'Orbitron', monospace;
    line-height: 1.8;
}

.code-line {
    margin-bottom: 10px;
}

.prompt {
    color: #00ff80;
    margin-right: 10px;
}

.text {
    color: #fff;
}

.text.highlight {
    color: #ff0080;
    text-shadow: 0 0 10px #ff0080;
}

.profile-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(145deg, rgba(255, 0, 128, 0.1), rgba(0, 255, 128, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.stat-value {
    font-family: 'Russo One', sans-serif;
    font-size: 3rem;
    color: #ff0080;
    text-shadow: 0 0 20px #ff0080;
    margin-bottom: 10px;
}

.stat-label {
    color: #00ff80;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Projects Section */
.projects-section {
    background: linear-gradient(135deg, #220011, #440033);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: #111;
    border: 2px solid #ff0080;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 0, 128, 0.3);
}

.project-screen {
    height: 300px;
    background: linear-gradient(135deg, #ff0080, #8000ff);
    position: relative;
    overflow: hidden;
}

.screen-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
    animation: screenFlicker 3s ease-in-out infinite;
}

@keyframes screenFlicker {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

.project-content {
    padding: 30px;
    position: relative;
    z-index: 2;
}

.project-title {
    font-family: 'Russo One', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.project-desc {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tech-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.tech-icon {
    font-size: 2rem;
    color: #00ff80;
    filter: drop-shadow(0 0 10px #00ff80);
    transition: all 0.3s ease;
}

.tech-icon:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 20px #ff0080);
    color: #ff0080;
}

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

.tech-tag {
    padding: 4px 10px;
    background: rgba(0, 255, 128, 0.2);
    border: 1px solid #00ff80;
    border-radius: 12px;
    font-size: 0.7rem;
    color: #00ff80;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Experience Section */
.experience-section {
    background: linear-gradient(135deg, #112200, #334400);
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #00ff80, #ff0080);
    transform: translateX(-50%);
}

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

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

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

.timeline-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ff0080;
    border-radius: 50%;
    border: 4px solid #000;
    box-shadow: 0 0 20px #ff0080;
}

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

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

.timeline-content {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff80;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 0 20px rgba(0, 255, 128, 0.2);
}

.job-title {
    font-family: 'Russo One', sans-serif;
    font-size: 1.4rem;
    color: #ff0080;
    margin-bottom: 10px;
}

.job-company {
    color: #00ff80;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.job-period {
    color: #8000ff;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.job-desc {
    color: #ccc;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #002211, #004433);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-terminal {
    background: #000;
    border: 2px solid #00ff80;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 255, 128, 0.3);
}

.contact-item {
    display: flex;
    margin-bottom: 15px;
    font-family: 'Orbitron', monospace;
}

.contact-label {
    color: #00ff80;
    min-width: 100px;
    margin-right: 15px;
}

.contact-value {
    color: #fff;
}

.download-resume {
    margin-top: 30px;
    text-align: center;
}

.retro-button {
    padding: 15px 30px;
    background: linear-gradient(45deg, #ff0080, #8000ff);
    border: none;
    border-radius: 25px;
    color: #fff;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.retro-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 0, 128, 0.5);
}

.button-text {
    position: relative;
    z-index: 2;
}

.button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.retro-button:hover .button-glow {
    left: 100%;
}

/* Transition CD Animation */
.transition-cd {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 2s ease-out;
}

.transition-cd.animate {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(100vh) scale(0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding: 0 0 0 40px !important;
        text-align: left !important;
    }
    
    .timeline-container::before {
        left: 20px;
    }
    
    .timeline-marker {
        left: 10px !important;
        right: auto !important;
    }
}

@media (max-width: 768px) {
    .jukebox-machine {
        width: 280px;
        height: 420px;
    }
    
    .jukebox-top {
        height: 140px;
    }
    
    .jukebox-middle {
        height: 200px;
        padding: 20px;
    }
    
    .cd-display {
        width: 130px;
        height: 130px;
    }
    
    .start-cd {
        width: 100px;
        height: 100px;
    }
    
    .neon-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .retro-title {
        font-size: 2rem;
    }
    
    .retro-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .scroll-section {
        padding: 60px 20px;
    }
    
    .jukebox-machine {
        width: 240px;
        height: 360px;
    }
    
    .jukebox-top {
        height: 120px;
    }
    
    .jukebox-middle {
        height: 180px;
        padding: 15px;
    }
    
    .cd-display {
        width: 110px;
        height: 110px;
    }
    
    .start-cd {
        width: 90px;
        height: 90px;
    }
    
    .jukebox-bottom {
        height: 60px;
    }
    
    .retro-title {
        font-size: 1.8rem;
    }
    
    .retro-subtitle {
        font-size: 0.8rem;
    }
    
    .neon-title {
        font-size: 2.5rem;
    }
}
