*, *::before, *::after { 
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
  /* Backgrounds */
  --primary-bg: #111111;
  --secondary-bg: #1e1e1e;
  --navbar-bg: #2a2a2a;
  --card-bg: #333333;
  --input-bg: #3d3d3d;

  /* Text */
  --heading-color: #f5f5f5;
  --subheading-color: #e5e7eb;
  --body-text: #9ca3af;
  --muted-text: #6b7280;

  /* Border / Shadow */
  --card-border: #333333;
  --box-shadow: rgba(0,0,0,0.30);
  --box-hover: rgba(96,165,250,0.10);

  /* Work badge */
  --badge-bg: #0f2e1a;
  --badge-border: #1d6b3a;
  --badge-text: #2ea84a;

  /* Accent */
  --accent-primary: #a855f7;
  --accent-light: #d8b4fe;
  --accent-dark: #6b21a8;
  --tag-bg: #2e1065;
  --accent-glow: rgba(168,85,247,0.12);

  /* Extra text */
  --white: #ffffff;
  --footer-text: #4b5563;
  --link-color: #a855f7;

  /* Extra borders */
  --divider: #3a3a3a;
  --card-border-hover: #444444;
}

body {
    font-family: 'Syne', sans-serif;
    background: var(--primary-bg);
    min-height: 100vh;
    padding: 20px 50px 15px 10px;
    display: flex;
    gap: 50px;
    justify-content: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ══════════════════════════════════
   FIRST CONTAINER (Sidebar)
══════════════════════════════════ */
.first-container {
  min-width: 25%;
  background-color: var(--secondary-bg);
  min-height: 95vh;
  border: 2px solid var(--card-border);
  border-radius: 15px;
  padding: 20px 10px;
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  -ms-border-radius: 15px;
  -o-border-radius: 15px;
}

.my-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.img-container {
  width: 200px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 1;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.name {
  text-align: center;
}
.name h2 { color: var(--heading-color); }
.name h4 { color: var(--subheading-color); }

.work-badge {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  padding: 10px;
  border-radius: 25px;
  background: var(--badge-bg);
  border: 0.5px solid var(--badge-border);
  color: var(--badge-text);
}

.status-dot {
  height: 10px;
  width: 10px;
  border-radius: 50%;
  background-color: var(--badge-text);
}

hr {
  width: 90%;
  height: 2px;
  background-color: var(--divider);
  border: none;
  margin: 13px auto;
}

.my-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  margin-left: 15px;
}
.my-details > h3 {
  text-align: left;
  font-size: 16px;
  color: var(--input-bg);
}

.address {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-left: 10px;
}

svg {
  height: 20px;
  width: 20px;
}

.address > h3 {
  color: var(--body-text);
  font-size: 15px;
}

.mail {
  display: flex;
  align-items: center;
  margin-left: 10px;
  gap: 5px;
}
.mail > a {
  color: var(--link-color);
  text-decoration: none;
}

.phno { color: var(--body-text); }

.skill-holder {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skill-holder p {
  font-size: 15px;
  border: 2px solid var(--card-border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--subheading-color);
  padding: 5px 8px;
}

.social-icon-holder {
  display: flex;
  gap: 20px;
}
.social-icon-holder svg {
  height: 35px;
  width: 35px;
  color: #888780;
  border: 2px solid var(--card-border);
  padding: 5px;
  border-radius: 10px;
}
.social-icon-holder svg:hover {
  filter: drop-shadow(0px 10px 10px var(--card-border-hover));
}

/* ══════════════════════════════════
   SECOND CONTAINER (Main)
══════════════════════════════════ */
.second-conatiner {
  width: clamp(300px, 70%, 1200px);
  border: 2px solid var(--card-border);
  border-radius: 15px;
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  -ms-border-radius: 15px;
  -o-border-radius: 15px;
}

/* ══════════════════════════════════
   NAVBAR
══════════════════════════════════ */
.nav-radio { display: none; }

nav {
  top: 0;
  z-index: 100;
  background: var(--navbar-bg);
  border-bottom: 0.5px solid rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  height: 64px;
  border: 2px solid var(--card-border);
  border-radius: 15px 15px 0 0;
}

.nav-logo {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a18;
  letter-spacing: -0.5px;
  margin-right: auto;
  padding-right: 2rem;
  text-decoration: none;
}
.nav-logo span { color: #E24B4A; }

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  position: relative;
  --link-count: 4;
}

.nav-links label {
  display: flex;
  align-items: center;
  padding: 0 1.1rem;
  height: 64px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--heading-color);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: color 0.25s ease;
}
.nav-links label:hover { color: #1a1a18; }

#r-home:checked      ~ nav .nav-links .lbl-home,
#r-about:checked     ~ nav .nav-links .lbl-about,
#r-portfolios:checked~ nav .nav-links .lbl-portfolios,
#r-contact:checked   ~ nav .nav-links .lbl-contact {
  color: var(--body-text);
}

.nav-links::after { display: none; }

.nav-links li { position: relative; }

.nav-links li::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: #E24B4A;
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#r-home:checked      ~ nav .nav-links .li-home::after,
#r-about:checked     ~ nav .nav-links .li-about::after,
#r-portfolios:checked~ nav .nav-links .li-portfolios::after,
#r-contact:checked   ~ nav .nav-links .li-contact::after {
  transform: scaleX(1);
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 1.5rem;
  border-left: 0.5px solid rgba(0,0,0,0.1);
  margin-left: 0.5rem;
}
.social-icons a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #888780;
  text-decoration: none;
  transition: all 0.2s, color 0.2s;
}
.social-icons a:hover {
  background: var(--card-bg);
  color: #1a1a18;
}

