/* ===========================================================
   Dipayan Mahato Portfolio
   =========================================================== */

:root{

    --primary:#7c3aed;
    --primary-light:#9f67ff;
    --secondary:#14b8a6;
    --accent:#ff6b6b;

    --bg:#0b1120;
    --bg-secondary:#111827;

    --glass:rgba(255,255,255,.06);
    --glass-border:rgba(255,255,255,.12);

    --text:#ffffff;
    --muted:#9ca3af;

    --shadow:0 20px 60px rgba(0,0,0,.35);

    --radius:22px;

    --transition:.35s ease;

    --container:1200px;

}

/* ========================= */

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;
    scroll-padding-top:82px;

}

body{

    background:var(--bg);
    color:var(--text);

    font-family:'Lato',sans-serif;

    overflow-x:hidden;

}

img{

    display:block;
    max-width:100%;

}

a{

    color:inherit;
    text-decoration:none;

}

ul{

    list-style:none;

}

button{

    border:none;
    cursor:pointer;
    background:none;

}

.container{

    width:min(92%,var(--container));

    margin:auto;

}

/* ========================= */
/* Scrollbar */
/* ========================= */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#101827;

}

::-webkit-scrollbar-thumb{

    background:var(--primary);

    border-radius:20px;

}

/* ========================= */
/* Loader */
/* ========================= */

.loader{

    position:fixed;

    inset:0;

    background:#08101f;

    display:flex;

    align-items:center;

    justify-content:center;

    z-index:99999;

    transition:.5s;

}

.spinner{

    width:65px;

    height:65px;

    border-radius:50%;

    border:6px solid rgba(255,255,255,.15);

    border-top-color:var(--primary);

    animation:spin 1s linear infinite;

}

.loader.hide{

    opacity:0;

    visibility:hidden;

}

@keyframes spin{

    to{

        transform:rotate(360deg);

    }

}

/* ========================= */
/* Progress Bar */
/* ========================= */

#progressBar{

    position:fixed;

    top:0;

    left:0;

    height:4px;

    width:0;

    background:linear-gradient(
        90deg,
        var(--primary),
        var(--secondary)
    );

    z-index:999;

}

/* ========================= */
/* Header */
/* ========================= */

.header{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    z-index:999;

    backdrop-filter:blur(18px);

    background:rgba(8,16,31,.65);

    border-bottom:1px solid rgba(255,255,255,.08);

}

.nav{

    display:flex;

    align-items:center;

    justify-content:space-between;

    height:82px;

}

.logo{

    font-size:1.8rem;

    font-weight:700;

    font-family:'Poppins',sans-serif;

}

.logo span{

    color:var(--primary);

}

.nav-links{

    display:flex;

    gap:34px;

}

.nav-links a{

    color:var(--muted);

    transition:var(--transition);

}

.nav-links a:hover{

    color:#fff;

}

.menu-btn{

    display:none;

    color:#fff;

    font-size:1.5rem;

}

/* ========================= */
/* Hero */
/* ========================= */

.hero{

    min-height:100vh;

    display:flex;

    align-items:center;

    padding-top:90px;

}

.hero-grid{

    display:grid;

    grid-template-columns:1.1fr .9fr;

    gap:70px;

    align-items:center;

}

.hero-tag{

    display:inline-flex;

    padding:10px 18px;

    border-radius:50px;

    background:rgba(124,58,237,.15);

    color:var(--primary-light);

    font-size:.9rem;

    letter-spacing:1px;

    margin-bottom:25px;

}

.hero h1{

    font-family:'Poppins',sans-serif;

    font-size:4rem;

    line-height:1.1;

}

.hero h1 span{

    color:var(--primary-light);

}

.hero h2{

    margin:22px 0;

    font-size:1.8rem;

    color:var(--secondary);

}

.hero p{

    color:var(--muted);

    line-height:1.8;

    max-width:620px;

}

.hero-buttons{

    display:flex;

    gap:20px;

    margin-top:35px;

}

.btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:15px 28px;

    border-radius:50px;

    transition:var(--transition);

    font-weight:600;

}

.btn-primary{

    background:var(--primary);

    color:#fff;

}

.btn-primary:hover{

    transform:translateY(-4px);

    box-shadow:0 15px 35px rgba(124,58,237,.35);

}

.btn-outline{

    border:1px solid rgba(255,255,255,.18);

}

.btn-outline:hover{

    background:rgba(255,255,255,.08);

}

.hero-social{

    display:flex;

    gap:20px;

    margin-top:40px;

}

.hero-social a{

    width:48px;

    height:48px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:var(--glass);

    border:1px solid var(--glass-border);

    transition:var(--transition);

}

.hero-social a:hover{

    transform:translateY(-5px);

    background:var(--primary);

}
/* ===========================================================
   HERO CODE CONSOLE
   =========================================================== */

.hero-console{

    position:relative;

    background:#0d1629;

    border:1px solid rgba(255,255,255,.08);

    border-radius:24px;

    overflow:hidden;

    box-shadow:var(--shadow);

    transform:rotate(-4deg);

    transition:.4s ease;

}

