/* =========================
   GLOBAL RESET
========================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Inter,sans-serif;
}

body{
  min-height:100vh;
  background:radial-gradient(circle,#0b3a55,#061a2f,#020b18);
  color:white;
  overflow-y:auto;
}

/* =========================
   ANIMATED BACKGROUND
========================= */
.wave-bg{
  position:fixed;
  inset:0;
  background:linear-gradient(120deg,#061a2f,#0b3a55,#020b18);
  background-size:300% 300%;
  animation:waveMove 18s ease infinite;
  z-index:-1;
}

@keyframes waveMove{
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}

/* =========================
   NAVBAR
========================= */
.navbar{
  height:90px;
  padding:0 60px;
  position:fixed;
  top:0;
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:rgba(0,0,0,.45);
  backdrop-filter:blur(14px);
  z-index:100;
}

.logo{
  display:flex;
  align-items:center;
  gap:12px;
}

.dp{
  width:44px;
  height:44px;
  border-radius:50%;
  border:2px solid #14e0ff;
}

.navbar ul{
  display:flex;
  list-style:none;
  gap:26px;
}

.navbar a{
  color:#cfdbe6;
  text-decoration:none;
  position:relative;
  padding:6px 4px;
  transition:.3s;
}

.navbar a.active{
  color:#14e0ff;
}

.navbar a::after{
  content:'';
  position:absolute;
  left:0;
  bottom:-6px;
  width:0%;
  height:2px;
  background:#14e0ff;
  box-shadow:0 0 12px #14e0ff;
  transition:.35s ease;
}

.navbar a.active::after{
  width:100%;
}

/* =========================
   PAGE SYSTEM
========================= */
.page{
  position:absolute;
  top:90px;
  width:100%;
  min-height:calc(100vh - 150px);
  display:flex;
  justify-content:center;
  align-items:flex-start;
  opacity:0;
  transform:translateY(40px);
  transition:.5s ease;
  padding-bottom:80px;
  pointer-events:none;
  z-index:0;
  visibility:hidden;
}

.page.active{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
  z-index:1;
  visibility:visible;
}

.page-content{
  width:100%;
  text-align:center;
  margin-top:40px;
}

.page-content h2{
  margin-bottom:35px;
  font-size:32px;
  letter-spacing:1px;
}

/* =========================
   BOX
========================= */
.box{
  width:75%;
  margin:25px auto;
  padding:40px;
  border-radius:26px;
  background:linear-gradient(145deg,#0b2742,#061a30);
  transition:.35s ease;
}

.box:hover{
  transform:scale(1.04);
  box-shadow:0 0 30px rgba(20,224,255,.15);
}

/* =========================
   GRID
========================= */
.grid{
  width:85%;
  margin:auto;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
  align-items:start;
}

/* =========================
   EXPERIENCE
========================= */
.exp-box{
  padding:32px;
  border-radius:24px;
  background:linear-gradient(145deg,#0b2742,#061a30);
  transition:.35s;
}

.exp-details{
  margin-top:15px;
  font-size:14px;
  line-height:1.7;
  opacity:.9;
}

.exp-box:hover{
  transform:translateY(-6px);
  box-shadow:0 0 28px rgba(20,224,255,.18);
}

/* =========================
   SKILLS
========================= */
.skill-group{
  width:90%;
  margin:45px auto;
}

.skill-group h3{
  text-align:left;
  color:#14e0ff;
  margin-bottom:18px;
  font-size:22px;
}

.skills-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
}

.skills-grid div{
  padding:22px;
  border-radius:18px;
  background:linear-gradient(145deg,#0b2742,#061a30);
  font-size:15px;
  transition:.3s;
}

.skills-grid div:hover{
  transform:scale(1.06);
  box-shadow:0 0 22px rgba(20,224,255,.2);
}

/* =========================
   PROJECTS
========================= */
.project-grid{
  width:90%;
  margin:30px auto 60px auto;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:32px;
}

.project-box{
  background:linear-gradient(145deg,#0b2742,#061a30);
  padding:30px;
  border-radius:26px;
  text-align:left;
  transition:.4s;
}

.project-box h3{
  margin-bottom:10px;
  font-size:18px;
}

.project-box p{
  font-size:14px;
  opacity:.85;
  margin-bottom:14px;
  line-height:1.6;
}

.project-box span{
  font-size:13px;
  color:#14e0ff;
}

.project-box:hover{
  transform:translateY(-8px);
  box-shadow:0 0 35px rgba(20,224,255,.2);
}

/* =========================
   PUBLICATIONS
========================= */
.publication-box{
  width:90%;
  margin:50px auto;
  padding:45px;
  border-radius:28px;
  background:linear-gradient(145deg,#071d33,#031221);
  text-align:left;
}

.publication-box h2{
  margin-bottom:22px;
  color:#14e0ff;
}

.publication-box li{
  padding:12px 0;
  border-bottom:1px solid rgba(255,255,255,.08);
  line-height:1.7;
}

.publication-box li:last-child{
  border-bottom:none;
}

/* =========================
   FOOTER
========================= */
.main-footer{
  position:fixed;
  bottom:0;
  width:100%;
  padding:18px;
  background:rgba(0,0,0,.45);
  backdrop-filter:blur(12px);
  display:flex;
  justify-content:center;
  gap:32px;
}

.main-footer a{
  color:#14e0ff;
  font-size:18px;
}

/* =========================
   RESPONSIVE
========================= */
@media(max-width:900px){

  .navbar{
    padding:0 25px;
  }

  .grid{
    grid-template-columns:1fr;
  }

  .skills-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .project-grid{
    grid-template-columns:1fr;
  }

  .box{
    width:90%;
  }
}
/* ======================================
   HOME PAGE FIX (BIG PHOTO + CENTER)
====================================== */

.page-content.center{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  height:100%;
  margin-top:0;
}

.dp.large{
  width:140px;
  height:140px;
  border-radius:50%;
  border:3px solid #14e0ff;
  box-shadow:0 0 25px rgba(20,224,255,0.4);
  margin-bottom:25px;
}

/* Bigger home text */
#home h1{
  font-size:48px;
  font-weight:700;
}

#home h2{
  font-size:26px;
  margin-top:8px;
}

#home .subtitle{
  font-size:18px;
  margin-top:12px;
  opacity:.9;
}


/* ======================================
   CENTER ALL MAIN SECTIONS
====================================== */

#about .page-content,
#education .page-content,
#experience .page-content{
  display:flex;
  flex-direction:column;
  justify-content:center;
  height:100%;
  margin-top:0;
}


/* ======================================
   SECTION TITLE FIX
====================================== */

.page-content h2{
  margin-bottom:30px;
  font-size:34px;
  letter-spacing:1px;
}

/* ======================================
   FORCE PERFECT CENTER ALIGN
====================================== */

.page-content{
  margin-top:0 !important;
}

/* all main pages vertically centered */
.page{
  justify-content:center !important;
  align-items:center !important;
}

/* ======================================
   HOME PAGE BIG PROFILE FIX
====================================== */

#home .dp{
  width:170px !important;
  height:170px !important;
  border-radius:50%;
  border:3px solid #14e0ff;
  box-shadow:0 0 30px rgba(20,224,255,0.45);
  margin-bottom:30px;
}

