*, *::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; /* Safari, Chrome, Opera */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
    user-select: none; 
    /* align-items: center; */
}
/* first Container */
.first-container{
  border: 2px solid red;
  min-width: 25%;
  background-color: var(--secondary-bg);
  min-height: 95vh;
  border: 2px solid var(--card-border);
  border-radius: 15px;
  padding: 20px 10px 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;
  /* border: 2px solid red; */
  justify-content: center;
  align-items: center;
}
.img-container {
  width: 200px;
  max-width: 100%; /* Prevents the circle itself from wider than the screen */
  aspect-ratio: 1 / 1; /* Keeps it a perfect circle as it shrinks */
  height: auto; /* Overrides the fixed 200px so aspect-ratio can work */
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 1; /* Allows the container to shrink if space is tight */
}

.img-container img {
  width: 100%; /* Fill the container */
  height: 100%;
  object-fit: cover; /* Prevents stretching */
}

.name {
  /* border: 2px solid red; */
  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;
  border: 2px solid red;
  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);
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
}
hr {
  margin-top: 15px;
  width: 90%;
  height: 2px;          /* Required: defines line thickness */
  background-color: var(--divider); /* Your desired color */
  border: none;    
  margin-top: 13px;
  margin-bottom: 13px;
  margin-left: auto;
  margin-right: 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 5px 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
}
.social-icon-holder{
  display: flex;
  gap: 20px;
}
.social-icon-holder svg{
  height: 35px;
  width: 35px;
  color: #888780;
  /* background-color: var(--card-bg); */
  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 */
.second-conatiner{
  border: 2px solid red;
  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;
}
/* ── Hide radio inputs ── */
.nav-radio { display: none; }

/* ══════════════════════════════════
NAVBAR
══════════════════════════════════ */
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 0px 0px;
    -webkit-border-radius: 15px 15px 0px 0px;
    -moz-border-radius: 15px 15px 0px 0px;
    -ms-border-radius: 15px 15px 0px 0px;
    -o-border-radius: 15px 15px 0px 0px;
}

.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; }

/* Links wrapper */
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    position: relative;
}

/* Each label acts as the clickable nav item */
.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 {
    content: '';
    position: absolute;
    bottom: 0;
    height: 2.5px;
    background: #E24B4A;
    border-radius: 2px 2px 0 0;
  /* smooth slide */
    transition: left  0.35s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  /* default: under Home */
    left: 0;
    width: calc(100% / 4);   /* fallback; overridden below */
}

.nav-links {
    --link-count: 4;
}
/* ── Reset ::after on nav-links (we'll use per-item approach) ── */
.nav-links::after { display: none; }

/* Per-item indicator */
.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);
}

/* Show bar on the active item */
#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);
}

/* ── Home is checked by default (see HTML) ── */

/* Social icons */
.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;
  -webkit-transition: all 0.2s, color 0.2s;
  -moz-transition: all 0.2s, color 0.2s;
  -ms-transition: all 0.2s, color 0.2s;
  -o-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);   }
}

/* Show the correct section based on checked radio */
#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;
}


.greeting{
  display: flex;
  align-items: center;
  gap: 8px;
}
.greeting .line{
  width: 40px;
  */background-color: var(--accent-primary);
  border: 2px solid #E24B4A;
  border-radius: 10px;
}
.desp{
  margin-top: 5px;
}
.greeting h2{
  font-size: 20px;
  color: #5f5e5a;
}
.my-name span{
  color: #E24B4A;
}
.my-name{
  display: flex;
  flex-direction: column;
  text-align: left;
  color: var(--heading-color);
  margin-top: 10px;
}
.my-name h1{
  font-size: 40px;
  font-weight: bolder;
}
.desp{
  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;  /* blinking cursor */
  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;
}
.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 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 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 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-container{
  display: flex;
  gap: 50px;
}
.left{
  /* border: 2px solid red; */
  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;

  /* ── Custom scrollbar ── */
  scrollbar-width: thin;
  scrollbar-color: #2c2c2a #1a1a18;
}

/* Chrome, Safari, Edge */
.scroll-wrap::-webkit-scrollbar {
  width: 4px;
}

.scroll-wrap::-webkit-scrollbar-track {
  background: #1a1a18;
  border-radius: 2px;
}

.scroll-wrap::-webkit-scrollbar-thumb {
  background: #2c2c2a;
  border-radius: 2px;
}

.scroll-wrap::-webkit-scrollbar-thumb:hover {
  background: #E24B4A;
}
.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;
}
.tool{
  padding: 6px 16px;
  border: 0.5px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background-color: #242422;
  color: #888780;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  -ms-border-radius: 12px;
  -o-border-radius: 12px;
}
.card-btns{
  display: flex;
  gap: 10px;
  /* border: 2px solid red; */
}
.card-btn{
  align-items: center;
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  -ms-border-radius: 12px;
  -o-border-radius: 12px;
}
.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;
  /* border: 2px solid var(--card-border); */
  background-color: #1a1a18;
  border: 0.5px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-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;
}
/* Google Maps link button */
.location-link {
  margin-top: 0.5rem;
}

.map-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 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;
}