/* =========================================================
   Shankar Sala — Portfolio
   Tokens: bg #06060f | glass rgba(255,255,255,.045)
   accents: blue #4f7cff -> purple #9b5cff
   type: Space Grotesk (display) / Inter (body) / JetBrains Mono (code)
========================================================= */

:root{
    --bg: #06060f;
    --bg-alt: #0a0a1a;
    --glass: rgba(255,255,255,0.045);
    --glass-strong: rgba(255,255,255,0.07);
    --border: rgba(255,255,255,0.09);
    --border-strong: rgba(255,255,255,0.16);
    --text: #e9e9f4;
    --text-dim: #9b9bb5;
    --blue: #4f7cff;
    --purple: #9b5cff;
    --shadow: 0 0 25px rgba(79,124,255,0.18);
}

*{
    box-sizing: border-box;
}

body{
    margin: 0;
    padding: 0;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
      height: 100%;
      min-height: 100vh;
    display: flex;
    flex-direction: column;
}

html{
    scroll-behavior: smooth;
      height: 100%;
    margin: 0;
}

h1, h2, h3, .logo-mark, .hero-info-title{
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}


main {
    flex: 1;
}
/* ================= SCROLL PROGRESS ================= */

.scroll-progress{
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--blue), var(--purple));
    z-index: 1001;
    transition: width 0.12s linear;
}

/* ================= GALAXY VIDEO BACKGROUND ================= */

.bg-video-wrap{
    position: fixed;
    inset: 0;
    z-index: -3;
    overflow: hidden;
    background: var(--bg);
}

.bg-video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.bg-video-overlay{
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6,6,15,0.5) 0%, rgba(6,6,15,0.78) 55%, var(--bg) 100%);
}

/* Galaxy video is desktop/tablet only — skipped on small screens to save mobile data (see app.js) */
@media screen and (max-width: 700px){
    .bg-video-wrap{ display: none; }
}

/* ================= AMBIENT BACKGROUND ================= */

.bg-orbs{
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    mix-blend-mode: screen;
}

.orb{
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
}

.orb-blue{
    width: 500px;
    height: 500px;
    background: var(--blue);
    top: -10%;
    left: -10%;
    animation: driftOrb 18s ease-in-out infinite alternate;
}

.orb-purple{
    width: 550px;
    height: 550px;
    background: var(--purple);
    bottom: -15%;
    right: -10%;
    animation: driftOrb 22s ease-in-out infinite alternate-reverse;
}

@keyframes driftOrb{
    from{ transform: translate(0,0) scale(1); }
    to{ transform: translate(60px,40px) scale(1.15); }
}

/* ================= LAYOUT ================= */

.container{
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 160px;
    padding-bottom: 0;
}

/* ================= HEADER ================= */

header{
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    height: 70px;
    background-color: rgba(10,10,26,0.55);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 999;
}

