/* ============================================================
   Ajinkya Pathak Portfolio — DeveloperFolio Inspired Design
   Vanilla CSS · Dark Mode · Responsive · SEO-Optimized
   ============================================================ */

/* ---------- Design Tokens (Light Theme) ---------- */
:root {
  /* Primary palette — warm amber/gold */
  --color-primary: #8a5a18;
  --color-primary-hover: #b87a2a;
  --color-primary-light: rgba(138, 90, 24, 0.1);
  --color-button: #55198b;
  --color-button-hover: #8c43ce;

  /* Text */
  --color-title: #1a1a1a;
  --color-text: #333333;
  --color-subtitle: #868e96;
  --color-card-subtitle: #666666;

  /* Backgrounds */
  --color-bg: #ffffff;
  --color-bg-alt: #f5f2f4;
  --color-surface: #ffffff;

  /* Borders & shadows */
  --color-border: rgba(211, 211, 211, 0.4);
  --shadow-card: rgba(0, 0, 0, 0.2) 0px 10px 30px -15px;
  --shadow-card-hover: rgba(0, 0, 0, 0.2) 0px 20px 30px -10px;

  /* Misc */
  --color-progress-bg: rgb(243, 239, 239);
  --color-progress-fill: #aaa5ff;
  --color-skills: #645beb;
  --color-header-hover: #f4f4f4;
  --color-education-border: #a9a7f9;

  /* Social media */
  --color-linkedin: #0e76a8;
  --color-github: #333;
  --color-google: #ea4335;

  /* Gradients */
  --gradient-experience-banner: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.5));
  --gradient-experience-blur: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.2));

  /* Spacing */
  --section-width: 90%;
  --max-width: 1200px;

  /* Typography */
  --font-body: 'Montserrat', sans-serif;
  --font-logo: 'Source Serif 4', 'Georgia', serif;
  --font-code: 'JetBrains Mono', monospace;
}

/* ---------- Dark Mode Tokens ---------- */
.dark-mode {
  --color-title: #f0f0f0;
  --color-text: #d4d4d4;
  --color-subtitle: #a0a8b4;
  --color-card-subtitle: #b0b0b0;
  --color-bg: #171c28;
  --color-bg-alt: #1e2333;
  --color-surface: #171c28;
  --color-border: rgba(255, 255, 255, 0.12);
  --shadow-card: rgba(0, 0, 0, 0.4) 0px 10px 30px -15px;
  --shadow-card-hover: rgba(0, 0, 0, 0.5) 0px 20px 30px -10px;
  --color-header-hover: rgba(85, 25, 139, 0.3);
  --color-progress-bg: #2a2f3e;
  --color-education-border: #6c63ff;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.4;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

::selection {
  background: var(--color-primary);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg);
  max-width: 100%;
  padding: 15px 20px;
  margin: 0 auto;
  transition: background-color 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
}

.header .logo {
  display: flex;
  align-items: center;
  font-size: 1.5em;
  text-decoration: none;
  line-height: normal;
  gap: 0;
}

.logo .grey-color {
  color: var(--color-subtitle);
}

.logo .logo-name {
  font-family: var(--font-logo);
  font-weight: bold;
  padding: 0 6px;
  color: var(--color-title);
}

/* Nav menu */
.header .menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.header .menu li a {
  display: block;
  padding: 15px 20px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
  border-radius: 6px;
}

.header .menu li a:hover {
  background-color: var(--color-header-hover);
}

/* Hamburger menu */
.menu-btn {
  display: none;
}

.menu-icon {
  cursor: pointer;
  display: none;
  padding: 28px 20px;
  position: relative;
  user-select: none;
}

.menu-icon .navicon {
  background: #333;
  display: block;
  height: 2px;
  position: relative;
  transition: background 0.2s ease-out;
  width: 18px;
}

.dark-mode .menu-icon .navicon {
  background: #fff;
}

.menu-icon .navicon::before,
.menu-icon .navicon::after {
  background: #333;
  content: "";
  display: block;
  height: 100%;
  position: absolute;
  transition: all 0.2s ease-out;
  width: 100%;
}

