* {
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Poppins, sans-serif;
}
body {
  margin: 0;
  overflow-x: hidden;
}
body{
  background:#0f172a;
  color:white;
}

/* NAVBAR */
.navbar{
  display:flex;
  justify-content:space-between;
  padding:20px 60px;
  position:fixed;
  width:100%;
  top:0;
  background:rgba(15,23,42,0.9);
  backdrop-filter:blur(10px);
  z-index:100;
}

.nav-links{
  list-style:none;
  display:flex;
  gap:30px;
}

.nav-links a{
  text-decoration:none;
  color:white;
  transition:0.3s;
}
.nav-links a:hover{
  color:#38bdf8;
}

/* HERO */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 10%;
  flex-wrap: wrap;
}

.hero-content{
  display:flex;
  align-items:center;
  gap:80px;
}

.hero-text h1 span{
  color:#38bdf8;
}

.hero-image img{
  width:280px;
  border-radius:50%;
  box-shadow:0 0 40px #38bdf8;
}

.hero{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:120px 10%;
}

.hero-container{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:80px;
  align-items:center;
}

.hero-text h1{
  font-size:3.5rem;
  font-weight:700;
}

.gradient{
  background:linear-gradient(90deg,#38bdf8,#0ea5e9,#22d3ee);
  -webkit-background-clip:text;
  color:transparent;
}

.hero-text h2{
  color:#38bdf8;
  margin:15px 0;
  height:30px;
}

.hero-text p{
  color:#cbd5f5;
  line-height:1.7;
  max-width:500px;
}

.hero-buttons{
  margin-top:30px;
  display:flex;
  gap:20px;
}

.btn-primary{
  background:#38bdf8;
  color:black;
  padding:12px 30px;
  border-radius:30px;
  text-decoration:none;
  font-weight:600;
}

.btn-outline{
  border:2px solid #38bdf8;
  color:#38bdf8;
  padding:12px 30px;
  border-radius:30px;
  text-decoration:none;
}

.hero-image{
  position:relative;
  display:flex;
  justify-content:center;
}

.hero-image img{
  width:300px;
  height:300px;
  object-fit:cover;
  border-radius:50%;
  position:relative;
  z-index:2;
}

.glow{
  position:absolute;
  width:320px;
  height:320px;
  background:#38bdf8;
  border-radius:50%;
  filter:blur(80px);
  opacity:0.6;
  z-index:1;
}

@media(max-width:900px){
  .hero-container{
    grid-template-columns:1fr;
    text-align:center;
  }
  .hero-text p{
    margin:auto;
  }
}

/* BUTTON */
.btn{
  display:inline-block;
  margin-top:20px;
  padding:12px 30px;
  background:#38bdf8;
  color:black;
  text-decoration:none;
  border-radius:30px;
  font-weight:bold;
}

/* PROJECTS */

.projects-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:40px;
  margin-top:50px;
}

.project-card{
  background:rgba(255,255,255,0.05);
  backdrop-filter:blur(20px);
  padding:30px;
  border-radius:20px;
  border:1px solid rgba(56,189,248,0.4);
  transition:0.4s;
  position:relative;
}

.project-card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  height:5px;
  width:100%;
  background:linear-gradient(90deg,#38bdf8,#0ea5e9);
}

.project-card:hover{
  transform:translateY(-12px);
  box-shadow:0 0 40px rgba(56,189,248,0.5);
}

.project-card h3{
  color:#38bdf8;
}

.project-card .tech{
  color:#cbd5f5;
  font-size:14px;
}

.project-card a{
  display:inline-block;
  margin-top:15px;
  color:#38bdf8;
  text-decoration:none;
  font-weight:bold;
}
#projects, #experience, #skills, #education, #contact{
  padding:100px 80px;
  text-align:center;
}

.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:30px;
  margin-top:40px;
}

.card{
  background:rgba(255,255,255,0.05);
  padding:30px;
  border-radius:20px;
  transition:0.4s;
}
.card:hover{
  transform:translateY(-10px);
  box-shadow:0 0 20px #38bdf8;
}
.project-img{
  width:100%;
  height:180px;
  object-fit:cover;
  border-radius:15px;
  margin-bottom:15px;
  transition:0.4s;
}

.project-card:hover .project-img{
  transform:scale(1.05);
  filter:brightness(1.1);
}
.github-section{
  padding:100px 10%;
  text-align:center;
  background:linear-gradient(135deg,#020617,#020617);
}

.github-text{
  max-width:600px;
  margin:20px auto 40px;
  color:#cbd5f5;
  font-size:1.1rem;
}

.github-btn{
  display:inline-block;
  background:#38bdf8;
  color:#020617;
  padding:15px 40px;
  border-radius:40px;
  font-weight:700;
  text-decoration:none;
  font-size:1.1rem;
  transition:0.3s;
}

.github-btn:hover{
  transform:scale(1.1);
  box-shadow:0 0 40px rgba(56,189,248,0.7);
}
.experience-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:40px;
  margin-top:50px;
}

