/* ===========================
   VARIABLES / THEME
=========================== */
:root {
    --primary-color: #0a0a0a;       /* Dark section background */
    --secondary-color: #111111;     /* Card / container background (dark) */
    --accent-color: #f5f5f5;        /* Light text (dark sections) */
    --neon-color: #00f0ff;          /* Neon highlight */
    --neon-hover: #33ffff;          /* Hover / interactive */
    --overlay-color: rgba(0, 240, 255, 0.1); 
    --shadow-color: rgba(0, 240, 255, 0.7);  

    /* Light theme */
    --light-bg: #f5f5f5;            /* Light section background */
    --light-card: #ffffff;          /* Card background in light sections */
    --light-text: #111111;          /* Dark text for light sections */

    --font-main: 'Poppins', sans-serif;
}

/* ===========================
   GLOBAL STYLES
=========================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--primary-color);
    color: var(--accent-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ===========================
   HEADER / NAVBAR
=========================== */
header {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
}

.nav-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0,0,0,0.95);
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 0 5px var(--shadow-color);
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-item a {
    font-weight: 500;
    color: var(--accent-color);
}

.nav-item a:hover {
    color: var(--neon-hover);
    text-shadow: 0 0 5px var(--neon-hover),
                 0 0 10px var(--neon-hover),
                 0 0 20px var(--neon-hover);
}

.toggle-button{
    display: none;
    font-size: 2rem;
    background: none;
    color:var(--red-color);
    cursor: pointer;
    border: none;

    outline: none;
    background: none; 
}
.toggle-button:focus {
    outline: none;
}

/* ===========================
   SECTION STYLES
=========================== */
section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
    text-align: center;
    transition: background-color 0.5s, color 0.5s;
}

/* Alternating dark/light sections */
section:nth-of-type(odd) {
    background-color: var(--primary-color);
    color: var(--accent-color);
}

section:nth-of-type(even) {
    background-color: var(--light-bg);
    color: var(--light-text);
}

/* SECTION HEADINGS */
section h2 {
    margin-bottom: 30px;
    font-size: 2.5rem;
    border-bottom: 2px solid var(--neon-color);
    display: inline-block;
    padding-bottom: 10px;
    color: var(--neon-color);
    text-shadow: 0 0 5px var(--neon-color),
                 0 0 10px var(--neon-color),
                 0 0 20px var(--neon-color);
}

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

.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    position: relative;
    height: 100vh;
    padding: 0 20px;
    gap: 20px; /* space between intro and image columns */
}

.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
}


.intro-container {
    background-color: var(--overlay-color);
    padding: 2rem;
    border-radius: 20px;
    max-width: 500px;
    position: relative;
    z-index: 2; /* ensures it is above the image */
    text-align: left;
}

.highlight {
    color: var(--neon-color);
    text-shadow: 0 0 5px var(--neon-color),
                 0 0 10px var(--neon-color),
                 0 0 20px var(--neon-color);
}

.intro-container h1,
.intro-container h2 {
    margin: 10px 0;
    color: var(--neon-color);
    text-shadow: 0 0 5px var(--neon-color),
                 0 0 10px var(--neon-color),
                 0 0 20px var(--neon-color);
}

.hero-image {
    position: relative;
    width: 50vh;
    height: 50vh;
    border-radius: 100%;
    overflow: hidden;
    z-index: 1; /* behind intro */
    margin-left: -80px; /* overlap intro */
    flex-shrink: 0;
    box-shadow: 0 0 20px var(--shadow-color);
    border: 4px solid var(--neon-color); /* optional neon border */
}

.hero-image img.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===========================
   ABOUT SECTION
=========================== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.about-stats-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.about-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 0 10px var(--shadow-color);
    transition: all 0.3s ease;
}

/* Card background changes in even sections */
section:nth-of-type(even) .about-stat {
    background-color: var(--light-card);
}

.about-stat:hover {
    box-shadow: 0 0 15px var(--neon-color),
                0 0 30px var(--neon-color),
                0 0 50px var(--neon-color);
}

/* Skills / "What I Do" */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill {
    padding: 20px;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 0 5px var(--shadow-color);
}

/* ===========================
   SERVICES SECTION
=========================== */
.services-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.service {
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 10px var(--shadow-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

section:nth-of-type(even) .service {
    background-color: var(--light-card);
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px var(--neon-color),
                0 0 30px var(--neon-color),
                0 0 50px var(--neon-color);
}

/* ===========================
   PROJECTS SECTION
=========================== */
.projects-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.project-card {
    padding: 40px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px var(--shadow-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

section:nth-of-type(even) .project-card {
    background-color: var(--light-card);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--neon-color),
                0 0 40px var(--neon-color),
                0 0 60px var(--neon-color);
}

/* ===========================
   CONTACT SECTION
=========================== */
.contact-section .social-links {
    display: flex;
    gap: 20px;
    font-size: 2rem;
}

.contact-section .social-links a:hover {
    color: var(--neon-hover);
    text-shadow: 0 0 5px var(--neon-hover),
                 0 0 10px var(--neon-hover),
                 0 0 20px var(--neon-hover);
}

/* ===========================
   FOOTER
=========================== */
.footer {
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 10px var(--shadow-color);
}

section:nth-of-type(even) .footer {
    background-color: var(--light-card);
    color: var(--light-text);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
        .nav-bar{
        display: block;
        display: flex;
        justify-content: center;
        border-radius: 0px 0px 2rem 2rem;
        /* display: none; */
        width: 100%;
        position: absolute; 
        top: 0px;
        left: 0;
        background: linear-gradient(20deg, var(--light-red-color), var(--darker-red-color));

        /* background-color: white; */
        text-align: center;
        z-index: 11;
        padding: 1rem 0;
        padding-top: 5vh;
        opacity: 0;
        transform: translateY(-100%);
        pointer-events: none;
        transition: all 0.7s ease;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        
    }
    .nav-list{
        gap: 1rem;
        flex-direction: column;
        width: 30vw;
    }

    .toggle-button{
        position: relative;
        text-align: left;
        display: block;
        width: 30vw;
        margin: 0px;
        padding: 5px;
        z-index: 2000;

    }
    .toggle-button:focus {
        outline: none; /* removes the blue focus ring */
    }
    .menu-icon {
    transition: opacity 0.3s ease;
    opacity: 1;
}

    .menu-icon.fade-out {
        opacity: 0;
    }

    .menu-icon.fade-in {
        opacity: 1;
    }

    .nav-bar.active{
        opacity: 0.9;
        transform: translateY(0);
        pointer-events: auto;
        background-color: rgb(23, 99, 99);
    }
    .hero-section {
        flex-direction: column-reverse;
        gap: 15px;
        height: auto;
        padding: 50px 10px;
    }

    .hero-image {
        margin-left: 0;
        width: 200px;
        height: 200px;
    }

    .intro-container {
        max-width: 90%;
        text-align: center;
    }

    .about-container,
    .services-container,
    .projects-container {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 2rem;
    }

    /* .intro-container {
        max-width: 95%;
        padding: 1.5rem;
    } */
}
