:root {
  /* Warm theme — vanilla/cream base, white cards, burnt-orange accent,
     dark warm brown for text. color-scheme: light keeps native form
     controls/scrollbars matched to the page. */
  color-scheme: light;
  --color-navy-dark: #021024;
  --color-navy: #052659;
  --color-primary: #fc6c26;
  --color-primary-light: #ff9166;
  --color-primary-dark: #e05a1a;
  --color-bg: #fff4d6;
  --color-bg-alt: #faece7;
  --color-card: #ffffff;
  --color-border: #f0997b;
  --color-text: #4a1b0c;
  --color-text-muted: #712b13;

  /* Spacing rhythm */
  --section-padding: 90px;

  /* Shape + shadow */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 16px rgba(74, 27, 12, 0.1);
  --shadow-md: 0 12px 30px rgba(74, 27, 12, 0.16);
  --shadow-lg: 0 22px 45px rgba(74, 27, 12, 0.22);

  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  background-color: var(--color-bg);
  scroll-behavior: smooth;
}

body {
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  color: var(--color-text);
}

main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 50px);
  overflow: hidden;
}

/* ---------- Accessibility: visible keyboard focus ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Typography ---------- */

h1,
h2,
h3 {
  font-family: "Poppins", sans-serif;
}

h1 {
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 4rem);
}

h2 {
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
  font-weight: 600;
  color: var(--color-primary-light);
  font-size: clamp(1rem, 3vw, 1.5rem);
}

p {
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* Section title with accent underline — applied only to section headings via .section-title */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-primary-light)
  );
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Header / Nav ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 80px;
}
@media screen and (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 20px;
    gap: 15px;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  nav a {
    margin-left: 0;
    font-size: 16px;
  }
}

.logo {
  color: var(--color-primary);
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
}

nav a {
  color: var(--color-bg);
  text-decoration: none;
  margin-left: 30px;
  font-size: 18px;
  font-weight: 400;
  transition: color var(--transition);
}

nav a:hover {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
}

/* ---------- Hero / Intro ---------- */

.intro {
  position: relative;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 70px 0;
  background: radial-gradient(
      circle at 12% 20%,
      rgba(252, 108, 38, 0.14),
      transparent 42%
    ),
    radial-gradient(circle at 88% 75%, rgba(240, 153, 123, 0.16), transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(74, 27, 12, 0.05), transparent 50%);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.intro > div:first-child {
  animation: fadeInUp 0.8s ease both;
}

.intro > a {
  animation: fadeInRight 0.9s ease 0.15s both;
}

/* ---------- Availability badge ---------- */

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 6px 14px;
  background: #faece7;
  color: #712b13;
  border: 1px solid #f0997b;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 rgba(252, 108, 38, 0.5);
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(252, 108, 38, 0.5);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(252, 108, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(252, 108, 38, 0);
  }
}

@media screen and (max-width: 768px) {
  .intro {
    flex-direction: column-reverse;
    text-align: center;
    gap: 30px;
    padding: 50px 0;
  }

  .uparwalaimg {
    width: 200px;
    height: auto;
    margin: 0;
  }
}

.uparwalaimg {
  max-width: 100%;
  height: 300px;
  width: 230px;
  border-radius: var(--radius-lg);
  margin: 20px;
  object-fit: cover;
  box-shadow: 0 0 0 6px rgba(252, 108, 38, 0.15), var(--shadow-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}

.uparwalaimg:hover {
  transform: scale(1.03);
  box-shadow: 0 0 0 8px rgba(252, 108, 38, 0.22), var(--shadow-lg);
}

.buttons {
  margin-top: 30px;
}

.btn1 {
  background-color: var(--color-primary);
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 50px;
  margin-right: 15px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn1:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn2 {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn2:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

@media screen and (max-width: 480px) {
  .buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .btn1,
  .btn2 {
    width: 80%;
    text-align: center;
    justify-content: center;
  }
}

.socials {
  margin-top: 40px;
}

.socials a {
  font-size: 32px;
  margin-right: 22px;
  text-decoration: none;
  color: var(--color-text);
  transition: color var(--transition), transform var(--transition);
  display: inline-block;
}

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

/* ---------- About ---------- */

.aboutme {
  background-color: var(--color-card);
  display: flex;
  align-items: center;
  gap: 40px;
  padding: var(--section-padding) 0;
}
@media screen and (max-width: 768px) {
  .aboutme {
    flex-direction: column;
    text-align: center;
    padding: 50px 20px;
  }

  .aboutmeimg {
    width: 200px;
    height: auto;
    margin: 0;
  }
}

.aboutmeimg {
  max-width: 100%;
  height: 300px;
  border-radius: var(--radius-lg);
  margin: 20px;
  object-fit: cover;
  box-shadow: 0 0 0 6px rgba(252, 108, 38, 0.15), var(--shadow-lg);
}

.about-text p {
  font-size: 1rem;
}

/* ---------- Contact info block ---------- */

.contactme {
  text-align: left;
  margin-top: 20px;
  width: 30%;
}

.contactme p {
  margin: 15px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contactme a {
  font-size: 18px;
  margin: 10px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 400;
  transition: color var(--transition), transform var(--transition);
}

.info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 20px;
}

.skills {
  text-align: left;
  font-weight: 400;
  width: 40%;
}

/* ---------- Skills ---------- */

.skills-section {
  background-color: var(--color-bg-alt);
  text-align: center;
  padding: var(--section-padding) 0;
}

.skills-group {
  margin-top: 30px;
}

.skills-group:first-of-type {
  margin-top: 10px;
}

.skills-group-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

.skills-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.skill-card {
  width: 130px;
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 22px 15px;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}

.skill-card img {
  width: 60px;
  height: 60px;
}

.skill-card .skill-icon {
  display: block;
  width: 60px;
  height: 60px;
  line-height: 60px;
  font-size: 44px;
  margin: 0 auto;
}

.skill-card p {
  margin-top: 12px;
  font-weight: 600;
  color: var(--color-text);
}

.fa-python {
  color: #3776ab;
}

.fa-git-alt {
  color: #f05033;
}

/* ---------- Projects ---------- */

.projects-section {
  background-color: var(--color-card);
  text-align: center;
  padding: var(--section-padding) 0;
}

.projects-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 40px;
}

.project-card {
  width: 260px;
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}

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

.project-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  min-height: 60px;
}

.project-impact {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-bg-alt);
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 4px;
}

