/* ===================================
   DARK THEME PERSONAL WEBSITE CSS
   Harry Pan - 7th Grade Portfolio
   =================================== */

/* ROOT VARIABLES - Easy to customize */
:root {
    --primary-color: #1a1a1a;      /* Dark black background */
    --secondary-color: #2d2d2d;    /* Lighter black for cards */
    --accent-color: #ff00ff;       /* Neon magenta */
    --text-color: #ffffff;         /* White text */
    --border-color: #ff00ff;       /* Neon borders */
    --hover-color: #00ffff;        /* Neon cyan on hover */
}

/* ===================================
   GLOBAL STYLES
   =================================== */

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

html {
    scroll-behavior: smooth; /* Smooth scrolling between sections */
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===================================
   NAVIGATION BAR
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--primary-color);
    border-bottom: 3px solid var(--accent-color);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(255, 0, 255, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--hover-color);
    text-shadow: 0 0 10px var(--hover-color);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    margin-top: 70px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 0, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    animation: slideInDown 0.8s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-shadow: 0 0 20px var(--accent-color), 0 0 40px var(--accent-color);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--hover-color);
}

.cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: 2px solid var(--accent-color);
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-color);
}

/* ===================================
   CONTAINER & SECTION STYLES
   =================================== */

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

.section {
    padding: 4rem 0;
    background-color: var(--primary-color);
    border-top: 2px solid var(--border-color);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

/* ===================================
   ABOUT ME SECTION
   =================================== */

.about-content {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* ===================================
   INTERESTS SECTION
   =================================== */

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.interest-card {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid var(--accent-color);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.interest-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 0, 255, 0.5);
    background-color: rgba(255, 0, 255, 0.1);
}

.interest-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.interest-card h3 {
    color: var(--hover-color);
    margin-bottom: 1rem;
}

/* ===================================
   PROJECTS SECTION
   =================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid var(--hover-color);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.5);
}

.project-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.project-tag {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-top: 1rem;
    font-weight: bold;
}

/* ===================================
   MERCH SHOP SECTION
   =================================== */

.merch-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
}

.merch-disclaimer {
    text-align: center;
    background-color: var(--secondary-color);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    border: 2px solid #ff6600;
    color: #ffcc00;
    font-size: 1.1rem;
    font-weight: bold;
}

.merch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.merch-card {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 10px;
    border: 3px dashed var(--accent-color);
    text-align: center;
    transition: all 0.3s ease;
    transform: rotate(-1deg);
}

.merch-card:hover {
    transform: rotate(1deg) scale(1.05);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.6);
}

.merch-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(0, 0, 0, 0.1);
}

.ai-hoodie-1 {
    background: linear-gradient(45deg, #ff00ff, #00ffff);
}

.ai-hoodie-2 {
    background: linear-gradient(45deg, #00ffff, #ffff00);
}

.ai-hoodie-3 {
    background: linear-gradient(45deg, #ff00ff, #ff0000);
}

.ai-hoodie-4 {
    background: linear-gradient(45deg, #00ff00, #00ffff);
}

.ai-hoodie-5 {
    background: linear-gradient(45deg, #ffff00, #ff00ff);
}

.ai-hoodie-6 {
    background: linear-gradient(45deg, #ff0000, #00ff00);
}

.merch-card h3 {
    color: var(--hover-color);
    margin-bottom: 0.5rem;
}

.price {
    color: #ffff00;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 1rem 0;
}

.merch-button {
    width: 100%;
    padding: 0.8rem;
    background-color: #666666;
    color: var(--text-color);
    border: 2px solid #888888;
    border-radius: 5px;
    cursor: not-allowed;
    font-weight: bold;
    font-size: 1rem;
    margin-top: 1rem;
    opacity: 0.7;
}

.merch-button:hover {
    background-color: #555555;
    box-shadow: 0 0 15px rgba(255, 100, 100, 0.5);
}

/* ===================================
   DIFFERENT SECTION (JUMPSCARES)
   =================================== */

.different-section {
    text-align: center;
    padding: 4rem 0;
}

.different-section p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--hover-color);
}

.jumpscare-button {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    background-color: #ff0000;
    color: white;
    border: 3px solid #ffff00;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.7;
    }
}

.jumpscare-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px #ff0000;
}

.jumpscare-hidden {
    display: none;
}

.jumpscare-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
}

.jumpscare-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--accent-color);
    padding: 3rem;
    border-radius: 15px;
    z-index: 2001;
    text-align: center;
    animation: jumpscare-pop 0.3s ease-out;
}

@keyframes jumpscare-pop {
    0% {
        transform: translate(-50%, -50%) scale(0.3) rotate(10deg);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

.jumpscare-text {
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: bold;
    text-shadow: 3px 3px 0px var(--hover-color);
    margin-bottom: 2rem;
}

.close-jumpscare {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    background-color: var(--primary-color);
    color: var(--accent-color);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.close-jumpscare:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* ===================================
   LEARNING JOURNAL SECTION
   =================================== */

.journal-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.journal-entry {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--hover-color);
}

.journal-entry h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.journal-entry ul {
    list-style-position: inside;
    line-height: 2;
}

.journal-entry li {
    color: var(--text-color);
}

/* ===================================
   CONTACT SECTION
   =================================== */

.contact-section {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 50%, #2d2d2d 100%);
    text-align: center;
}

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

.contact-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.contact-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.contact-button {
    padding: 1rem;
    font-size: 1rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.contact-button:hover {
    background-color: transparent;
    color: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-color);
}

/* ===================================
   FOOTER
   =================================== */

footer {
    background-color: var(--secondary-color);
    border-top: 3px solid var(--accent-color);
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

footer p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

/* ===================================
   MOBILE RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .nav-container {
        padding: 1rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .container {
        padding: 1rem;
    }

    .jumpscare-text {
        font-size: 2rem;
    }

    .interests-grid,
    .projects-grid,
    .merch-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.8rem;
    }

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

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}
