/* ==========================================================================
   Gayatri Patil — Portfolio Stylesheet
   Color theme: LinkedIn-inspired corporate blue, glassmorphism cards
   ========================================================================== */

:root{
  --primary:#0A66C2;
  --primary-dark:#084d94;
  --secondary:#1E293B;
  --accent:#38BDF8;
  --bg:#F8FAFC;
  --bg-alt:#EEF3FA;
  --text:#1E293B;
  --text-muted:#5B6B82;
  --card-bg:rgba(255,255,255,0.7);
  --card-border:rgba(255,255,255,0.5);
  --card-shadow:0 8px 30px rgba(15,23,42,0.08);
  --gradient-brand:linear-gradient(135deg,var(--primary) 0%,var(--accent) 100%);
  --font-display:'Poppins',sans-serif;
  --font-mono:'JetBrains Mono',monospace;
  --radius-lg:22px;
  --radius-md:16px;
  --radius-sm:10px;
  --nav-h:76px;
  color-scheme: light;
}

[data-theme="dark"]{
  --bg:#0B1220;
  --bg-alt:#0F172A;
  --text:#E6EDF7;
  --text-muted:#93A2BC;
  --card-bg:rgba(30,41,59,0.55);
  --card-border:rgba(148,163,184,0.16);
  --card-shadow:0 8px 30px rgba(0,0,0,0.35);
  color-scheme: dark;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--font-display);
  background:var(--bg);
  color:var(--text);
  overflow-x:hidden;
  transition:background .4s ease,color .4s ease;
}
img{max-width:100%;display:block;}
a{text-decoration:none;color:inherit;}
ul{list-style:none;margin:0;padding:0;}
::selection{background:var(--primary);color:#fff;}

/* ===== Utility ===== */
.section-pad{padding:120px 0;}
.section-alt{background:var(--bg-alt);}
.section-eyebrow{
  font-family:var(--font-mono);
  letter-spacing:.14em;
  text-transform:uppercase;
  font-size:.78rem;
  color:var(--primary);
  font-weight:600;
  margin-bottom:.6rem;
}
.section-title{
  font-size:clamp(1.9rem,3.2vw,2.6rem);
  font-weight:700;
  color:var(--text);
  margin-bottom:0;
}
.section-sub{color:var(--text-muted);max-width:640px;margin-top:.8rem;}

.glass{
  background:var(--card-bg);
  border:1px solid var(--card-border);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  box-shadow:var(--card-shadow);
  border-radius:var(--radius-lg);
}
.glass-panel{
  background:var(--card-bg);
  border:1px solid var(--card-border);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  box-shadow:var(--card-shadow);
  border-radius:var(--radius-lg);
  padding:2.2rem;
}

/* ===== Buttons ===== */
.btn-gradient{
  background:var(--gradient-brand);
  color:#fff;
  border:none;
  padding:.85rem 1.7rem;
  border-radius:50px;
  font-weight:600;
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  box-shadow:0 10px 25px rgba(10,102,194,.35);
  transition:transform .25s ease,box-shadow .25s ease;
}
.btn-gradient:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(10,102,194,.45);color:#fff;}
.btn-outline-brand{
  border:1.5px solid var(--primary);
  color:var(--primary);
  padding:.8rem 1.6rem;
  border-radius:50px;
  font-weight:600;
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  transition:.25s ease;
  background:transparent;
}
.btn-outline-brand:hover{background:var(--primary);color:#fff;transform:translateY(-2px);}
.btn-ghost{
  color:var(--text);
  font-weight:600;
  padding:.85rem 1rem;
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  transition:.25s ease;
}
.btn-ghost:hover{color:var(--primary);gap:.75rem;}
.btn-sm{padding:.55rem 1.1rem;font-size:.88rem;}

/* ===== Loading Screen ===== */
#loading-screen{
  position:fixed;inset:0;z-index:9999;
  background:var(--secondary);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.2rem;
  transition:opacity .6s ease,visibility .6s ease;
}
#loading-screen.hide{opacity:0;visibility:hidden;}
.loader-mark{
  font-family:var(--font-display);font-weight:800;font-size:2.4rem;color:#fff;letter-spacing:.05em;
  animation:pulseMark 1.4s ease-in-out infinite;
}
@keyframes pulseMark{0%,100%{opacity:.5;transform:scale(.96);}50%{opacity:1;transform:scale(1.02);}}
.loader-bar{width:180px;height:4px;background:rgba(255,255,255,.15);border-radius:4px;overflow:hidden;}
.loader-bar span{display:block;height:100%;width:40%;background:var(--gradient-brand);animation:loaderMove 1.1s ease-in-out infinite;}
@keyframes loaderMove{0%{transform:translateX(-100%);}100%{transform:translateX(350%);}}

/* ===== Scroll progress ===== */
#scroll-progress{
  position:fixed;top:0;left:0;height:3px;width:0%;
  background:var(--gradient-brand);z-index:2000;transition:width .1s linear;
}