.project-impact i {
  color: var(--color-primary);
  margin-top: 2px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}

.tech-tag {
  background: var(--color-bg-alt);
  color: var(--color-primary);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.project-links {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.project-links a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}

.project-links a:hover {
  color: var(--color-text);
  text-decoration: underline;
}

/* Placeholder for a demo link that isn't live yet — looks inert instead of
   behaving like a real (but broken) link */
.project-links .link-pending {
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: not-allowed;
  opacity: 0.6;
}

/* ---------- Education ---------- */

.education {
  background-color: var(--color-bg-alt);
  text-align: center;
  padding: var(--section-padding) 0;
}

.timeline {
  display: flex;
  justify-content: space-around;
  position: relative;
  margin-top: 50px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 10%;
  width: 80%;
  height: 3px;
  background: var(--color-primary-light);
}
@media screen and (max-width: 768px) {
  .timeline {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .timeline::before {
    display: none;
  }

  .edu-card {
    width: 90%;
    max-width: 350px;
  }
}

.edu-card {
  position: relative;
  width: 250px;
  text-align: left;
  z-index: 1;
  background: var(--color-card);
  border: 2px solid transparent;
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.edu-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}

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

.circle {
  width: 40px;
  height: 40px;
  border-radius: 100%;
  background: var(--color-primary);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  font-size: 20px;
}

/* ---------- Contact ---------- */

.contact {
  text-align: center;
  padding-top: 10px;
}

.contactme a:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
}

.contact form {
  width: 60%;
  margin: auto;
}

.row {
  display: flex;
  gap: 15px;
}

.row input {
  flex: 1;
}
@media screen and (max-width: 768px) {
  .row {
    flex-direction: column;
    gap: 0;
  }
}

input,
textarea {
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  background: var(--color-card);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 1;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(252, 108, 38, 0.15);
}

textarea {
  height: 120px;
  resize: none;
}

button {
  margin-top: 20px;
  padding: 14px 30px;
  background: var(--color-primary);
  color: var(--color-text);
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), transform var(--transition),
    box-shadow var(--transition);
}

button:hover {
  background: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.connectwme {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding: var(--section-padding) 0;
  gap: 50px;
}

.connectwme a {
  text-decoration: none;
  color: var(--color-text);
  margin: 15px;
  transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
  .connectwme {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 50px 0;
  }

  .contactme {
    width: 100%;
    text-align: center;
  }

  .contact {
    width: 100%;
  }

  .contact form {
    width: 100%;
  }
}

@media screen and (max-width: 800px) {
  .nav-toggle {
    display: block;
    margin-right: 20px;
  }
}

/* ---------- Footer ---------- */

footer {
  background-color: var(--color-text);
  text-align: center;
  color: var(--color-bg);
  width: 100%;
  padding: 24px 20px;
  font-weight: 300;
}

/* ---------- Toast notifications ---------- */

#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 340px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--color-card);
  color: var(--color-text);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--color-primary);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  transform: translateX(130%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast i {
  font-size: 18px;
  margin-top: 1px;
}

.toast-success {
  border-left-color: #16a34a;
}
.toast-success i {
  color: #16a34a;
}

.toast-error {
  border-left-color: #dc2626;
}
.toast-error i {
  color: #dc2626;
}

.toast-message {
  flex: 1;
  line-height: 1.5;
}

.toast-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1;
  padding: 0;
  margin-left: 4px;
}

.toast-close:hover {
  color: var(--color-text);
}

@media screen and (max-width: 480px) {
  #toast-container {
    left: 16px;
    right: 16px;
    max-width: none;
  }
}

/* ---------- Responsive rhythm ---------- */

@media screen and (max-width: 480px) {
  :root {
    --section-padding: 50px;
  }
}