.dark-mode .menu-icon .navicon::before,
.dark-mode .menu-icon .navicon::after {
  background: #fff;
}

.menu-icon .navicon::before {
  top: 5px;
}

.menu-icon .navicon::after {
  top: -5px;
}

.menu-btn:checked ~ nav .menu {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.menu-btn:checked ~ .menu-icon .navicon {
  background: transparent;
}

.menu-btn:checked ~ .menu-icon .navicon::before {
  transform: rotate(-45deg);
  top: 0;
}

.menu-btn:checked ~ .menu-icon .navicon::after {
  transform: rotate(45deg);
  top: 0;
}

/* Dark mode toggle */
.toggle-container {
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 26px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background-color: #ccc;
  border-radius: 26px;
  transition: 0.3s;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--color-button);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(24px);
}

.toggle-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
}

/* ---------- Section Layout ---------- */
.main-section {
  width: var(--section-width);
  max-width: var(--max-width);
  padding: 20px 10px;
  margin: 0 auto;
  margin-top: 2rem;
}

section[id] {
  scroll-margin-top: 80px;
}

/* ---------- Greeting / Hero ---------- */
.greet-main {
  width: var(--section-width);
  max-width: var(--max-width);
  padding: 20px 10px;
  margin: 0 auto;
  margin-top: 2rem;
}

.greeting-main {
  display: flex;
  align-items: center;
  gap: 40px;
}

.greeting-main > * {
  flex: 1;
  margin-bottom: 30px;
}

.greeting-text {
  font-size: 70px;
  line-height: 1.1;
  color: var(--color-title);
  font-weight: 700;
}

.greeting-text-p {
  font-size: 22px;
  line-height: 34px;
  color: var(--color-subtitle);
  margin-top: 16px;
}

.greeting-text-p strong {
  color: var(--color-title);
}