/* ===== Custom cursor ===== */
.cursor-dot,.cursor-ring{position:fixed;top:0;left:0;pointer-events:none;z-index:9998;border-radius:50%;transform:translate(-50%,-50%);}
.cursor-dot{width:6px;height:6px;background:var(--primary);}
.cursor-ring{width:32px;height:32px;border:1.5px solid var(--accent);transition:transform .12s ease,opacity .3s ease;opacity:.6;}
@media (hover:none), (max-width:991px){.cursor-dot,.cursor-ring{display:none;}}

/* ===== Navbar ===== */
#mainNav{
  height:var(--nav-h);
  display:flex;align-items:center;
  background:rgba(248,250,252,.7);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(15,23,42,.06);
  transition:.35s ease;
}
[data-theme="dark"] #mainNav{background:rgba(11,18,32,.7);border-bottom:1px solid rgba(255,255,255,.06);}
#mainNav.scrolled{box-shadow:0 6px 24px rgba(15,23,42,.08);}
.navbar-brand{font-weight:800;font-size:1.4rem;color:var(--text);}
.navbar-brand span{color:var(--primary);}
.nav-link{
  font-weight:500;color:var(--text)!important;position:relative;margin:0 .35rem;padding:.5rem .2rem!important;
}
.nav-link::after{
  content:"";position:absolute;left:0;bottom:0;width:0;height:2px;background:var(--gradient-brand);transition:.3s ease;
}
.nav-link:hover::after,.nav-link.active::after{width:100%;}
.nav-link.active,.nav-link:hover{color:var(--primary)!important;}

.navbar-toggler{border:none;background:none;padding:.4rem;}
.toggler-bar{display:block;width:24px;height:2px;background:var(--text);margin:5px 0;transition:.3s;}

