/* ==========================================================
   BHUSHAN JOSHI PORTFOLIO
   Embedded Systems • IoT • Innovation
   ========================================================== */

/* =========================
   GOOGLE FONTS
========================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* =========================
   ROOT VARIABLES
========================= */
:root {

    --bg-primary: #050816;
    --bg-secondary: #0b1120;
    --bg-card: rgba(17, 25, 40, 0.75);
    --accent: #06b6d4;
    --accent-light: #22d3ee;
    --accent-dark: #0891b2;

    --text-primary: #ffffff;
    --text-secondary: #94a3b8;

    --border-color: rgba(255,255,255,0.08);

    --shadow-lg: 0 10px 40px rgba(0,0,0,0.4);

    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;

    --transition: all 0.35s ease;
}

/* =========================
   RESET
========================= */
html,
body {
    width: 100%;
    overflow-x: hidden !important;
}
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:var(--bg-primary);
    color:var(--text-primary);
    overflow-x:hidden;
}
.pcb-card{
    position: relative;
}
/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#050816;
}

::-webkit-scrollbar-thumb{
    background:var(--accent);
    border-radius:20px;
}

/* =========================
   GLOBAL
========================= */

.section-padding{
    padding:120px 0;
}

.alt-section{
    background:var(--bg-secondary);
}

a{
    text-decoration:none;
}

img{
    max-width:100%;
    display:block;
}

.container{
    position:relative;
    z-index:2;
}

/* =========================
   GLASS EFFECT
========================= */

.glass-card{
    background:rgba(255,255,255,0.05);
    backdrop-filter:blur(15px);
    -webkit-backdrop-filter:blur(15px);

    border:1px solid rgba(255,255,255,0.08);

    border-radius:var(--radius-lg);

    box-shadow:var(--shadow-lg);
}

/* =========================
   PRELOADER
========================= */

.preloader{
    position:fixed;
    top:0;
    left:0;

    width:100%;
    height:100vh;

    background:#020617;

    z-index:99999;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
}

.preloader-card {
  width: min(420px, calc(100vw - 32px));
  max-width: 420px;
  padding: 30px;
  box-sizing: border-box;
}

.boot-text{
    font-family:'Courier New', monospace;
    font-size:16px;
    line-height:2;
    color:#ffffff;
    white-space:pre-line;

    overflow-wrap:anywhere;
    word-break:break-word;
}
@media(max-width:576px){

    .boot-text{
        font-size:14px;
        line-height:1.8;
    }
}
/*.boot-success{*/
/*    color:#22c55e;*/
/*}*/
.boot-success{
    color:#22c55e !important;
    font-weight:600;
}
/*.terminal-line{*/
/*    margin-bottom:12px;*/
/*    font-size:15px;*/
/*}*/

/*.success{*/
/*    color:#22c55e;*/
/*}*/

/*.terminal-cursor{*/
/*    color:var(--accent);*/
/*    animation:blink 1s infinite;*/
/*}*/

/*@keyframes blink{*/
/*    50%{*/
/*        opacity:0;*/
/*    }*/
/*}*/

/* =========================
   NAVBAR
========================= */

.site-nav{
    background:rgba(0,0,0,0.25);
    backdrop-filter:blur(20px);
    border-bottom:1px solid rgba(255,255,255,0.08);
}

.navbar-brand{
    color:#fff !important;
    font-weight:700;
    letter-spacing:2px;
}

.nav-link{
    color:#cbd5e1 !important;
    transition:var(--transition);
}

.nav-link:hover{
    color:var(--accent) !important;
}

.navbar{
    padding:18px 0;
}

/* =========================
   BUTTONS
========================= */

.btn-accent{
    background:var(--accent);
    color:#fff;
    border:none;
    transition:var(--transition);
}

.btn-accent:hover{
    background:var(--accent-dark);
    transform:translateY(-3px);
}

.btn-ghost{
    border:1px solid rgba(255,255,255,0.15);
    color:#fff;
}

