@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html{
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body{
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    color: #f9fafb;
    background:
        radial-gradient(circle at top, #1f2933 0%, #020617 55%, #000 100%);
    background-attachment: fixed;
    animation: bgMove 18s ease-in-out infinite alternate;
}

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

header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.8rem 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(20px);
    background: linear-gradient(90deg, rgba(10,10,15,0.92), rgba(10,10,15,0.4));
    border-bottom: 1px solid rgba(248, 250, 252, 0.06);
}

.logo{
    font-size: 2.6rem;
    color: #f9fafb;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover{
    transform: scale(1.05) translateY(-2px);
    text-shadow: 0 0 18px rgba(248, 113, 113, 0.8);
}

.navbar a{
    font-size: 1.6rem;
    color: #e5e7eb;
    margin-left: 3.2rem;
    font-weight: 400;
    transition: 0.3s ease;
    border-bottom: 2px solid transparent;
}

.navbar a:hover,
.navbar a.active{
    color: #fb7185;
    border-bottom: 2px solid #fb7185;
}

/* Mobile menu icon */
#menu-icon{
    font-size: 2.6rem;
    color: #e5e7eb;
    display: none;
    cursor: pointer;
}

/* ====== SECTIONS ====== */

section{
    min-height: 100vh;
    padding: 9rem 9% 5rem;
}

/* ====== HOME ====== */

.home{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 7rem;
}

.home-content h1{
    font-size: 4.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

span{
    color: #fb7185; /* main accent */
}

.home-content .top-badge{
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1.4rem;
    font-size: 1.2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(244,63,94,0.2));
    border: 1px solid rgba(248, 250, 252, 0.15);
    margin-bottom: 1.2rem;
    color: #e5e7eb;
}

.home-content .top-badge i{
    font-size: 1.4rem;
}

.typing-text{
    font-size: 2.6rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    min-width: 260px;
}

.typing-text span{
    position: relative;
}

.typing-text span::before{
    content: "YouTube Vlogger";
    color: #fb7185;
    animation: words 18s infinite;
}

.typing-text span::after{
    content: "";
    background-color: transparent;
    position: absolute;
    width: calc(100% + 10px);
    height: 100%;
    border-left: 2px solid #fb7185;
    right: -10px;
    animation: cursor 0.7s infinite;
}

.home-description{
    font-size: 1.5rem;
    color: #d1d5db;
    max-width: 560px;
    margin-bottom: 1.6rem;
}