.theme-toggle{
  width:42px;height:42px;border-radius:50%;border:1px solid rgba(15,23,42,.12);
  background:var(--card-bg);color:var(--text);display:flex;align-items:center;justify-content:center;
  cursor:pointer;transition:.3s ease;
}
.theme-toggle:hover{background:var(--primary);color:#fff;transform:rotate(15deg);}

/* ===== Hero ===== */
.hero-section{
  position:relative;min-height:100vh;display:flex;align-items:center;
  padding-top:var(--nav-h);overflow:hidden;
  background:radial-gradient(ellipse at top right,rgba(56,189,248,.12),transparent 60%),var(--bg);
}
#particles{position:absolute;inset:0;z-index:0;opacity:.55;}
.hero-glow{
  position:absolute;top:-120px;left:-120px;width:480px;height:480px;border-radius:50%;
  background:radial-gradient(circle,rgba(10,102,194,.25),transparent 70%);filter:blur(10px);z-index:0;
}
.hero-inner{position:relative;z-index:1;}
.eyebrow{
  display:inline-flex;align-items:center;gap:.5rem;font-family:var(--font-mono);font-size:.82rem;
  color:var(--primary);background:rgba(10,102,194,.08);padding:.4rem .9rem;border-radius:50px;font-weight:500;
}
.eyebrow .dot{width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 0 rgba(34,197,94,.6);animation:dotPulse 1.8s infinite;}
@keyframes dotPulse{0%{box-shadow:0 0 0 0 rgba(34,197,94,.5);}70%{box-shadow:0 0 0 8px rgba(34,197,94,0);}100%{box-shadow:0 0 0 0 rgba(34,197,94,0);}}

.hero-name{
  font-size:clamp(2.4rem,5vw,3.6rem);font-weight:800;margin:1rem 0 .3rem;
  background:linear-gradient(90deg,var(--text),var(--primary) 70%);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
  line-height:1.1;
}
.hero-role{font-size:clamp(1.2rem,2.4vw,1.7rem);font-weight:500;color:var(--text-muted);margin-bottom:1.1rem;}
.typed-accent{color:var(--primary);font-weight:700;}
.hero-intro{color:var(--text-muted);max-width:560px;font-size:1.02rem;margin-bottom:1.8rem;}
.hero-cta{display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:2.6rem;}

.hero-stats{display:flex;gap:2.2rem;flex-wrap:wrap;}
.stat{display:flex;flex-direction:column;}
.stat-num{font-family:var(--font-mono);font-size:1.9rem;font-weight:700;color:var(--primary);}
.stat-label{font-size:.82rem;color:var(--text-muted);}

.hero-avatar-wrap{position:relative;max-width:380px;margin:0 auto;}
.avatar-card{padding:14px;border-radius:28px;}
.avatar-card img{border-radius:20px;width:100%;height:auto;}
.floating-badge{
  position:absolute;display:flex;align-items:center;gap:.45rem;padding:.55rem .9rem;border-radius:50px;
  background:var(--card-bg);border:1px solid var(--card-border);backdrop-filter:blur(12px);
  font-size:.82rem;font-weight:600;box-shadow:var(--card-shadow);animation:floatY 4.5s ease-in-out infinite;
}
.floating-badge i{color:var(--primary);}
.badge-1{top:6%;left:-8%;animation-delay:0s;}
.badge-2{top:32%;right:-12%;animation-delay:.6s;}
.badge-3{bottom:22%;left:-14%;animation-delay:1.2s;}
.badge-4{bottom:-3%;right:6%;animation-delay:1.8s;}
@keyframes floatY{0%,100%{transform:translateY(0);}50%{transform:translateY(-14px);}}

.scroll-cue{
  position:absolute;bottom:26px;left:50%;transform:translateX(-50%);
  display:flex;flex-direction:column;align-items:center;gap:.5rem;font-size:.72rem;
  color:var(--text-muted);letter-spacing:.08em;text-transform:uppercase;z-index:2;
}
.scroll-cue span{width:1px;height:32px;background:linear-gradient(var(--primary),transparent);animation:scrollLine 1.8s ease-in-out infinite;}
@keyframes scrollLine{0%{transform:scaleY(0);transform-origin:top;}50%{transform:scaleY(1);transform-origin:top;}51%{transform-origin:bottom;}100%{transform:scaleY(0);transform-origin:bottom;}}

/* ===== About ===== */
.lead-text{font-size:1.08rem;font-weight:500;color:var(--text);}
.about-facts{margin-top:1.5rem;display:grid;gap:.8rem;}
.about-facts li{display:flex;align-items:center;gap:.7rem;color:var(--text-muted);font-size:.94rem;}
.about-facts i{color:var(--primary);width:18px;}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem;}
.about-card{padding:1.6rem;transition:.3s ease;}
.about-card:hover{transform:translateY(-6px);}
.about-card i{font-size:1.6rem;color:var(--primary);margin-bottom:.8rem;}
.about-card h3{font-size:1.05rem;font-weight:600;margin-bottom:.4rem;}
.about-card p{font-size:.88rem;color:var(--text-muted);margin:0;}

/* ===== Skills ===== */
.skills-subhead{font-weight:700;font-size:1.15rem;margin-bottom:1.4rem;}
.skill-bar-group{display:flex;flex-direction:column;gap:1.25rem;}
.skill-bar-head{display:flex;justify-content:space-between;font-weight:500;margin-bottom:.5rem;font-size:.94rem;}
.skill-bar-head i{color:var(--primary);margin-right:.4rem;}
.skill-percent{font-family:var(--font-mono);color:var(--primary);font-weight:600;}
.skill-track{height:9px;border-radius:50px;background:rgba(15,23,42,.08);overflow:hidden;}
[data-theme="dark"] .skill-track{background:rgba(255,255,255,.08);}
.skill-fill{height:100%;width:0%;border-radius:50px;background:var(--gradient-brand);transition:width 1.4s cubic-bezier(.16,1,.3,1);}

.circular-skill-grid{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;}
.circular-skill{position:relative;width:120px;height:120px;}
.circle-svg{width:120px;height:120px;transform:rotate(-90deg);}
.circle-track{fill:none;stroke:rgba(15,23,42,.08);stroke-width:9;}
[data-theme="dark"] .circle-track{stroke:rgba(255,255,255,.08);}
.circle-fill{fill:none;stroke:var(--primary);stroke-width:9;stroke-linecap:round;
  stroke-dasharray:326.7;stroke-dashoffset:326.7;transition:stroke-dashoffset 1.6s cubic-bezier(.16,1,.3,1);}
.circular-skill-label{
  position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
  font-size:.72rem;font-weight:600;text-align:center;line-height:1.3;color:var(--text-muted);
}
.circular-skill-num{font-family:var(--font-mono);font-size:1.25rem;color:var(--primary);font-weight:700;}

.tool-chip-row{display:flex;flex-wrap:wrap;gap:.6rem;}
.tool-chip{
  display:inline-flex;align-items:center;gap:.5rem;padding:.5rem 1rem;border-radius:50px;
  background:rgba(10,102,194,.08);color:var(--primary);font-size:.85rem;font-weight:600;
}