/* ══════════════════════════════════
   PAGE SECTIONS
══════════════════════════════════ */
.page-section {
  display: none;
  padding: 2rem 3rem;
  animation: fadeUp 0.35s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

#r-home:checked      ~ main .section-home,
#r-about:checked     ~ main .section-about,
#r-portfolios:checked~ main .section-portfolios,
#r-contact:checked   ~ main .section-contact {
  display: block;
}

/* ══════════════════════════════════
   HOME SECTION
══════════════════════════════════ */
.greeting {
  display: flex;
  align-items: center;
  gap: 8px;
}
.greeting .line {
  width: 40px;
  border: 2px solid #E24B4A;
  border-radius: 10px;
}
.greeting h2 {
  font-size: 20px;
  color: #5f5e5a;
}

.my-name {
  display: flex;
  flex-direction: column;
  text-align: left;
  color: var(--heading-color);
  margin-top: 10px;
}
.my-name span { color: #E24B4A; }
.my-name h1 {
  font-size: 40px;
  font-weight: bolder;
}

.desp {
  margin-top: 5px;
  color: var(--muted-text);
}

.typing-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 500;
  color: #b4b2a9;
  margin-bottom: 1.25rem;
  min-height: 30px;
}
.typing-prefix {
  color: #888780;
  font-size: 28px;
}
.typed-text {
  color: var(--subheading-color);
  border-right: 2px solid #E24B4A;
  padding-right: 3px;
  white-space: nowrap;
  overflow: hidden;
  font-size: 32px;
}

.my-about {
  width: 65%;
  color: var(--body-text);
}

