/* =========================================================
   GOOGLE FONT
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;800&display=swap');

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

html{
  scroll-behavior:smooth;
  overflow-x:hidden;
  max-width:100%;
}

body{
  background: radial-gradient(circle at top,#0b0f2a,#050816);
  color:white;
  overflow-x:hidden;
  opacity:0;
  padding-top:88px;
  transition: opacity .5s ease;
}

body.loaded{
  opacity:1;
}

/* =========================================================
   PRELOADER
========================================================= */
.preloader{
  position:fixed;
  inset:0;
  z-index:99999;
  display:flex;
  align-items:center;
  justify-content:center;
  background:radial-gradient(circle at center,#0b0f2a,#050816);
  transition:opacity .6s ease, visibility .6s ease;
}

.preloader.hide{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

.preloader-content{
  text-align:center;
}

.preloader-logo{
  font-size:36px;
  font-weight:800;
  color:#fff;
  letter-spacing:.5px;
  opacity:0;
  animation:preloaderFadeUp .7s ease forwards;
}

.preloader-logo span{
  display:inline-block;
  color:#a855f7;
  animation:preloaderPulse 1.1s ease-in-out infinite;
}

@keyframes preloaderFadeUp{
  from{ opacity:0; transform:translateY(14px); }
  to{ opacity:1; transform:translateY(0); }
}

@keyframes preloaderPulse{
  0%,100%{ opacity:1; transform:scale(1); }
  50%{ opacity:.4; transform:scale(1.3); }
}

.preloader-bar{
  width:140px;
  height:3px;
  background:rgba(255,255,255,.1);
  border-radius:10px;
  margin:20px auto 0;
  overflow:hidden;
}

.preloader-bar span{
  display:block;
  height:100%;
  width:0%;
  background:linear-gradient(90deg,#6a5cff,#a855f7);
  border-radius:10px;
  box-shadow:0 0 12px rgba(168,85,247,.7);
  animation:preloaderProgress 1s ease forwards;
}

@keyframes preloaderProgress{
  to{ width:100%; }
}

body.menu-open{
  overflow:hidden;
}

a{
  color:inherit;
}

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

/* Offset anchored sections so the sticky header doesn't cover the heading */
section[id]{
  scroll-margin-top:90px;
}

/* =========================================================
   HEADER / NAVBAR
========================================================= */
.header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:1000;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 80px;
  background:rgba(5,8,22,.55);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.06);
  transition:.35s ease;
}

.header.scrolled{
  background:rgba(5,8,22,.88);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  box-shadow:0 8px 30px rgba(0,0,0,.35);
  padding:14px 80px;
}

.logo{
  font-size:24px;
  font-weight:600;
  white-space:nowrap;
}

.logo span{
  color:#a855f7;
}

.navbar{
  display:flex;
  align-items:center;
}

.nav-links{
  display:flex;
  align-items:center;
}

/* Sidebar-only elements: hidden on desktop, revealed in the mobile panel */
.nav-close,
.nav-profile,
.nav-footer,
.nav-link-icon{
  display:none;
}

.navbar .nav-link-arrow{
  display:none;
}

.navbar a{
  margin:0 15px;
  text-decoration:none;
  color:#ccc;
  position:relative;
  transition:0.3s;
  font-size:15px;
}

.navbar a:hover,
.navbar a.active{
  color:#a855f7;
}

.navbar a::after{
  content:"";
  position:absolute;
  width:0%;
  height:2px;
  background:#a855f7;
  left:0;
  bottom:-5px;
  transition:0.3s;
}

.navbar a:hover::after,
.navbar a.active::after{
  width:100%;
}

.header-actions{
  display:flex;
  align-items:center;
  gap:16px;
}

/* BUTTON */
.btn{
  display:inline-block;
  position:relative;
  overflow:hidden;
  background:linear-gradient(45deg,#6a5cff,#8a2be2);
  border:none;
  padding:10px 20px;
  border-radius:20px;
  color:white;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .3s ease;
  transform-style:preserve-3d;
  will-change:transform;
  box-shadow:0 0 15px rgba(138,43,226,0.5);
  font-size:14px;
  white-space:nowrap;
  text-decoration:none;
}

.btn::before{
  content:"";
  position:absolute;
  top:0;
  left:-75%;
  width:50%;
  height:100%;
  background:linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent);
  transform:skewX(-20deg);
  transition:left .65s ease;
  pointer-events:none;
}

.btn:hover::before{
  left:130%;
}

.btn:hover{
  box-shadow:0 12px 34px rgba(138,43,226,.75);
}

.btn-label{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.btn-ripple{
  position:absolute;
  border-radius:50%;
  background:rgba(255,255,255,.7);
  transform:scale(0);
  animation:btnRipple .65s ease-out forwards;
  pointer-events:none;
}

@keyframes btnRipple{
  to{
    transform:scale(3.2);
    opacity:0;
  }
}

.btn.success{
  background:linear-gradient(45deg,#22c55e,#16a34a);
  box-shadow:0 0 20px rgba(34,197,94,.6);
}

.btn.success i{
  animation:btnCheckPop .4s ease;
}

@keyframes btnCheckPop{
  0%{ transform:scale(0); opacity:0; }
  60%{ transform:scale(1.3); opacity:1; }
  100%{ transform:scale(1); }
}

/* MOBILE MENU TOGGLE */
.menu-toggle{
  display:none;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  width:42px;
  height:42px;
  padding:0;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.05);
  cursor:pointer;
  transition:.3s;
}

.menu-toggle:hover{
  border-color:rgba(168,85,247,.4);
  background:rgba(168,85,247,.08);
}

.menu-toggle span{
  display:block;
  width:20px;
  height:2px;
  border-radius:2px;
  background:#fff;
  transition:transform .3s ease, opacity .2s ease;
}

.menu-toggle.active span:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2){
  opacity:0;
}

.menu-toggle.active span:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
}

.nav-overlay{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  z-index:998;
  opacity:0;
  visibility:hidden;
  transition:.3s;
}

.nav-overlay.active{
  opacity:1;
  visibility:visible;
}

/* =========================================================
   SHARED SECTION COMPONENTS (tag / heading / line / sub / desc / quote)
========================================================= */
.tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:rgba(255,255,255,0.05);
  padding:7px 16px;
  border-radius:20px;
  margin-bottom:10px;
  font-size:13px;
  border:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(10px);
}