/* ===== Timeline (Education) ===== */
.timeline{position:relative;max-width:820px;margin:0 auto;padding-left:2.4rem;}
.timeline::before{content:"";position:absolute;left:9px;top:6px;bottom:6px;width:2px;background:linear-gradient(var(--primary),var(--accent));}
.timeline-item{position:relative;margin-bottom:2.2rem;}
.timeline-dot{position:absolute;left:-2.4rem;top:8px;width:20px;height:20px;border-radius:50%;background:var(--gradient-brand);border:4px solid var(--bg);box-shadow:0 0 0 2px var(--primary);}
.timeline-card{padding:1.6rem 1.8rem;}
.timeline-year{font-family:var(--font-mono);font-size:.78rem;color:var(--accent);font-weight:600;letter-spacing:.05em;}
.timeline-card h3{font-size:1.1rem;font-weight:700;margin:.4rem 0 .25rem;}
.timeline-org{color:var(--text-muted);margin-bottom:.5rem;font-size:.92rem;}
.timeline-score{display:inline-block;font-size:.8rem;font-weight:600;color:var(--primary);background:rgba(10,102,194,.08);padding:.25rem .7rem;border-radius:50px;}

/* ===== Experience ===== */
.exp-card{padding:1.8rem;height:100%;transition:.3s ease;}
.exp-card:hover{transform:translateY(-6px);}
.exp-card-head{display:flex;align-items:center;gap:1rem;margin-bottom:1rem;}
.exp-icon{width:52px;height:52px;border-radius:14px;background:var(--gradient-brand);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.2rem;flex-shrink:0;}
.exp-card h3{font-size:1.1rem;font-weight:700;margin:0;}
.exp-org{color:var(--text-muted);font-size:.9rem;margin:0;}
.exp-duration{display:inline-block;font-family:var(--font-mono);font-size:.78rem;color:var(--primary);margin-bottom:.9rem;}
.exp-list{display:grid;gap:.5rem;margin-bottom:1rem;}
.exp-list li{position:relative;padding-left:1.3rem;color:var(--text-muted);font-size:.92rem;}
.exp-list li::before{content:"\f00c";font-family:"Font Awesome 6 Free";font-weight:900;position:absolute;left:0;top:2px;font-size:.7rem;color:var(--accent);}
.exp-tags{display:flex;gap:.5rem;flex-wrap:wrap;}
.exp-tags span{font-size:.75rem;font-weight:600;background:rgba(10,102,194,.08);color:var(--primary);padding:.3rem .7rem;border-radius:50px;}

