/* =============================================
   RESET & BASE
   ============================================= */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

html, body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;

    /* Background image with dark overlay */
    /* background-image:
        linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
        url("images/aes.jpg"); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    animation: zoomBg 18s ease-in-out infinite alternate;
}

/* =============================================
   ANIMATIONS
   ============================================= */

@keyframes zoomBg {
    from { background-size: 100%; }
    to   { background-size: 110%; }
}

@keyframes moveParticles {
    from { transform: translateY(0); }
    to   { transform: translateY(-200px); }
}

@keyframes floatCard {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   PARTICLES
   ============================================= */

.particles {
    position: fixed;
    inset: 0;
    background-image: radial-gradient(white 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.07;
    pointer-events: none;
    z-index: 0;
    animation: moveParticles 20s linear infinite;
}

/* =============================================
   HEADER & NAV
   ============================================= */

header {
    position: relative;
    background: transparent;
    padding: 1.2rem 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: #e5e7eb;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

#navbar {
    list-style: none;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
    font-family: Poppins, sans-serif;
    font-size: 0.85rem;
}

nav a {
    text-decoration: none;
    color: #d1d5db;
    padding: 6px 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 0 8px rgba(139, 92, 246, 0.4),
        0 0 20px rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

nav a:active {
    transform: scale(0.95);
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* =============================================
   CONTAINER & SECTIONS
   ============================================= */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    display: none;
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    min-height: 80vh;
    animation: fadeSlideUp 0.4s ease forwards;
}

/* =============================================
   HERO SECTION
   ============================================= */

#hero {
    display: block;
    background: transparent;
    padding: 2rem 2rem 3rem;
    min-height: calc(100vh - 80px);
    border-radius: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.hero-text {
    color: white;
    max-width: 500px;
    flex: 1;
}

.hero-text h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: #f3f4f6;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-text h2 {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #a78bfa;
    border: none;
    padding: 0;
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero-text p {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    color: #9ca3af;
    line-height: 1.8;
}

/* Flip Card */

.flip-card {
    width: clamp(150px, 20vw, 200px);
    height: clamp(150px, 20vw, 200px);
    perspective: 1000px;
    flex-shrink: 0;
}

.flip-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 50%;
    overflow: hidden;
}

.flip-card-front {
    background: transparent;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
    transition: 0.4s ease;
}

.flip-card-back {
    background: rgba(10, 5, 20, 0.85);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.2rem;
    gap: 0.3rem;
}

.flip-card-back h2 {
    font-size: 0.75rem !important;
    color: #f3f4f6;
    border: none;
    padding: 0;
}

.flip-card-back p {
    font-size: 0.7rem;
    color: #9ca3af;
}

.flip-card-back button {
    margin-top: 0.8rem;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    background: rgba(139, 92, 246, 0.2);
    color: #f3f4f6;
    font-size: 0.65rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: 0.3s ease;
    white-space: nowrap;
}

.flip-card-back button:hover {
    background: rgba(139, 92, 246, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

/* =============================================
   ABOUT SECTION
   ============================================= */

#about {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.about-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.about-left {
    flex: 1;
    max-width: 560px;
}

.about-left h1 {
    color: #f3f4f6;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.2rem;
    border: none;
    padding: 0;
}

.about-left p {
    line-height: 1.85;
    color: #9ca3af;
    margin-bottom: 1rem;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.about-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    flex-shrink: 0;
    width: min(380px, 45%);
}

.about-card {
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: #e5e7eb;
    backdrop-filter: blur(5px);
    transition: 0.3s ease;
    font-size: clamp(0.78rem, 1.3vw, 0.9rem);
    line-height: 1.5;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.25);
}

/* =============================================
   SKILLS SECTION
   ============================================= */

#skills {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: white;
}

.skills-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    color: #f3f4f6;
    margin-bottom: 2.5rem;
    border: none;
    padding: 0;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem 1rem;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: 0.4s ease;
    animation: floatCard 4s ease-in-out infinite;
}

.skill-card:hover {
    transform: translateY(-10px) scale(1.04);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.25);
    animation-play-state: paused;
}

