:root {
  --bg-light:#ffffff;
  --bg-dark:#121212;
  --text-light:#000;
  --text-dark:#f5f5f5;
  --primary:#4f46e5;
}

body{
  margin:0;
  font-family:"Segoe UI",sans-serif;
  background:var(--bg-dark);
  color:var(--text-dark);
  transition:0.3s;
}

body.light-mode{
  background:var(--bg-light);
  color:var(--text-light);
}

header{
  position:fixed;
  top:20px;
  left:50%;
  transform:translateX(-50%);
  width:85%;

  display:flex;
  justify-content:space-between;
  align-items:center;

  padding:12px 25px;
  border-radius:14px;

  backdrop-filter: blur(14px);
  background: rgba(20,20,25,0.55);
  border:1px solid rgba(255,255,255,0.08);

  box-shadow:0 10px 30px rgba(0,0,0,0.35);

  z-index:1000;
}

main{
  padding-top:120px;
}

.logo{
  font-size:1.4rem;
  font-weight:bold;
  color: inherit;
  text-decoration: none;
}

nav a,#toggle-mode{
  margin-left:1rem;
  text-decoration:none;
  color:inherit;
  background:none;
  border:none;
  cursor:pointer;
}

nav a{
  position:relative;
  transition:0.3s;
}

nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:0%;
  height:2px;
  background:linear-gradient(90deg,#4f46e5,#14b8a6);
  transition:0.3s;
}

nav a:hover::after{
  width:100%;
}

#main-components{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:80px;
  padding:60px 40px;
  flex-wrap:wrap;
}

.profile-image img{
  width:200px;
  height:200px;
  border-radius:50%;
  object-fit:cover;
  border:4px solid white;
  box-shadow:0 8px 25px rgba(0,0,0,0.3);
}

#text{
  max-width: 530px;
  text-align:left;
}

#intro-title{
  opacity:0;
  transform:translateX(30px);
}

.stack{
  text-align:center;
  margin:40px 0;
}

.skills{
  display:flex;
  justify-content:center;
  gap:20px;
  flex-wrap:wrap;
  margin-top:10px;
}

.skills img{
  transition:0.3s;
}

.skills img:hover{
  transform:translateY(-5px) scale(1.1);
}

.ach{
  text-align:center;
  margin-bottom:3rem;
}

.icon2{
  display:flex;
  justify-content:center;
  gap:2rem;
}

.icon2 img{
  width:40px;
  transition:0.2s;
}

.icon2 img:hover{
  transform:scale(1.2);
}

.socials{
  text-align:center;
  margin-bottom:2rem;
}

.icons{
  display:flex;
  justify-content:center;
  gap:2rem;
  margin-top:1rem;
}

.icons img{
  width:40px;
  transition:0.2s;
}

.icons img:hover{
  transform:scale(1.2);
}

footer{
  text-align:center;
  padding:1rem;
  color:gray;
}

body::before{
  content:"";
  position:fixed;
  top:-200px;
  left:-200px;
  width:600px;
  height:600px;

  background: radial-gradient(circle,
      rgba(79,70,229,0.35),
      transparent 70%);

  filter:blur(80px);
  z-index:-1;
}

body::after{
  content:"";
  position:fixed;
  bottom:-250px;
  right:-200px;
  width:600px;
  height:600px;

  background: radial-gradient(circle,
      rgba(20,184,166,0.35),
      transparent 70%);

  filter:blur(90px);
  z-index:-1;
}

.page-transition {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.page-transition.show {
  opacity: 1;
  transform: translateY(0);
}

.page-transition.fade-out {
  opacity: 0;
  transform: translateY(-20px);
}

.btn {
  padding: 8px 16px;
  border-radius: 8px;
  background: linear-gradient(90deg,#4f46e5,#14b8a6);
  color: white;
  text-decoration: none;
  margin-right: 10px;
}

.btn-outline {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  text-decoration: none;
}

.cert-grid {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.cert-card {
  display: block;
  max-width: 320px;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-6px) scale(1.02);
}

.cert-img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.cert-card::after {
  content: "View Certificate";
  color: #ffffff;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  background: rgba(0,0,0,0.7);
  opacity: 0;
  transition: 0.3s;
}

.cert-card {
  position: relative;
}

.cert-card:hover::after {
  opacity: 1;
}