/* --- GLOBAL STYLES & NEON FUTURE PALETTE --- */
:root {
    --bg-gradient: linear-gradient(135deg, #0a041c 0%, #000000 100%);
    --color-text: #ffffff;
    
    /* Brighter Neon Colors */
    --color-cyan: #55ffff;
    --color-neon-pink: #ff77ff;
    
    /* Super bright gradient */
    --super-neon-gradient: linear-gradient(90deg, var(--color-cyan), var(--color-neon-pink));
    
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-bg: rgba(10, 4, 28, 0.6);
    --card-hover-glow: 0 0 25px rgba(85, 255, 255, 0.4);
    --font-primary: sans-serif;
    --section-spacing: 140px;
}

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

body {
    font-family: var(--font-primary);
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--color-text);
    scroll-behavior: smooth;
    position: relative;
}

/* --- BACKGROUND EFFECTS --- */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(159, 64, 255, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 219, 222, 0.3) 0%, transparent 40%);
    filter: blur(60px);
}

body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.15;
    background-image:
        linear-gradient(rgba(85, 255, 255, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(85, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}


/* --- LAYOUT & SIDEBAR (FIXED APPROACH) --- */
.split-layout {
    /* Removed CSS Grid properties here to fix the layout conflict */
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.sidebar-graphic {
    /* Switched to fixed positioning to guarantee it stays on the left */
    position: fixed;
    top: 0;
    left: 0;
    width: 33.333%; /* Takes up 1/3 of the screen */
    height: 100vh; /* Forces full viewport height */
    overflow: hidden;
    background-color: transparent;
    border-right: 1px solid var(--glass-border);
    z-index: 10; /* Ensure it sits above main content scrolling */
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(0);
}

.parallax-layer {
    position: absolute;
    left: 0; width: 100%; height: 300vh; top: -100vh;
    will-change: transform;
}

.parallax-bg {
    z-index: 1; opacity: 0.6; mix-blend-mode: lighten;
    background-size: contain; background-repeat: no-repeat; background-position: center center;
}
.parallax-mid {
    z-index: 2;
    background-size: contain; background-repeat: no-repeat; background-position: center center;
}
.parallax-fg { z-index: 3; }

.sidebar-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300vh;
}

.sidebar-char-img {
    width: 80%;
    height: auto;
    max-width: 400px;
    object-fit: contain;
}

/* --- RIGHT MAIN CONTENT AREA --- */
.main-content-container {
    /* Pushes the content over to the right by 1/3 to make room for the fixed sidebar */
    margin-left: 33.333%;
    padding: 0 6%;
    z-index: 5;
    /* Removed auto margins and max-width restriction so it fills the remaining space better */
}

.hero-intro {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 60px;
    scroll-margin-top: 100px;
    padding-top: 100px;
}

.header-group { padding-left: 30px; margin-bottom: 40px; }

/* NAME BADGE IS NOW A GRADIENT */
.name-badge {
    display: block;
    background: var(--super-neon-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 900;
    letter-spacing: 2px;
    margin: 0 0 10px 0;
    font-size: 3.5rem;
    text-transform: uppercase;
    line-height: 1;
    filter: drop-shadow(0 0 10px rgba(85, 255, 255, 0.3));
}

.hero-headline {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 0;
    font-weight: 700;
    color: white;
}

.about-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    padding: 35px;
    border-radius: 24px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
    font-size: 1.15rem; text-align: left; max-width: 700px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* --- INITIAL HIDDEN STATE FOR ANIMATION --- */
.reveal-text, .dissolve-in, .section-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

/* Final visible state (toggled by JS) */
.reveal-text.is-visible, .dissolve-in.is-visible, .section-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}


.glass-btn-container { display: flex; gap: 25px; height: 100px; width: 100%; max-width: 700px; }
.glass-btn-wrapper {
    position: relative; border-radius: 50px; overflow: hidden; transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); opacity: 0; transform: translateY(20px);
}
.glass-btn-wrapper.is-visible { opacity: 1; transform: translateY(0); }
.small-btn { flex: 1; } .main-btn { flex: 1.5; }
.btn-bg-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(10px) brightness(0.5) saturate(1.2); transition: filter 0.4s; }