/* Tags */
.highlight-tags{
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.highlight-tags span{
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.2rem;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    background: rgba(15,23,42,0.8);
    border: 1px solid rgba(148,163,184,0.35);
    color: #e5e7eb;
}

.highlight-tags i{
    font-size: 1.3rem;
}

/* Stats row */
.stats-row{
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    margin-bottom: 2.5rem;
}

.stat-card{
    flex: 1;
    min-width: 140px;
    padding: 1.3rem 1.4rem;
    border-radius: 1.2rem;
    background: radial-gradient(circle at top left, rgba(248,113,113,0.18), rgba(15,23,42,0.95));
    border: 1px solid rgba(148,163,184,0.35);
    box-shadow: 0 12px 35px rgba(15,23,42,0.9);
    backdrop-filter: blur(10px);
}

.stat-card h4{
    font-size: 2rem;
    margin-bottom: 0.3rem;
    color: #f9fafb;
}

.stat-card p{
    font-size: 1.2rem;
    color: #d1d5db;
}

/* Buttons */
.home-actions{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2.4rem;
}

.btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 1rem 2.6rem;
    border-radius: 999px;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn.primary{
    background: linear-gradient(135deg, #fb7185, #f97316);
    color: #020617;
    border: 1px solid rgba(248,250,252,0.4);
    box-shadow: 0 0 18px rgba(248,113,113,0.7);
}

.btn.primary:hover{
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 26px rgba(248,113,113,0.9);
}

.btn.ghost{
    background: rgba(15,23,42,0.8);
    color: #e5e7eb;
    border: 1px solid rgba(148,163,184,0.6);
}

.btn.ghost:hover{
    transform: translateY(-2px);
    border-color: #fb7185;
    color: #fb7185;
}

/* Social Icons */
.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3.6rem;
    height: 3.6rem;
    background-color: transparent;
    border: 0.18rem solid rgba(248,113,113,0.8);
    font-size: 1.8rem;
    border-radius: 50%;
    margin: 1.8rem 1rem 0 0;
    transition: 0.3s ease;
    color: #fb7185;
}

.social-icons a:hover{
    color: #020617;
    transform: scale(1.25) translateY(-4px);
    background: linear-gradient(135deg, #fb7185, #f97316);
    box-shadow: 0 0 22px rgba(248,113,113,0.9);
}

/* ====== HOME IMAGE ====== */

.home-img{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.6rem;
}

.img-border{
    position: relative;
    width: 34vw;
    max-width: 420px;
    aspect-ratio: 3 / 2; /* good for 1500x1000 */
    border-radius: 2rem;
    padding: 0.5rem;
    background: linear-gradient(145deg, #fb7185, #0ea5e9);
    box-shadow: 0 18px 45px rgba(15,23,42,0.95);
    animation: float 6s ease-in-out infinite;
}

.img-border img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.6rem;
    display: block;
}

/* Floating badges on image */
.floating-badge{
    position: absolute;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(15,23,42,0.92);
    color: #e5e7eb;
    border: 1px solid rgba(148,163,184,0.6);
    backdrop-filter: blur(8px);
    animation: floatSoft 5s ease-in-out infinite alternate;
}

.floating-badge i{
    font-size: 1.3rem;
    color: #fb7185;
}

.badge-top-left{
    top: 1.2rem;
    left: 1.2rem;
}

.badge-bottom-right{
    bottom: 1.2rem;
    right: 1.2rem;
}

/* Scroll-down indicator */
.scroll-down{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.2rem;
    color: #9ca3af;
    opacity: 0.9;
    animation: bounce 1.8s infinite;
}

.scroll-down i{
    font-size: 1.6rem;
}

/* ====== SECTIONS BASE STYLES ====== */

.section{
    padding-top: 8rem;
}

.section-title{
    font-size: 3rem;
    text-align: center;
    margin-bottom: 0.8rem;
}

.section-subtitle{
    font-size: 1.4rem;
    text-align: center;
    color: #9ca3af;
    max-width: 520px;
    margin: 0 auto 3rem;
}

/* ====== SERVICES ====== */

.services-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.2rem;
}

.service-card{
    padding: 2rem 2.3rem;
    border-radius: 1.8rem;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,184,0.4);
    box-shadow: 0 18px 45px rgba(15,23,42,0.95);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.service-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 24px 55px rgba(15,23,42,1);
    border-color: #fb7185;
}

.service-icon{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 1.4rem;
    background: radial-gradient(circle, rgba(248,113,113,0.3), rgba(15,23,42,1));
    margin-bottom: 1.2rem;
    font-size: 2rem;
    color: #fb7185;
}

.service-card h3{
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.service-card p{
    font-size: 1.4rem;
    color: #d1d5db;
}

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

.skills-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.4rem;
}

.skills-group{
    padding: 2rem 2.3rem;
    border-radius: 1.8rem;
    background: rgba(15,23,42,0.92);
    border: 1px solid rgba(148,163,184,0.4);
}

.skills-group h3{
    font-size: 1.9rem;
    margin-bottom: 1.5rem;
}

.skill-bar{
    margin-bottom: 1.2rem;
}

.skill-bar span{
    display: block;
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
    color: #e5e7eb;
}

.progress{
    width: 100%;
    height: 0.7rem;
    border-radius: 999px;
    background: rgba(31,41,55,0.9);
    overflow: hidden;
}

.progress div{
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0ea5e9, #fb7185);
    box-shadow: 0 0 18px rgba(56,189,248,0.7);
    animation: growBar 2.2s ease-out;
}

/* ====== TIMELINE (EDUCATION) ====== */

.timeline{
    max-width: 680px;
    margin: 2rem auto 0;
    position: relative;
}

.timeline::before{
    content: "";
    position: absolute;
    left: 1.2rem;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #0ea5e9, #fb7185);
    opacity: 0.6;
}

.timeline-item{
    display: flex;
    align-items: flex-start;
    gap: 1.4rem;
    margin-bottom: 2.4rem;
}

.timeline-item .dot{
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 999px;
    background: #0ea5e9;
    box-shadow: 0 0 18px rgba(56,189,248,0.8);
    margin-top: 0.4rem;
}

.timeline-item .content{
    padding: 1.4rem 1.6rem;
    border-radius: 1.4rem;
    background: rgba(15,23,42,0.96);
    border: 1px solid rgba(148,163,184,0.5);
}

.timeline-item h3{
    font-size: 1.7rem;
    margin-bottom: 0.6rem;
}

.timeline-item p{
    font-size: 1.4rem;
    color: #d1d5db;
}

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

.experience-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.4rem;
    margin-top: 2rem;
}