.btn-ghost:hover{
    background:rgba(255,255,255,0.08);
}

/* =========================
   HERO SECTION
========================= */

.hero-section{
    overflow-x: hidden;
    min-height:100vh;
    display:flex;
    align-items:center;
    position:relative;
    overflow:hidden;
}

.hero-bg-pattern{

    position:absolute;
    inset:0;

    background:
    radial-gradient(circle at 20% 20%,
    rgba(6,182,212,0.12),
    transparent 40%),

    radial-gradient(circle at 80% 80%,
    rgba(34,211,238,0.12),
    transparent 40%);
}

/* PCB EFFECT */

.hero-section::before{

    content:"";

    position:absolute;

    width:100%;
    height:100%;

    background-image:
    linear-gradient(
        rgba(6,182,212,0.05) 1px,
        transparent 1px
    ),

    linear-gradient(
        90deg,
        rgba(6,182,212,0.05) 1px,
        transparent 1px
    );

    background-size:60px 60px;

    opacity:0.5;
}

.eyebrow{
    color:var(--accent);
    font-size:14px;
    letter-spacing:3px;
    text-transform:uppercase;
}

.hero-title {
  font-size: clamp(2.2rem, 8vw, 4.5rem);
}

.typewriter-wrap {
    display: flex;
    flex-wrap: wrap;
    overflow-wrap: break-word;
    word-break: break-word;
}

.hero-role-prefix{
    color:var(--accent);
}

.hero-role{
    color:#fff;
}

.hero-subtitle{

    color:var(--text-secondary);

    font-size:18px;
    line-height:1.8;

    max-width:650px;
}

.hero-visual{
    padding:25px;
}

.hero-image-frame{

    position:relative;
    overflow:hidden;

    border-radius:20px;
}

.hero-image{
    border-radius:20px;
}

.hero-image-placeholder{

    min-height:420px;
}

.image-placeholder{

    display:none;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:15px;

    background:rgba(255,255,255,0.04);

    border-radius:20px;

    color:#94a3b8;
}
.image-placeholder-visible .image-placeholder{
    display:flex;
}

.image-placeholder-visible img{
    display:none;
}
.image-placeholder i{
    font-size:50px;
    color:var(--accent);
}

.reveal-card{
    animation:floatCard 4s ease-in-out infinite;
}

@keyframes floatCard{

    0%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-10px);
    }

    100%{
        transform:translateY(0);
    }
}

/* =========================
   METRICS
========================= */

.hero-metrics{

    display:flex;
    flex-wrap:wrap;
    gap:20px;
}

.metric-card{

    padding:18px 22px;

    background:rgba(255,255,255,0.05);

    border-radius:18px;
}

.metric-value{
    display:block;
    font-size:28px;
    font-weight:700;
    color:var(--accent);
}

.metric-label{
    color:var(--text-secondary);
    font-size:13px;
}

/* =========================
   SECTION HEADINGS
========================= */

.section-heading{
    margin-bottom:60px;
}

.section-kicker{
    color:var(--accent);
    letter-spacing:3px;
    text-transform:uppercase;
    font-size:13px;
}

.section-title{
    font-size:42px;
    font-weight:700;
    margin-top:15px;
}

.section-subtitle{

    color:var(--text-secondary);

    max-width:700px;
    margin:auto;
}

/* =========================
   ABOUT
========================= */

.content-card{
    padding:35px;
}

.content-card p{
    color:var(--text-secondary);
    line-height:1.9;
}

.about-image{
    border-radius:20px;
}

/* =========================
   TIMELINE
========================= */

.timeline{
    display:grid;
    gap:25px;
}

.timeline-item{
    padding:25px;
}

.timeline-date{
    color:var(--accent);
    font-weight:600;
    margin-bottom:10px;
}

/* =========================
   SKILLS
========================= */

.skill-card{
    padding:25px;
}

.skill-card h3{
    margin-bottom:20px;
}

