html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html { scroll-behavior: smooth; }

/* ===== Modern Sticky Header ===== */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;

  height: 60px;
  /* width: 100%; */
  /* background: linear-gradient(130deg, #000000, #111111, #1a1a1a); */
  background: radial-gradient(circle at top, #1c1b22, #0c0c0e);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 30px;
  transition: all 0.3s ease;
  border-bottom: 3px solid rgba(255, 255, 255, 0.05);
}

.header:hover ,.skills-section:hover,.projects-section:hover,
.contact-section:hover,.about-hero:hover{
  background: linear-gradient(90deg, #000000, #0a0a0a, #000000);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}


.left-section, .right-section {
  display: flex;
  align-items: center;
  gap: 22px;
}

/* Brand name (My_Portfolio) */
.brand {
  font-family: "Bebas Neue", serif;
  font-size: 2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}


/* Navigation links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  font-family: "Montserrat", sans-serif;
  text-decoration: none;
  color: #dcdcdc;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: #ffcc00;
  transform: translateY(-2px);
}

/* Clock styles */
.clock {
  font-family: "Georgiaa", Serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.clock .ampm {
  color: #e6e6e6;
  font-size: 0.8rem;
  margin-left: 4px;
}

/* Insta button */
.pfol {
  text-decoration: none;
  display: inline-block;
  background: linear-gradient(180deg, #ff0066, #ffcc00);
  padding: 6px 14px;
  border-radius: 50px;
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.pfol:hover {
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.4);
}

/* Profile image */
.user-profile {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.25s ease;
}

.user-profile:hover {
  transform: scale(1.15);
}

/* Small screen responsive */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    height: auto;
    padding: 10px 20px;
    gap: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}




/* ===== Hero / About Section ===== */
.about-hero {
  background: radial-gradient(circle at top, #1c1b22, #0c0c0e);
    border-bottom: 3px solid rgba(255, 255, 255, 0.05);
  color: #fff;
  text-align: center;
  padding: 60px 60px ;
    min-height: 550px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-container {
  max-width: 750px; 
}

.about-heading {
  font-family: "Bebas Neue", serif;
  font-size: 2.8rem;
  letter-spacing: 0.05em;
  color: #ffffffcc;
  margin-bottom: 1rem;
}

.about-heading span {
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.about-sub {
  font-family: "Montserrat", sans-serif;
  color: #b8b8b8;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.about-sub strong {
  color: #ffffff;
}

.buttons {
  display: flex;
  flex-direction:column;
  justify-content: center;
  padding:10px 10px;
  gap: 16px;
  flex-wrap: wrap;
}


.btn {
  
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 14px 30px;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Resume button - glassy border */
.resume-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.resume-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
}

/* Contact button - solid black */
.contact-btn {
  background: #000;
  color: #fff;
}

.contact-btn:hover {
  background: #111;
  transform: scale(1.04);
}


/* ====== SKILLS SECTION ====== */
.skills-section {

  background: radial-gradient(circle at top, #1c1b22, #0c0c0e);
    border-bottom: 3px solid rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
  min-height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skills-container {
  max-width: 900px;
  margin: 0 auto;
}

.skills-heading {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffcc00;
  margin-bottom: 40px;
  position: relative;
}

/* subtle underline under TECHNICAL SKILLS */
.skills-heading::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #ffcc00, #ff9900);
  border-radius: 2px;
}

.skills-grid {
  display: flex;
  /* flex-direction: column; */
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
}

.skill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
}

.skill:hover {
  background: linear-gradient(45deg, #ffcc00, #ff9900);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 0 12px rgba(255, 204, 0, 0.3);
}

/* Responsive layout */
@media (max-width: 768px) {
  .skills-grid {
    gap: 10px;
  }

  .skill {
    font-size: 0.85rem;
    padding: 8px 14px;
  }

  .skills-heading {
    font-size: 2rem;
  }
}

/* ===== PROJECT SECTION ===== */
.projects-section {
  min-height: 550px;
  background: radial-gradient(circle at top, #1c1b22, #0c0c0e);
  border-bottom: 3px solid rgba(255, 255, 255, 0.05);
  color: #ffffff;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.projects-container {
  max-width: 1000px;
  width: 100%;
  text-align: center;
}

.projects-heading {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffcc00;
  margin-bottom: 50px;
  position: relative;
}

.projects-heading::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #ffcc00, #ff9900);
  border-radius: 2px;
}

/* Project grid layout */
.project-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Individual project cards */
.project-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px 30px;
  text-align: left;
  transition: all 0.3s ease;
}

.project-card:hover,.contact-left:hover,.contact-right:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.15);
}

/* Title and text styling */
.project-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  color: #ffcc00;
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}

.project-tech{
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  color: #a8a8a8;
  margin-bottom: 10px;
}

.project-desc {
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #dcdcdc;
}

/* Responsive layout */
@media (max-width: 768px) {
  .projects-container {
    padding: 0 10px;
  }

  .project-card {
    padding: 20px;
  }

  .projects-heading {
    font-size: 2rem;
  }
}
/* Contact — final polished styles (use instead of older contact CSS) */

/* contact-section root (keeps site baseline) */
.contact-section {
  min-height: 550px;
  background: radial-gradient(circle at top, #1c1b22, #0c0c0e);
  border-bottom: 3px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 20px;
  position: relative;
  color: #fff;
}

/* container: centered single-column layout */
.contact-container.centered {
  max-width: 820px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  justify-items: center;
  align-items: center;
}

/* left card glass */
.contact-left {
  width: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 34px;
  box-shadow: 0 8px 30px rgba(2,2,6,0.5);
  backdrop-filter: blur(8px) saturate(120%);
  text-align: center;
}

/* Heading & copy */
.contact-heading {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.2rem;
  color: #ffdd66;
  margin: 0 0 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.contact-subtext {
  font-family: "Montserrat", sans-serif;
  color: #d6d6d8;
  margin: 0 0 22px;
  line-height: 1.6;
}

/* contact links row */
.contact-links {
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  justify-content:center;
  align-items:center;
  margin: 6px 0 2px;
}

/* pill base */
.contact-link {
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:12px;
  padding:12px 20px 12px 64px; /* leave room for overlapping icon */
  border-radius: 999px;
  text-decoration:none;
  color:#fff;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  min-width: 180px;
  overflow:visible;
}

/* overlapping icon square */
.contact-link .icon {
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  width:42px;
  height:42px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
  flex:0 0 42px;
}

/* svg sizing + white fill */
.contact-link .icon svg { width:18px; height:18px; display:block; fill:#fff; }

/* Brand gradients */
.contact-link.email .icon {
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,215,0,0.12));
}
.contact-link.linkedin .icon {
  background: linear-gradient(135deg, #0077b5 0%, #00a0dc 100%);
}
.contact-link.codeforces .icon {
  background: linear-gradient(135deg, #434343 0%, #707070 100%);
}
.contact-link.instagram .icon {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 40%, #8134af 80%, #515bd4 100%);
}

/* pill hover: tint whole pill to brand + glow icon */
.contact-link.email:hover {
  background: linear-gradient(90deg, rgba(255,215,0,0.08), rgba(255,215,0,0.02));
  box-shadow: 0 12px 34px rgba(255,215,0,0.06);
}
.contact-link.email:hover .icon {
  box-shadow: 0 6px 20px rgba(255,215,0,0.16);
  /* transform: translateY(0.2px) scale(1.04); */
}

.contact-link.linkedin:hover {
  background: linear-gradient(90deg, rgba(0,160,220,0.08), rgba(0,119,181,0.02));
  box-shadow: 0 12px 34px rgba(0,160,220,0.06);
}
.contact-link.linkedin:hover .icon {
  box-shadow: 0 6px 20px rgba(0,160,220,0.18);
  /* transform: translateY(-2px) scale(1.04); */
}

.contact-link.codeforces:hover {
  background: linear-gradient(90deg, rgba(110,110,110,0.08), rgba(80,80,80,0.02));
  box-shadow: 0 12px 34px rgba(110,110,110,0.06);
}
.contact-link.codeforces:hover .icon {
  box-shadow: 0 6px 20px rgba(110,110,110,0.14);
  /* transform: translateY(-2px) scale(1.04); */
}

.contact-link.instagram:hover {
  background: linear-gradient(90deg, rgba(221,42,123,0.08), rgba(129,52,175,0.02));
  box-shadow: 0 12px 34px rgba(221,42,123,0.08);
}
.contact-link.instagram:hover .icon {
  box-shadow: 0 6px 20px rgba(221,42,123,0.22);
  /* transform: translateY(-2px) scale(1.04); */
}

/* footer line */
.contact-footer {
  margin-top: 18px;
  font-size: 0.92rem;
  color: #bdbdbd;
}

/* responsive */
@media (max-width:720px) {
  .contact-link { padding:10px 14px 10px 58px; min-width: auto; }
  .contact-link .icon { left:10px; width:36px; height:36px; }
  .contact-links { justify-content:center; gap:10px; }
  .contact-left { padding:22px; }
}

/* accessibility: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .contact-link, .contact-link .icon { transition: none !important; transform: none !important; }
}
