*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
    font-family: 'JetBrains Mono',monospace;
    /* Keep variables */
    --mouse-x: 50%;
    --mouse-y: 50%;
    /* Remove the radial gradient from body */
    background-color: #18191C; /* Use the base dark color */
    background-attachment: fixed;
    transition: background 0.1s;
}

/* Text Styles */

.focus-text{
    font-size: 1.3rem;
}
.name-text{
    font-size: 1.4rem;
    font-weight: bold;
    margin-top: 4px;
    color: rgb(250, 179, 250)
}
.secondary-text{
    margin-top: 7px;
    font-size: 1.05rem;
}
.subtext{
    font-size: 1rem;
    margin-top: 7px;
    color: rgb(170, 170, 170);
    font-weight: 520;
}
#main-header {
    position: fixed;
    top: 0;
    left: 25%;
    width: 75%;
    background-color: rgba(35, 35, 48, 0.85);
    backdrop-filter: blur(10px);
    color: white;
    padding: 15px 30px;
    display: none; /* Hide on desktop */
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(100, 74, 97, 0.4);
    z-index: 900;
}

.header-logo {
    font-size: 1.2rem;
    color: #cca7ec; /* Primary Accent */
}

.hamburger-btn {
    background: none;
    border: none;
    color: rgb(227, 169, 232);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
    box-shadow: rgb(168, 161, 177. 0.5);
    border-radius: 100%;
}

.hamburger-btn:hover {
    color: #b693d4; /* Highlight on hover */
}
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001; /* Ensure it's above everything */
    display: none; /* Hidden by default on desktop */
}
.close-btn:hover {
    color: #A032FF; /* Primary accent color on hover */
}

/* Fixed Container(Leftside bar) CSS */
.fixed-container{
    position: fixed;
    top: 0;
    width: 25%;
    /* Use the same dark color for consistency */
    color: white;
    padding: 40px;
    z-index: 1000;
    height: 100%;
    box-shadow: 0 0 10px rgba(53, 51, 53, 0.385);
    background: radial-gradient(
        circle 300px at var(--mouse-x) var(--mouse-y), /* Increased size for visibility */
        rgba(153, 96, 211, 0.166) 0%, /* Dimmer light purple */
        #20232c 70% /* Fade to the container's base dark color */
    );
}

.fixed-container .profile-image img{
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 25px 0;
    box-shadow: 0 4px 8px rgba(224, 203, 223, 0.5);
}
.fixed-container .social-media{
    margin-top: 16px;
    display: flex;
    gap: 15px;
}
.fixed-container .social-media .social-link{
    color: white;
    font-size: 1.4rem;
    opacity: 70%;
    transition: transform 0.3s;
    margin: -10px 5px 0 0;
}
.fixed-container .social-media .social-link:hover{
    transform: scale(1.1);
    opacity: 100%;
}