.exp-card{
  background:rgba(255,255,255,0.06);
  backdrop-filter:blur(20px);
  padding:30px;
  border-radius:20px;
  border:1px solid rgba(56,189,248,0.4);
  transition:0.4s;
  position:relative;
  overflow:hidden;
}

.exp-card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  height:5px;
  width:100%;
  background:linear-gradient(90deg,#38bdf8,#0ea5e9);
}

.exp-card:hover{
  transform:translateY(-12px);
  box-shadow:0 0 40px rgba(56,189,248,0.5);
}

.exp-card h3{
  color:#38bdf8;
  margin-bottom:10px;
}

.exp-card span{
  font-size:14px;
  color:#cbd5f5;
}

.exp-card ul{
  margin-top:15px;
  padding-left:20px;
}

.exp-card li{
  margin-bottom:8px;
}

.tech-skills{
  padding:100px 10%;
}

.tech-skills h2{
  text-align:center;
  font-size:2.5rem;
  margin-bottom:60px;
  color:#38bdf8;
}

.skills-container{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:30px;
}

.skill-block{
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(56,189,248,0.4);
  border-radius:18px;
  padding:25px;
  transition:0.4s;
  backdrop-filter:blur(10px);
}

.skill-block:hover{
  transform:translateY(-10px) scale(1.03);
  box-shadow:0 0 30px rgba(56,189,248,0.6);
}

.skill-block h3{
  color:#38bdf8;
  margin-bottom:10px;
  font-size:1.2rem;
}

.skill-block p{
  color:#cbd5f5;
  line-height:1.6;
  font-size:0.95rem;
}
.edu-timeline{
  max-width:800px;
  margin:50px auto;
  position:relative;
  padding-left:40px;
}

.edu-timeline::before{
  content:"";
  position:absolute;
  left:15px;
  top:0;
  width:3px;
  height:100%;
  background:linear-gradient(#38bdf8,#0ea5e9);
}

.edu-item{
  position:relative;
  margin-bottom:50px;
  display:flex;
  gap:30px;
}

.dot{
  width:18px;
  height:18px;
  background:#38bdf8;
  border-radius:50%;
  position:absolute;
  left:7px;
  top:10px;
  box-shadow:0 0 15px #38bdf8;
}

.edu-content{
  background:rgba(255,255,255,0.05);
  padding:25px;
  border-radius:15px;
  border-left:4px solid #38bdf8;
}

.edu-content h3{
  color:#38bdf8;
  margin-bottom:5px;
}

.edu-content span{
  color:#cbd5f5;
  font-size:14px;
}

.edu-content p{
  margin-top:8px;
}

/* SKILLS */
.skill-grid span{
  background:#38bdf8;
  color:black;
  padding:10px 20px;
  border-radius:30px;
  margin:10px;
  display:inline-block;
}
.theme-btn{
  background:none;
  border:2px solid #38bdf8;
  color:#38bdf8;
  padding:8px 14px;
  border-radius:50px;
  cursor:pointer;
  font-size:16px;
}
.contact-section{
  padding:100px 10%;
  text-align:center;
}

.contact-section h2{
  font-size:2.5rem;
  margin-bottom:40px;
  color:#38bdf8;
}

.contact-card{
  max-width:500px;
  margin:auto;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(56,189,248,0.5);
  border-radius:20px;
  padding:40px;
  backdrop-filter:blur(15px);
  box-shadow:0 0 40px rgba(56,189,248,0.3);
}

.contact-item{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:15px;
  margin:20px 0;
  font-size:1.1rem;
}

.contact-item a{
  color:#38bdf8;
  text-decoration:none;
  font-weight:600;
  transition:0.3s;
}

.contact-item a:hover{
  color:white;
}
/* Light mode */
body.light{
  background:#f9fafb;
  color:#0f172a;
}

body.light .navbar{
  background:white;
}

body.light .card,
body.light .edu-card{
  background:#ffffff;
  color:#0f172a;
}

body.light .skill-grid span{
  background:#0f172a;
  color:white;
}

/* FOOTER */
footer{
  padding:20px;
  text-align:center;
  background:black;
}
@media (max-width: 768px) {

  nav {
    flex-direction: column;
    gap: 10px;
  }

  nav a {
    display: block;
    padding: 10px;
    text-align: center;
  }

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

  .hero img {
    width: 180px;
    margin: 20px auto;
  }

  .projects-container,
  .skills-container {
    grid-template-columns: 1fr !important;
  }

  .timeline {
    padding-left: 0;
  }

  .contact-box {
    width: 90%;
    margin: auto;
  }

  h1 { font-size: 30px; }
  h2 { font-size: 22px; }
}