:root {
    --bg-dark: #050505;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent-1: #ff2a2a;
    --accent-2: #cc0000;
    --accent-3: #880000;
    --glass-bg: rgba(25, 0, 0, 0.4);
    --glass-border: rgba(255, 40, 40, 0.15);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
.hero-subtitle {
    font-family: 'Outfit', sans-serif;
}

a {
    color: var(--accent-1);
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: none;
}

a:hover {
    color: #ff6666;
}

/* ================== Custom Cursor Glow ================== */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.15) 0%, rgba(255, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: transform 0.1s ease-out;
    mix-blend-mode: screen;
}

.cursor-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--accent-1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--accent-1), 0 0 20px var(--accent-2);
}

/* ================== Parallax Magic ================== */
.parallax-bg {
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    z-index: -1;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 0, 0, 0.08), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(136, 0, 0, 0.15), transparent 40%),
        var(--bg-dark);
    transition: transform 0.1s ease-out;
}

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

/* ================== Hero Section ================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 4rem 0;
}

.profile-pic {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    border: 3px solid var(--accent-3);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
    animation: fadeInDown 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    animation: fadeInDown 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#typewriter-text::after {
    content: "|";
    margin-left: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 5s ease infinite;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    font-weight: 400;
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

/* ================== Hover Scaling FX ================== */
.hover-scale {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.hover-scale:hover {
    transform: scale(1.1);
}

.hover-scale-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}

.hover-scale-card:hover {
    transform: scale(1.03) translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 100, 100, 0.4);
}

.hover-scale-text {
    transition: transform 0.3s ease, color 0.3s ease;
}

.hover-scale-text:hover {
    transform: scale(1.02) translateX(10px);
    color: #fff;
}


/* ================== Split Cards Layout ================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    width: 100%;

    display: flex;
    gap: 3rem;
    align-items: center;
    position: relative;
    /* For pseudo-element cyber borders */
}

/* Cyberpunk glowing border effect on hover */
.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(45deg, transparent 40%, var(--accent-1) 50%, transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.2;
    transition: opacity 0.4s ease, background 0.4s ease;
}

.glass-card:hover::before {
    opacity: 0.9;
    background: linear-gradient(45deg, transparent 10%, #00ffff 30%, var(--accent-1) 70%, transparent 90%);
}

.glass-card.reverse {
    flex-direction: row-reverse;
}

.card-content {
    flex: 1;
}

.card-visual {
    flex: 1;
    min-height: 400px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 40, 40, 0.2);
    position: relative;
    overflow: hidden;
    /* subtle drop shadow to blend nicely */
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

/* Cool placeholder tech images to fit the profile */
.visual-about {
    background: url('Pictures/ChillPic.jpeg') center/cover;
}

.visual-work {
    background: url('Pictures/WorkPic.jpg') center/cover;
}

.visual-edu {
    background: url('Pictures/EducationPic.jpg') center/cover;
}

/* Add a cool dark overlay to images so they don't overpower the neon red theme */
.card-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease;
}

.card-visual:hover::after {
    background: rgba(0, 0, 0, 0.1);
}

.content-section {
    padding: 6rem 0;
    perspective: 1000px;
}

.banner-image {
    width: 100%;
    object-fit: cover;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--accent-3);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Experience */
.experience-item {
    margin-bottom: 2.5rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--accent-3);
}

.experience-item:last-child {
    margin-bottom: 0;
}

.experience-item h3 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
    color: #fff;
}

.company-info {
    font-size: 0.95rem;
    color: var(--accent-1);
    margin-bottom: 0.75rem;
}

/* Skills */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.skill-tag {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid var(--accent-3);
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-size: 1rem;
    color: #fff;
    cursor: none;
    transition: transform 0.3s ease;
}

.skill-tag:hover {
    background: var(--accent-2);
    box-shadow: 0 0 15px var(--accent-1);
    border-color: var(--accent-1);
}

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

.cta-title {
    font-size: 3rem;
    margin-bottom: 3rem;
}


/* ================== Buttons ================== */
.glow-button {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid var(--accent-1);
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.1);
}

.glow-button:hover {
    background: var(--accent-2);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.4);
}

/* ================== Animations ================== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeInUp 1s ease 1s forwards;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent-1);
    border-radius: 50%;
    animation: scrollMouse 2s infinite cubic-bezier(0.15, 0.41, 0.69, 0.94);
}

@keyframes scrollMouse {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 900px) {

    .glass-card,
    .glass-card.reverse {
        flex-direction: column;
        padding: 2rem;
    }

    .card-visual {
        width: 100%;
        min-height: 250px;
    }
}

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

    .social-links {
        gap: 0.75rem;
    }

    .glow-button {
        flex: 1 1 100%;
        text-align: center;
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
}

/* ================== Cyberpunk & Blade Runner FX ================== */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.25) 51%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 998;
    /* just below custom cursor */
}

.neon-lines-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    /* Behind content but in front of background */
    overflow: hidden;
}

.neon-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--accent-1), transparent);
    opacity: 0.5;
    box-shadow: 0 0 10px var(--accent-1);
}

.neon-line.horizontal {
    height: 2px;
    width: 100%;
    left: -100%;
    animation: shootRight 8s linear infinite;
}

.neon-line.vertical {
    width: 2px;
    height: 100%;
    top: -100%;
    background: linear-gradient(180deg, transparent, var(--accent-1), transparent);
    animation: shootDown 6s linear infinite;
}

.neon-line:nth-child(1) {
    top: 20%;
    animation-delay: 1s;
    animation-duration: 5s;
}

.neon-line:nth-child(3) {
    left: 15%;
    animation-delay: 2s;
    animation-duration: 6s;
}

@keyframes shootRight {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(200%);
    }
}

@keyframes shootDown {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(200%);
    }
}

/* ================== Secret Compartment ================== */
.secret-compartment {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.secret-trigger {
    width: 12px;
    height: 12px;
    background: rgba(255, 0, 0, 0.3);
    border-radius: 50%;
    cursor: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

.secret-trigger:hover {
    background: var(--accent-1);
    box-shadow: 0 0 15px var(--accent-1);
    transform: scale(1.2);
}

.secret-content {
    position: absolute;
    bottom: 25px;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    width: max-content;
    max-width: 250px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.9);
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.secret-compartment:hover .secret-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.secret-pic {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 2px solid var(--accent-1);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.secret-content p {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.4;
}

@media (hover: none) and (pointer: coarse) {
    * {
        cursor: auto !important;
    }

    a,
    button,
    .hover-scale,
    .hover-scale-card,
    .skill-tag,
    .secret-trigger {
        cursor: pointer !important;
    }
}