.glass-btn {
    position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: center;
    width: 100%; height: 100%;
    min-height: 40px;
    text-decoration: none; color: white;
    background: rgba(10, 4, 28, 0.6);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px); transition: all 0.4s;
    border-radius: 50px;
    padding: 10px 0;
}
.btn-title { font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; text-align: center; padding: 0 15px; }

.glass-btn-wrapper:hover { transform: translateY(-5px) scale(1.02); box-shadow: var(--card-hover-glow); }
.glass-btn-wrapper:hover .btn-bg-img { filter: blur(5px) brightness(0.7) saturate(1.5); }
.main-btn .glass-btn { border-color: var(--color-cyan); background: rgba(85, 255, 255, 0.1); box-shadow: 0 0 15px rgba(85, 255, 255, 0.2) inset; }
.glass-btn-wrapper:hover .glass-btn { border-color: var(--color-cyan); background: rgba(85, 255, 255, 0.2); text-shadow: 0 0 8px rgba(255,255,255,0.8); }


/* ========================================= */
/* --- PROJECT GRID STYLES --- */
/* ========================================= */

.project-section {
    margin-bottom: var(--section-spacing); padding-top: 40px; opacity: 0; transform: translateY(50px); transition: 0.8s ease-out;
}
.section-reveal.is-visible { opacity: 1; transform: translateY(0); }

.section-header { margin-bottom: 30px; }

h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: inline-block;
    /* Gradient: Purple -> Cyan -> Purple */
    background: linear-gradient(90deg, var(--color-neon-pink) 0%, var(--color-cyan) 50%, var(--color-neon-pink) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: none;
    font-weight: 800;
    width: fit-content;
    letter-spacing: 1px;
}

.section-focus { font-size: 1.2rem; color: #b4b4c8; font-weight: 300; }

.section-label {
    font-size: 0.9rem; font-weight: 800; letter-spacing: 2px; color: var(--color-cyan);
    margin-bottom: 35px; text-transform: uppercase; opacity: 0.9; text-align: center; width: 100%; max-width: 700px; position: relative;
}
.section-label::after {
    content: ''; position: absolute; left: 50%; bottom: -10px; width: 60px; height: 3px;
    background: var(--color-cyan); transform: translateX(-50%); box-shadow: 0 0 10px var(--color-cyan); border-radius: 2px;
}


.project-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px; justify-content: center;
}

.project-card {
    background: var(--glass-bg); border-radius: 24px; overflow: hidden; transition: all 0.4s ease;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); max-width: 550px;
    border: 1px solid var(--color-cyan); box-shadow: var(--card-hover-glow);
}

.project-card:hover { transform: translateY(-8px); }

.card-image {
    height: 220px; width: 100%; overflow: hidden; border-bottom: 1px solid rgba(85, 255, 255, 0.2); position: relative;
}

.card-image::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(85, 255, 255, 0.15) 1px, transparent 1px), linear-gradient(90deg, rgba(85, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 20px 20px; opacity: 0; transition: opacity 0.4s ease; pointer-events: none;
}
.project-card:hover .card-image::after { opacity: 1; }

.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover .card-image img { transform: scale(1.08); }
.card-content { padding: 30px; }
.card-content h4 { color: white; font-size: 1.5rem; margin-bottom: 12px; letter-spacing: 0.5px; }
.card-content p {
    color: #b4b4c8; font-size: 1rem; line-height: 1.7; margin-bottom: 25px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.tech-btn {
    display: inline-block; padding: 12px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--color-cyan); color: var(--color-cyan);
    text-decoration: none; font-weight: 800; border-radius: 50px;
    transition: all 0.3s ease; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px;
}
.tech-btn:hover {
    background: var(--color-cyan); color: #0a041c;
    box-shadow: 0 0 30px rgba(85, 255, 255, 0.5);
}

/* --- FIX FOR SIDEBAR BUTTON --- */
.tech-btn.sidebar-btn {
    margin-top: 12px;
    background: var(--super-neon-gradient) !important;
    color: #000000 !important;
    border: none;
    box-shadow: 0 0 20px rgba(85, 255, 255, 0.4);
}
.tech-btn.sidebar-btn:hover {
    background: #fff !important;
    box-shadow: 0 0 30px rgba(85, 255, 255, 0.8);
    transform: translateY(-3px);
}