.skill-card img {
    width: clamp(55px, 8vw, 75px);
    margin-bottom: 1rem;
    transition: 0.4s ease;
}

.skill-card:hover img {
    transform: rotate(8deg) scale(1.1);
}

.skill-card h2 {
    color: #f3f4f6;
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    font-weight: 500;
    border: none;
    padding: 0;
}

/* =============================================
   PROJECTS SECTION
   ============================================= */

#projects {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.projects-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: #f3f4f6;
    margin-bottom: 2.5rem;
    border: none;
    padding: 0;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.8rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(8px);
    transition: 0.4s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.2);
}

.project-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.project-content {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-content h2 {
    color: #f3f4f6;
    margin-bottom: 0.6rem;
    font-size: clamp(1rem, 2vw, 1.2rem);
    border: none;
    padding: 0;
}

.project-content p {
    font-size: 0.9rem;
    color: #9ca3af;
    line-height: 1.7;
    margin-bottom: 1rem;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.project-tags span {
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    font-size: 0.8rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.project-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 30px;
    background: rgba(139, 92, 246, 0.2);
    color: #f3f4f6;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.2);
    align-self: flex-start;
    white-space: nowrap;
}

.project-btn:hover {
    background: rgba(139, 92, 246, 0.35);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
    transform: translateY(-2px);
}

/* =============================================
   CONTACT SECTION
   ============================================= */

#contact {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    padding: 3rem 2rem;
}

.contact-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: #f3f4f6;
    margin-bottom: 0.8rem;
    border: none;
    padding: 0;
}

.contact-subtitle {
    color: #9ca3af;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    margin-bottom: 3rem;
}

.contact-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.contact-card {
    width: clamp(130px, 15vw, 180px);
    height: clamp(130px, 15vw, 180px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(8px);
    transition: 0.4s ease;
    animation: floatCard 4s ease-in-out infinite;
}

.contact-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(139, 92, 246, 0.25);
    animation-play-state: paused;
}

.contact-card img {
    width: clamp(50px, 7vw, 70px);
    transition: 0.4s ease;
}

.contact-card:hover img {
    transform: rotate(8deg) scale(1.1);
}

.contact-card h2 {
    color: #f3f4f6;
    font-size: clamp(0.85rem, 1.5vw, 1.1rem);
    font-weight: 500;
    border: none;
    padding: 0;
}

/* =============================================
   FOOTER
   ============================================= */

footer {
    background: rgba(0, 0, 0, 0.6);
    color: #9ca3af;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    font-size: 0.85rem;
}

/* =============================================
   RESPONSIVE — LARGE TABLET / SMALL DESKTOP
   max-width: 1024px
   ============================================= */

@media (max-width: 1024px) {
    .hero-content {
        gap: 2rem;
    }

    .about-container {
        gap: 2rem;
    }

    .about-right {
        width: min(320px, 45%);
    }

    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .projects-container {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

/* =============================================
   RESPONSIVE — TABLET
   max-width: 768px
   ============================================= */

@media (max-width: 768px) {

    /* Background: fixed causes glitches on iOS */
    body {
        background-attachment: scroll;
    }

    /* Nav */
    nav {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        padding: 0.8rem 1rem;
    }

    #navbar {
        gap: 0.3rem;
        font-size: 0.82rem;
    }

    /* Hero */
    #hero {
        padding: 2rem 1.5rem 3rem;
        min-height: auto;
        align-items: flex-start;
        padding-top: 1.5rem;
    }

    .hero-content {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .hero-text {
        max-width: 100%;
    }

    /* About */
    .about-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .about-left {
        max-width: 100%;
    }

    .about-right {
        width: 100%;
        grid-template-columns: 1fr 1fr;
    }

    /* Skills */
    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1rem;
    }

    /* Projects */
    .projects-container {
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
    }

    /* Contact */
    .contact-container {
        gap: 1rem;
    }

    /* Sections */
    section {
        padding: 2rem 1.2rem;
        min-height: auto;
    }
}

