/* THEME VARIABLES */
:root {
  --bg: #000;
  --section-bg: #000;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #cf0f47;
}
/* BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:focus,
button:focus {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  padding: 20px 40px;
  background: var(--section-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}
.navbar nav a {
  margin-left: 20px;
  color: var(--text);
}

/* SECTIONS */
section {
  min-height: 100vh;
  padding: 80px;
  background: var(--section-bg);

  /* SCROLL EFFECT */
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

section.show {
  opacity: 1;
  transform: translateY(0);
}

/* HERO LAYOUT */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 600;
  margin-bottom: 10px;
}

.hero h2 {
  font-size: 22px;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 25px;
}

.hero-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 35px;
}

/* CTA buttons */
.hero-cta {
  display: flex;
  gap: 20px;
}

.btn {
  padding: 12px 26px;
  border-radius: 8px;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Primary button */
.btn.primary {
  background: var(--accent);
  color: #000;
  text-align: center;
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

/* Outline button */
.btn.outline {
  border: 1px solid var(--accent);
  color: var(--accent);
  text-align: center;
}

.btn.outline:hover {
  background: var(--accent);
  color: #000;
}

/* HERO SOCIAL ICONS */

.hero-socials {
  margin-top: 30px;
  display: flex;
  gap: 22px;
}

.hero-socials a {
  font-size: 22px;
  color: var(--muted);
  transition: color 0.3s ease, transform 0.3s ease;
}

.hero-socials a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

/* HERO IMAGE */
.hero-image img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
}

/* ABOUT TWO-COLUMN */

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  margin-top: 40px;
}

.about-content p {
  max-width: 700px;
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 18px;
  color: var(--muted);
}

.about-content .highlight {
  color: var(--accent);
  font-weight: 500;
}

/* ABOUT METRICS (CGPA & PROJECTS) */

.about-metrics {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.metric {
  background: #0b0b0b;
  border: 1px solid #222;
  padding: 18px 22px;
  border-radius: 10px;
  min-width: 180px;

  width: 180px;
  height: 90px;
  
}

.metric-value {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
}

.metric p {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  margin-top: 6px;
}

/* EDUCATION TIMELINE */
.education-timeline {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.edu-item {
  padding-left: 25px;
  border-left: 2px solid var(--accent);
  position: relative;
}

.edu-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
}

.edu-item .year {
  font-size: 13px;
  color: var(--muted);
}

.edu-item h3 {
  font-size: 18px;
  margin: 6px 0;
  color: var(--text);
}

.edu-item p {
  font-size: 14px;
  color: var(--muted);
}

/* SKILLS CARDS */

.skill-card h3 {
  margin-bottom: 10px;
  color: var(--accent);
}

.skill-card p {
  color: var(--muted);
  font-size: 14px;
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(207, 15, 71, 0.3);
}

/* SKILL CATEGORIES */

.skill-category {
  margin-top: 50px;
}

.skill-category h3 {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 18px;
}

/* Icon grid */
.skills-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 40px;
  justify-items: center;
}

/* Individual icon */
.skill-icon {
  position: relative;
  font-size: 48px;
  color: var(--accent);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.skill-icon:hover {
  transform: scale(1.15);
}

/* Tooltip text */
.skill-icon span {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: #0b0b0b;
  color: var(--muted);
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

/* Show name on hover */
.skill-icon:hover span {
  opacity: 1;
}

/* When skills section is visible */
#skills.show .skill-icon {
  opacity: 1;
  transform: scale(1);
}

.skill-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.skill-icon:hover img {
  transform: scale(1.15);
}

/* Staggered animation (delay per icon) */
#skills.show .skills-icons .skill-icon:nth-child(1) {
  transition-delay: 0.1s;
}
#skills.show .skills-icons .skill-icon:nth-child(2) {
  transition-delay: 0.2s;
}
#skills.show .skills-icons .skill-icon:nth-child(3) {
  transition-delay: 0.3s;
}
#skills.show .skills-icons .skill-icon:nth-child(4) {
  transition-delay: 0.4s;
}
#skills.show .skills-icons .skill-icon:nth-child(5) {
  transition-delay: 0.5s;
}
#skills.show .skills-icons .skill-icon:nth-child(6) {
  transition-delay: 0.6s;
}

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

.project-card {
  position: relative;
  height: 260px;
  background: #0b0b0b;
  border: 1px solid #222;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

/* Default content */
.project-content {
  padding: 30px;
}

.project-content h3 {
  color: var(--accent);
  margin-bottom: 10px;
}

.project-content p {
  color: var(--muted);
  font-size: 14px;
}

/* Overlay */
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;

  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

/* Show overlay on hover */
.project-card:hover .project-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Overlay links */
.project-overlay a {
  padding: 8px 16px;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.3s ease;
}

.project-overlay a:hover {
  background: var(--accent);
  color: #000;
}

/* ===== Participations Section ===== */
.participations {
  background-color: var(--section-bg);
  padding: 4rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Section Title */
.participations h2 {
  font-size: 2rem;
  color: var(--text);
  text-transform: capitalize;
  margin-bottom: 2rem;
  position: relative;
}

/* Accent underline */
.participations h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  margin-top: 0.5rem;
  border-radius: 2px;
}

/* Card Content */
.participations .content {
  background-color: rgba(255, 255, 255, 0.03);
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
.participations .content:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(207, 15, 71, 0.25);
}

/* Hackathon Title */
.participations h3 {
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Description */
.participations p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Strong text */
.participations strong {
  color: var(--text);
  font-weight: 600;
}
/* CONTACT TEXT */
.contact-text {
  max-width: 600px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 30px;
}

/* CONTACT LINKS */
.contact-links {
  display: flex;
  gap: 25px;
}

.contact-links a {
  font-size: 15px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.contact-links a:hover {
  border-color: var(--accent);
}

.btn-email {
  font-size: 15px;
  color: var(--accent);
  border: none;
  text-decoration: none;
  background: none;
  transition: border-color 0.3s ease;
  cursor: pointer;
  font: inherit;
}

.btn-email:hover {
  text-decoration: none;
  border-color: var(--accent);
}

.copied_notify {
  padding: 8px 12px;
  background: none;
  color: white;
  border: none;
  margin-top: 10px;
  font-size: 0.9em;
  transition: opacity 0.3s ease;
}
.hidden {
  display: none;
}

/* FOOTER */
.footer {
  background: #050505;
  padding: 40px 20px 20px;
  text-align: center;
}

.footer-content h3 {
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 6px;
}

.footer-content p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 20px;
}

.footer-socials a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: var(--accent);
}

.footer-bottom {
  font-size: 12px;
  color: var(--muted);
  opacity: 0.7;
}

/* MOBILE */
@media (max-width: 768px) {
  section {
    padding: 50px 20px;
  }

  .navbar {
    flex-direction: column;
    gap: 10px;
  }
  .hero {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-cta {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-image img {
    width: 220px;
    height: 220px;
    margin-bottom: 30px;
  }
  .hero-socials {
    justify-content: center;
    .about-grid {
      grid-template-columns: 1fr;
    }

    @media (max-width: 768px) {
      .about-metrics {
        flex-direction: column;
        gap: 15px;
      }
    }
  }
  @media (max-width: 600px) {
    .participations {
      padding: 3rem 1rem;
    }

    .participations h2 {
      font-size: 1.6rem;
    }

    .participations h3 {
      font-size: 1.1rem;
    }
  }
}