/* --- CONTACT FORM STYLES --- */
#contact {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 100px;
}

.contact-glass-card {
    width: 100%;
    max-width: 600px;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
    margin-top: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.form-label {
    font-size: 0.9rem;
    color: var(--color-cyan);
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-input,
.form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    color: white;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-neon-pink);
    box-shadow: 0 0 15px rgba(255, 119, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-submit-btn {
    margin-top: 10px;
    width: 100%;
    cursor: pointer;
    background: var(--super-neon-gradient);
    color: #0a041c;
    border: none;
    font-weight: 800;
}
.contact-submit-btn:hover {
    background: white;
    box-shadow: 0 0 30px rgba(85, 255, 255, 0.8);
}

/* AJAX Form Status Message */
.form-status {
    margin-top: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    display: none;
    padding: 15px;
    border-radius: 12px;
}

.form-status.success {
    display: block;
    color: #0a041c;
    background: var(--color-cyan);
    box-shadow: 0 0 20px rgba(85, 255, 255, 0.5);
    animation: fadeUp 0.5s ease forwards;
}

.form-status.error {
    display: block;
    color: white;
    background: rgba(255, 0, 100, 0.2);
    border: 1px solid #ff0064;
}

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


/* --- ABOUT PAGE SPECIFIC STYLES --- */
.about-hero-section {
    padding-top: 80px;
    margin-bottom: 80px;
}

/* Photo Styling - Glass Frame & Portrait Ratio */
.about-photo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.about-glass-frame {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(85, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(85, 255, 255, 0.15);
    padding: 15px;
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
}

.about-photo {
    aspect-ratio: 3 / 4;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    transition: transform 0.6s ease;
}

.about-glass-frame:hover .about-photo {
    transform: scale(1.02);
}

/* Text Styling */
.about-text-content {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
}

.lead-text {
    font-size: 1.3rem;
    color: white;
    font-weight: 300;
    margin-bottom: 25px;
    border-left: 3px solid var(--color-cyan);
    padding-left: 20px;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
}

.skill-card:hover {
    background: rgba(85, 255, 255, 0.05);
    border-color: var(--color-cyan);
    transform: translateY(-5px);
}

.skill-card h4 {
    color: var(--color-cyan);
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skill-card ul {
    list-style: none;
    padding: 0;
}

.skill-card ul li {
    margin-bottom: 12px;
    color: #b4b4c8;
    display: flex;
    align-items: center;
}

.skill-card ul li::before {
    content: '▹';
    color: var(--color-neon-pink);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* --- ADDIE LIST STRUCTURE --- */
.meta-list {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.meta-list li {
    display: flex;
    flex-direction: column;
    list-style: none;
    position: relative;
    padding-left: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 18px;
    margin-bottom: 18px;
    padding-top: 5px;
}

.meta-list li::before {
    content: '▹';
    color: var(--color-neon-pink);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 8px;
}

.meta-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
    padding-top: 0;
}

.meta-list .meta-label {
    width: 100%;
    display: block;
    margin-bottom: 5px;
    color: var(--color-cyan);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
}

.meta-list .meta-content {
    display: block;
    padding-left: 0;
    font-weight: 400;
    line-height: 1.4;
    color: #b4b4c8;
}

/* --- VIDEO PLAYER STYLES --- */
.video-wrapper-glass {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: black;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 40px rgba(85, 255, 255, 0.1);
}

.responsive-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================
   GRAPHIC GRID
   ============================ */
.graphic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
    margin: 0 auto;
}

.g-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.g-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.g-item:hover {
    transform: scale(1.04);
    box-shadow: 0 0 25px rgba(85, 255, 255, 0.4);
}

/* --- MOBILE RESPONSIVE MEDIA QUERY --- */
@media (max-width: 900px) {
    /* Reset layout for mobile */
    .sidebar-graphic {
        display: none; /* Hide sidebar */
    }

    .main-content-container {
        margin-left: 0; /* Reset margin so content fills width */
        padding: 0 30px;
        max-width: 100%;
    }

    .graphic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .graphic-grid {
        grid-template-columns: 1fr;
    }
}