.experience-card{
    padding: 2rem 2.3rem;
    border-radius: 1.8rem;
    background: rgba(15,23,42,0.94);
    border: 1px solid rgba(148,163,184,0.4);
    box-shadow: 0 18px 45px rgba(15,23,42,0.95);
    transition: 0.3s ease;
}

.experience-card:hover{
    transform: translateY(-6px);
    border-color: #0ea5e9;
}

.experience-card h3{
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.experience-card p{
    font-size: 1.4rem;
    color: #d1d5db;
}

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

.contact-grid{
    display: grid;
    grid-template-columns: minmax(0, 260px) minmax(0, 1.2fr);
    gap: 2.8rem;
    margin-top: 2.4rem;
}

.contact-info p{
    font-size: 1.4rem;
    color: #e5e7eb;
    margin-bottom: 1rem;
}

.contact-info i{
    margin-right: 0.7rem;
    color: #0ea5e9;
}

.contact-form{
    padding: 2rem 2.3rem;
    border-radius: 1.8rem;
    background: rgba(15,23,42,0.96);
    border: 1px solid rgba(148,163,184,0.45);
}

.form-row{
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.contact-form input,
.contact-form textarea{
    width: 100%;
    padding: 1rem 1.4rem;
    border-radius: 1.2rem;
    background: #020617;
    border: 1px solid rgba(51,65,85,0.9);
    color: #e5e7eb;
    font-size: 1.3rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder{
    color: #6b7280;
}

.contact-form textarea{
    resize: vertical;
    min-height: 100px;
    margin-bottom: 1.3rem;
}

/* ====== FOOTER ====== */

footer{
    padding: 1.6rem 9% 2.4rem;
    text-align: center;
    font-size: 1.3rem;
    color: #9ca3af;
    border-top: 1px solid rgba(31,41,55,0.9);
    background: rgba(3,7,18,0.98);
}

/* ====== ANIMATIONS ====== */

@keyframes cursor{
    0%{ border-color: #fb7185; }
    50%{ border-color: transparent; }
    100%{ border-color: #fb7185; }
}

@keyframes words{
    0%, 20%{
        content: "YouTube Vlogger";
    }
    21%, 40%{
        content: "Instagram Video Editor";
    }
    41%, 60%{
        content: "AI & ML Student";
    }
    61%, 80%{
        content: "Tech Storyteller";
    }
    81%, 100%{
        content: "Content Creator";
    }
}

@keyframes float{
    0%, 100%{
        transform: translateY(0px) translateX(0px);
    }
    50%{
        transform: translateY(-10px) translateX(4px);
    }
}

@keyframes floatSoft{
    0%{
        transform: translateY(0px);
    }
    100%{
        transform: translateY(-6px);
    }
}

@keyframes bounce{
    0%, 100%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(6px);
    }
}

@keyframes growBar{
    from{
        width: 0;
    }
}

@keyframes bgMove{
    0%{
        background-position: 0% 0%;
    }
    100%{
        background-position: 100% 100%;
    }
}

/* Reveal animation */
.reveal{
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.show{
    opacity: 1;
    transform: translateY(0) scale(1);
}

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

@media (max-width: 1000px){
    .home{
        gap: 4rem;
    }

    .img-border{
        width: 40vw;
    }
}

@media (max-width: 900px){
    header{
        padding: 1.4rem 6%;
    }

    section{
        padding: 9rem 6% 5rem;
    }

    .home{
        flex-direction: column-reverse;
        text-align: left;
    }

    .img-border{
        width: 70vw;
        max-width: 380px;
    }

    .stats-row{
        justify-content: flex-start;
    }

    .contact-grid{
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px){
    #menu-icon{
        display: block;
    }

    .navbar{
        position: absolute;
        top: 100%;
        right: 6%;
        width: 58%;
        border-radius: 1.6rem;
        padding: 1.6rem 1.4rem;
        background: rgba(15,23,42,0.98);
        border: 1px solid rgba(148,163,184,0.6);
        display: none;
        flex-direction: column;
    }

    .navbar.active{
        display: flex;
        animation: dropdown 0.25s ease-out;
    }

    .navbar a{
        display: block;
        margin: 0.8rem 0;
        font-size: 1.5rem;
        border: none;
    }

    .navbar a.active,
    .navbar a:hover{
        border: none;
        color: #fb7185;
    }

    .home-content h1{
        font-size: 3.8rem;
    }
}

@keyframes dropdown{
    from{
        transform: translateY(-10px);
        opacity: 0;
    }
    to{
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 520px){
    .home-content h1{
        font-size: 3.2rem;
    }

    .typing-text{
        font-size: 2.2rem;
    }

    .form-row{
        flex-direction: column;
    }

    .stats-row{
        flex-direction: column;
    }
}
