:root {
    --text-color: #efefef;
    --link-color: #00f2ff;
    --background-color: #101113;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    max-width: 1400px;
    margin: 0 auto;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

/* NAVBAR */

nav {
    position: fixed;             /* make it stick */
    top: 0;                      /* stick to very top */
    left: 0;
    width: 100%;                 /* full width */
    z-index: 1000;               /* keep above other elements */

    background: linear-gradient(180deg, #0f83ff, #02081d);
    padding: 0 50px;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .left a{
    color: var(--text-color);
    font-size: 22px;
    font-weight: 600;
}

nav .right a{
    color: var(--text-color);
    margin: 0 10px;
}

nav .right a span{
    margin-left: 5px;
}

nav .right a:last-child{
    color: var(--background-color);
    background-color: var(--text-color);
    padding: 5px 15px;
    border-radius: 5px;
}

/*Section 1: Introduction and Headshot*/
.hero-section {
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    margin: 100px 0;
    align-items: center;
    margin-bottom: 100px;
    gap: 40px;
}

.hero-section .text {
    flex: 5;
}

/* 
.hero-section .text h2 {
    font-size: 140px;
    font-family: 'Lobster', cursive;
    background: linear-gradient(90deg, #e7ff0d, #EF60AD, #DF1AA0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; 
    color: transparent;
}
*/
.hero-section .text h2 {
    font-size: 140px;
    font-family: 'Lobster', cursive;
    background: linear-gradient(270deg, #ff21cb, #fbff1b);
    background-size: 600% 600%;

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
    color: transparent;

    animation: gradientMove 8s ease infinite, popIn 1s ease-out forwards;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes popIn {
    0% { 
        opacity: 0; 
        transform: scale(0.05); 
    }
    60% { 
        opacity: 1; 
        transform: scale(1.1);  /* jump bigger */
    }
    100% { 
        transform: scale(1);    /* settle back */
    }
}

.hero-section .text .links {
    margin-top: 25px;
    font-family: 'Lobster', cursive;
    font-size: 18px;
}

.hero-section .text .links a {
    display: inline-block;
    padding: 5px 10px;
    border: 2px solid var(--link-color);
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: 0.3s;
}

.hero-section .text .links a:hover{
    color: #faff00;
    border: 2px solid #faff00;
}

.hero-section .headshot {
    flex: 2;
    display: flex;
    justify-content: right;
}

.hero-section .headshot img {
    border-radius: 50%;
    width: 350px;
    border: 3px solid #faff00;
    animation: neonPulse 3s infinite alternate ease-in-out, scalePulse 6s infinite alternate ease-in-out;
    box-shadow: 0 0 15px #faff00, 0 0 30px #faff00, 0 0 45px #faff00;
}

@keyframes neonPulse {
    0% {
        box-shadow: 0 0 10px #faff00, 0 0 20px #faff00, 0 0 30px #faff00;
    }
    100% {
        box-shadow: 0 0 25px #faff00, 0 0 50px #faff00, 0 0 75px #faff00;
    }
}

/* Section 2 */
.skills-section {
    padding: 0 50px;
    margin-bottom: 100px;
}
.skills-section h2 {
    text-align: center;
    font-size: 45px;
    font-family: 'Lobster', cursive;
}
.skills-section h2::after {
    content: "";
    display: block;
    width: 275px; /* adjust length of line */
    height: 4px;
    margin: 12px auto 0; /* always center */
    background: linear-gradient(90deg, #fd72d1, #faff00);
    border-radius: 2px;
}
.skills-section .text {
    text-align: center;
    margin-bottom: 20px;
}
.skills-section .cells {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.skills-section .cells .cell{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 200px;
    padding: 10px 20px;
    margin: 10px;
    border: 1.5px solid #d3d3d3;
    border-radius: 5px;
    background-color: var(--text-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.skills-section .cells .cell:hover {
    transform: translateY(-5px);
    border-color: #faff00; /* neon yellow */
    box-shadow: 0 0 12px #faff00, 0 0 24px #faff00, 0 0 36px #faff00;
}

.skills-section .cells .cell img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}
.skills-section .cells .cell span {
    font-size: 18px;
    color: var(--background-color)
}

/* Section 3: Experiences and Section 3.5: Extracurriculars and Education Section*/
.experience-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--background-color);
    padding: 0 50px;
    border-radius: 10px;
    margin-bottom: 30px;
}

#experience h2 {
  font-size: 45px;          
  margin-bottom: 40px;  
  padding: 0 50px;
  font-family: 'Lobster', cursive;
}
#experience h2::after {
    content: "";
    display: block;
    width: 300px;
    height: 4px;
    margin-top: 10px;
    background: linear-gradient(90deg, #fd72d1, #faff00);
    border-radius: 2px;
}
#extracurriculars h2 {
  font-size: 45px;          
  margin-bottom: 40px;  
  padding: 0 50px;
  font-family: 'Lobster', cursive;
}
#extracurriculars h2::after {
    content: "";
    display: block;
    width: 435px;
    height: 4px;
    margin-top: 10px;
    background: linear-gradient(90deg, #fd72d1, #faff00);
    border-radius: 2px;
}
#extracurriculars h2.education::after {
    width: 175px;
}
.experience-left {
    flex: 1;
    font-size: 14px;
    color: #bbb;
}
.experience-left .date {
    font-weight: bold;
    font-size: 18px;
    color: #fff;
}
.experience-left .location {
    font-size: 18px;
    color: #fff;
}
.experience-right {
    flex: 2;
}
.experience-right .company {
    font-size: 20px;
    font-weight: bold;
}
.experience-right .role {
    font-size: 16px;
    color: #aaa;
}
.experience-logo img {
    width: 80px;
    border-radius: 8px;
    margin-left: 80px;
}
.divider {
  width: 1px;
  background: #8a8a8a;  
  margin: 0 30px;
  align-self: stretch; 
}
#experience {
  margin-bottom: 100px; 
}
#extracurriculars {
  margin-bottom: 100px; 
}
.experience-right .details {
  margin-top: 10px;
  padding-left: 20px;  /* indent bullets */
  color: #ccc;
  font-size: 15px;
  line-height: 1.6;
}
.experience-right .details li {
  margin-bottom: 6px;
}
/* Section 4 */
.contact-section {
    padding: 0 50px;
    margin-bottom: 100px;
}
.contact-section h2 {
    font-size: 45px;
    font-family: 'Lobster', cursive;
}
.contact-section h2::after {
    content: "";
    display: block;
    width: 130px;
    height: 4px;
    margin-top: 10px; /* left-aligned under title */
    background: linear-gradient(90deg, #fd72d1, #faff00);
    border-radius: 2px;
}
.contact-section .group {
    display: flex;
    gap: 50px;
}
.contact-section .group .text {
    flex: 3;
    margin-top: 20px;
}
.contact-section .group form {
    flex: 3;
    display: flex;
    flex-direction: column;
}
.contact-section .group form input,
.contact-section .group form textarea {
    font-family: 'Poppins', sans-serif;
    border: 2px solid var(--link-color);
    background-color: transparent;
    color: var(--text-color);
    padding: 10px;
    margin-bottom: 15px;
    outline: none;
    resize: none;
}
.contact-section .group form button {
    font-size: 16px;
    font-family: 'Poppins';
    background-color: var(--link-color);
    border: none;
    height: 50px;
    cursor: pointer;
}
.contact-section .group form button:hover {
    filter: brightness(.9);
}
@media (max-width: 1335px) {
    .hero-section .text h2{
        font-size: 120px;
    }
}
@media (max-width: 1200px) {
    .hero-section .text h2{
        font-size: 110px;
    }
}
@media (max-width: 1140px) {
    .hero-section .text h2{
        font-size: 100px;
    }
}
@media (max-width: 1090px) {
    .hero-section .text h2{
        font-size: 90px;
    }
}
@media (max-width: 1050px) {
    .hero-section .text h2{
        font-size: 75px;
    }
}

@media (max-width: 930px) {
    .hero-section .text h2{
        font-size: 80px;
    }
    .hero-section .headshot img {
        max-width: 280px;
    }
}
@media (max-width: 885px) {
    .hero-section .text h2{
        font-size: 70px;
    }
    .hero-section .headshot img {
        max-width: 260px;
    }
}
@media (max-width: 850px) {
    /* Section 1 */
    .hero-section .text h2{
        font-size: 70px;
    }
    .hero-section .headshot img {
        max-width: 220px;
    }
}
@media (max-width: 790px) {
    .hero-section .text h2{
        font-size: 65px;
    }
}


/* VERTICAL AFTER THIS POINT */
@media (max-width: 740px) {
    .hero-section .headshot img {
        max-width: 280px;
    }
    .hero-section {
        flex-direction: column-reverse;
        text-align: center;   /* center all text */
    }
    .hero-section .text {
        flex: unset;          
        width: 100%;        
        padding: 0;       
    }
    .hero-section .text h2{
        font-size: 75px;
    }
    .hero-section .headshot img{
        width: 300px;
        margin: 0 auto;
    }
    .experience-right .details {
        display: none;
    }
    .contact-section .group {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    /* NAVBAR */
    nav{
        padding: 0 20px;
    }
    nav .right a{
        font-size: 22px;
    }
    nav .right a:last-child{
        color: var(--text-color);
        background-color: var(--background-color);
        padding: 0;
    }
    nav .right a span{
        display: none;
    }
    /* Section 1 */
    .hero-section {
        padding: 0 20px;
    }
    /* Section 2 */
    .skills-section {
        padding: 0 20px;
    }
    .skills-section .cells .cell span {
        font-size: 16px;
    }
    /* Section 3: Experiences */
    .experience-left {
        display: none; /* hide dates & location */
    }
    .experience-card .divider {
        display: none;
    }
    .experience-card {
        padding: 0 20px; /* reduce padding on mobile */
    }
    #experience h2,
    #extracurriculars h2,
    #contact h2 {
        text-align: center;
        padding: 0; /* remove side padding */
    /* Section 4 */
    .contact-section {
        padding: 0 20px;
    }
    }
    #extracurriculars h2::after {
        margin: 10px auto 0; /* auto left/right = centered */
    }
    #experience h2::after {
        margin: 10px auto 0; 
    }
    .contact-section h2::after {
        margin: 10px auto 0;
    }
}







