:root{
    --bg:#0c1026;
    --bg2:#1b1037;
    --card:#12172d;
    --line:#6d3cff;
    --text:#ffffff;
    --muted:#c4c8d7;
    --pink:#ff00ff;
    --purple:#7b2cff;
    --purple-2:#a855f7;
    --chip:#171b31;
}

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:linear-gradient(180deg,#0c1026 0%, #14172f 35%, #1a1133 75%, #23103f 100%);
    color:var(--text);
    overflow-x:hidden;
}

a{
    text-decoration:none !important;
}

img{
    max-width:100%;
    display:block;
}

.small-container{
    max-width:920px;
}

.section-space{
    padding:88px 0;
}

/* Preloader */
.preloader{
    position:fixed;
    inset:0;
    background:#0c1026;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
    transition:.35s;
}

.preloader.loaded{
    opacity:0;
    visibility:hidden;
}

.loader{
    width:52px;
    height:52px;
    border-radius:50%;
    border:4px solid rgba(255,255,255,.12);
    border-top-color:var(--pink);
    animation:spin .9s linear infinite;
}

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

/* Navbar */
.custom-navbar{
    padding:14px 0;
    background:rgba(11,16,38,.86);
    backdrop-filter:blur(12px);
    border-bottom:1px solid rgba(255,255,255,.08);
}

.brand-mark{
    font-size:1rem;
    font-weight:700;
    color:#fff !important;
    background:#0f1630;
    padding:7px 14px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.1);
    outline:none;
    box-shadow:none;
}

.brand-mark:focus,
.brand-mark:active,
.brand-mark:hover{
    outline:none !important;
    box-shadow:none !important;
    color:#fff !important;
}

.navbar-dark .navbar-nav .nav-link{
    color:#f3f4f6;
    font-size:.78rem;
    font-weight:500;
    margin-left:12px;
    opacity:.82;
    transition:.25s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active{
    opacity:1;
    color:#fff;
}

.resume-pill{
    margin-left:18px;
    padding:8px 16px;
    border:1px solid #6d3cff;
    border-radius:999px;
    color:#fff;
    font-size:.75rem;
    font-weight:600;
    white-space:nowrap;
    transition:.25s ease;
}

.resume-pill:hover{
    background:rgba(109,60,255,.12);
    color:#fff;
}

/* Hero */
.hero-section{
    position:relative;
    padding-top:88px;
    overflow:hidden;
}

.grid-line{
    position:absolute;
    border-top:1px solid rgba(109,60,255,.22);
    transform:rotate(-37deg);
    transform-origin:left top;
    pointer-events:none;
}

.grid-line-1{
    width:460px;
    top:120px;
    right:60px;
}

.grid-line-2{
    width:320px;
    top:220px;
    right:30px;
}

.grid-line-3{
    width:220px;
    top:340px;
    right:120px;
}

.hero-copy{
    max-width:560px;
}

.hero-kicker{
    font-size:1rem;
    font-weight:600;
    color:#fff;
    margin-bottom:6px;
}

.hero-copy h1{
    font-size:3rem;
    font-weight:800;
    line-height:1.08;
    margin-bottom:10px;
}

.hero-role-line{
    font-size:1.15rem;
    font-weight:500;
    margin-bottom:16px;
    color:#d5d8e4;
    line-height:1.6;
    min-height:40px;
}

.typed-role-wrap{
    display:inline-block;
    margin-left:6px;
}

.typed-role{
    color:#7b7cff;
    font-weight:700;
}

.typed-cursor{
    display:inline-block;
    color:#7b7cff;
    font-weight:700;
    animation:blink .8s infinite;
}

@keyframes blink{
    0%,49%{opacity:1;}
    50%,100%{opacity:0;}
}

.hero-desc{
    font-size:.95rem;
    line-height:1.8;
    color:var(--muted);
    margin-bottom:26px;
    max-width:520px;
}

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

.primary-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:12px 24px;
    border-radius:10px;
    background:linear-gradient(90deg,#7b2cff,#ff00ff);
    color:#fff;
    font-weight:600;
    font-size:.9rem;
    box-shadow:0 16px 34px rgba(123,44,255,.26);
    transition:.25s ease;
    border:none;
}

.primary-btn:hover{
    transform:translateY(-2px);
    color:#fff;
}

.hero-image-shell{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:390px;
}

.hero-circle{
    width:320px;
    height:320px;
    border-radius:50%;
    background:linear-gradient(135deg,#6d3cff,#ff00ff);
    padding:6px;
    box-shadow:0 20px 60px rgba(0,0,0,.28);
}

.hero-circle img,
.hero-image-shell img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:50%;
}

.hero-image-shell img{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width:300px;
    height:300px;
    border-radius:50%;
    border:6px solid rgba(123,44,255,.85);
    background:#10152c;
}

.small-circle{
    position:absolute;
    width:20px;
    height:20px;
    background:#ff7ee6;
    right:24px;
    bottom:76px;
    border:2px solid #fff;
    padding:0;
}

/* Section heading */
.section-head{
    margin-bottom:32px;
}

.section-head h3{
    font-size:2rem;
    font-weight:800;
    margin-bottom:8px;
}

.section-head p{
    font-size:.92rem;
    color:var(--muted);
    max-width:620px;
    margin:0 auto;
    line-height:1.8;
}

/* Skills */
.skills-style-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:28px;
}

