* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI';
}

body {
  margin: 0;
  padding: 0;
  background: #0a1a22;
  color: white;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(0,255,255,0.15) 2px, transparent 2px),
    linear-gradient(60deg, rgba(0,255,255,0.05) 1px, transparent 1px),
    linear-gradient(-60deg, rgba(0,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
  z-index: -1;
}

/* NAV */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 20px 0;
}

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

.nav-links li {
  position: relative;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: white;
  font-size: 18px;
  font-weight: 500;
  transition: 0.3s ease;
}

/* center-out underline */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: cyan;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  color: cyan;
}

.nav-links a:hover {
  color: cyan;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-socials {
  position: absolute;
  right: 40px;
  display: flex;
  gap: 15px;
}

.nav-socials a {
  color: white;
  font-size: 18px;
  transition: 0.3s;
  padding: 8px;
  border-radius: 50%;
}

.nav-socials a:hover {
  color: cyan;
  transform: translateY(-3px);
  text-shadow: 0 0 10px cyan;
  background: rgba(0,255,255,0.2);
}

#about p {
  margin-top: 15px;
  line-height: 1.7;
  font-size: 18px;
  color: #e0e0e0;
}

/* HERO */
.hero {
  min-height: 100vh;                
  display: flex;
  align-items: center;              
  justify-content: space-between;
  padding: 0 10%;
  position: relative;
  z-index: 1;
}

.hero img {
  width: 300px;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0,255,255,0.5);
}

.hero-content h1 span {
  color: cyan;
}

.hero-content h1 {
  font-size: 45px;   
  font-weight: 700;
}

.hero-content p {
  font-size: 20px;   
  margin-top: 10px;
  margin-bottom: 20px;
}

.hero-content span {
  font-size: 45px;   
}

/* GLASS EFFECT */
.glass {
  margin: 40px;
  padding: 30px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.1);
}

#skills {
  padding: 60px 0;
}

#projects {
  padding: 60px 0;
}

h2 {
  margin-bottom: 30px;
  font-size: 32px;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* SKILLS */
#skills {
  padding: 50px;
}

.skills-grid {
  column-count: 3;
  column-gap: 20px;
  margin-top: 30px;
}

.skill-box {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 15px;
  transition: 0.3s;
  break-inside: avoid;     /* prevents a box from splitting across columns */
  margin-bottom: 20px;
  display: inline-block;
  width: 100%;
}

.skill-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0,255,255,0.3);
}

.skill-box h3 {
  margin-bottom: 15px;
  color: cyan;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags span {
  padding: 8px 14px;
  background: linear-gradient(135deg, cyan, #00bcd4);
  border-radius: 20px;
  color: black;
  font-weight: 600;
  font-size: 14px;
  transition: 0.3s;
}

.tags span:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px cyan;
}

/* PROJECT CARDS */
.card {
  margin: 20px 0;
  padding: 25px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  border: 1px solid cyan;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
}

.card h3 {
  transition: 0.3s;
}

.card:hover h3 {
  color: cyan;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 15px;
  padding: 1px;
  background: linear-gradient(90deg, transparent);
  opacity: 0;
  transition: 0.3s;
}

.card:hover::before {
  opacity: 1;
}

.card ul {
  margin-top: 10px;
  padding-left: 20px;
  color: #ddd;
}

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

.project-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

/* when active */
.card.active .project-details {
  max-height: 500px;
}

/* optional spacing */
.project-highlights {
  margin: 10px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.project-highlights span {
  background: rgba(0,255,255,0.15);
  border: 1px solid cyan;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  color: cyan;
}

/* hidden by default */
.project-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

/* when active */
.card.active .project-details {
  max-height: 400px;
}

/* arrow animation */
.arrow {
  float: right;
  transition: 0.3s;
}

.card.active .arrow {
  transform: rotate(180deg);
}

/* spacing */
.project-desc {
  margin: 10px 0;
  color: #ccc;
}

/* CERTIFICATIONS */
#certifications {
  padding: 60px 0;
}

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

.cert-card {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid cyan;
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  transition: 0.3s;
  box-shadow: 0 0 15px rgba(0,255,255,0.15);
}

.cert-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px rgba(0,255,255,0.35);
}

.cert-icon {
  font-size: 32px;
  color: #2ec866;   /* HackerRank green */
  margin-bottom: 15px;
}

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

.cert-issuer {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 18px;
}

.cert-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: cyan;
  border: 1px solid cyan;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  transition: 0.3s;
  background: rgba(0,255,255,0.05);
}

.cert-link:hover {
  background: cyan;
  color: black;
  box-shadow: 0 0 12px cyan;
}

.ps-card {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  padding: 25px;
  margin-top: 20px;
  border: 1px solid cyan;
  box-shadow: 0 0 20px rgba(0,255,255,0.2);
  transition: 0.3s;
}

.ps-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(0,255,255,0.3);
}

.ps-desc {
  margin: 10px 0;
  color: #ccc;
}

.ps-card ul {
  margin-top: 10px;
  padding-left: 20px;
}

.ps-card ul li {
  margin-bottom: 8px;
  color: #ddd;
}

.ps-links {
  margin-top: 15px;
  display: flex;
  gap: 12px;
}

/* 🔥 styled links */
.ps-links a {
  text-decoration: none;
  color: cyan;
  border: 1px solid cyan;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  transition: 0.3s;
  background: rgba(0,255,255,0.05);
}

/* hover effect */
.ps-links a:hover {
  background: cyan;
  color: black;
  box-shadow: 0 0 12px cyan;
  transform: translateY(-2px);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
}