.wave-emoji {
  animation-duration: 1.8s;
  animation-iteration-count: infinite;
  animation-name: wave;
  display: inline-block;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0%   { transform: rotate(0deg); }
  10%  { transform: rotate(-10deg); }
  20%  { transform: rotate(12deg); }
  30%  { transform: rotate(-10deg); }
  40%  { transform: rotate(9deg); }
  50%  { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

.empty-div {
  margin-bottom: 20px;
}

.button-greeting-div {
  display: flex;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.greeting-image-div {
  display: flex;
  align-items: center;
  justify-content: center;
}

.greeting-image-div img,
.greeting-image-div svg {
  max-width: 450px;
  width: 100%;
  height: auto;
}

/* ---------- Buttons ---------- */
.main-button {
  background-color: var(--color-button);
  border: 2px solid var(--color-button);
  color: #ffffff;
  font-weight: 700;
  padding: 13px 22px;
  text-transform: uppercase;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  letter-spacing: 0.5px;
}

.main-button:hover {
  background-color: #ffffff;
  color: var(--color-button);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(85, 25, 139, 0.3);
}

.dark-mode .main-button:hover {
  background-color: var(--color-bg);
}

.download-link-button {
  text-decoration: none;
}

.button-outline {
  background-color: transparent;
  color: var(--color-button);
}

.button-outline:hover {
  background-color: var(--color-button);
  color: #ffffff;
}

/* ---------- Social Media Icons ---------- */
.social-media-div {
  font-size: 2em;
  margin-top: 10px;
}

.icon-button {
  margin-bottom: 10px;
}

.icon-button i {
  color: #ffffff;
  border-radius: 2.6rem;
  cursor: pointer;
  display: inline-block;
  font-size: 1.3rem;
  height: 2.6rem;
  line-height: 2.6rem;
  margin: 0 5px;
  position: relative;
  text-align: center;
  user-select: none;
  width: 2.6rem;
  margin-bottom: 10px;
  transition: 0.2s ease-in;
}

.linkedin i  { background-color: var(--color-linkedin); }
.github i    { background-color: var(--color-github); }
.google i    { background-color: var(--color-google); }

.dark-mode .github i { background-color: #6e6e6e; }

.icon-button i:hover {
  background-color: var(--color-title);
  transform: scale(1.1);
}

/* ---------- Skills Section ---------- */
.skills-main-div {
  display: flex;
  align-items: center;
  gap: 40px;
}

.skills-main-div > * {
  flex: 1;
}

.skills-heading {
  font-size: 56px;
  font-weight: 700;
  color: var(--color-title);
}

.skills-text-subtitle {
  font-size: 18px;
  color: var(--color-subtitle);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
}

.skills-text {
  font-size: 17px;
  color: var(--color-subtitle);
  margin-top: 12px;
  line-height: 1.6;
}

.skills-text::before {
  content: "⚡ ";
}

/* Software skill icons grid */
.software-skills-main-div {
  margin: 24px 0;
}

.dev-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
}

.software-skill-inline {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 10px 14px;
  font-size: 2.5rem;
  color: var(--color-skills);
  transition: transform 0.2s ease;
}

.software-skill-inline:hover {
  transform: translateY(-4px);
}

.software-skill-inline p {
  font-size: 11px;
  color: var(--color-subtitle);
  margin-top: 4px;
  text-align: center;
}

.skills-image-div {
  display: flex;
  align-items: center;
  justify-content: center;
}

.skills-image-div img,
.skills-image-div svg {
  max-width: 420px;
  width: 100%;
}

/* ---------- Proficiency / Progress Bars ---------- */
.skills-container {
  display: flex;
  width: var(--section-width);
  max-width: var(--max-width);
  padding: 20px 10px;
  margin: 0 auto;
  margin-top: 2rem;
  gap: 40px;
}

.skills-container > * {
  flex: 1;
  margin-bottom: 30px;
}

.skills-bar h2 {
  font-size: 42px;
  font-weight: 700;
  color: var(--color-title);
  margin-bottom: 24px;
}

.skill {
  margin-bottom: 20px;
}

.skill p {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.meter {
  height: 16px;
  position: relative;
  background: var(--color-progress-bg);
  border-radius: 25px;
  overflow: hidden;
}

.meter > span {
  display: block;
  height: 100%;
  border-radius: 20px 6px 6px 20px;
  background-color: var(--color-progress-fill);
  position: relative;
  overflow: hidden;
  transition: width 1.2s ease-in-out;
}

.skills-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.skills-image img,
.skills-image svg {
  max-width: 420px;
  width: 100%;
}

/* ---------- Education Section ---------- */
.education-section {
  width: var(--section-width);
  max-width: var(--max-width);
  padding: 20px 10px;
  margin: 0 auto;
  margin-top: 2rem;
}

.education-heading {
  font-size: 56px;
  font-weight: 700;
  color: var(--color-title);
  margin-bottom: 32px;
}

.education-card-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.education-card {
  display: flex;
  gap: 24px;
  padding: 24px;
  border-radius: 10px;
  border-left: 4px solid var(--color-education-border);
  background-color: var(--color-surface);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

.education-card-logo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--color-button);
  background: var(--color-primary-light);
  border-radius: 12px;
}

.education-card-body h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-title);
  margin-bottom: 4px;
}

.education-card-body .education-sub-header {
  font-size: 18px;
  color: var(--color-subtitle);
  margin-bottom: 4px;
}

.education-card-body .education-duration {
  font-size: 15px;
  color: var(--color-card-subtitle);
  margin-bottom: 8px;
}

.education-card-body .education-desc {
  font-size: 15px;
  color: var(--color-subtitle);
  line-height: 1.6;
}

.education-card-body ul {
  margin-top: 8px;
  padding-left: 18px;
}

.education-card-body ul li {
  font-size: 15px;
  color: var(--color-subtitle);
  list-style: disc;
  margin-bottom: 4px;
}

/* ---------- Experience Section ---------- */
.experience-container {
  width: var(--section-width);
  max-width: var(--max-width);
  padding: 20px 10px;
  margin: 0 auto;
  margin-top: 2rem;
}

.experience-heading {
  font-size: 56px;
  font-weight: 700;
  color: var(--color-title);
  margin-bottom: 32px;
}

.experience-cards-div {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.experience-card {
  position: relative;
  background-color: var(--color-surface);
  box-shadow: var(--shadow-card);
  border-radius: 10px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

.experience-banner {
  background: var(--gradient-experience-banner);
  border-radius: 10px 10px 0 0;
  height: 11rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.experience-blurred-div {
  position: absolute;
  background: var(--gradient-experience-blur);
  filter: blur(5px);
  height: 11rem;
  top: 0;
  left: 0;
  width: 100%;
  border-radius: 10px 10px 0 0;
}

.experience-div-company {
  position: absolute;
  background: transparent;
  height: 9rem;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.experience-text-company {
  text-align: center;
  padding: 1.5rem;
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.experience-roundedimg {
  position: absolute;
  object-fit: cover;
  left: 0;
  right: 0;
  top: 7rem;
  margin-left: auto;
  margin-right: auto;
  width: 6.5rem;
  height: 6.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.3);
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-button);
}

.experience-text-details {
  padding: 1.5rem;
  margin-top: 2rem;
  text-align: center;
}

.experience-text-role {
  color: var(--color-title);
  font-weight: 700;
  font-size: 22px;
  margin: 0;
  padding-top: 1rem;
  line-height: normal;
}

.experience-text-date {
  color: var(--color-subtitle);
  font-size: 17px;
  margin: 0;
  padding-top: 0.6rem;
  font-weight: 600;
}

.experience-text-desc {
  color: var(--color-card-subtitle);
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  margin-top: 12px;
}

.experience-text-details ul {
  text-align: left;
  padding-left: 18px;
  margin-top: 8px;
}

.experience-text-details ul li {
  font-size: 15px;
  color: var(--color-card-subtitle);
  list-style: disc;
  margin-bottom: 4px;
  line-height: 1.5;
}

/* Banner color variants */
.experience-banner.banner-primary {
  background: linear-gradient(135deg, #55198b 0%, #8c43ce 100%);
}
.experience-banner.banner-secondary {
  background: linear-gradient(135deg, #1a5276 0%, #2e86c1 100%);
}
.experience-banner.banner-tertiary {
  background: linear-gradient(135deg, #1e6f50 0%, #45b088 100%);
}

/* ---------- Achievements Section ---------- */
.achievement-main-div {
  width: var(--section-width);
  max-width: var(--max-width);
  padding: 20px 10px;
  margin: 0 auto;
  margin-top: 2rem;
}

.achievement-heading {
  font-size: 56px;
  font-weight: 700;
  color: var(--color-title);
}

.achievement-subtitle {
  font-size: 18px;
  color: var(--color-subtitle);
  margin-top: 8px;
  margin-bottom: 32px;
}

.achievement-cards-div {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.achievement-card {
  background-color: var(--color-surface);
  border-radius: 10px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.achievement-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.achievement-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
  color: #fff;
}

.achievement-card-icon.icon-primary { background: linear-gradient(135deg, #55198b, #8c43ce); }
.achievement-card-icon.icon-secondary { background: linear-gradient(135deg, #1e6f50, #45b088); }
.achievement-card-icon.icon-tertiary { background: linear-gradient(135deg, #1a5276, #2e86c1); }

.achievement-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-title);
  margin-bottom: 8px;
}

.achievement-card .achievement-description {
  font-size: 15px;
  color: var(--color-subtitle);
  line-height: 1.6;
  flex-grow: 1;
}

.achievement-card .achievement-metric {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.achievement-metric-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-button);
}

.achievement-metric-label {
  font-size: 13px;
  color: var(--color-subtitle);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Stats Section ---------- */
.stats-section {
  width: var(--section-width);
  max-width: var(--max-width);
  padding: 20px 10px;
  margin: 0 auto;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.stat-card .stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-button);
  line-height: 1;
}

.stat-card .stat-label {
  font-size: 14px;
  color: var(--color-subtitle);
  text-transform: uppercase;
  margin-top: 8px;
  letter-spacing: 0.5px;
}

/* ---------- Contact Section ---------- */
.contact-section {
  width: var(--section-width);
  max-width: var(--max-width);
  padding: 20px 10px;
  margin: 0 auto;
  margin-top: 3rem;
}

.contact-div-main {
  display: flex;
  gap: 40px;
  align-items: center;
}

.contact-div-main > * {
  flex: 1;
}

.contact-title {
  font-size: 56px;
  font-weight: 700;
  color: var(--color-title);
}

.contact-subtitle {
  font-size: 18px;
  color: var(--color-subtitle);
  margin-top: 8px;
  margin-bottom: 16px;
}

.contact-detail,
.contact-detail-email {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-title);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.contact-detail:hover,
.contact-detail-email:hover {
  color: var(--color-button);
  text-shadow: 2px 1px 2px #b5b5b5;
}

.contact-image-div {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-image-div img,
.contact-image-div svg {
  max-width: 400px;
  width: 100%;
}

/* ---------- Footer ---------- */
.footer-div {
  text-align: center;
  padding: 40px 20px;
  margin-top: 2rem;
}

.footer-text {
  font-size: 15px;
  color: var(--color-subtitle);
  margin-bottom: 6px;
}

.footer-text a {
  color: var(--color-button);
  font-weight: 600;
}

.footer-text a:hover {
  text-decoration: underline;
}

/* ---------- Scroll-to-Top Button ---------- */
.top-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-button);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(85, 25, 139, 0.3);
  z-index: 50;
}

.top-button.visible {
  opacity: 1;
  visibility: visible;
}

.top-button:hover {
  background-color: #000;
  transform: translateY(-4px);
}

/* ---------- Fade-in Animations ---------- */
.fade-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Responsive: Tablet & Below ---------- */
@media (max-width: 1380px) {
  .greeting-text {
    font-size: 50px;
  }
  .greeting-text-p {
    font-size: 18px;
    line-height: 28px;
  }
  .skills-heading,
  .education-heading,
  .experience-heading,
  .achievement-heading,
  .contact-title {
    font-size: 42px;
  }
  .skills-bar h2 {
    font-size: 36px;
  }
  .skills-image {
    display: none;
  }
  .experience-text-role {
    font-size: 20px;
  }
  .experience-text-company {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  /* Header hamburger */
  .header .menu {
    display: none;
    flex-direction: column;
  }

  .menu-icon {
    display: inline-block;
    float: right;
  }

  .menu-btn:checked ~ nav .menu {
    display: flex;
  }

  /* Greeting */
  .greeting-main {
    flex-direction: column;
    text-align: center;
  }

  .greeting-text {
    font-size: 32px;
    text-align: center;
  }

  .greeting-text-p {
    font-size: 16px;
    line-height: normal;
    text-align: center;
  }

  .button-greeting-div {
    justify-content: center;
  }

  .greeting-image-div {
    max-height: 300px;
    overflow: hidden;
  }

  /* Social */
  .social-media-div {
    text-align: center;
  }

  /* Skills */
  .skills-main-div {
    flex-direction: column;
  }

  .skills-image-div {
    display: none;
  }

  /* Proficiency */
  .skills-container {
    flex-direction: column;
  }

  .skills-image {
    display: none;
  }

  /* Experience */
  .experience-cards-div {
    grid-template-columns: 1fr;
  }

  .experience-text-role {
    font-size: 20px;
  }

  .experience-text-desc {
    font-size: 14px;
  }

  /* Education */
  .education-card {
    flex-direction: column;
    text-align: center;
  }

  .education-card-logo {
    margin: 0 auto;
  }

  /* Stats */
  .stats-section {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Achievements */
  .achievement-cards-div {
    grid-template-columns: 1fr;
  }

  .achievement-heading,
  .education-heading,
  .experience-heading,
  .skills-heading,
  .contact-title {
    font-size: 32px;
  }

  .skills-bar h2 {
    font-size: 28px;
  }

  /* Contact */
  .contact-div-main {
    flex-direction: column;
    text-align: center;
  }

  .contact-image-div {
    display: none;
  }

  /* Buttons */
  .main-button {
    font-size: 0.85rem;
    padding: 12px 18px;
  }
}

@media (max-width: 480px) {
  .stats-section {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-card .stat-number {
    font-size: 28px;
  }

  .greeting-text {
    font-size: 28px;
  }
}

/* ---------- Utility ---------- */
.section-divider {
  border: none;
  height: 1px;
  background: var(--color-border);
  margin: 3rem auto;
  width: var(--section-width);
  max-width: var(--max-width);
}