.home-btns {
  display: flex;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.work-btn {
  display: flex;
  align-items: center;
  transition: all 0.4s ease-in-out;
  gap: 5px;
  cursor: pointer;
}
.work-btn svg { height: 20px; width: 20px; }
.work-btn span { font-size: 18px; }

.work-btn:first-child {
  background: #E24B4A;
  border: 1.5px solid #E24B4A;
  color: #ffffff;
  padding: 10px 15px;
  border-radius: 8px;
}
.work-btn:first-child:hover { background: #c73d3c; }

.work-btn:nth-child(2) {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.12);
  color: #b4b2a9;
  padding: 10px 15px;
  border-radius: 8px;
}
.work-btn:nth-child(2):hover {
  border: 1.5px solid rgba(255,255,255,0.30);
  color: #f0ede8;
}

.work-btn:nth-child(3) {
  background: #1a1a18;
  border: 1.5px solid rgba(255,255,255,0.06);
  color: #888780;
  padding: 10px 15px;
  border-radius: 8px;
}
.work-btn:nth-child(3):hover {
  background: #242422;
  border: 1.5px solid rgba(255,255,255,0.15);
  color: #b4b2a9;
}

/* ══════════════════════════════════
   ABOUT SECTION
══════════════════════════════════ */
.about-container {
  display: flex;
  gap: 50px;
}

.left { width: 55%; }

.about-me {
  margin-top: 25px;
  color: var(--body-text);
  width: 100%;
}

.values {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.value-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E24B4A;
  margin-top: 6px;
  flex-shrink: 0;
}
.value-text {
  font-size: 18px;
  color: #888780;
  line-height: 1.6;
}
.value-text strong {
  color: #b4b2a9;
  font-weight: 500;
}

.experience {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.exp-title { color: var(--subheading-color); }

.timeline {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.timeline-item {
  display: flex;
  gap: 10px;
}
.time-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.time-dot {
  height: 9px;
  width: 9px;
  border-radius: 50%;
  background: #E24B4A;
}
.time-line {
  width: 1.5px;
  height: 30px;
  background-color: #E24B4A;
}
.time-right {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.t-year {
  font-size: 18px;
  color: var(--muted-text);
}
.t-college {
  font-size: 22px;
  color: var(--body-text);
}

.right {
  width: 45%;
  padding-left: 20px;
}
.skills {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.skill-heading { color: var(--subheading-color); }
.skill-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 5px;
}
.skill-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.skill-top {
  display: flex;
  justify-content: space-between;
}
.skill-name { color: var(--subheading-color); }
.skill-value { color: var(--muted-text); }
.skill-bar {
  height: 4px;
  width: 100%;
  background: var(--secondary-bg);
}
.skill-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: #E24B4A;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ══════════════════════════════════
   PORTFOLIO SECTION
══════════════════════════════════ */
.filter-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.filter-btn {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: 0.5px solid rgba(255,255,255,0.08);
  background: #1a1a18;
  color: #888780;
  transition: all 0.2s;
}
.filter-btn.active {
  background: #E24B4A;
  border-color: #E24B4A;
  color: white;
}
.filter-btn:hover:not(.active) {
  border-color: rgba(255,255,255,0.2);
  color: #b4b2a9;
}

.scroll-wrap {
  margin-top: 20px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  height: 420px;
  overflow-y: auto;
  justify-content: safe center;
  padding: 20px 0;
  scrollbar-gutter: stable;
}

.card {
  border: 0.5px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 40%;
}
.card-img {
  width: 100%;
  height: 200px;
}
.card-img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.card-body { padding: 1rem; }
.card-title {
  font-size: 21px;
  color: var(--heading-color);
}
.card-desc {
  color: #5f5e5a;
  font-size: 15px;
  margin-bottom: 10px;
}
.tools {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}
.tool {
  padding: 6px 16px;
  border: 0.5px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background-color: #242422;
  color: #888780;
}
.card-btns {
  display: flex;
  gap: 10px;
}
.card-btn {
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-live {
  background: #E24B4A;
  color: #ffffff;
  border: none;
}
.btn-live:hover { background: #c73d3c; }
.btn-gh {
  background: transparent;
  color: #888780;
  border: 0.5px solid rgba(255,255,255,0.1);
}
.btn-gh:hover {
  border-color: rgba(255,255,255,0.25);
  color: #b4b2a9;
}

/* ══════════════════════════════════
   CONTACT SECTION
══════════════════════════════════ */
.contact-form {
  display: flex;
  gap: 25px;
  margin-top: 40px;
}
.left-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.contact-info, .location-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.info-heading {
  margin-bottom: 0.25rem;
  color: var(--body-text);
}
.info-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.info-details svg {
  color: #E24B4A;
  height: 35px;
  width: 35px;
  padding: 6px;
  background-color: #1a1a18;
  border: 0.5px solid rgba(255,255,255,0.07);
  border-radius: 8px;
}
.mail-info, .phonedetails {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mail-info a, .mail-info p, .phonedetails a {
  color: var(--muted-text);
  text-decoration: none;
}

.location-link { margin-top: 0.5rem; }

.map-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #1a1a18;
  border: 0.5px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s;
}
.map-link:hover { border-color: rgba(226,75,74,0.4); }
.map-link svg { height: 25px; width: 25px; color: #E24B4A; }
.map-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.map-text {
  font-size: 12px;
  color: #888780;
  font-family: 'Syne', sans-serif;
}
.map-arrow-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  flex-shrink: 0;
}

.social-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-col { width: 100%; }

.form-grid {
  display: grid;
  grid-template-columns: 0.8fr 0.8fr;
  gap: 10px;
  margin-bottom: 10px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-group.full { grid-column: 1 / -1; }
.form-label {
  font-size: 11px;
  font-weight: 500;
  color: #5f5e5a;
  letter-spacing: 0.03em;
  font-family: 'Syne', sans-serif;
}
.form-input,
.form-textarea {
  background: #1a1a18;
  border: 0.5px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 13px;
  color: #f0ede8;
  font-family: 'Syne', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-input::placeholder,
.form-textarea::placeholder { color: #444441; }
.form-input:focus,
.form-textarea:focus { border-color: #E24B4A; }
.form-textarea {
  resize: none;
  height: 110px;
  line-height: 1.6;
}
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 10px;
}
.form-note {
  font-size: 11px;
  color: #5f5e5a;
  font-family: 'Syne', sans-serif;
}
.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 24px;
  background: #E24B4A;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Syne', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}
.submit-btn:hover { background: #c73d3c; }


/* ══════════════════════════════════
   RESPONSIVE — 1200px
   Large tablets / small laptops
══════════════════════════════════ */
@media (max-width: 1200px) {
  body {
    padding: 15px 20px;
    gap: 30px;
  }
  .first-container {
    min-width: 28%;
  }
  .second-conatiner {
    width: clamp(300px, 65%, 1000px);
  }
  .my-name h1 { font-size: 34px; }
  .typed-text { font-size: 26px; }
  .typing-prefix { font-size: 24px; }
  .my-about { width: 80%; }
  .about-container { gap: 30px; }
  .t-college { font-size: 18px; }
  .value-text { font-size: 16px; }
}


/* ══════════════════════════════════
   RESPONSIVE — 900px
   Tablets
══════════════════════════════════ */
@media (max-width: 900px) {
  body {
    flex-direction: column;
    padding: 15px;
    gap: 20px;
    align-items: center;
  }

  /* Sidebar becomes horizontal strip at top */
  .first-container {
    min-width: 100%;
    width: 100%;
    min-height: auto;
    padding: 20px;
  }

  .my-info {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
  }

  .img-container {
    width: 100px;
    flex-shrink: 0;
  }

  .name { text-align: left; }

  .work-badge { justify-content: flex-start; }

  hr { display: none; }

  .my-details {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    margin-left: 0;
  }
  .my-details > h3 { width: 100%; }

  .address, .mail { margin-left: 0; }

  .skill-holder { margin-top: 10px; }

  /* Main container full width */
  .second-conatiner {
    width: 100%;
  }

  /* Nav — hide social icons to save space */
  .social-icons { display: none; }

  nav { padding: 0 1rem; }
  .nav-logo { padding-right: 1rem; font-size: 15px; }
  .nav-links label { padding: 0 0.75rem; font-size: 12.5px; }

  /* Page sections */
  .page-section { padding: 1.5rem; }

  /* Home */
  .my-name h1 { font-size: 30px; }
  .typed-text { font-size: 22px; }
  .typing-prefix { font-size: 20px; }
  .my-about { width: 100%; }
  .home-btns { gap: 12px; }
  .work-btn span { font-size: 15px; }

  /* About */
  .about-container {
    flex-direction: column;
    gap: 30px;
  }
  .left { width: 100%; }
  .right { width: 100%; padding-left: 0; }
  .value-text { font-size: 15px; }
  .t-college { font-size: 18px; }

  /* Portfolio */
  .card { width: 45%; }

  /* Contact */
  .contact-form {
    flex-direction: column;
    gap: 30px;
  }
  .left-form { width: 100%; }
  .form-col { width: 100%; }
}


/* ══════════════════════════════════
   RESPONSIVE — 600px
   Mobile landscape
══════════════════════════════════ */
@media (max-width: 600px) {
  body { padding: 10px; }

  /* Sidebar stacks vertically again */
  .my-info {
    flex-direction: column;
    align-items: center;
  }
  .name { text-align: center; }
  .work-badge { justify-content: center; }
  .my-details {
    flex-direction: column;
    margin-left: 0;
    align-items: flex-start;
    width: 100%;
  }
  .address, .mail { margin-left: 0; }

  hr { display: block; }

  /* Nav */
  nav { padding: 0 0.5rem; height: 54px; }
  .nav-links label {
    padding: 0 0.5rem;
    font-size: 11.5px;
  }
  .nav-logo { display: none; }

  /* Page sections */
  .page-section { padding: 1.25rem 1rem; }

  /* Home */
  .my-name h1 { font-size: 26px; }
  .typed-text { font-size: 18px; }
  .typing-prefix { font-size: 16px; }
  .home-btns {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .work-btn { width: fit-content; }

  /* About */
  .value-text { font-size: 14px; }
  .t-year { font-size: 14px; }
  .t-college { font-size: 16px; }

  /* Portfolio */
  .scroll-wrap { height: auto; max-height: 500px; }
  .card { width: 100%; }
  .card-img { height: 160px; }

  /* Contact */
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .form-footer { flex-direction: column; align-items: flex-start; }
  .submit-btn { width: 100%; justify-content: center; }
}


/* ══════════════════════════════════
   RESPONSIVE — 480px
   Mobile portrait
══════════════════════════════════ */
@media (max-width: 480px) {
  .img-container { width: 120px; }

  .work-badge {
    font-size: 12px;
    padding: 7px 12px;
  }

  .name h2 { font-size: 18px; }
  .name h4 { font-size: 13px; }

  nav { height: 50px; }
  .nav-links label {
    padding: 0 0.4rem;
    font-size: 11px;
  }

  .my-name h1 { font-size: 22px; }
  .typed-text { font-size: 16px; }
  .typing-prefix { font-size: 14px; }
  .typing-row { gap: 5px; }

  .work-btn span { font-size: 13px; }

  .skill-holder p { font-size: 12px; }

  .social-icon-holder svg {
    height: 28px;
    width: 28px;
  }

  .card-title { font-size: 17px; }
  .card-desc { font-size: 13px; }
}