h1{
  font-size:55px;
  font-weight:800;
}

h1 span{
  background:linear-gradient(45deg,#6a5cff,#a855f7);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}

.line{
  width:60px;
  height:3px;
  background:#a855f7;
  margin:10px auto;
  border-radius:20px;
}

.sub{
  color:#aaa;
  margin-bottom:35px;
}

.desc{
  color:#aaa;
  line-height:1.7;
}

.quote{
  margin-top:40px;
  padding:30px;
  border-radius:20px;
  background:rgba(255,255,255,0.05);
  backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,0.1);
  box-shadow:0 0 25px rgba(138,43,226,0.2);
  text-align:center;
  position:relative;
}

.quote i{
  font-size:35px;
  color:#a855f7;
  display:block;
  margin-bottom:10px;
}

.quote p{
  color:#bbb;
  max-width:800px;
  margin:0 auto;
}

.quote span{
  color:#a855f7;
  font-weight:500;
}

.cert-quote{
  margin:0 auto 35px;
  max-width:1000px;
}

/* =========================================================
   HOME
========================================================= */
.home{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:50px 80px 40px;
  gap:40px;
}

.home .content{
  max-width:500px;
}

.hello{
  background:rgba(255,255,255,0.05);
  padding:6px 14px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  margin-bottom:15px;
  display: inline-flex;
  width: fit-content;
}

.home h1{
  font-size:60px;
  font-weight:800;
}

.home h3{
  margin:10px 0;
  font-weight:400;
}

.home h3 span{
  color:#a855f7;
}

.home .desc{
  margin:20px 0;
  border-left:3px solid #a855f7;
  padding-left:12px;
}

.buttons{
  margin-top:25px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.primary,
.secondary{
  display:inline-block;
  text-decoration:none;
  font-size:15px;
}

.primary{
  background:linear-gradient(45deg,#6a5cff,#8a2be2);
  border:none;
  padding:12px 22px;
  border-radius:30px;
  cursor:pointer;
  transition:0.3s;
  box-shadow:0 0 20px rgba(138,43,226,0.6);
  color:#fff;
}

.primary:hover{
  transform:translateY(-5px);
  box-shadow:0 0 30px rgba(138,43,226,0.9);
}

.secondary{
  background:transparent;
  border:1px solid rgba(255,255,255,0.2);
  padding:12px 22px;
  border-radius:30px;
  color:white;
  cursor:pointer;
  backdrop-filter: blur(10px);
  transition:0.3s;
}

.secondary:hover{
  background:rgba(138,43,226,0.2);
}

.socials{
  display:flex;
  margin-top:30px;
}

.socials a{
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-right:12px;
  border-radius:50%;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.1);
  cursor:pointer;
  transition:0.3s;
  text-decoration:none;
  font-size:18px;
}

.socials a:hover{
  background:#8a2be2;
  transform:scale(1.2);
  box-shadow:0 0 15px #8a2be2;
}

/* RIGHT IMAGE (home) */
.home .image-box{
  position:relative;
  right: 40px;
  flex-shrink:0;
}

.home .image-box::before{
  content:"";
  position:absolute;
  width:380px;
  height:380px;
  border-radius:50%;
  background: radial-gradient(circle,#7c3aed,#3b82f6);
  filter: blur(70px);
  z-index:0;
  animation: pulse 4s infinite;
}

.home .image-box img{
  width:300px;
  border-radius:50%;
  position:relative;
  z-index:2;
}

.card{
  position:absolute;
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:14px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  font-size:12px;
  color:#fff;
  box-shadow:0 0 25px rgba(138,43,226,0.2);
  animation: float 3s ease-in-out infinite;
  z-index:3;
}

.card1{ top:20%; left:-20%; }
.card2{ top:5%; right:-15%; }
.card3{ bottom:10%; right:-13%; }

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

.card i{
  font-size: 16px;
  color: #a855f7;
}

@keyframes pulse{
  0%{ transform:scale(1); opacity:0.6;}
  50%{ transform:scale(1.1); opacity:1;}
  100%{ transform:scale(1); opacity:0.6;}
}

/* STATS */
.stats{
  margin:20px 80px 0;
  padding:30px 25px;
  display:flex;
  justify-content:space-around;
  background:rgba(255,255,255,0.05);
  border-radius:20px;
  backdrop-filter: blur(15px);
  border:1px solid rgba(255,255,255,0.08);
  flex-wrap:wrap;
  gap:20px;
}

.stat{
  text-align:center;
  flex:1;
  min-width:150px;
  max-width:220px;
  position:relative;
  padding:0 12px;
}

.stat:not(:last-child)::after{
  content:"";
  position:absolute;
  right:0;
  top:8%;
  height:84%;
  width:1px;
  background:rgba(255,255,255,0.1);
}

.stat-icon{
  width:56px;
  height:56px;
  margin:0 auto 14px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1.5px solid rgba(168,85,247,.45);
  background:rgba(168,85,247,.08);
  box-shadow:0 0 18px rgba(168,85,247,.25);
  transition:.3s;
}

.stat:hover .stat-icon{
  transform:translateY(-4px);
  box-shadow:0 0 26px rgba(168,85,247,.5);
}

.stat-icon i{
  font-size:22px;
  color:#a855f7;
}

.stat h4{
  color:#fff;
  font-size:15px;
  font-weight:700;
  margin-bottom:8px;
}

.stat p{
  color:#999;
  font-size:12.5px;
  line-height:1.6;
}

.scroll{
  display:flex;
  justify-content:center;
  margin-top:30px;
}

.scroll::before{
  content:"";
  width:20px;
  height:35px;
  border:2px solid #a855f7;
  border-radius:20px;
  position:relative;
}

.scroll::after{
  content:"";
  width:5px;
  height:5px;
  background:#a855f7;
  border-radius:50%;
  position:absolute;
  animation: scrollAnim 1.5s infinite;
}

@keyframes scrollAnim{
  0%{ transform:translateY(5px); opacity:1;}
  100%{ transform:translateY(20px); opacity:0;}
}

/* =========================================================
   ABOUT
========================================================= */
.about{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:15px 80px 25px;
  gap:40px;
}

.about-left{
  position:relative;
  margin-left: 30px;
  flex-shrink:0;
}

.about .image-box{
  position:relative;
  width:420px;
  height:420px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.about .image-box img{
  width:320px;
  border-radius:50%;
  position:relative;
  z-index:3;
}

.about .image-box::before{
  content:"";
  position:absolute;
  width:420px;
  height:420px;
  border-radius:50%;
  background: conic-gradient(#a855f7, #3b82f6, #a855f7);
  filter: blur(20px);
  z-index:1;
}

.about .image-box::after{
  content:"";
  position:absolute;
  width:340px;
  height:340px;
  background:#050816;
  border-radius:50%;
  z-index:2;
}

.motto{
  position:absolute;
  bottom:10px;
  left:90px;
  display:flex;
  gap:12px;
  background:rgba(255,255,255,0.05);
  padding:15px 18px;
  border-radius:15px;
  backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,0.1);
  z-index: 5;
}

.motto i{
  font-size:22px;
  color:#a855f7;
}

.motto span{
  color:#a855f7;
}

.about-right{
  max-width:650px;
  width: 100%;
}

.about .line{
  margin:10px 0 20px;
}

.about .desc{
  border-left:3px solid #a855f7;
  padding-left:12px;
}

.heading{
  font-size:52px;
  font-weight:800;
}

.heading span{
  background:linear-gradient(45deg,#6a5cff,#a855f7);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}

.about-highlights{
  display:flex;
  margin:30px 0;
  padding:22px;
  border-radius:20px;
  background:rgba(255,255,255,0.05);
  backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,0.1);
  flex-wrap:wrap;
  gap:20px;
}

.highlight-item{
  flex:1;
  min-width:150px;
  text-align:left;
  position:relative;
  padding-right:16px;
}

.highlight-item:not(:last-child)::after{
  content:"";
  position:absolute;
  right:0;
  top:2px;
  height:calc(100% - 4px);
  width:1px;
  background:rgba(255,255,255,0.12);
}

.highlight-icon{
  width:40px;
  height:40px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(168,85,247,.15);
  color:#a855f7;
  font-size:18px;
  margin-bottom:12px;
}

.highlight-item h4{
  color:#fff;
  font-size:14px;
  font-weight:700;
  margin-bottom:6px;
}

.highlight-item p{
  color:#999;
  font-size:12.5px;
  line-height:1.5;
}

.about-right .title{
  margin-top:25px;
  font-size:20px;
  font-weight:600;
  position:relative;
}

.about-right .title::before{
  content:"";
  position:absolute;
  left:-12px;
  top:5px;
  width:4px;
  height:18px;
  background:#a855f7;
}

.services{
  display:flex;
  gap:20px;
  margin-top:20px;
  flex-wrap:wrap;
}

.service{
  background:rgba(255,255,255,0.05);
  padding:20px;
  border-radius:14px;
  flex:1;
  min-width:200px;
  text-align:left;
  transition:0.3s;
  border:1px solid rgba(255,255,255,0.1);
}

.service:hover{
  transform:translateY(-6px);
  background:rgba(138,43,226,0.15);
  border-color:rgba(168,85,247,.35);
}

.service-icon{
  width:42px;
  height:42px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(138,43,226,0.2);
  color:#a855f7;
  font-size:19px;
  margin-bottom:14px;
}

.service h3{
  font-size:15px;
  color:#fff;
  margin-bottom:8px;
}

.service p{
  font-size:12.5px;
  color:#aaa;
  line-height:1.6;
}

.bottom-section{
  padding:10px 80px 25px;
}

.drives-me{
  display:flex;
  align-items:center;
  gap:24px;
  padding:12px 24px;
  border-radius:20px;
  background:rgba(255,255,255,0.05);
  backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,0.1);
  flex-wrap:wrap;
}

.drives-icon{
  width:56px;
  height:56px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(168,85,247,.12);
  border:1.5px solid rgba(168,85,247,.4);
  color:#a855f7;
  font-size:24px;
  flex-shrink:0;
}

.drives-text{
  flex:1;
  min-width:220px;
}

.drives-text h3{
  color:#fff;
  font-size:18px;
  margin-bottom:8px;
}

.drives-text p{
  color:#aaa;
  font-size:13.5px;
  line-height:1.6;
}

.drives-illustration{
  width:230px;
  flex-shrink:0;
}

.drives-illustration img{
  width:100%;
  height:auto;
  display:block;
  border-radius:12px;
  opacity:.9;
}

/* =========================================================
   SKILLS
========================================================= */
.skills{
  text-align:center;
  padding:35px 80px;
}

.skills-container{
  display:flex;
  gap:30px;
}

.skill-box{
  flex:1;
  padding:30px;
  border-radius:20px;
  background:rgba(255,255,255,0.05);
  backdrop-filter:blur(15px);
  border:1px solid rgba(255,255,255,0.1);
  transition:0.3s;
  position:relative;
}

.skill-box:hover{
  transform:translateY(-8px);
  box-shadow:0 0 25px #8a2be2;
}

.icon-circle{
  width:60px;
  height:60px;
  border-radius:50%;
  margin:auto;
  margin-bottom:15px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(168,85,247,0.2);
}

.icon-circle i{
  font-size:26px;
  color:#a855f7;
}

.skill-box h3{
  margin-bottom:4px;
}

/* TECH CHIP GRID */
.tech-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-top:22px;
}

.tech-grid.cols-2{
  grid-template-columns:repeat(2,1fr);
}

.tech-chip{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 10px;
  border-radius:12px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.07);
  font-size:12px;
  font-weight:500;
  color:#ddd;
  text-align:left;
  transition:.3s ease;
}


.tech-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:26px;
  height:26px;
  border-radius:8px;
  font-size:15px;
  color:#fff;
  flex-shrink:0;
  font-style:normal;
  font-weight:700;
  letter-spacing:.2px;
}

.tech-icon.html{ background:#e34f26; }
.tech-icon.css{ background:#1572b6; }
.tech-icon.js{ background:#f7df1e; color:#1a1a1a; }
.tech-icon.tailwind{ background:rgba(56,189,248,.16); color:#38bdf8; }
.tech-icon.react{ background:rgba(97,218,251,.16); color:#61dafb; }
.tech-icon.typescript{ background:rgba(49,120,198,.18); color:#3178c6; }
.tech-icon.mysql{ background:#4479a1; font-size:9.5px; }
.tech-icon.php{ background:rgba(119,123,180,.2); color:#8892be; }
.tech-icon.dotnet{ background:#5c2d91; font-size:9.5px; }
.tech-icon.node{ background:rgba(131,205,41,.16); color:#83cd29; }
.tech-icon.git{ background:rgba(240,80,50,.18); color:#f05032; }
.tech-icon.github{ background:rgba(255,255,255,.12); color:#fff; }
.tech-icon.vscode{ background:rgba(0,122,204,.18); color:#3596f0; }
.tech-icon.linux{ background:rgba(255,255,255,.1); color:#f7c948; }
.tech-icon.xampp{ background:#fb7a24; font-size:10px; }
.tech-icon.gsap{ background:rgba(136,206,2,.16); color:#88ce02; }
.tech-icon.lenis{ background:rgba(45,212,191,.16); color:#2dd4bf; }

/* Scroll-reveal for skill cards - relies on the base .skill-box transition (0.4s) so it doesn't override the hover transition */
.skill-box{
  opacity:0;
}

.skill-box.show{
  opacity:1;
}

.soft{
  margin-top:50px;
  padding:35px;
  border-radius:20px;
  background:rgba(255,255,255,0.05);
  backdrop-filter:blur(15px);
  border:1px solid rgba(255,255,255,0.1);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:40px;
  box-shadow:0 0 40px rgba(138,43,226,0.15);
  flex-wrap:wrap;
}

.soft:hover{
  box-shadow: 0 0 60px rgba(168,85,247,0.3);
}

.soft-left{
  display:flex;
  align-items:center;
  gap:15px;
  max-width:300px;
  text-align:left;
}

.soft-left i{
  font-size:40px;
  color:#a855f7;
}

.soft-left h4{
  font-size:16px;
}

.soft-left p{
  font-size:13px;
  color:#aaa;
}

.soft-right{
  display:flex;
  flex:1;
  justify-content:space-around;
  align-items:center;
  flex-wrap:wrap;
  gap:20px;
}

.soft-item{
  text-align:center;
  flex:1;
  min-width:90px;
  position:relative;
  transition:transform .3s ease;
}

.soft-item:hover{
  transform:translateY(-4px);
}

.soft-item:hover i{
  color:#fff;
  text-shadow:0 0 12px rgba(168,85,247,.8);
}

.soft-item:not(:last-child)::after{
  content:"";
  position:absolute;
  right:0;
  top:20%;
  height:60%;
  width:1px;
  background:rgba(255,255,255,0.15);
}

.soft-item i{
  font-size:26px;
  color:#a855f7;
  margin-bottom:8px;
  transition:.3s ease;
}

.soft-item p{
  font-size:13px;
  color:#ccc;
}

/* =========================================================
   PROJECTS
========================================================= */
.projects{
  text-align:center;
  padding:35px 80px;
}

.projects-container{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:25px;
}

.project-card{
  background:rgba(255,255,255,0.05);
  border-radius:20px;
  overflow:hidden;
  transition:0.4s;
  border:1px solid rgba(255,255,255,0.1);
  position:relative;
  text-align:left;
}

.project-card:hover{
  transform:translateY(-12px);
  box-shadow:0 0 35px rgba(168,85,247,0.6);
}

.img-box{
  position:relative;
  overflow:hidden;
}

.img-box img{
  width:100%;
  height:180px;
  object-fit:cover;
  transition:0.4s;
}

.project-card:hover .img-box img{
  transform:scale(1.08);
}

.img-box::after{
  content:"";
  position:absolute;
  width:100%;
  height:100%;
  top:0;
  left:0;
  background:linear-gradient(transparent, rgba(0,0,0,0.6));
  opacity:0;
  transition:0.3s;
}

.project-card:hover .img-box::after{
  opacity:1;
}

.badge{
  position:absolute;
  top:10px;
  right:10px;
  background:linear-gradient(45deg,#6a5cff,#a855f7);
  padding:5px 12px;
  border-radius:20px;
  font-size:12px;
}

.badge.processing{
  background:linear-gradient(45deg,#f59e0b,#f97316);
}

.project-card .content{
  padding:18px;
  text-align:left;
}

.project-card .content h3{
  margin-bottom:8px;
  font-size:18px;
}

.project-card .content p{
  color:#aaa;
  font-size:14px;
}

.tech{
  margin:12px 0;
  font-size:12px;
  color:#888;
}

.link{
  background:none;
  border:none;
  padding:0;
  font-family:inherit;
  cursor:pointer;
  color:#a855f7;
  text-decoration:none;
  font-size:14px;
  display:inline-flex;
  align-items:center;
  gap:5px;
  transition:0.3s;
}

.link:hover{
  gap:10px;
}

.view-more{
  margin-top:50px;
}

.view-more button{
  padding:12px 28px;
  border-radius:25px;
  border:1px solid rgba(255,255,255,0.1);
  background:rgba(255,255,255,0.05);
  color:white;
  cursor:pointer;
  transition:0.3s;
  font-family:inherit;
}

.view-more button:hover{
  background:linear-gradient(45deg,#6a5cff,#a855f7);
  box-shadow:0 0 20px #a855f7;
  transform:translateY(-3px);
}

/* =========================================================
   EDUCATION
========================================================= */
.education{
  text-align:center;
  padding:35px 80px;
}

.timeline{
  position:relative;
  max-width:1000px;
  margin:40px auto;
}

.timeline::before{
  content:"";
  position:absolute;
  left:50%;
  top:0;
  transform:translateX(-50%);
  width:3px;
  height:100%;
  background:linear-gradient(#6a5cff,#a855f7);
  box-shadow:0 0 20px #8a2be2;
}

.timeline-item{
  position:relative;
  width:100%;
  margin:60px 0;
}

.timeline-item.left .content{
  width:42%;
  margin-right:auto;
  text-align:left;
}

.timeline-item.right .content{
  width:42%;
  margin-left:auto;
  text-align:left;
}

.timeline-item .content{
  padding:25px;
  border-radius:20px;
  background:rgba(255,255,255,0.05);
  backdrop-filter:blur(15px);
  border:1px solid rgba(255,255,255,0.1);
  transition:0.3s;
  position:relative;
}

.timeline-item .content:hover{
  transform:translateY(-8px);
  box-shadow:0 0 25px #8a2be2;
}

.timeline-item .content i{
  font-size:24px;
  color:#a855f7;
  margin-bottom:10px;
}

.timeline-item .content h3{
  margin-bottom:5px;
}

.timeline-item .content span{
  color:#a855f7;
  font-size:13px;
}

.timeline-item .content p{
  color:#aaa;
  font-size:14px;
  margin-top:8px;
}

.dot{
  position:absolute;
  left:50%;
  top:20px;
  transform:translateX(-50%);
  width:16px;
  height:16px;
  background:white;
  border-radius:50%;
  z-index:2;
  box-shadow:0 0 15px #a855f7, 0 0 30px #a855f7;
}

.label{
  position:absolute;
  top:50%;
  transform:translateY(-300%);
  padding:6px 14px;
  border-radius:15px;
  font-size:12px;
  color:#a855f7;
  background:rgba(138,43,226,0.2);
  border:1px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 10px rgba(138,43,226,0.5);
}

.present{
  transform: translateY(-495%);
}

.timeline-item.left .label{
  left:calc(50% + 20px);
}

.timeline-item.right .label{
  left:calc(50% - 80px);
}

.status-badge{
  position:absolute;
  top:10px;
  right:22px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 14px;
  border-radius:50px;
  font-size:13px;
  font-weight:600;
}

.graduated,
.completed{
  background:rgba(34,197,94,.15);
  color:#4ade80;
  border:1px solid rgba(74,222,128,.35);
}

.status-badge i{
  display:inline-flex;
  align-items:center;
  color:#4ade80 !important;
  font-size:16px !important;
  line-height:0;
  margin:0;
}

.cgpa-box{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:18px;
  padding:10px 18px;
  border-radius:12px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  color:#fff;
  font-size:14px;
}

.cgpa-box i{
  color:#ffd43b !important;
  font-size:18px !important;
  margin:0;
}

/* =========================================================
   CERTIFICATIONS
========================================================= */
.certificate-section{
  padding:35px 8% 25px;
  text-align:center;
}

.section-title h1{
  margin-top:20px;
  color:#fff;
}

.certificate-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(270px,1fr));
  gap:24px;
}

.certificate-card{
  background:rgba(255,255,255,.05);
  backdrop-filter:blur(18px);
  border:1px solid rgba(255,255,255,.08);
  border-radius:24px;
  overflow:hidden;
  transition:.4s;
  position:relative;
  opacity:0;
  transform:translateY(40px);
  text-align:left;
}

.certificate-card.show{
  opacity:1;
  transform:translateY(0);
  transition:.7s ease;
}

.certificate-card:hover{
  transform:translateY(-12px);
  box-shadow:0 0 40px rgba(124,77,255,.35);
}

.certificate-card.show:hover{
  transform:translateY(-12px);
}

.certificate-image{
  height:170px;
  overflow:hidden;
}

.certificate-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:.5s;
  cursor:pointer;
}

.certificate-card:hover .certificate-image img{
  transform:scale(1.06);
}

.certificate-content{
  padding:18px;
  text-align:left;
}

.certificate-content h3{
  color:#fff;
  font-size:17px;
  margin-bottom:8px;
  line-height:1.3;
}

.certificate-content p{
  color:#bdbdbd;
  line-height:1.55;
  font-size:13px;
  margin-bottom:14px;
}

.certificate-info{
  display:flex;
  justify-content:space-between;
  margin-bottom:16px;
  flex-wrap:wrap;
  gap:10px;
}

.certificate-info span{
  color:#9e9e9e;
  font-size:12px;
}

.certificate-info i{
  color:#9f67ff;
  margin-right:5px;
}

.view-btn{
  width:100%;
  padding:11px;
  border:none;
  border-radius:12px;
  cursor:pointer;
  font-size:13px;
  font-weight:600;
  color:#fff;
  background:linear-gradient(135deg,#6d3cff,#9f67ff);
  transition:.35s;
  font-family:inherit;
}

.view-btn:hover{
  transform:translateY(-3px);
  box-shadow:0 0 25px rgba(124,77,255,.55);
}

.view-btn i{
  margin-left:8px;
}

.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.85);
  backdrop-filter:blur(12px);
  display:flex;
  justify-content:center;
  align-items:center;
  opacity:0;
  visibility:hidden;
  transition:.35s;
  z-index:9999;
  padding:20px;
}

.modal.active{
  opacity:1;
  visibility:visible;
}

.modal-content{
  width:90%;
  max-width:950px;
  background:#111827;
  border:1px solid rgba(255,255,255,.08);
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 0 50px rgba(124,77,255,.4);
  animation:popup .35s ease;
}

@keyframes popup{
  from{ transform:scale(.9); opacity:0; }
  to{ transform:scale(1); opacity:1; }
}

.modal-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 25px;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.modal-header h2{
  color:#fff;
  font-size:22px;
}

.close-modal{
  width:42px;
  height:42px;
  border:none;
  border-radius:50%;
  background:#6d3cff;
  color:#fff;
  cursor:pointer;
  font-size:22px;
  transition:.3s;
  flex-shrink:0;
}

.close-modal:hover{
  transform:rotate(90deg);
  box-shadow:0 0 18px #7c4dff;
}

.modal-body{
  padding:25px;
  display:flex;
  justify-content:center;
}

.modal-body img{
  width:100%;
  max-height:75vh;
  object-fit:contain;
  border-radius:14px;
}

.modal-footer{
  display:flex;
  justify-content:center;
  gap:20px;
  padding:18px;
  border-top:1px solid rgba(255,255,255,.08);
}

.modal-footer button{
  padding:12px 24px;
  border:none;
  border-radius:12px;
  background:#6d3cff;
  color:#fff;
  cursor:pointer;
  transition:.3s;
  font-family:inherit;
}

.modal-footer button:hover{
  transform:translateY(-2px);
  box-shadow:0 0 20px rgba(124,77,255,.5);
}

/* =========================================================
   PROJECT DETAIL MODAL
========================================================= */
.project-modal-content{
  max-width:1100px;
  max-height:88vh;
  overflow-y:auto;
  scrollbar-width:none;
  position:relative;
  padding:0;
}

.project-modal-content::-webkit-scrollbar{
  display:none;
}

.project-close{
  position:absolute;
  top:20px;
  right:20px;
  width:40px;
  height:40px;
  border-radius:50%;
  background:rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.25);
  color:#fff;
  font-size:20px;
  cursor:pointer;
  transition:.3s;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

.project-close:hover{
  background:#6d3cff;
  border-color:#6d3cff;
  transform:rotate(90deg);
}

.project-modal-grid{
  display:flex;
  flex-wrap:wrap;
  gap:35px;
  padding:45px 40px 30px;
  align-items:flex-start;
}

.project-modal-left{
  flex:1 1 380px;
  text-align:left;
}

.project-modal-left .badge{
  position:static;
  display:inline-block;
  background:rgba(168,85,247,.14);
  border:1px solid rgba(168,85,247,.5);
  color:#c9a6ff;
  padding:6px 16px;
  border-radius:20px;
  font-size:12px;
  font-weight:600;
  margin-bottom:16px;
}

.project-modal-left .badge.processing{
  background:rgba(249,115,22,.14);
  border:1px solid rgba(249,115,22,.5);
  color:#fbbf7d;
}

.project-modal-title{
  font-size:30px;
  font-weight:800;
  margin-bottom:14px;
  color:#fff;
  line-height:1.25;
}

.project-modal-title span{
  background:linear-gradient(45deg,#6a5cff,#a855f7);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}

.project-modal-tagline{
  color:#bbb;
  line-height:1.7;
  margin-bottom:8px;
  font-size:15px;
}

.pm-heading{
  color:#a855f7;
  font-size:14px;
  font-weight:700;
  letter-spacing:.3px;
  margin-bottom:12px;
  margin-top:24px;
}

.pm-overview{
  color:#aaa;
  line-height:1.7;
  font-size:14px;
}

.pm-tech-stack{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.pm-tech-stack .tech-chip{
  flex:0 0 auto;
}

.pm-features{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.pm-features li{
  display:flex;
  align-items:center;
  gap:10px;
  color:#ddd;
  font-size:14px;
}

.pm-features li i{
  color:#4ade80;
  font-size:17px;
  flex-shrink:0;
}

.pm-links{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.pm-live-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:linear-gradient(45deg,#6a5cff,#a855f7);
  color:#fff;
  padding:12px 22px;
  border-radius:12px;
  font-weight:600;
  font-size:14px;
  transition:.3s;
}

.pm-live-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 0 20px rgba(124,77,255,.5);
}

.project-modal-right{
  flex:1 1 380px;
  align-self:flex-start;
}

.project-modal-right img{
  width:100%;
  aspect-ratio:16/9;
  height:auto;
  object-fit:cover;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 0 40px rgba(0,0,0,.4);
}

.project-modal-footer{
  position:sticky;
  bottom:0;
  background:#111827;
  border-top:1px solid rgba(255,255,255,.08);
  padding:18px 40px;
}

/* =========================================================
   CONTACT
========================================================= */
.contact{
  text-align:center;
  padding:35px 80px;
  position:relative;
  isolation:isolate;
}

.bg-glow{
  position:absolute;
  width:400px;
  height:400px;
  border-radius:50%;
  filter:blur(120px);
  opacity:.25;
  z-index:-1;
  pointer-events:none;
}

.bg-glow.left{ top:-100px; left:-150px; background:#6a5cff; }
.bg-glow.right{ bottom:-100px; right:-150px; background:#a855f7; }

.contact-container{
  display:flex;
  gap:30px;
  position:relative;
  z-index:2;
  text-align:left;
}

.left-box,
.right-box{
  flex:1;
  padding:25px;
  border-radius:20px;
  background:rgba(255,255,255,0.05);
  backdrop-filter:blur(15px);
  border:1px solid rgba(255,255,255,0.1);
  transition:0.3s;
  min-width:0;
}

.left-box{
  position:relative;
  overflow:hidden;
}

.left-box:hover,
.right-box:hover{
  transform:translateY(-5px);
  box-shadow:0 0 30px rgba(138,43,226,0.3);
}

.left-box .title,
.right-box .title{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:10px;
}

.title-icon{
  width:45px;
  height:45px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:rgba(138,43,226,0.15);
  color:#a855f7;
  box-shadow:0 0 20px rgba(138,43,226,0.5);
  flex-shrink:0;
}

.title-icon i{
  font-size:20px;
}

.left-box .divider{
  width:100%;
  height:1px;
  background:rgba(255,255,255,0.1);
  margin:15px 0 20px;
}

.left-box .info{
  display:flex;
  gap:15px;
  margin:18px 0;
  align-items:center;
}

.icon{
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:rgba(138,43,226,0.15);
  color:#a855f7;
  font-size:18px;
  box-shadow:0 0 15px rgba(138,43,226,0.4);
  transition:0.3s;
  flex-shrink:0;
}

.left-box .info:hover .icon{
  transform:scale(1.1);
  box-shadow:0 0 25px rgba(138,43,226,0.8);
}

.follow{
  margin-top:20px;
  margin-bottom:10px;
  font-weight:500;
  color:#ccc;
}

.social{
  margin-top:10px;
}

.social a{
  width:45px;
  height:45px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:rgba(255,255,255,0.05);
  margin-right:10px;
  transition:0.3s;
  text-decoration:none;
  font-size:18px;
}

.social a:hover{
  transform:scale(1.2);
  background:#a855f7;
  box-shadow:0 0 20px #a855f7;
}

.left-box::after{
  content:"";
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:3px;
  background:linear-gradient(90deg,#6a5cff,#a855f7);
  opacity:0.7;
}

/* FORM */
.input-row{
  display:flex;
  gap:10px;
}

.input-box{
  position:relative;
  width:100%;
  margin:15px 0;
}

.input-box input,
.input-box textarea{
  width:100%;
  padding:14px;
  border-radius:10px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.1);
  color:white;
  outline:none;
  transition:0.3s;
  font-family:inherit;
  font-size:14px;
}

.input-box input:focus,
.input-box textarea:focus{
  border-color:#a855f7;
  box-shadow:0 0 12px rgba(168,85,247,0.35);
}

.input-box.error input,
.input-box.error textarea{
  border-color:#f87171;
  box-shadow:0 0 12px rgba(248,113,113,0.25);
}

.input-box textarea{
  height:120px;
  resize:vertical;
}

.input-box label{
  position:absolute;
  left:12px;
  top:14px;
  color:#aaa;
  font-size:14px;
  pointer-events:none;
  transition:0.3s;
  background:transparent;
}

.input-box i{
  position:absolute;
  right:14px;
  top:24px;
  color:#a855f7;
}

.input-box.textarea i{
  top:24px;
}

.input-box input:focus ~ label,
.input-box input:not(:placeholder-shown) ~ label,
.input-box textarea:focus ~ label,
.input-box textarea:not(:placeholder-shown) ~ label{
  top:-8px;
  font-size:12px;
  color:#a855f7;
  background:#0b0f2a;
  padding:0 4px;
  left:8px;
}

.error-msg{
  display:block;
  min-height:16px;
  color:#f87171;
  font-size:12px;
  margin-top:5px;
}

.send-btn{
  width:100%;
  padding:14px;
  border:none;
  border-radius:25px;
  background:linear-gradient(45deg,#6a5cff,#a855f7);
  color:white;
  cursor:pointer;
  transition:0.3s;
  margin-top:10px;
  box-shadow:0 0 20px rgba(138,43,226,0.5);
  font-family:inherit;
  font-size:15px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.send-btn:hover{
  transform:scale(1.05);
  box-shadow:0 0 30px rgba(138,43,226,0.8);
}

.send-btn:disabled{
  opacity:.7;
  cursor:not-allowed;
  transform:none;
}

.honeypot{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

.form-status{
  margin-top:14px;
  font-size:14px;
  text-align:center;
  min-height:20px;
}

.form-status.success{
  color:#4ade80;
}

.form-status.error{
  color:#f87171;
}

/* =========================================================
   FOOTER
========================================================= */
.footer{
  margin-top:25px;
  padding:28px 80px;
  border-top:1px solid rgba(255,255,255,0.08);
  background:rgba(255,255,255,0.02);
  text-align:center;
}

.footer p{
  color:#888;
  font-size:13px;
}

/* =========================================================
   BACK TO TOP
========================================================= */
.back-to-top{
  position:fixed;
  bottom:30px;
  right:30px;
  width:48px;
  height:48px;
  border-radius:50%;
  border:none;
  background:linear-gradient(45deg,#6a5cff,#a855f7);
  color:#fff;
  font-size:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 0 20px rgba(138,43,226,0.6);
  opacity:0;
  visibility:hidden;
  transform:translateY(20px);
  transition:.3s;
  z-index:900;
}

.back-to-top.show{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.back-to-top:hover{
  transform:translateY(-4px);
  box-shadow:0 0 30px rgba(138,43,226,0.9);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width:1200px){

  .header{ padding:20px 40px; }
  .header.scrolled{ padding:14px 40px; }
  .navbar a{ margin:0 10px; font-size:14px; }

  .home{ padding-left:40px; padding-right:40px; }
  .about{ padding-left:40px; padding-right:40px; }
  .bottom-section{ padding-left:40px; padding-right:40px; }
  .skills{ padding-left:40px; padding-right:40px; }
  .projects{ padding-left:40px; padding-right:40px; }
  .education{ padding-left:40px; padding-right:40px; }
  .certificate-section{ padding-left:5%; padding-right:5%; }
  .contact{ padding-left:40px; padding-right:40px; }
  .footer{ padding-left:40px; padding-right:40px; }
  .stats{ margin:0 40px; }

  .projects-container{ grid-template-columns:repeat(2,1fr); }
}

@media (max-width:1100px){

  .navbar{
    position:fixed;
    top:0;
    right:0;
    height:100vh;
    width:min(320px,85%);
    background:linear-gradient(180deg, rgba(14,11,36,.98), rgba(5,8,22,.98));
    backdrop-filter:blur(18px);
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    padding:70px 22px 36px;
    transform:translateX(100%);
    transition:.35s ease;
    z-index:999;
    border-left:1px solid rgba(255,255,255,0.08);
    overflow-y:auto;
  }

  .navbar.active{
    transform:translateX(0);
  }

  /* CLOSE BUTTON */
  .nav-close{
    display:flex;
    align-items:center;
    justify-content:center;
    position:absolute;
    top:18px;
    right:18px;
    width:38px;
    height:38px;
    border-radius:10px;
    border:1px solid rgba(255,255,255,.15);
    background:rgba(255,255,255,.05);
    color:#fff;
    font-size:20px;
    cursor:pointer;
    transition:.3s;
  }

  .nav-close:hover{
    border-color:rgba(168,85,247,.5);
    background:rgba(168,85,247,.12);
    transform:rotate(90deg);
  }

  /* PROFILE */
  .nav-profile{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    margin-bottom:22px;
  }

  .nav-profile-name{
    font-size:16px;
    font-weight:700;
    color:#fff;
  }

  .nav-profile-divider{
    display:flex;
    align-items:center;
    gap:6px;
    margin-top:10px;
    width:65%;
  }

  .nav-profile-divider::before,
  .nav-profile-divider::after{
    content:"";
    flex:1;
    height:1px;
    background:rgba(168,85,247,.4);
  }

  .nav-profile-divider span{
    width:5px;
    height:5px;
    border-radius:50%;
    background:#a855f7;
    flex-shrink:0;
  }

  /* LINKS */
  .nav-links{
    display:flex;
    flex-direction:column;
    gap:10px;
  }

  .navbar a{
    display:flex;
    align-items:center;
    gap:12px;
    margin:0;
    width:100%;
    padding:12px 14px;
    border-radius:14px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.07);
    font-size:14.5px;
    font-weight:500;
    opacity:0;
    transform:translateX(24px);
  }

  .navbar.active a{
    animation:navItemIn .4s ease forwards;
  }

  .navbar.active a:nth-child(1){ animation-delay:.05s; }
  .navbar.active a:nth-child(2){ animation-delay:.1s; }
  .navbar.active a:nth-child(3){ animation-delay:.15s; }
  .navbar.active a:nth-child(4){ animation-delay:.2s; }
  .navbar.active a:nth-child(5){ animation-delay:.25s; }
  .navbar.active a:nth-child(6){ animation-delay:.3s; }
  .navbar.active a:nth-child(7){ animation-delay:.35s; }

  .navbar a::after{
    display:none;
  }

  .navbar a:hover{
    background:rgba(255,255,255,.08);
    color:#ccc;
  }

  .navbar a.active{
    background:linear-gradient(90deg, rgba(106,92,255,.28), rgba(168,85,247,.28));
    border-color:rgba(168,85,247,.55);
    color:#fff;
    box-shadow:0 0 22px rgba(168,85,247,.35);
  }

  .nav-link-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    width:38px;
    height:38px;
    border-radius:10px;
    background:rgba(168,85,247,.12);
    color:#a855f7;
    font-size:18px;
    flex-shrink:0;
    transition:.3s;
  }

  .navbar a.active .nav-link-icon{
    background:rgba(255,255,255,.18);
    color:#fff;
  }

  .nav-link-label{
    flex:1;
    text-align:left;
  }

  .navbar .nav-link-arrow{
    display:block;
    font-size:18px;
    color:#666;
    transition:.3s;
  }

  .navbar a.active .nav-link-arrow{
    color:#fff;
  }

  /* FOOTER */
  .nav-footer{
    display:block;
    margin-top:22px;
    padding-top:16px;
    border-top:1px solid rgba(255,255,255,.08);
    text-align:center;
  }

  .nav-footer p{
    color:#888;
    font-size:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:5px;
  }

  .nav-footer i{
    color:#a855f7;
    font-size:13px;
  }

  @keyframes navItemIn{
    to{ opacity:1; transform:translateX(0); }
  }

  .menu-toggle{
    display:flex;
  }

  .nav-overlay{
    display:block;
  }

  .home{
    flex-direction:column-reverse;
    text-align:center;
    padding:40px 30px 20px;
  }

  .home .content{
    max-width:100%;
  }

  .home .desc{
    text-align:left;
  }

  .buttons{ justify-content:center; }
  .socials{ justify-content:center; margin-top:25px; }

  .home .image-box{
    right:0;
    margin-bottom:20px;
  }

  .card1{ left:-9%; }
  .card2{ right:-5%; }
  .card3{ right:-3%; }

  .stats{ margin:0 30px; padding:20px; }

  .about{
    flex-direction:column;
    padding:30px 30px;
  }

  .about-left{ margin-left:0; }

  .about-right{ max-width:100%; }

  .about-highlights{ flex-direction:column; text-align:center; gap:26px; }
  .highlight-item{ flex:none; width:100%; padding-right:0; padding-bottom:0; text-align:center; }
  .highlight-item:not(:last-child)::after{ display:none; }
  .highlight-icon{ margin:0 auto 10px; }

  .drives-me{ flex-direction:column; text-align:center; justify-content:center; gap:4px; }
  .drives-illustration{ width:140px; margin:-6px auto -10px; }

  .services{ flex-direction:column; }

  .skills-container{ flex-direction:column; }

  .soft{ flex-direction:column; text-align:center; }
  .soft-left{ flex-direction:column; text-align:center; max-width:100%; }
  .soft-item:not(:last-child)::after{ display:none; }

  .projects-container{ grid-template-columns:repeat(2,1fr); }

  /* TIMELINE → single column */
  .timeline::before{ left:20px; }

  .timeline-item.left .content,
  .timeline-item.right .content{
    width:calc(100% - 50px);
    margin-left:50px;
    margin-right:0;
  }

  .dot{ left:20px; }

  .label{ display:none; }

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

  .contact-container{ flex-direction:column; }

}

@media (max-width:768px){

  h1{ font-size:42px; }
  .home h1{ font-size:44px; }
  .heading{ font-size:38px; }

  .header{ padding:16px 20px; }
  body{ padding-top:70px; }
  section[id]{ scroll-margin-top:72px; }
  .header.scrolled{ padding:12px 20px; }
  .logo{ font-size:20px; }

  .home,
  .about,
  .skills,
  .projects,
  .education,
  .contact,
  .bottom-section{
    padding-left:20px;
    padding-right:20px;
  }

  .certificate-section{ padding-left:20px; padding-right:20px; }

  .stats{
    margin:0 20px;
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .stat h4{ font-size:14px; }
  .stat p{ font-size:12px; }

  .home .image-box{
    right:0;
    width:220px;
    height:220px;
    display:flex;
    align-items:center;
    justify-content:center;
  }

  .home .image-box::before{
    width:260px;
    height:260px;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
  }

  .image-box img,
  .home .image-box img{ width:190px; }

  .card1{ top:35%; left:-55px; }
  .card2{ top:5%; right:-38px; }
  .card3{ bottom:5%; right:-38px; }

  .card{ font-size:11px; padding:8px 10px; }

  .about .image-box,
  .about .image-box::before,
  .about .image-box::after{ width:280px; height:280px; }

  .about .image-box img{ width:250px; }

  .motto{ left:50%; transform:translateX(-50%); width:85%;bottom:-20px; }

  .bg-glow{ width:220px; height:220px; filter:blur(70px); }
  .bg-glow.left{ top:-40px; left:-60px; }
  .bg-glow.right{ bottom:-40px; right:-60px; }

  .projects-container{ grid-template-columns:1fr; }

  .input-row{ flex-direction:column; gap:0; }

  .modal-footer{ flex-direction:column; }
  .modal-footer button{ width:100%; }
  .modal-header h2{ font-size:18px; }
  .modal-content{ width:95%; }

  .project-modal-grid{ flex-direction:column; padding:55px 20px 20px; gap:22px; }
  .project-modal-left,
  .project-modal-right{ flex:1 1 auto; align-self:auto; }
  .project-modal-footer{ padding:16px 20px; }
  .project-modal-title{ font-size:24px; }

  .footer{ padding:20px; }

  .back-to-top{ width:42px; height:42px; bottom:20px; right:20px; font-size:18px; }
}

@media (max-width:480px){

  h1{ font-size:34px; }
  .home h1{ font-size:36px; }
  .heading{ font-size:30px; }

  .tag{ font-size:12px; padding:6px 12px; }

  .primary,.secondary{ width:100%; text-align:center; }
  .buttons{ flex-direction:column; }

  .stats{ display:grid; grid-template-columns:1fr 1fr; padding:15px; gap:15px; }

  .skill-box,
  .certificate-content,
  .left-box,
  .right-box{ padding:18px; }

  .tech-grid,
  .tech-grid.cols-2{ grid-template-columns:repeat(2,1fr); }

  .send-btn span{ font-size:14px; }

  .header-actions .btn{
    padding:8px 14px;
    font-size:13px;
  }
}