/* ================= COLOR SYSTEM ================= */
:root{
  --main1:#ff7a18;      /* Orange */
  --main2:#32d2ff;      /* Sky Blue */
  --main3:#9b5cff;      /* Purple */
  --glass:rgba(255,255,255,.07);
}

/* ================= RESET ================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Poppins','Segoe UI',sans-serif;
}

html{
  scroll-behavior:smooth;
  width:100%;
}

body{
  background:linear-gradient(135deg,#0d0d16,#111122);
  color:#f1f1f1;
  overflow-x:hidden;
  width:100%;
}

/* ================= FLOATING SHAPES ================= */
.shape{
  position:fixed;
  width:220px;
  height:220px;
  border-radius:50%;
  background:radial-gradient(circle,var(--main2),transparent 70%);
  opacity:.08;
  filter:blur(25px);
  animation:float 12s infinite alternate ease-in-out;
  z-index:-1;
}
.s1{top:8%;left:5%}
.s2{top:60%;left:82%;animation-duration:16s}
.s3{top:88%;left:18%;animation-duration:20s}

/* ================= NAVBAR ================= */
.navbar{
  position:fixed;
  top:0;
  width:100%;
  padding:18px 0;
  background:rgba(0,0,0,.75);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(255,255,255,.08);
  z-index:999;
}

.navbar ul{
  list-style:none;
  display:flex;
  justify-content:center;
}

.navbar ul li a{
  margin:0 22px;
  color:#ddd;
  text-decoration:none;
  font-size:15px;
  letter-spacing:.5px;
  position:relative;
  transition:.3s;
}

.navbar ul li a:hover{
  color:var(--main2);
}

.navbar ul li a::after{
  content:'';
  position:absolute;
  left:50%;
  bottom:-8px;
  width:0;
  height:2px;
  background:linear-gradient(90deg,var(--main1),var(--main2));
  transition:.4s;
  transform:translateX(-50%);
}

.navbar ul li a:hover::after{
  width:100%;
}

/* ================= SECTIONS ================= */
.section{
  min-height:100vh;
  padding:160px 10%;
  position:relative;
  width:100%;
  animation:fadeUp 1s ease both;
}

.section::after{
  content:'';
  position:absolute;
  bottom:0;
  left:50%;
  width:60%;
  height:1px;
  background:linear-gradient(90deg,transparent,var(--main2),transparent);
  transform:translateX(-50%);
  opacity:.3;
}

/* ================= BACKGROUNDS ================= */
#home{
  background:
    radial-gradient(circle at 20% 30%,rgba(255,122,24,.25),transparent 60%),
    linear-gradient(135deg,#111122,#1a1a2e);
}

#about,
#education,
#skills,
#work,
#projects,
#contact{
  background:linear-gradient(135deg,#111122,#1c1c30);
}

/* ================= TEXT ================= */
.section p{
  font-size:21px;
  line-height:2;
  max-width:900px;
  margin-bottom:30px;
  background:var(--glass);
  padding:28px;
  border-radius:22px;
  backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 15px 40px rgba(0,0,0,.6);
}

/* ================= HEADINGS ================= */
h2{
  font-size:52px;
  margin-bottom:40px;
  background:linear-gradient(90deg,var(--main1),var(--main2),var(--main3));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

/* ================= HERO ================= */
.hero{
  display:grid;
  grid-template-columns:1.2fr 1fr;
  align-items:center;
  gap:60px;
}

.hero-text h1{
  font-size:72px;
  line-height:1.05;
  background:linear-gradient(90deg,var(--main2),var(--main1),var(--main3));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

.hero-text p{
  background:none;
  padding:0;
  box-shadow:none;
}

/* ================= IMAGE ================= */
.hero-image{
  position:relative;
  display:flex;
  justify-content:center;
}

.hero-image::before{
  content:'';
  position:absolute;
  width:550px;
  height:550px;
  border-radius:50%;
  background:radial-gradient(circle,var(--main3),transparent 65%);
  filter:blur(50px);
}

.hero-image img{
  width:460px;
  height:460px;
  border-radius:50%;
  object-fit:cover;
  border:5px solid rgba(255,255,255,.2);
  box-shadow:0 0 90px rgba(155,92,255,.6);
  animation:float 7s infinite ease-in-out;
}

/* ================= SKILLS ================= */
.skills span{
  display:inline-block;
  padding:16px 34px;
  margin:12px;
  border-radius:50px;
  font-size:17px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.15);
  transition:.3s;
}

.skills span:hover{
  transform:translateY(-8px) scale(1.08);
  background:linear-gradient(135deg,var(--main2),var(--main3));
  color:#000;
}

/* ================= PROJECTS ================= */
.projects{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(360px,1fr));
  gap:50px;
}

.project-card{
  background:rgba(255,255,255,.05);
  border-radius:24px;
  border:1px solid rgba(255,255,255,.12);
  backdrop-filter:blur(14px);
  transition:.4s;
}

.project-card:hover{
  transform:translateY(-12px);
  box-shadow:0 25px 70px rgba(0,0,0,.8);
}

.project-images{
  display:flex;
  gap:14px;
  padding:18px;
  overflow-x:auto;
}

.project-images img{
  height:150px;
  border-radius:14px;
  transition:.3s;
}

.project-images img:hover{
  transform:scale(1.12);
}

.project-card h3{
  font-size:26px;
  margin:18px;
}

.project-card p{
  margin:0 18px 24px;
  background:none;
  box-shadow:none;
}

/* ================= LINKS ================= */
.links a{
  margin-right:18px;
  padding:12px 30px;
  border-radius:30px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.15);
  color:#fff;
  text-decoration:none;
  transition:.3s;
}

.links a:hover{
  background:linear-gradient(135deg,var(--main1),var(--main2));
  color:#000;
  box-shadow:0 0 40px rgba(50,210,255,.8);
}

/* ================= CV LINK ================= */
.links .cv-link{
  background:linear-gradient(135deg,var(--main1),var(--main2));
  color:#000;
  font-weight:600;
}

.links .cv-link:hover{
  box-shadow:0 0 60px rgba(50,210,255,.9);
  transform:scale(1.1);
}

/* ================= ANIMATIONS ================= */
@keyframes float{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-20px)}
}

@keyframes fadeUp{
  from{
    opacity:0;
    transform:translateY(60px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* ================= MOBILE ================= */
@media (max-width:768px){
  .hero{
    grid-template-columns:1fr;
    text-align:center;
  }

  .hero-image::before{
    width:280px;
    height:280px;
  }

  .hero-image img{
    width:240px;
    height:240px;
  }

  .projects{
    grid-template-columns:1fr;
  }

  .section{
    padding:120px 6%;
  }

  .hero-text h1{
    font-size:46px;
  }
}