/* hero text size */
#home h1{
  font-size:52px;
  font-weight:700;
}

#home h2{
  font-size:28px;
  margin-top:8px;
}

#home p{
  font-size:18px;
  margin-top:12px;
  opacity:.9;
}

/* ======================================
   FIX ABOUT / EDUCATION / EXPERIENCE
====================================== */

#about .page-content,
#education .page-content,
#experience .page-content{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  height:100%;
}

/* ===============================
   ACHIEVEMENT TITLE CENTER FIX
================================ */

#achievement .page-content{
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
}

#achievement h2{
  margin-bottom:40px;
  font-size:36px;
  letter-spacing:1px;
}

#about .box{
  font-size:18px;      
  line-height:1.8;     
  letter-spacing:0.3px;
}

/* =========================
   MOBILE NAVBAR
========================= */

.menu-toggle{
  display:none;
  font-size:26px;
  color:#14e0ff;
  cursor:pointer;
}

/* mobile screen */
@media(max-width:900px){

  .menu-toggle{
    display:block;
  }

  .navbar ul{
    position:absolute;
    top:90px;
    left:0;
    width:100%;
    background:rgba(0,0,0,.9);
    backdrop-filter:blur(12px);
    flex-direction:column;
    align-items:center;
    gap:18px;
    padding:25px 0;

    display:none;
  }

  .navbar ul.show{
    display:flex;
  }
}