/* =============================================
   RESPONSIVE — LARGE PHONE
   max-width: 600px
   ============================================= */

@media (max-width: 600px) {

    .projects-container {
        grid-template-columns: 1fr;
    }

    .about-right {
        grid-template-columns: 1fr;
    }

    .contact-card {
        width: 140px;
        height: 140px;
    }
}

/* =============================================
   RESPONSIVE — SMALL PHONE
   max-width: 480px
   ============================================= */

@media (max-width: 480px) {
    nav {
        padding: 0.6rem 1rem;
    }

    #navbar {
        font-size: 0.75rem;
        gap: 0.2rem;
    }

    nav a {
        padding: 5px 8px;
    }

    .logo {
        font-size: 1.2rem;
    }

    section {
        padding: 1.5rem 1rem;
        border-radius: 14px;
    }

    /* Hero */
    #hero {
        padding: 1rem 1rem 2rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text h2 {
        font-size: 1rem;
    }

    .flip-card {
        width: 130px;
        height: 130px;
    }

    /* About */
    .about-left h1 {
        font-size: 2rem;
    }

    .about-right {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .about-card {
        font-size: 0.85rem;
        padding: 1rem;
    }

    /* Skills */
    .skills-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .skills-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .skill-card {
        padding: 1.2rem 0.5rem;
    }

    .skill-card img {
        width: 45px;
    }

    .skill-card h2 {
        font-size: 0.75rem;
    }

    /* Projects */
    .projects-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .projects-container {
        grid-template-columns: 1fr;
    }

    .project-img {
        height: 150px;
    }

    /* Contact */
    .contact-title {
        font-size: 2.2rem;
    }

    .contact-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .contact-container {
        gap: 0.8rem;
    }

    .contact-card {
        width: 120px;
        height: 120px;
        border-radius: 18px;
    }

    .contact-card img {
        width: 44px;
    }

    .contact-card h2 {
        font-size: 0.78rem;
    }
}

/* =============================================
   RESPONSIVE — VERY SMALL PHONE
   max-width: 360px
   ============================================= */

@media (max-width: 360px) {
    .logo {
        font-size: 1rem;
    }

    #navbar {
        font-size: 0.7rem;
    }

    nav a {
        padding: 4px 6px;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .flip-card {
        width: 110px;
        height: 110px;
    }

    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-card {
        width: 105px;
        height: 105px;
    }

    .contact-card img {
        width: 38px;
    }
}

/* =============================================
   RESPONSIVE — LARGE DESKTOP
   min-width: 1400px
   ============================================= */

@media (min-width: 1400px) {
    .container {
        max-width: 1300px;
    }

    .hero-content {
        max-width: 1100px;
    }

    .skills-container {
        grid-template-columns: repeat(5, 1fr);
    }

    .projects-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.bg{

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background-image:
    linear-gradient(
    rgba(0,0,0,0.45),
    rgba(0,0,0,0.45)
    ),
    url("images/aes.jpg");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    z-index: -1;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    width: fit-content;
}
.badge-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(1.4); }
}
.typewriter-wrap {
    border: none;
    padding: 0;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #a78bfa;
    font-weight: 400;
    margin-bottom: 1rem;
    min-height: 2rem;
}
.cursor {
    animation: blink 0.8s infinite;
    color: #a78bfa;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}
.tech-strip {
    display: flex;
    gap: 14px;
    margin-top: 1rem;
    align-items: center;
    flex-wrap: wrap;
}
.tech-strip img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    opacity: 0.65;
    transition: 0.3s ease;
    filter: grayscale(30%);
}
.tech-strip img:hover {
    opacity: 1;
    transform: translateY(-3px);
    filter: grayscale(0%);
}
.stats-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 1.4rem;
    flex-wrap: wrap;
}
.stat {
    color: #9ca3af;
    font-size: 0.85rem;
}
.stat span {
    color: #f3f4f6;
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 3px;
}
.stat-divider {
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,0.15);
}
.cta-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.8rem;
    flex-wrap: wrap;
}
.cta-primary {
    padding: 11px 26px;
    border-radius: 30px;
    background: rgba(139, 92, 246, 0.8);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.5);
}
.cta-primary:hover {
    background: rgba(139, 92, 246, 1);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}