.left{
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-mark{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    box-shadow: var(--shadow);
}

.left h2{
    margin: 0;
    font-size: 19px;
    font-weight: 600;
    color: var(--text);
}

header ul{
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
    padding: 12px 20px;
    border-radius: 50px;
    background-color: var(--glass);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

header ul li{
    list-style: none;
}

header ul a{
    position: relative;
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
    margin: 0 12px;
    padding-bottom: 4px;
}

header ul a::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s;
}

header ul a:hover{
    color: var(--text);
}

header ul a.active{
    color: var(--text);
}

header ul a.active::after{
    transform: scaleX(1);
}

.box-icons{
    display: flex;
    gap: 18px;
}

.box-icons a{
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    width: 34px;
    height: 34px;
    color: var(--text-dim);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

.box-icons a:hover{
    color: var(--text);
    border-color: var(--blue);
    box-shadow: 0 0 15px rgba(79,124,255,0.4);
}

/* ================= GRADIENT TEXT ================= */

.gradient{
    background: linear-gradient(to right, var(--blue), var(--purple), var(--blue));
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 3s linear infinite;
}

@keyframes animate-gradient{
    to{ background-position: 200%; }
}

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

.hero{
    position: relative;
    display: flex;
    width: 86%;
    max-width: 1300px;
    min-height: 100vh;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-top: 90px;
    flex-wrap: wrap;
}

.hero-info{
    flex: 1 1 480px;
    max-width: 600px;
}

.hero-info .hero-info-title{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid rgba(79,124,255,0.4);
    font-size: 14px;
    font-weight: 600;
    background-color: rgba(79,124,255,0.08);
}

.role-text{
    display: inline-block;
    min-width: 190px;
    transition: opacity 0.4s linear, transform 0.4s linear;
}

.role-text.role-fade{
    opacity: 0;
    transform: translateY(6px);
}

.hero-info h1{
    font-size: 52px;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 26px;
    margin-bottom: 22px;
}

.hero-info p{
    max-width: 550px;
    line-height: 26px;
    margin-bottom: 34px;
    font-size: 17px;
    color: var(--text-dim);
}

.hero-actions{
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

button, .hero-actions button{
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 10px;
    border: 1px solid rgba(79,124,255,0.5);
    background: linear-gradient(135deg, rgba(79,124,255,0.25), rgba(155,92,255,0.25));
    box-shadow: 0 0 5px rgba(79,124,255,0.5);
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

button:hover{
    box-shadow: 0 0 20px rgba(79,124,255,0.6);
    transform: translateY(-2px);
}

button:disabled{
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
}

button:disabled:hover{
    box-shadow: 0 0 5px rgba(79,124,255,0.5);
}

.btn-outline{
    background: transparent;
    border: 1px solid var(--border-strong);
    box-shadow: none;
}

.btn-outline:hover{
    border-color: var(--blue);
    box-shadow: 0 0 15px rgba(79,124,255,0.4);
}

/* ================= FLIP CARD (hero photo <-> terminal) ================= */

.terminal-card-wrap{
    position: relative;
    flex: 1 1 380px;
    width: min(420px, 100%);
    max-width: 420px;
    aspect-ratio: 1 / 1;
    perspective: 1400px;
}

/* Decorative ring that orbits the photo. Only the ring rotates — the photo itself stays still. */
.photo-ring{
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--blue);
    border-right-color: var(--purple);
    border-bottom-color: rgba(155,92,255,0.35);
    animation: spinRing 7s linear infinite;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

@keyframes spinRing{
    to{ transform: rotate(360deg); }
}

.terminal-card-wrap.flipped .photo-ring{
    opacity: 0;
}

.terminal-card{
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(.4,.2,.2,1), border-radius 0.7s ease;
    border-radius: 50%;
    cursor: pointer;
}

.terminal-card.flipped{
    transform: rotateY(180deg);
    border-radius: 22px;
}

.card-face{
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: inherit;
    overflow: hidden;
}

.card-front{
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(79,124,255,0.3), rgba(155,92,255,0.3));
    border: 1px solid var(--border);
}

.card-back{
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    background-color: rgba(15,15,30,0.65);
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(79,124,255,0.12);
    backdrop-filter: blur(10px);
}

.profile-photo{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.flip-hint{
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    padding: 5px 12px;
    border-radius: 50px;
    background-color: rgba(6,6,15,0.55);
    backdrop-filter: blur(4px);
}

.flip-hint i{
    font-size: 13px;
}

.terminal-bar{
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background-color: rgba(255,255,255,0.04);
    border-bottom: 1px solid var(--border);
}

.terminal-bar .dot{
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot.red{ background: #ff5f56; }
.dot.yellow{ background: #ffbd2e; }
.dot.green{ background: #27c93f; }

.terminal-title{
    margin-left: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-dim);
}

.terminal-body{
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px 24px 26px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.9;
}

.terminal-body p{
    margin: 0;
}

.terminal-body .prompt{
    color: var(--purple);
    margin-right: 8px;
}

.terminal-body .output{
    color: var(--text);
    margin-bottom: 12px;
    padding-left: 18px;
}

.status-line{
    color: #4ee1a0 !important;
}

.blink{
    animation: blink 1s step-start infinite;
}

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

.scroll-down{
    height: 46px;
    width: 28px;
    border: 2px solid var(--text-dim);
    position: absolute;
    left: 50%;
    bottom: 4%;
    transform: translateX(-50%);
    border-radius: 50px;
    cursor: pointer;
}

.scroll-down::before,
.scroll-down::after{
    content: "";
    position: absolute;
    top: 20%;
    left: 50%;
    height: 9px;
    width: 9px;
    transform: translate(-50%, -100%) rotate(45deg);
    border: 2px solid var(--text-dim);
    border-top: transparent;
    border-left: transparent;
    animation: scroll-down 2s ease-in-out infinite;
}

.scroll-down::before{
    top: 30%;
    animation-delay: 0.5s;
}

@keyframes scroll-down{
    0%{ opacity: 0; }
    30%{ opacity: 1; }
    60%{ opacity: 1; }
    100%{ top: 90%; opacity: 0; }
}

/* ================= SECTION SHARED ================= */

.info-section,
.skills-section,
.my-project,
.experience-section,
.github-section,
.certifications-section,
.contact-section{
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 84%;
    max-width: 1200px;
}

.section-title{
    position: relative;
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 46px;
    padding-bottom: 16px;
}

.section-title::after{
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 56px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
}

/* ================= ABOUT ================= */

.about-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
    align-items: start;
}

.about-text p{
    color: var(--text-dim);
    line-height: 27px;
    font-size: 16px;
}

.about-text strong{
    color: var(--text);
}

.info-cards{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.card{
    position: relative;
    padding: 26px 22px;
    border: 1px solid var(--border);
    background-color: var(--glass);
    border-radius: 16px;
    transition: 0.35s;
    backdrop-filter: blur(6px);
}

.card:hover{
    border-color: rgba(79,124,255,0.4);
    box-shadow: 0 0 25px rgba(79,124,255,0.15);
    transform: translateY(-4px);
}

.card-icon{
    font-size: 26px;
    color: var(--blue);
    margin-bottom: 10px;
    display: block;
}

.card h3{
    margin: 0 0 8px;
    font-size: 17px;
    color: var(--text);
}

.card p{
    margin: 0;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 20px;
}

/* ================= SKILLS ================= */

.skills-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.skill-card{
    padding: 24px;
    border: 1px solid var(--border);
    background-color: var(--glass);
    border-radius: 16px;
    backdrop-filter: blur(6px);
    transition: 0.3s;
}

.skill-card:hover{
    border-color: rgba(155,92,255,0.4);
    box-shadow: 0 0 25px rgba(155,92,255,0.12);
}

.skill-card h3{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    margin: 0 0 16px;
    color: var(--text);
}

.skill-card h3 i{
    color: var(--blue);
    font-size: 20px;
}

.skill-tags{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tags span, .tech-tags span{
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-strong);
    color: var(--text-dim);
    background-color: rgba(255,255,255,0.03);
}

/* ================= PROJECTS / CAROUSEL ================= */

.my-project{
    gap: 26px;
}

.carousel{
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.carousel-btn{
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--text);
    background-color: var(--glass);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.carousel-btn:hover{
    border-color: var(--blue);
    box-shadow: 0 0 15px rgba(79,124,255,0.4);
    color: var(--blue);
}

.carousel-track{
    flex: 1;
    display: flex;
    gap: 26px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 6px 4px 16px;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar{
    display: none;
}

.project-card{
    flex: 0 0 min(380px, 82vw);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    background-color: var(--glass);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(6px);
    transition: 0.35s;
}

.project-card:hover{
    border-color: rgba(79,124,255,0.35);
    box-shadow: 0 0 30px rgba(79,124,255,0.12);
    transform: translateY(-4px);
}

.project-image{
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.project-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img{
    transform: scale(1.06);
}

.project-info{
    flex: 1;
    padding: 26px;
}

.project-info h3{
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px;
}

.project-info .wip{
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
}

.project-info p{
    color: var(--text-dim);
    line-height: 22px;
    margin: 0 0 16px;
    font-size: 14px;
}

.tech-tags{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-buttons{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.project-buttons a{
    text-decoration: none;
}

.project-buttons button{
    padding: 11px 18px;
    font-size: 13px;
}

.carousel-dots{
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.carousel-dot{
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border-strong);
    cursor: pointer;
    transition: 0.3s;
    border: none;
    padding: 0;
}

.carousel-dot.active{
    width: 24px;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
}

/* ================= EXPERIENCE ================= */

.timeline{
    width: 100%;
    position: relative;
    padding-left: 26px;
    border-left: 2px solid var(--border-strong);
}

.timeline-item{
    position: relative;
    padding-bottom: 10px;
}

.timeline-dot{
    position: absolute;
    left: -33px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    box-shadow: 0 0 12px rgba(79,124,255,0.6);
}

.timeline-content{
    padding: 26px;
    border: 1px solid var(--border);
    background-color: var(--glass);
    border-radius: 16px;
}

.timeline-content h3{
    font-size: 19px;
    margin: 0 0 6px;
}

.timeline-meta{
    color: var(--blue);
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 14px;
}

.timeline-content p{
    color: var(--text-dim);
    line-height: 22px;
}

/* ================= GITHUB STATS ================= */

.github-grid{
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.github-grid img{
    max-width: 480px;
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--border);
}

/* ================= CERTIFICATIONS ================= */

.certificate-info{
    color: var(--text-dim);
    font-size: 13px;
    line-height: 18px;
    margin: 0 0 16px;
}

.certificate-btn{
    padding: 9px 16px;
    font-size: 12px;
}

.cert-placeholder{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 50px;
    width: 100%;
    text-align: center;
    border: 1px dashed var(--border-strong);
    border-radius: 16px;
    color: var(--text-dim);
}

.cert-placeholder i{
    font-size: 34px;
    color: var(--purple);
}

/* ================= CONTACT ================= */

.contact-section{
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: wrap;
}

.contact-section .section-title{
    width: 100%;
    text-align: center;
}

.social-box{
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-top: 10px;
}

.social-box a{
    color: var(--text-dim);
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.social-box a:hover{
    color: var(--text);
}

.social-box i{
    color: var(--blue);
    font-size: 22px;
}

.social-icons{
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.social-icons a i{
    font-size: 26px;
    color: var(--text);
}

.contact-box{
    max-width: 420px;
    width: 100%;
    padding: 30px;
    border: 1px solid var(--border);
    background-color: var(--glass);
    border-radius: 18px;
    backdrop-filter: blur(6px);
}

.contact-box p{
    color: var(--text-dim);
    font-size: 13px;
    margin-top: 20px;
    margin-bottom: 6px;
}

.contact-box p:first-child{
    color: var(--text);
    font-size: 14px;
    line-height: 22px;
    margin-top: 0;
}

.contact-box input{
    padding: 12px 16px;
    background-color: rgba(255,255,255,0.06);
    color: var(--text);
    width: 100%;
    border: 1px solid var(--border);
    outline: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
}

.contact-box input::placeholder{
    color: var(--text-dim);
}

.contact-box button{
    margin-top: 24px;
    width: 100%;
    justify-content: center;
}

.contact-box button[disabled]{
    opacity: 0.6;
    cursor: wait;
}

/* Formspree AJAX feedback */

.form-success,
.form-error{
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 20px;
    margin-bottom: 18px;
}

.form-success:empty,
.form-error:empty{
    display: none;
    margin: 0;
    padding: 0;
}

.form-success{
    color: #4ee1a0;
    background-color: rgba(78,225,160,0.08);
    border: 1px solid rgba(78,225,160,0.3);
}

.form-error{
    color: #ff6b6b;
    background-color: rgba(255,107,107,0.08);
    border: 1px solid rgba(255,107,107,0.3);
}

.field-error{
    display: block;
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 6px;
}

.field-error:empty{
    display: none;
    margin: 0;
}

/* ================= FOOTER ================= */
.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 6%;
    border-top: 1px solid var(--border);
    background-color: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(12px);

    /* Remove these */
    /* position: sticky; */
    /* left: 0; */
    /* bottom: 0; */
    /* z-index: 998; */
}

.footer p {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
    margin: 0;
}
/* ================= SCROLL ANIMATIONS ================= */

.autoBlur{
    animation: autoBlurAnimation linear both;
    animation-timeline: view();
}

@keyframes autoBlurAnimation{
    0%{ filter: blur(30px); opacity: 0; }
    35%, 65%{ filter: blur(0); opacity: 1; }
    100%{ filter: blur(30px); opacity: 0; }
}

.autoDisplay{
    animation: autoDisplayAnimation both;
    animation-timeline: view();
}

@keyframes autoDisplayAnimation{
    from{ filter: blur(10px); transform: translateY(-80px) scale(0.9); opacity: 0; }
    50%{ opacity: 1; filter: blur(0px); transform: translateY(0) scale(1); }
}

.fadein-left{
    animation: fadeInLeftAnimation both;
    animation-timeline: view();
}

@keyframes fadeInLeftAnimation{
    0%{ opacity: 0; transform: translateX(-200px) scale(0.9); filter: blur(6px); }
    35%, 65%{ opacity: 1; transform: translateX(0) scale(1); filter: blur(0px); }
    100%{ filter: blur(6px); }
}

/* ================= SIDEBAR (mobile) ================= */

.menu-icon{
    font-size: 32px;
    cursor: pointer;
    display: none;
    color: var(--text);
}

.sidebar{
    position: fixed;
    right: 0;
    top: 0;
    bottom: 70%;
    width: 0%;
    background-color: rgba(6,6,15,0.97);
    z-index: 999;
    border-left: 1px solid var(--border);
    backdrop-filter: blur(10px);
    opacity: 0;
    border-bottom-left-radius: 100%;
}

.close-icon{
    font-size: 46px;
    color: var(--text);
    padding: 16px 0 0 20px;
    cursor: pointer;
}

.sidebar ul{
    padding-left: 24px;
    margin-top: 20px;
}

.sidebar ul li{
    list-style: none;
    margin-bottom: 26px;
}

.sidebar ul li a{
    text-decoration: none;
    color: var(--text);
    font-size: 26px;
    font-weight: 700;
}

.social-sidebar{
    padding-left: 24px;
    margin-top: 40px;
    display: flex;
    gap: 20px;
}

.social-sidebar a{
    font-size: 30px;
    color: var(--text-dim);
    cursor: pointer;
    transition: 0.3s;
}

.sidebar.open-sidebar{
    animation: openSideBarAnimation 0.6s forwards;
}

@keyframes openSideBarAnimation{
    to{ width: 80%; opacity: 1; bottom: 0; border-radius: 0; }
}

.sidebar.close-sidebar{
    animation: closeSideBarAnimation 0.6s forwards;
}

@keyframes closeSideBarAnimation{
    from{ width: 80%; opacity: 1; bottom: 0; border-radius: 0; }
    to{ width: 0; opacity: 0; bottom: 70%; border-bottom-left-radius: 50%; }
}

/* ================= RESPONSIVE ================= */

@media screen and (max-width: 1000px){
    .hero-info h1{ font-size: 38px; }
    .about-grid{ grid-template-columns: 1fr; }
    .skills-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 780px){
    header ul{ display: none; }
    header .box-icons{ display: none; }
    .menu-icon{ display: inline; }

    .container{ gap: 110px; }

    .hero{ flex-direction: column; padding-top: 110px; text-align: left; min-height: auto; }
    .terminal-card-wrap{ width: min(340px, 80vw); margin: 0 auto; }

    .info-cards{ grid-template-columns: 1fr; }
    .skills-grid{ grid-template-columns: 1fr; }

    .project-card{ flex: 0 0 84vw; }
    .project-info{ text-align: center; }
    .project-buttons{ justify-content: center; }
    .tech-tags{ justify-content: center; }
    .carousel-btn{ display: none; }

    .contact-section{ flex-direction: column; align-items: center; }
    .social-box{ align-items: center; text-align: center; }

    .footer{ flex-direction: column; gap: 14px; text-align: center; }
}

@media screen and (max-width: 480px){
    .hero-info h1{ font-size: 30px; }
    .hero-info-title{ font-size: 12px; }
    .section-title{ font-size: 28px; }
    .left h2{ font-size: 16px; }
}