.fixed-container .nav-links{
    margin-top: 70px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.fixed-container .nav-links li{
    list-style: none;
    margin-top: 15px;
}
.fixed-container .nav-links a{
    text-decoration: none;
    color: white;
    font-size: 1rem;
    display: inline-block;
    opacity: 70%;
    transition: transform 0.3s, opacity 0.3s;
}
.fixed-container .nav-links a.active {
    opacity: 100%; /* Full opacity */
    font-size: 1.1rem; /* Slightly bigger font size */
    font-weight: bold;
    color: #ffffff; /* Use your primary accent color for a stronger highlight */
    transform: scale(1.05); /* Ensure it stays slightly scaled */
}
.fixed-container .nav-links a:hover{
    transform: scale(1.1);
    opacity: 100%;
}

/* Container CSS */
.container{
    /* Remove the linear-gradient background */
    margin-left: 25%;
    padding: 60px;
    color: white;
    min-height: 100vh;
    position: relative;
    overflow: hidden;

    /* --- ADD TORCHLIGHT GRADIENT HERE --- */
    background: radial-gradient(
        circle 300px at var(--mouse-x) var(--mouse-y), /* Increased size for visibility */
        rgba(153, 96, 211, 0.166) 0%, /* Dimmer light purple */
        #20232c 70% /* Fade to the container's base dark color */
    );
    background-attachment: fixed; /* Crucial: Ensures gradient is fixed in position */
}
.mobile-text{
    color: lightgreen;
    font-size: 0px;
}
.container .card{
    background: radial-gradient(
        circle 300px at var(--mouse-x) var(--mouse-y), /* Increased size for visibility */
        #2e313d 70% /* Fade to the container's base dark color */
    );
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top:20px;
}
.container .skills{
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    font-size: 1.02rem;
    font-weight: bold;
}
.container .logo{
    width: 20px;
    height: 20px;
    margin-right: 8px;
    margin-left: 2px;
    vertical-align: middle;
}
.container .logo img{
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Projects Section */
.container .project-table tr{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr; /* each td becomes an equal-width column and fills the row */
    align-items: center;
    gap: 15px;
    box-sizing: border-box;
    padding: 12px 15px;
    margin-top: 10px;
    border-radius: 8px;
    background-color: #c497e010;
    transition: background-color 0.3s;
}
.container .project-table .date{
    color: rgb(170, 170, 170);
    font-size: 0.9rem;
    margin-left: auto;
}

.container .project-table tr td a{
    text-decoration: none;
    color: #d18aff;
    transition: color text-decoration 0.3s;
}
.container .project-table tr td a:hover{
    text-decoration: underline;
    color: #ff9aff;
}
.container .project-table tr:hover{
    background-color: #c497e02f;
}
.container .project-table tr td p{
    font-size: 0.75rem;
    color: #fff;
    opacity: 40%;
}
#image-preview-box {
    position: fixed; /* Keep it relative to the viewport */
    top: 0;
    left: 0;
    z-index: 9999; /* Ensure it's on top of everything */
    pointer-events: none; /* Crucial: Allows the mouse to interact with elements underneath */
    opacity: 0; /* Hidden by default */
    transform: translate(-50%, -100%); /* Centers the image above the cursor */
    transition: opacity 0.3s ease-out; /* Smooth fade in/out */
    max-width: 250px; /* Adjust size as needed */
    max-height: 150px;
    border: 2px solid #67517a; /* Primary Accent border */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

#image-preview-box.visible {
    opacity: 1; /* Show when 'visible' class is added by JS */
}

#preview-image {
    display: block;
    width: 250px;
    height: auto;
    object-fit: cover;
}

/* Contact form */
.contact-form{
    padding: 20px;
    background: radial-gradient(
        circle 300px at var(--mouse-x) var(--mouse-y), /* Increased size for visibility */
        #20232c4f 70% /* Fade to the container's base dark color */
    );
    margin: auto;
    width: 50%;
    border-radius: 15px;
    position: relative; 
    z-index: 20;
}
.contact-form label{
    display: block;
    margin-top: 12px; /* gap above each label */
    margin-bottom: 6px; /* small gap between label and field */
    font-weight: 600;
    color: #e6e6e6;
}
.contact-form input,
.contact-form textarea{
    display: block;
    padding: 15px;
    width: 100%;
    border-radius: 10px;
    margin-top: 3px;
    font-family: 'JetBrains Mono',monospace;
}
.contact-form input:focus,
.contact-form textarea:focus{
    box-shadow: 0 4px 8px rgba(245, 64, 255, 0.4);
    border: none;
}
.contact-form textarea{
    height: 150px;
}