.skill-card{
    background:rgba(18,23,45,.96);
    border:1.5px solid rgba(123,44,255,.95);
    border-radius:20px;
    box-shadow:0 16px 34px rgba(3,7,18,.24);
    min-height:250px;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    padding:28px 26px 30px;
}

.skill-title{
    display:flex;
    justify-content:center;
    align-items:center;
    margin-bottom:22px;
}

.skill-title h4{
    font-size:1.1rem;
    font-weight:700;
    margin:0;
    color:#f3f4f6;
    text-align:center;
}

.chip-grid{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    justify-content:center;
}

.tech-chip{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:10px 16px;
    min-height:44px;
    border-radius:12px;
    border:1px solid rgba(255,255,255,.35);
    background:rgba(255,255,255,.02);
    color:#d8dbea;
    font-size:.92rem;
    font-weight:500;
    line-height:1;
    white-space:nowrap;
}

.tech-chip i{
    font-size:1.25rem;
    line-height:1;
    flex:0 0 auto;
}

.tech-chip img{
    width:20px;
    height:20px;
    object-fit:contain;
    flex:0 0 20px;
}

/* Experience */
.timeline-list{
    position:relative;
    display:grid;
    gap:16px;
    padding-left:28px;
}

.timeline-list:before{
    content:"";
    position:absolute;
    left:10px;
    top:8px;
    bottom:8px;
    width:2px;
    background:linear-gradient(180deg,#7b2cff,#ff00ff);
    opacity:.9;
}

.timeline-card{
    position:relative;
    display:flex;
    gap:14px;
    align-items:flex-start;
    background:rgba(18,23,45,.95);
    border:1.2px solid rgba(109,60,255,.8);
    border-radius:16px;
    padding:16px;
    box-shadow:0 18px 36px rgba(3,7,18,.22);
}

.timeline-card:before{
    content:"";
    position:absolute;
    left:-27px;
    top:24px;
    width:10px;
    height:10px;
    border-radius:50%;
    background:#0c1026;
    border:2px solid #d946ef;
    box-shadow:0 0 0 4px rgba(217,70,239,.08);
}

.timeline-icon{
    width:52px;
    height:52px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 52px;
    background:#ffffff;
    border:1px solid rgba(255,255,255,.08);
    box-shadow:none;
    overflow:hidden;
    padding:6px;
}

.timeline-icon img{
    width:100%;
    height:100%;
    object-fit:contain;
    border-radius:8px;
}

.timeline-content h4{
    font-size:1rem;
    font-weight:700;
    margin-bottom:4px;
}

.timeline-content h5{
    font-size:.88rem;
    color:#b08cff;
    margin-bottom:8px;
    font-weight:600;
}

.timeline-content p{
    font-size:.84rem;
    color:var(--muted);
    line-height:1.7;
    margin-bottom:6px;
}

.timeline-content span{
    font-size:.78rem;
    color:#9ca3af;
}

/* Projects */
.projects-section{
    position:relative;
    background:linear-gradient(180deg,#17122d 0%, #111528 55%, #17122d 100%);
}

.project-filter{
    display:flex;
    justify-content:center;
    gap:12px;
    margin-bottom:28px;
    flex-wrap:wrap;
}

.filter-btn{
    background:none;
    border:none;
    color:#c6cad9;
    font-size:.86rem;
    font-weight:600;
    padding:0 4px 6px;
    cursor:pointer;
    border-bottom:2px solid transparent;
    transition:.2s ease;
}

.filter-btn.active{
    color:#fff;
    border-color:#7b2cff;
}

.project-card{
    background:rgba(18,23,45,.98);
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 16px 34px rgba(3,7,18,.22);
    height:100%;
}

.project-thumb{
    height:220px;
    background:#0b1120;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}

.project-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:top center;
}

.project-thumb img[alt="Plant Disease Detection"],
.project-thumb img[alt="Lane Detection"]{
    object-position:center center;
}

.project-body{
    padding:14px 14px 16px;
}

.project-body .chip-grid{
    justify-content:flex-start;
    margin-bottom:12px;
    gap:8px;
}

.project-body .tech-chip{
    padding:7px 11px;
    min-height:auto;
    font-size:.76rem;
    border-radius:999px;
}

.project-body span{
    font-size:.76rem;
    color:#b579ff;
    font-weight:600;
}

.project-body h4{
    font-size:.98rem;
    font-weight:700;
    margin:6px 0 8px;
}

.project-body p{
    font-size:.8rem;
    color:var(--muted);
    line-height:1.65;
    margin:0;
}

.project-links{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:14px;
}

.project-links a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 14px;
    border-radius:8px;
    background:#10152c;
    border:1px solid rgba(255,255,255,.08);
    color:#fff;
    font-size:.78rem;
    font-weight:600;
    transition:.2s ease;
}

.project-links a:hover{
    color:#fff;
    border-color:#7b2cff;
}

/* Education */
.education-timeline{
    position:relative;
    display:grid;
    gap:16px;
}

.education-timeline::before{
    content:"";
    position:absolute;
    left:25px;
    top:0;
    bottom:0;
    width:2px;
    background:linear-gradient(180deg,#7b2cff,#ff00ff);
}

.education-card{
    position:relative;
    display:flex;
    gap:14px;
    background:rgba(18,23,45,.95);
    border:1.2px solid rgba(109,60,255,.8);
    border-radius:16px;
    padding:16px 16px 16px 14px;
    box-shadow:0 18px 36px rgba(3,7,18,.22);
}

.education-icon{
    width:54px;
    height:54px;
    border-radius:12px;
    background:#ffffff;
    border:1px solid rgba(255,255,255,.08);
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 54px;
    position:relative;
    z-index:2;
    color:#111827;
    box-shadow:none;
    overflow:hidden;
    padding:6px;
}

.education-icon img{
    width:100%;
    height:100%;
    object-fit:contain;
    border-radius:8px;
}

.education-body h4{
    font-size:1rem;
    font-weight:700;
    margin-bottom:4px;
}

.education-body h5{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    font-size:.88rem;
    color:#b08cff;
    margin-bottom:8px;
    font-weight:600;
}

.education-body p{
    font-size:.84rem;
    color:var(--muted);
    line-height:1.7;
    margin-bottom:6px;
}

.education-body span{
    font-size:.78rem;
    color:#9ca3af;
}

.subsection-title{
    margin:30px 0 4px 68px;
}

.subsection-title h4{
    font-size:1.15rem;
    font-weight:700;
    margin-bottom:6px;
}

.subsection-title p{
    font-size:.83rem;
    color:var(--muted);
    line-height:1.7;
    margin:0;
    max-width:560px;
}

/* Certifications */
.certifications-title{
    margin:40px 0 24px;
}

.certifications-title h4{
    font-size:2rem;
    font-weight:800;
    margin-bottom:10px;
}

.certifications-title p{
    max-width:1040px;
    margin:0 auto;
    color:var(--muted);
    line-height:1.8;
    font-size:.95rem;
}

.certification-layout{
    align-items:flex-start;
    padding:22px 18px;
}

.certification-logo{
    width:56px;
    height:56px;
    flex:0 0 56px;
    padding:8px;
    border-radius:10px;
    background:#ffffff;
    overflow:hidden;
}

.certification-logo img{
    width:100%;
    height:100%;
    object-fit:contain;
    border-radius:6px;
}

.certification-body h4{
    font-size:1.05rem;
    font-weight:700;
    margin-bottom:6px;
    color:#fff;
}

.cert-date{
    display:block;
    font-size:.82rem;
    color:#8e97b8;
    margin-bottom:12px;
}

.certification-body p{
    font-size:.93rem;
    line-height:1.7;
    color:var(--muted);
    margin-bottom:12px;
}

.cert-link{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:#dbe1ff;
    font-weight:600;
    font-size:.92rem;
}

.cert-link:hover{
    color:#fff;
}

/* Contact */
.contact-form-card{
    max-width:460px;
    margin:0 auto;
    background:rgba(18,23,45,.96);
    border:1.2px solid rgba(109,60,255,.88);
    border-radius:18px;
    padding:22px;
    box-shadow:0 18px 36px rgba(3,7,18,.22);
}

.contact-form-card h4{
    font-size:1.12rem;
    font-weight:700;
    margin-bottom:18px;
}

.contact-form-card .form-control{
    background:#10152c;
    border:1px solid rgba(255,255,255,.12);
    border-radius:10px;
    color:#fff;
    height:48px;
    margin-bottom:12px;
    box-shadow:none !important;
}

.contact-form-card textarea.form-control{
    height:auto;
    padding-top:14px;
}

.contact-form-card .form-control::placeholder{
    color:#9ca3af;
}

.contact-form-card .form-control:focus{
    border-color:#7b2cff;
    background:#10152c;
    color:#fff;
}

.wide-btn{
    width:100%;
    border:none;
    height:46px;
}

/* Footer */
.footer-area{
    padding:34px 0 50px;
    text-align:center;
}

.footer-brand{
    display:inline-block;
    color:#b579ff;
    font-weight:700;
    margin-bottom:16px;
}

.footer-links{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:16px;
    list-style:none;
    margin-bottom:18px;
    padding-left:0;
}

.footer-links a,
.social-row a{
    color:#d1d5db;
    font-size:.84rem;
}

.social-row{
    display:flex;
    justify-content:center;
    gap:16px;
    margin-bottom:12px;
}

.social-row a{
    font-size:1rem;
}

.footer-copy{
    font-size:.78rem;
    color:#9ca3af;
    margin:0 auto;
    max-width:620px;
}

/* Responsive */
@media (max-width:991.98px){
    .navbar-dark .navbar-nav .nav-link{
        margin-left:0;
        padding:.6rem 0 !important;
    }

    .navbar-collapse{
        padding-top:10px;
    }

    .resume-pill{
        display:none;
    }

    .hero-copy h1{
        font-size:2.5rem;
    }

    .hero-image-shell{
        min-height:300px;
        margin-bottom:28px;
    }

    .hero-circle{
        width:250px;
        height:250px;
    }

    .hero-image-shell img{
        width:235px;
        height:235px;
    }

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

    .small-container{
        max-width:760px;
    }
}

@media (max-width:767.98px){
    .section-space{
        padding:72px 0;
    }

    .custom-navbar{
        padding:10px 0;
    }

    .hero-section{
        padding-top:74px;
    }

    .hero-copy{
        text-align:center;
        margin:0 auto;
    }

    .hero-copy h1{
        font-size:2.15rem;
    }

    .hero-role-line{
        font-size:1rem;
        line-height:1.6;
        min-height:auto;
    }

    .typed-role-wrap{
        display:block;
        margin-left:0;
        margin-top:4px;
    }

    .section-head h3{
        font-size:1.7rem;
    }

    .grid-line-1,
    .grid-line-2,
    .grid-line-3{
        display:none;
    }

    .hero-actions{
        justify-content:center;
    }

    .subsection-title{
        margin-left:0;
    }

    .education-timeline::before,
    .timeline-list:before,
    .timeline-card:before{
        display:none;
    }

    .timeline-list{
        padding-left:0;
    }

    .education-card,
    .timeline-card{
        padding:14px;
    }

    .skill-card{
        padding:22px 18px 24px;
        min-height:auto;
    }

    .skill-title h4{
        font-size:1rem;
    }

    .tech-chip{
        font-size:.86rem;
        padding:9px 14px;
    }

    .tech-chip i{
        font-size:1.1rem;
    }

    .tech-chip img{
        width:18px;
        height:18px;
    }

    .timeline-icon,
    .education-icon{
        width:48px;
        height:48px;
        flex:0 0 48px;
    }

    .project-thumb{
        height:200px;
    }

    .certifications-title h4{
        font-size:1.7rem;
    }

    .certification-layout{
        padding:16px 14px;
    }

    .certification-logo{
        width:50px;
        height:50px;
        flex:0 0 50px;
    }

    .certification-body h4{
        font-size:.98rem;
    }

    .certification-body p{
        font-size:.88rem;
    }
}