.tag-list{
    list-style:none;

    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.tag-list li{

    padding:10px 15px;

    border-radius:30px;

    background:rgba(6,182,212,0.1);

    border:1px solid rgba(6,182,212,0.3);

    color:#e2e8f0;
}

/* =========================
   EXPERIENCE
========================= */

.experience-card{
    padding:25px;
}

.experience-role{
    color:var(--accent);
    display:block;
    margin-bottom:8px;
}

.experience-date{
    color:var(--text-secondary);
    font-size:14px;
}

/* =========================
   PROJECTS
========================= */

.project-card{
    overflow:hidden;
}

.project-media{
    position:relative;
}

.project-placeholder{
    min-height:250px;
}

.project-image{
    width:100%;
    height:250px;
    object-fit:cover;
}

.project-body{
    padding:25px;
}

.project-head{
    margin-bottom:15px;
}

.project-year{
    color:var(--text-secondary);
    font-size:13px;
}

.mini-tag-list{

    list-style:none;

    display:flex;
    flex-wrap:wrap;
    gap:10px;

    margin:20px 0;
}

.mini-tag-list li{

    padding:6px 12px;

    background:rgba(255,255,255,0.08);

    border-radius:20px;

    font-size:12px;
}

.project-links{
    display:flex;
    gap:10px;
}

/* =========================
   PATENT
========================= */

.patent-card{
    padding:25px;
}

.patent-placeholder{
    min-height:420px;
}

.patent-image{
    width:100%;
    max-width:450px;
    height:550px;
    object-fit:contain;
    object-position:center;
    border-radius:20px;
    margin:auto;
}

.patent-card h3{
    color:#fff;
}

/* =========================
   ACHIEVEMENTS
========================= */

.achievement-card{

    text-align:center;

    padding:35px 20px;

    height:100%;
}

.achievement-icon{

    width:80px;
    height:80px;

    margin:auto auto 20px;

    border-radius:50%;

    background:rgba(6,182,212,0.1);

    display:flex;
    align-items:center;
    justify-content:center;
}

.achievement-icon i{
    color:var(--accent);
    font-size:28px;
}

/* =========================
   CERTIFICATES
========================= */

.certificate-card{
    overflow:hidden;
}

.certificate-placeholder{
    min-height:280px;
}

/* =========================
   CONTACT
========================= */

.contact-card,
.contact-form-card{
    padding:35px;
}

.contact-item{

    display:flex;
    gap:15px;

    margin-bottom:20px;

    color:var(--text-secondary);
}

.contact-item i{
    color:var(--accent);
}

.form-control{

    background:rgba(255,255,255,0.05);

    border:1px solid rgba(255,255,255,0.08);

    color:#fff;
}

.form-control:focus{

    background:rgba(255,255,255,0.08);

    border-color:var(--accent);

    color:#fff;

    box-shadow:none;
}

.form-control::placeholder{
    color:#94a3b8;
}

/* =========================
   FOOTER
========================= */

.site-footer{

    padding:30px 0;

    border-top:1px solid rgba(255,255,255,0.08);

    background:#030712;
}

.site-footer p{
    color:var(--text-secondary);
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:992px){

    .hero-title{
        font-size:54px;
    }

    .typewriter-wrap{
        font-size:24px;
    }

    .section-title{
        font-size:34px;
    }

    .hero-image-placeholder{
        min-height:320px;
    }
}

@media(max-width:768px){

    .section-padding{
        padding:90px 0;
    }

    .hero-title{
        font-size:42px;
    }

    .typewriter-wrap{
        font-size:20px;
    }

    .section-title{
        font-size:30px;
    }

    .hero-metrics{
        flex-direction:column;
    }
}

@media(max-width:576px){

    .hero-title{
        font-size:34px;
    }

    .typewriter-wrap{
        font-size:18px;
    }

    .section-title{
        font-size:26px;
    }

    .content-card,
    .skill-card,
    .experience-card,
    .contact-card,
    .contact-form-card{
        padding:25px;
    }
}

/* ====================================
   PCB ACADEMIC JOURNEY
==================================== */

.education-section{
    position: relative;
}

.pcb-timeline{

    max-width: 900px;

    margin: auto;

    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.pcb-item{
    width: 100%;
    position: relative;
}

.pcb-card{

    max-width: 650px;

    margin: auto;

    text-align: center;

    padding: 35px;

    transition: 0.4s ease;
}

.pcb-card:hover{

    transform: translateY(-8px);

    box-shadow:
        0 0 20px rgba(6,182,212,0.25),
        0 0 40px rgba(6,182,212,0.15);
}

.pcb-icon{

    width: 80px;
    height: 80px;

    margin: auto auto 20px;

    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(6,182,212,0.12);

    border: 1px solid rgba(6,182,212,0.4);
}

.pcb-icon i{

    font-size: 32px;

    color: var(--accent);
}

.pcb-card h3{

    margin-bottom: 12px;

    font-weight: 600;
}

.college{

    color: var(--text-secondary);

    margin-bottom: 10px;
}

.duration{

    color: var(--accent);

    font-weight: 600;

    letter-spacing: 1px;
}

/* PCB Line */

.pcb-connector{

    width: 4px;

    height: 100px;

    background: var(--accent);

    position: relative;

    box-shadow:
        0 0 10px var(--accent),
        0 0 20px var(--accent);
}

/* Circuit Node */

.pcb-connector::before{

    content: "";

    position: absolute;

    top: 50%;

    left: 50%;

    transform: translate(-50%, -50%);

    width: 18px;
    height: 18px;

    border-radius: 50%;

    background: var(--accent);

    box-shadow:
        0 0 10px var(--accent),
        0 0 25px var(--accent);
}

.pcb-dot{

    width: 24px;

    height: 24px;

    border-radius: 50%;

    background: var(--accent);

    margin: auto auto 25px;

    box-shadow:
        0 0 12px var(--accent),
        0 0 25px var(--accent);
}

/* Floating Glow */

.pcb-card::before{

    content: "";

    position: absolute;

    inset: 0;

    border-radius: 24px;

    background:
        linear-gradient(
            135deg,
            rgba(6,182,212,0.08),
            transparent
        );

    pointer-events: none;
}

/* Mobile */

@media(max-width:768px){

    .pcb-card{

        padding: 25px;
    }

    .pcb-card h3{

        font-size: 20px;
    }

    .pcb-connector{

        height: 70px;
    }
}

.certificate-image{
    width:100%;
    height:300px;
    object-fit:contain;
    background:#fff;
    padding:10px;
    border-radius:20px 20px 0 0;
}

.certificate-info{
    padding:15px;
    text-align:center;
}

.certificate-info h5{
    margin-bottom:5px;
}

.certificate-info p{
    color:var(--text-secondary);
    margin:0;
}
.contact-item{
    display:flex;
    align-items:center;
    gap:15px;
    margin-bottom:20px;
}

.contact-item i{
    color:var(--accent);
    width:20px;
    font-size:18px;
}

.contact-item a{
    color:#cbd5e1;
    text-decoration:none;
    transition:.3s;
    word-break:break-word;
}

.contact-item a:hover{
    color:var(--accent);
}

.site-footer{
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 60px;
}

.site-footer p{
    color: #94a3b8;
    font-size: 0.95rem;
}
.hero-visual {
    width: 100%;
    max-width: 100%;
}
.hero-image,
.about-image,
.project-image,
.patent-image {
    width: 100%;
}
html,
body {
    overflow-x: hidden;
    width: 100%;
}

[data-aos] {
    overflow-x: hidden;
}

@media (max-width: 576px) {
  .preloader-card {
    width: calc(100vw - 24px);
    padding: 20px;
  }

  .terminal-line {
    font-size: 13px;
    overflow-wrap: anywhere;
  }
}