.contact-form button{
    background: linear-gradient(90deg,rgba(42, 61, 155, 1) 0%, rgba(137, 87, 199, 1) 50%, rgba(63, 75, 99, 1) 100%);
    border: none;
    color: white;
    margin-top: 14px;
    display: block;
    padding: 15px;
    width: 100%;
    font-size: 1.1rem;
    border-radius: 10px;
    font-family: 'JetBrains Mono',monospace;
    cursor: pointer;
    transition: 0.3s;
}
.contact-form button:hover{
    transform: scale(1.01);
    background:linear-gradient(270deg,rgba(42, 61, 155, 1) 0%, rgba(137, 87, 199, 1) 50%, rgba(63, 75, 99, 1) 100%);
}
.contact-forms .card .contact-link{
    text-decoration: none;
    color: white;
    font-size: 1.5em;
    margin-right: 10px;
    opacity: 70%;
    transition: 0.3s;
}
.contact-forms .card .contact-link:hover{
    opacity: 100%;
    transform: scale(1.1);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea,
.contact-form button {
    position: relative; /* Crucial to bring them forward */
    z-index: 30; /* The highest z-index to ensure clickability */
}
input{
    outline: none;
}
.required{
    color: #f55656;
}



/* Color text */
.red{
    background-color: #ffa197;
    color: #d2313f;
    padding: 8px 12px;
    border-radius: 155px;
}
.blue{
    background-color: #a3c9ff;
    color: rgb(42, 102, 226);
    padding: 8px 12px;
    border-radius: 155px;
}  
.green{
    background-color: #b2ffb0;
    color: rgb(34, 153, 34);
    padding: 8px 12px;
    border-radius: 155px;
}
.yellow{
    background-color: #fff5ab;
    color: rgb(188, 157, 20);
    padding: 8px 12px;
    border-radius: 155px;
}
.orange{
    background-color: #ffd9a3;
    color: rgb(241, 140, 39);
    padding: 8px 12px;
    border-radius: 155px;
}
.status{
    font-size: 15px;
    margin-top: -15px;
    color: rgb(156, 152, 152);
}
.online{
    align-items: center;
    justify-content: center;
    vertical-align:middle;
    color: #3dbf3d;
    font-size: 35px;
    box-shadow: rgba(61, 213, 19, 0.773);
}
.offline{
    align-items: center;
    justify-content: center;
    vertical-align:middle;
    color: #bf483d;
    font-size: 35px;
    box-shadow: rgba(213, 29, 19, 0.773);
}
.away{
    align-items: center;
    justify-content: center;
    vertical-align:middle;
    color: #e6b736;
    font-size: 35px;
    box-shadow: rgba(210, 213, 19, 0.773);
}

/* Background */
/* Base style for a large, blurred particle */
.particle-container::before, 
.particle-container::after {
    content: '';
    position: absolute;
    /* Reduced purple opacity slightly for a dimmer look */
    background: radial-gradient(circle, rgba(160, 50, 255, 0.3) 0%, rgba(20, 20, 40, 0) 70%);
    border-radius: 50%;
    filter: blur(100px); /* Increased blur */
    opacity: 0.7;
    z-index: 1; /* Keep below content */
}

.particle-container::before {
    /* Particle 1: Top Left - Larger */
    width: 350px;
    height: 350px;
    top: 10%;
    left: 10%;
    animation: floatParticle1 20s infinite alternate ease-in-out;
}
.particle-container {
    /* Set this element to a very low z-index */
    z-index: 1; 
    pointer-events: none; /* Keep this to ensure it doesn't block ALL clicks */
}
.particle-container::after {
    /* Particle 2: Bottom Right - Medium */
    width: 250px;
    height: 250px;
    bottom: 5%;
    right: 15%;
    animation: floatParticle2 25s infinite alternate ease-in-out;
}

/* *New Particle* - Requires an element inside the particle-container */
.particle-container .third-particle {
    position: absolute;
    width: 150px;
    height: 150px;
    top: 70%;
    left: 40%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(160, 50, 255, 0.35) 0%, rgba(20, 20, 40, 0) 70%);
    filter: blur(70px);
    opacity: 0.9;
    z-index: 1;
    animation: floatParticle3 30s infinite alternate-reverse ease-in-out;
}
/* Animation Keyframes: Make the particles float gently and scale */
@keyframes floatParticle1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(100px, -50px) scale(1.1); } /* Move and grow */
    100% { transform: translate(-30px, 20px) scale(0.95); } /* Move to a different spot and shrink */
}

@keyframes floatParticle2 {
    0% { transform: translate(0, 0) scale(1.1); }
    30% { transform: translate(-50px, 80px) scale(0.9); }
    100% { transform: translate(40px, -60px) scale(1.05); }
}