/* ===== Projects ===== */
.project-filters{display:flex;gap:.7rem;flex-wrap:wrap;}
.filter-btn{
  border:1px solid rgba(15,23,42,.12);background:transparent;color:var(--text-muted);
  padding:.55rem 1.2rem;border-radius:50px;font-weight:600;font-size:.88rem;transition:.25s ease;
}
.filter-btn.active,.filter-btn:hover{background:var(--gradient-brand);color:#fff;border-color:transparent;}

.project-card{overflow:hidden;height:100%;transition:.35s ease;}
.project-card:hover{transform:translateY(-8px);}
.project-img{overflow:hidden;}
.project-img img{width:100%;height:auto;transition:.5s ease;}
.project-card:hover .project-img img{transform:scale(1.05);}
.project-body{padding:1.8rem;}
.project-body h3{font-weight:700;font-size:1.2rem;margin-bottom:.6rem;}
.project-body p{color:var(--text-muted);font-size:.94rem;margin-bottom:1rem;}
.project-features{display:grid;gap:.4rem;margin-bottom:1.1rem;}
.project-features li{position:relative;padding-left:1.3rem;font-size:.88rem;color:var(--text-muted);}
.project-features li::before{content:"\f105";font-family:"Font Awesome 6 Free";font-weight:900;position:absolute;left:0;color:var(--primary);}
.project-tags{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1.2rem;}
.project-tags span{font-size:.75rem;font-weight:600;background:rgba(56,189,248,.12);color:var(--primary-dark);padding:.3rem .7rem;border-radius:50px;}
[data-theme="dark"] .project-tags span{color:var(--accent);}
.project-actions{display:flex;gap:.7rem;flex-wrap:wrap;}

/* ===== Certifications ===== */
.cert-card{padding:2rem 1.6rem;text-align:center;height:100%;transition:.3s ease;}
.cert-card:hover{transform:translateY(-6px);}
.cert-icon{width:64px;height:64px;border-radius:50%;background:var(--gradient-brand);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.5rem;margin:0 auto 1rem;}
.cert-card h3{font-size:1.05rem;font-weight:700;margin-bottom:.3rem;}
.cert-org{color:var(--text-muted);font-size:.9rem;margin-bottom:.6rem;}
.cert-date{font-family:var(--font-mono);font-size:.78rem;color:var(--primary);}

.highlight-strip{display:flex;gap:1.2rem;flex-wrap:wrap;justify-content:space-between;}
.highlight-item{
  flex:1 1 260px;display:flex;align-items:center;gap:1rem;padding:1.4rem 1.6rem;border-radius:var(--radius-md);
  background:var(--card-bg);border:1px solid var(--card-border);
}
.highlight-item i{font-size:1.4rem;color:var(--primary);}
.highlight-item p{margin:0;font-size:.9rem;color:var(--text-muted);}

/* ===== Resume ===== */
.resume-quick-list{display:grid;gap:.7rem;}
.resume-quick-list li{display:flex;align-items:center;gap:.6rem;font-size:.92rem;color:var(--text-muted);}
.resume-quick-list i{color:#22c55e;}
.resume-preview{padding:14px;height:600px;}
.resume-preview iframe{width:100%;height:100%;border:none;border-radius:12px;}

/* ===== Contact ===== */
.contact-info-panel{display:flex;flex-direction:column;gap:1.3rem;}
.contact-info-item{display:flex;align-items:center;gap:1rem;}
.contact-info-item i{width:44px;height:44px;border-radius:12px;background:rgba(10,102,194,.08);color:var(--primary);display:flex;align-items:center;justify-content:center;font-size:1.1rem;flex-shrink:0;}
.contact-info-item span{display:block;font-size:.76rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;}
.contact-info-item a{font-weight:600;}
.social-row{display:flex;gap:.8rem;padding-top:.5rem;border-top:1px solid var(--card-border);}
.social-row a{width:42px;height:42px;border-radius:50%;background:rgba(10,102,194,.08);color:var(--primary);display:flex;align-items:center;justify-content:center;transition:.25s ease;}
.social-row a:hover{background:var(--gradient-brand);color:#fff;transform:translateY(-3px);}
.map-embed{border-radius:14px;overflow:hidden;height:180px;}
.map-embed iframe{width:100%;height:100%;border:0;}

.contact-form .form-label{font-weight:600;font-size:.88rem;}
.contact-form .form-control{
  background:rgba(255,255,255,.6);border:1px solid rgba(15,23,42,.12);border-radius:12px;padding:.75rem 1rem;color:var(--text);
}
[data-theme="dark"] .contact-form .form-control{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.12);color:var(--text);}
.contact-form .form-control:focus{border-color:var(--primary);box-shadow:0 0 0 .2rem rgba(10,102,194,.15);background:#fff;color:var(--text);}
.contact-form .form-control.is-invalid{border-color:#ef4444;}
.form-status{font-size:.9rem;font-weight:600;}
.form-status.success{color:#22c55e;}
.form-status.error{color:#ef4444;}

/* ===== Footer ===== */
footer{background:var(--secondary);color:#cbd5e1;padding:60px 0 30px;margin-top:60px;}
.footer-top{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1.5rem;}
.footer-brand{font-weight:800;font-size:1.5rem;color:#fff;}
.footer-brand span{color:var(--accent);}
.footer-nav{display:flex;gap:1.6rem;flex-wrap:wrap;}
.footer-nav a{color:#cbd5e1;font-size:.9rem;transition:.25s ease;}
.footer-nav a:hover{color:var(--accent);}
.footer-social{display:flex;gap:.8rem;}
.footer-social a{width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;color:#fff;transition:.25s ease;}
.footer-social a:hover{background:var(--gradient-brand);transform:translateY(-3px);}
footer hr{border-color:rgba(255,255,255,.1);margin:2.2rem 0 1.4rem;}
.footer-bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem;font-size:.82rem;color:#94a3b8;}

/* ===== Back to top ===== */
#backToTop{
  position:fixed;bottom:28px;right:28px;width:48px;height:48px;border-radius:50%;border:none;
  background:var(--gradient-brand);color:#fff;font-size:1.05rem;box-shadow:0 10px 25px rgba(10,102,194,.4);
  opacity:0;visibility:hidden;transform:translateY(20px);transition:.35s ease;z-index:1500;cursor:pointer;
}
#backToTop.show{opacity:1;visibility:visible;transform:translateY(0);}
#backToTop:hover{transform:translateY(-4px);}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion:reduce){
  *{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important;}
}

/* ===== Focus visibility ===== */
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{
  outline:2px solid var(--primary);outline-offset:2px;
}