.hero-console:hover{

    transform:rotate(0deg) translateY(-8px);

}

.hero-console::before{

    content:"";

    display:block;

    height:42px;

    background:#111827;

    border-bottom:1px solid rgba(255,255,255,.08);

}

.hero-console::after{

    content:"●  ●  ●";

    position:absolute;

    top:12px;

    left:18px;

    color:#ff6b6b;

    letter-spacing:5px;

    font-size:13px;

}

.hero-console pre{

    padding:30px;

    overflow:auto;

}

.hero-console code{

    color:#d6e4ff;

    font-family:"JetBrains Mono",monospace;

    font-size:.9rem;

    line-height:1.8;

}

.stack-icons{

    display:flex;

    flex-wrap:wrap;

    gap:12px;

    padding:0 25px 25px;

}

.stack-icons span{

    display:flex;

    align-items:center;

    gap:8px;

    padding:10px 16px;

    background:rgba(255,255,255,.06);

    border-radius:999px;

    border:1px solid rgba(255,255,255,.08);

    font-size:.9rem;

}

.stack-icons i{

    font-size:1.3rem;

}

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

.section{

    padding:110px 0;

}

.section-heading{

    text-align:center;

    margin-bottom:70px;

}

.section-heading span{

    color:var(--primary-light);

    text-transform:uppercase;

    letter-spacing:2px;

    font-size:.9rem;

}

.section-heading h2{

    margin-top:15px;

    font-family:"Poppins",sans-serif;

    font-size:2.6rem;

}

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

.about-grid{

    display:grid;

    grid-template-columns:1.1fr .9fr;

    gap:60px;

    align-items:center;

}

.about-content p{

    color:var(--muted);

    line-height:1.9;

    margin-bottom:22px;

}

.about-buttons{

    display:flex;

    gap:18px;

    margin-top:35px;

}

.about-cards{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:22px;

}

.stat-card{

    background:var(--glass);

    border:1px solid var(--glass-border);

    border-radius:20px;

    padding:35px;

    text-align:center;

    transition:.35s;

}

.stat-card:hover{

    transform:translateY(-8px);

    border-color:var(--primary);

}

.stat-card h3{

    font-size:2.4rem;

    color:var(--primary-light);

    margin-bottom:10px;

    font-family:"Poppins",sans-serif;

}

.stat-card span{

    color:var(--muted);

}

/* ===========================================================
   TECH STACK
   =========================================================== */

.tech-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(170px,1fr));

    gap:24px;

}

.tech-card{

    background:var(--glass);

    border:1px solid var(--glass-border);

    border-radius:20px;

    padding:30px;

    text-align:center;

    transition:.35s;

}

.tech-card:hover{

    transform:translateY(-8px);

    border-color:var(--secondary);

}

.tech-card i{

    font-size:3rem;

    margin-bottom:18px;

}

.tech-card span{

    display:block;

    font-weight:600;

    margin-top:10px;

}

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

.timeline{

    max-width:900px;

    margin:auto;

    position:relative;

}

.timeline::before{

    content:"";

    position:absolute;

    left:25px;

    top:0;

    width:3px;

    height:100%;

    background:var(--primary);

}

.timeline-item{

    position:relative;

    margin-left:70px;

    margin-bottom:45px;

    padding:30px;

    background:var(--glass);

    border:1px solid var(--glass-border);

    border-radius:20px;

    transition:.35s;

}

.timeline-item:hover{

    transform:translateX(10px);

    border-color:var(--primary);

}

.timeline-item::before{

    content:"";

    position:absolute;

    width:18px;

    height:18px;

    border-radius:50%;

    background:var(--primary);

    left:-56px;

    top:34px;

    box-shadow:0 0 0 6px rgba(124,58,237,.18);

}

.timeline-item h3{

    font-size:1.4rem;

    margin-bottom:6px;

}

.timeline-item h4{

    color:var(--secondary);

    margin-bottom:8px;

}

.timeline-item span{

    color:var(--muted);

    display:block;

    margin-bottom:16px;

    font-size:.9rem;

}

.timeline-item p{

    color:var(--muted);

    line-height:1.8;

}
/* ===========================================================
   PROJECTS
   =========================================================== */

.project-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(340px,1fr));

    gap:32px;

}

.project-card{

    display:flex;

    flex-direction:column;

    background:var(--glass);

    border:1px solid var(--glass-border);

    border-radius:24px;

    overflow:hidden;

    transition:.35s;

    box-shadow:var(--shadow);

}

.project-card:hover{

    transform:translateY(-10px);

    border-color:var(--primary);

}

.project-image{

    position:relative;

    overflow:hidden;

    aspect-ratio:16/9;

}

.project-image img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:.5s;

}

.project-card:hover img{

    transform:scale(1.08);

}

.project-content{

    padding:28px;

    display:flex;

    flex-direction:column;

    flex:1;

}

.project-content h3{

    font-size:1.5rem;

    margin-bottom:12px;

    font-family:"Poppins",sans-serif;

}

.project-content p{

    color:var(--muted);

    line-height:1.8;

    flex:1;

}