@keyframes floatParticle3 {
    0% { transform: translate(0, 0) scale(0.9); }
    40% { transform: translate(-150px, -20px) scale(1.1); }
    80% { transform: translate(50px, 120px) scale(1); }
    100% { transform: translate(0, 0) scale(0.9); }
}

/* Responsive: tablet / small desktop */
@media (max-width: 900px) {
    .focus-text{
    font-size: .9rem;
}
.name-text{
    font-size: 1.08rem;
    font-weight: bold;
    margin-top: 4px;
    color: rgb(250, 179, 250)
}
.secondary-text{
    margin-top: 7px;
    font-size: .9rem;
}
.subtext{
    font-size: .85rem;
    margin-top: 7px;
    color: rgb(170, 170, 170);
    font-weight: 520;
}
/* Show the main header on mobile */
    #main-header {
        display: flex;
        left: 0;
        width: 100%;
    }
    .close-btn {
        display: block;
        background-color: rgba(102, 30, 110, 0.712);
        padding: 5px 10px;
        border-radius: 100%;
    }
    .fixed-container.open {
        transform: translateX(0); /* Slide fully into view */
    }
    #main-header.menu-open #hamburger-btn {
        display: none;
    }
    .fixed-container {
        display: block; /* Make it visible (but off-screen) */
        height: 1000vh;
        padding: 20px;
        width: 100%; /* Full screen width */
        background: #241f30e3;
        backdrop-filter: blur(10px);
        transform: translateX(-100%); /* Start completely off-screen to the left */
        transition: transform 0.4s ease-in-out; /* Smooth sliding transition */
        z-index: 1500; /* Higher than header */
    }
    .fixed-container .nav-links{
        display: flex;
        flex-direction: row;
    }
    .fixed-container .nav-links a{
        font-size: 0.8rem;
    }
    .fixed-container .profile-image img{
        margin-left: 35%;
        width: 100px;
        height: 100px;
    }
    /* Make the main content area full width and add padding for the fixed header */
    .container {
        margin-left: 0; 
        padding: 77px 20px 20px 20px;
    }
    .mobile-text{
        color: lightgreen;
        font-size: 12px;
    }
    .container .project-table tr{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns:  1fr; /* each td becomes an equal-width column and fills the row */
    align-items: center;
    gap: 15px;
    box-sizing: border-box;
    padding: 12px 15px;
    margin-top: 10px;
    border-radius: 8px;
    background-color: #c497e010;
    transition: background-color 0.3s;
}
.container .project-table .date{
    color: rgb(170, 170, 170);
    font-size: 0.7rem;
    margin-left: auto;
}

.container .project-table tr td a{
    font-size: 0.75rem;
    text-decoration: none;
    color: #d18aff;
    transition: color text-decoration 0.3s;
}
.container .project-table tr td a:hover{
    text-decoration: underline;
    color: #ff9aff;
}
.container .project-table tr:hover{
    background-color: #c497e02f;
}
.container .project-table tr td p{
    font-size: 0.6rem;
    color: #fff;
    opacity: 40%;
} 
.desc{
    display: none;
}
.desc, .date{
    font-size: 0.65rem;
}
.contact-forms .contact-form{
        width: 100%;
        font-size: 0.85rem;
}
.container .card{
    padding: 14px;
}
.red{
    font-size: 0.75rem;
    padding: 6px 10px;
    width: auto;
    height: auto;
    font-weight: bold;
}
.blue{
    font-size: 0.75rem;
    font-weight: bold;
}
.green{
    font-size: 0.75rem;
    font-weight: bold;
}
.yellow{
    font-size: 0.75rem;
    font-weight: bold;
}
.orange{
    font-size: 0.75rem;
    font-weight: bold;
}
.container .logo{
    width: 15px;
    height: 15px;
    margin-right: 8px;
    margin-left: 2px;
    vertical-align: middle;
}
.container .logo img{
    width: 10px;
    height: 10px;
    margin-right: 8px;
    vertical-align: middle;
}
}

/* Responsive: mobile phones */
@media (max-width: 480px) {
    
}