.cta-secondary {
    padding: 11px 26px;
    border-radius: 30px;
    background: transparent;
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.2);
    transition: 0.3s ease;
}
.cta-secondary:hover {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
    transform: translateY(-2px);
}
.hero-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.4rem;
    align-items: center;
}
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}
.social-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.social-icon:hover {
    background: rgba(139,92,246,0.2);
    border-color: rgba(139,92,246,0.4);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(139,92,246,0.3);
}
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0.5;
    transition: 0.3s;
}
.scroll-indicator:hover { opacity: 1; }
.scroll-arrow {
    width: 22px;
    height: 22px;
    border-right: 2px solid #f3f4f6;
    border-bottom: 2px solid #f3f4f6;
    transform: rotate(45deg);
    animation: bounce-arrow 1.5s infinite;
}
@keyframes bounce-arrow {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50%       { transform: rotate(45deg) translateY(6px); }
}
.cv-btn {
    display: inline-block;
    margin: 1.2rem 0 1.8rem;
    padding: 10px 24px;
    border-radius: 30px;
    border: 1px solid rgba(139,92,246,0.4);
    background: rgba(139,92,246,0.15);
    color: #c4b5fd;
    text-decoration: none;
    font-size: 0.88rem;
    transition: 0.3s ease;
}
.cv-btn:hover {
    background: rgba(139,92,246,0.3);
    transform: translateY(-2px);
    box-shadow: 0 0 16px rgba(139,92,246,0.3);
}
.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    border-left: 2px solid rgba(139,92,246,0.3);
    padding-left: 1.4rem;
    margin-top: 0.5rem;
}
.tl-item {
    position: relative;
}
.tl-dot {
    position: absolute;
    left: -1.85rem;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #a78bfa;
    box-shadow: 0 0 8px rgba(139,92,246,0.6);
}
.tl-year {
    font-size: 0.72rem;
    color: #a78bfa;
    letter-spacing: 0.5px;
}
.tl-content h4 {
    color: #f3f4f6;
    font-size: 0.92rem;
    margin: 2px 0;
}
.tl-content p {
    color: #6b7280;
    font-size: 0.82rem;
    margin: 0;
}
.skill-bar {
    width: 80%;
    height: 5px;
    background: rgba(77, 255, 0, 0.839);
    border-radius: 10px;
    margin: 10px auto 4px;
    overflow: hidden;
}
.skill-fill {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    transition: width 1.2s ease;
}
.skill-card.animated .skill-fill {
    width: var(--pct);
}
.skill-pct {
    font-size: 0.72rem;
    color: #6b7280;
}
.project-card.featured {
    border-color: rgba(139,92,246,0.35);
    box-shadow: 0 0 20px rgba(139,92,246,0.12);
}
.project-card.featured::before {
    content: "★ Featured";
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(139,92,246,0.25);
    color: #c4b5fd;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(139,92,246,0.3);
}
.project-card {
    position: relative; /* needed for ::before */
}
.project-status {
    display: inline-block;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
    font-weight: 500;
}
.project-status.live {
    color: #4ade80;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.25);
}
.project-status.github {
    color: #9ca3af;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}
.contact-form-wrap {
    margin-top: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.contact-form-wrap h3 {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.3px;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #f3f4f6;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: 0.3s ease;
    resize: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #4b5563;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(139,92,246,0.5);
    box-shadow: 0 0 12px rgba(139,92,246,0.15);
    background: rgba(255,255,255,0.07);
}
.form-btn {
    padding: 12px 28px;
    border-radius: 30px;
    background: rgba(139,92,246,0.75);
    color: #fff;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start;
    transition: 0.3s ease;
}
.form-btn:hover {
    background: rgba(139,92,246,1);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(139,92,246,0.4);
}
.form-note {
    font-size: 0.85rem;
    margin-top: -0.4rem;
}
@media (max-width: 480px) {
    .form-row { grid-template-columns: 1fr; }
}