.project-stack{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

    margin:22px 0;

}

.project-stack span{

    padding:8px 14px;

    border-radius:999px;

    background:rgba(124,58,237,.15);

    color:var(--primary-light);

    font-size:.82rem;

}

.project-links{

    display:flex;

    gap:18px;

    margin-top:10px;

}

.project-links a{

    display:flex;

    align-items:center;

    gap:8px;

    color:var(--secondary);

    font-weight:600;

    transition:.3s;

}

.project-links a:hover{

    color:#fff;

}

/* ===========================================================
   GITHUB REPOSITORIES
   =========================================================== */

#github-projects{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

    gap:28px;

    margin-top:40px;

}

.repo-card{

    padding:28px;

    border-radius:22px;

    background:var(--glass);

    border:1px solid var(--glass-border);

    transition:.35s;

}

.repo-card:hover{

    transform:translateY(-8px);

    border-color:var(--secondary);

}

.repo-card h3{

    display:flex;

    align-items:center;

    gap:10px;

    font-size:1.3rem;

    margin-bottom:15px;

}

.repo-card p{

    color:var(--muted);

    line-height:1.8;

    min-height:90px;

}

.repo-footer{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:25px;

    color:var(--muted);

    font-size:.9rem;

}

/* ===========================================================
   EDUCATION
   =========================================================== */

.education-grid{

    display:grid;

    gap:30px;

}

.education-card{

    padding:32px;

    border-radius:22px;

    background:var(--glass);

    border:1px solid var(--glass-border);

    transition:.35s;

}

.education-card:hover{

    border-color:var(--primary);

    transform:translateY(-6px);

}

.education-card h3{

    font-size:1.5rem;

    margin-bottom:10px;

}

.education-card h4{

    color:var(--secondary);

    margin-bottom:10px;

}

.education-card p{

    color:var(--muted);

    line-height:1.8;

}

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

.cert-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

    gap:30px;

}

.cert-card{

    padding:30px;

    border-radius:22px;

    background:var(--glass);

    border:1px solid var(--glass-border);

    transition:.35s;

}

.cert-card:hover{

    transform:translateY(-8px);

    border-color:var(--accent);

}

.cert-card h3{

    margin-bottom:12px;

}

.cert-card p{

    color:var(--muted);

    line-height:1.8;

}

.cert-card a{

    display:inline-flex;

    margin-top:22px;

    color:var(--primary-light);

    font-weight:600;

}

.cert-card a:hover{

    color:#fff;

}

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

.contact-grid{

    display:grid;

    grid-template-columns:1fr 1.2fr;

    gap:50px;

}

.contact-info{

    display:flex;

    flex-direction:column;

    gap:25px;

}

.contact-item{

    display:flex;

    align-items:center;

    gap:18px;

    padding:20px;

    border-radius:18px;

    background:var(--glass);

    border:1px solid var(--glass-border);

}

.contact-item i{

    width:55px;

    height:55px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:var(--primary);

    font-size:1.25rem;

}

.contact-item a{

    color:var(--text);

    transition:.3s;

}

.contact-item a:hover{

    color:var(--primary-light);

}

.contact-form{

    padding:35px;

    background:var(--glass);

    border-radius:24px;

    border:1px solid var(--glass-border);

}

.contact-form input,
.contact-form textarea{

    width:100%;

    margin-bottom:20px;

    padding:16px 18px;

    border:none;

    outline:none;

    border-radius:14px;

    background:#172235;

    color:#fff;

    font-family:inherit;

}

.contact-form textarea{

    resize:vertical;

    min-height:180px;

}

.contact-form button{

    width:100%;

}

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

.footer{

    padding:40px 0;

    margin-top:100px;

    text-align:center;

    border-top:1px solid rgba(255,255,255,.08);

}

.footer p{

    color:var(--muted);

}

.footer-social{

    display:flex;

    justify-content:center;

    gap:20px;

    margin-bottom:25px;

}

.footer-social a{

    width:45px;

    height:45px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:var(--glass);

    transition:.35s;

}

.footer-social a:hover{

    background:var(--primary);

}

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

@media (max-width:992px){

    .hero-grid,
    .about-grid,
    .contact-grid{

        grid-template-columns:1fr;

    }

    .hero{

        text-align:center;

    }

    .hero-buttons,
    .hero-social{

        justify-content:center;

    }

    .about-cards{

        margin-top:40px;

    }

}

@media (max-width:768px){

    .nav-links{

        display:none;

    }

    .menu-btn{

        display:block;

    }

    .hero h1{

        font-size:2.8rem;

    }

    .hero h2{

        font-size:1.4rem;

    }

    .section{

        padding:80px 0;

    }

    .timeline{

        margin-left:20px;

    }

    .timeline-item{

        margin-left:45px;

    }

}

@media (max-width:576px){

    .hero-buttons{

        flex-direction:column;

    }

    .about-cards{

        grid-template-columns:1fr;

    }

    .project-grid,
    .cert-grid,
    #github-projects{

        grid-template-columns:1fr;

    }

    .hero-console{

        transform:none;

    }

}
