/* ===== CSS VARIABLES FOR THEMING ===== */
:root {
  /* Dark Theme (Default) */
  --bg-primary: #030812;
  --bg-secondary: #081121;
  --bg-hover: #1e293b;
  --text-primary: #ffffff;
  --text-secondary: #c9d1d9;
  --text-tertiary: #a0aec0;
  --text-muted: #8b95a4;
  --text-footer: #8892b0;
  --border-primary: #3b82f644;
  --border-secondary: rgba(37, 99, 235, 0.27);
  --border-hover: #2563eb;
  --accent-primary: #2563eb;
  --accent-gradient-start: #fff;
  --accent-gradient-end: #60a5fa;
  --social-bg: rgba(255, 255, 255, 0.05);
  --social-bg-hover: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(37, 99, 235, 0.05);
  --shadow-color: rgba(37, 99, 235, 0.3);
  --selection-bg: #ffffff;
  --selection-text: #3b82f6;
  /* Star animation */
  --star-color: #fff;
}

/* Light Theme */
.light-theme {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-hover: #e2e8f0;
  --text-primary: #1e293b;
  --text-secondary: #334155;
  --text-tertiary: #3d4d5f;
  --text-muted: #5b6b84;
  --text-footer: #64748b;
  --border-primary: rgba(0, 0, 0, 0.1);
  --border-secondary: rgba(37, 99, 235, 0.3);
  --border-hover: #2563eb;
  --accent-primary: #2563eb;
  --accent-gradient-start: #1e293b;
  --accent-gradient-end: #2563eb;
  --social-bg: rgba(37, 99, 235, 0.1);
  --social-bg-hover: rgba(37, 99, 235, 0.2);
  --card-bg: rgba(37, 99, 235, 0.05);
  --shadow-color: rgba(37, 99, 235, 0.2);
  --selection-bg: #2563eb;
  --selection-text: #ffffff;

  /* Disable stars in light theme */
  --star-color: transparent;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ===== RESET & GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  scroll-behavior: smooth;
}

::selection {
  background-color: var(--selection-bg);
  color: var(--selection-text);
}

/* ===== CONTAINER & BACKGROUND ===== */
.container {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  overflow-x: hidden;
  background-image:
    radial-gradient(1px 1px at 20px 30px, var(--star-color), transparent),
    radial-gradient(1.5px 1.5px at 100px 150px, var(--star-color), transparent),
    radial-gradient(1px 1px at 200px 50px, var(--star-color), transparent);
  background-size: 300px 300px;
  animation: moveStars 100s linear infinite;
  transition: background-color 0.3s ease;
}



@keyframes moveStars {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 0 1000px;
  }
}

/* screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== NAVIGATION BAR ===== */
.nav-bar {
  position: fixed;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  height: 90px;
  background-color: rgba(5, 10, 24, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-primary);
  padding: 20px;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.nav-bar.scrolled {
  background-color: rgba(5, 10, 24, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Light theme navbar */
.light-theme .nav-bar {
  background-color: rgba(248, 250, 252, 0.8);
}

.light-theme .nav-bar.scrolled {
  background-color: rgba(248, 250, 252, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-header {
  color: var(--accent-primary);
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-items {
  display: flex;
  gap: 12px;
  flex: 1;
  justify-content: center;
}

.nav-items a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: clamp(13px, 2.5vw, 15px);
  font-weight: 400;
  padding: 10px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.nav-items a.active {
  color: #2563eb !important;
  font-weight: 600;
}

.nav-items a:hover {
  color: var(--text-muted);
}

/* ===== MOBILE MENU TOGGLE ===== */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.nav-toggle-label {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle-label span {
  position: relative;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  display: block;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.2s ease;
}

.nav-toggle-label span::before {
  transform: translateY(-7px);
}

.nav-toggle-label span::after {
  transform: translateY(7px);
}

/* ===== SOCIAL ICONS ===== */
.social-icons {
  display: flex;
  align-items: center;
}

.social-icons a {
  background-color: var(--social-bg);
  border-radius: 50%;
  padding: 10px;
  margin-left: 15px;
  transition: 0.3s ease;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.social-icons a i {
  font-size: 18px;
}

.social-icons a:nth-child(1):hover {
  background-color: rgb(25, 196, 39);
  color: #ffffff;
}

.social-icons a:nth-child(2):hover {
  background-color: rgb(29, 155, 240);
  color: #ffffff;
}

.social-icons a:nth-child(3):hover {
  background-color: rgb(49, 47, 47);
  color: #ffffff;
}

.social-icons a:nth-child(4):hover {
  background-color: #EA4335;
  color: #ffffff;
}

/* ===== HERO SECTION ===== */
.main-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 120px 40px 60px;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
  /* Make the hero take (almost) full screen height so it appears alone on load */
  min-height: calc(100vh - 90px);
}

.summary {
  flex: 1;
  max-width: 650px;
}

.greeting {
  color: var(--accent-gradient-end);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.main-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 25px;
  font-weight: 700;
}

.highlight {
  color: var(--accent-primary);
  font-weight: 700;
}

.description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

.main-btns {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.main-btns a {
  text-decoration: none;
}

.blue-btn,
.outline-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.blue-btn {
  background-color: #2563eb;
  color: white;
  border: none;
  box-shadow: 0 4px 15px var(--shadow-color);
}

.blue-btn:hover {
  background-color: #1d4ed8;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.outline-btn {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-secondary);
  box-shadow: 0 4px 15px rgba(30, 41, 59, 0.3);
}

.outline-btn:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-hover);
  box-shadow: 0 6px 20px var(--shadow-color);
}

/* Image Section */
.photo {
  flex-shrink: 0;
}

.image-wrapper {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 3px solid var(--accent-primary);
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 40px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 0 60px var(--shadow-color);
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ===== ABOUT ME SECTION ===== */
.about-me {
  background-color: var(--bg-secondary);
  border-radius: 12px;
  border: 2px solid var(--border-secondary);
  max-width: 1000px;
  margin: 40px auto;
  /* Reasonable gap after the hero section */
  margin-top: 100px;
  padding: 20px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.about-me:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 20px var(--shadow-color);
}

.about-header {
  font-size: 2.5rem;
  color: var(--accent-primary);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 25px;
}

.usp-section {
  background: var(--card-bg);
  padding: 25px;
  border-left: 4px solid var(--accent-primary);
  margin: 40px 0;
  border-radius: 0 10px 10px 0;
}

.usp-section h3 {
  color: var(--accent-primary);
  margin-bottom: 10px;
}

.usp-header {
  color: var(--accent-primary);
  margin-bottom: 10px;
  font-size: 1.5rem;
  font-weight: 600;
}

.usp-section p {
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* ===== CALL TO ACTION ===== */
.cta-container {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 50px;
}

.cta-header {
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: var(--accent-primary);
}

.cta-btns {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.cta-btns a {
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.3s;
}



.btn-work {
  background-color: #2563eb;
  color: white;
  border: none;
  box-shadow: 0 4px 15px var(--shadow-color);
}

.btn-work:hover {
  background-color: #1d4ed8;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-contact {
  color: var(--text-tertiary);
  background-color: var(--social-bg);
  border-radius: 8px;
  border: 2px solid var(--border-secondary);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease, box-shadow 0.3s ease;
}

.btn-contact:hover {
  background-color: var(--social-bg-hover);
  color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: 0 0 30px var(--shadow-color);
  border-color: var(--border-hover);
}

/* ===== SKILLS SECTION ===== */
.skills {
  margin-top: 350px;
  margin-bottom: 100px;
  padding: 0 20px;
}

.skills .skill-header {
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 50px;
  text-align: center;
  font-weight: 800;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.skill-item {
  display: flex;
  flex-direction: column;
  padding: 25px;
  background-color: var(--social-bg);
  border-radius: 12px;
  border: 1px solid var(--border-secondary);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 5px 15px var(--shadow-color);
  width: auto;
}

.skill-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.skill-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-tertiary);
}

.skill-label svg {
  width: 24px;
  height: 24px;
  min-width: 24px;
  fill: var(--text-tertiary);
  transition: fill 0.3s ease;
}

.skill-percentage {
  font-weight: 800;
  color: var(--accent-primary);
}

.progress-bar-container {
  width: 100%;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  position: relative;
  overflow: visible;
}

.progress-fill {
  height: 100%;
  background-color: var(--accent-primary);
  border-radius: 20px;
  position: relative;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
  transition: width 1.5s ease-in-out;
}

.skill-item:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 40px var(--shadow-color);
  background-color: var(--social-bg-hover);
  cursor: pointer;
}

.skill-item:hover .skill-label {
  color: var(--accent-primary);
}

.skill-item:hover .skill-label svg {
  fill: var(--accent-primary);
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
  max-width: 1200px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
  margin-top: 300px;
  margin-bottom: 150px;
  padding: 0 20px;
}

.title {
  font-size: 3rem;
  margin-bottom: 50px;
  font-weight: 600;
  color: var(--accent-primary);
}

.card-container {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  background-color: var(--bg-secondary);
  border: 2px solid var(--border-secondary);
  border-radius: 15px;
  padding: 25px;
  width: 350px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 0 15px var(--shadow-color);
  box-sizing: border-box;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px var(--shadow-color);
  border-color: var(--border-hover);
}

.image-placeholder {
  width: 100%;
  height: 200px;
  background-color: #121c2e;
  border: 1px solid #1e2a3f;
  border-radius: 10px;
  margin-bottom: 20px;
}

.image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: all ease 0.3s;
}



.tags {
  margin-bottom: 15px;
}

.tag {
  background-color: rgba(37, 99, 235, 0.12);
  color: #1e40af;
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 20px;
  margin-right: 8px;
  margin-bottom: 10px;
  border: 1px solid #2563eb;
  font-weight: 600;
  display: inline-block;
  cursor: pointer;
}

/* Light theme specific tag styling for better contrast */
.light-theme .tag {
  background-color: rgba(37, 99, 235, 0.15);
  color: #1e40af;
  border: 1px solid #2563eb;
}

.card-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--accent-primary);
  font-weight: 600;
}

.card-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}




.project-btn {
  margin-top: 35px;
  margin-left: 70px;
  margin-bottom: 35px;
  transition: all 0.3s ease, box-shadow 0.3s ease;

}

.project-btn a {
  text-decoration: none;
  background-color: #2563eb;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--shadow-color);

}

.project-btn a:hover {
  background-color: #1d4ed8;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}


.project-btn:hover {
  transform: translateY(-5px);
}

/* ====Education */

.education {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid #2563eb;
  padding: 24px;
  border-radius: 16px;
  transition: transform 0.3s ease;
  width: 85%;
  margin: auto;
  margin-top: 250px;
  margin-bottom: 250px;
}

.education:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 0 20px var(--shadow-color);
}

/* Light theme specific education border */
.light-theme .education {
  border: 1px solid rgba(37, 99, 235, 0.27);
  border-left: 4px solid #2563eb;
}

.edu-header {
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

.edu-item {
  background-color: var(--social-bg);
  padding: 20px;
  border-radius: 8px;
  border: 2px solid var(--border-secondary);
  margin-bottom: 20px;
  transition: all 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.edu-item p {
  color: var(--text-tertiary);
  font-size: 1rem;
  margin-top: 10px;
  padding-left: 10px;

}

.edu-item:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 20px var(--shadow-color);
  transform: translateY(-5px);
}

.edu-degree {
  font-size: 1.2rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 8px;
  border-left: 4px solid var(--accent-primary);
  padding-left: 10px;
  border-radius: 1px;
}


/* ===== CERTIFICATES SECTION ===== */
.certificates {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 50px;
}

.cert-item {
  background-color: var(--social-bg);
  padding: 20px;
  border-radius: 8px;
  border: 2px solid var(--border-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  height: 400px;
  width: 500px;
  cursor: pointer;
  transition: all 0.3s ease, box-shadow 0.3s ease;
}

.cert-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.cert-item:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 20px var(--shadow-color);
  transform: translateY(-5px);
}

/* contact form */

.contact-section {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 150px;
  margin-top: 100px;
}

.contact-subtitle {
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.contact-title {
  font-weight: 700;
  color: var(--text-tertiary);
  margin-bottom: 50px;
}


.btn-large {
  padding: 1.25rem 1.75rem;
  font-size: 14px;
}



.contact-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
  margin-bottom: 50px;
}

.form-message {
  max-width: 600px;
  margin: 0 auto 20px;
  padding: 15px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.form-message.error {
  background-color: rgba(239, 68, 68, 0.1);
  border: 2px solid #ef4444;
  color: #ef4444;
}

.form-message.success {
  background-color: rgba(34, 197, 94, 0.1);
  border: 2px solid #22c55e;
  color: #22c55e;
}

.form-group {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background-color: var(--bg-hover);
  border: 2px solid var(--bg-hover);
  padding: 15px;
  border-radius: 8px;
  color: var(--text-tertiary);
  font-size: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group textarea {
  min-height: 200px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444;
}

.form-group input.success,
.form-group textarea.success {
  border-color: #22c55e;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-tertiary);
  opacity: 0.7;
}

.contact-form button {
  color: var(--text-tertiary);
  background-color: var(--social-bg);
  border-radius: 8px;
  border: 2px solid var(--border-secondary);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  margin-top: 20px;
}


.contact-form button:hover {
  background-color: var(--social-bg-hover);
  color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: 0 0 30px var(--shadow-color);
  border-color: var(--border-hover);
}


.contact-social-icons {
  margin-top: 30px;
  justify-content: center;
}


footer {
  padding: 20px 0;
  width: 100%;
  text-align: center;
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  color: var(--text-footer);
  border-top: 1px solid var(--border-primary);
  margin-bottom: 0;
  padding-bottom: 0;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  border: 2px solid var(--border-secondary);
  box-shadow: 0 4px 15px var(--shadow-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1000;
  color: white;
  font-size: 24px;
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 6px 20px var(--shadow-color);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-icon {
  transition: transform 0.3s ease;
}



/* ===== RESPONSIVE: 900px (Medium screens) ===== */
@media (max-width: 900px) {
  .nav-bar {
    padding: 14px 18px;
  }

  .nav-items {
    gap: 8px;
  }

  .nav-items a {
    font-size: 14px;
    padding: 8px;
  }

  .social-icons a {
    padding: 9px;
    margin-left: 12px;
  }

  .main-content {
    padding: 110px 35px 55px;
    gap: 45px;
  }

  .image-wrapper {
    width: 340px;
    height: 340px;
  }
}

/* ===== RESPONSIVE: 1024px ===== */
@media (max-width: 1024px) {
  .nav-bar {
    padding: 14px 20px;
    height: auto;
  }

  .nav-header {
    font-size: 18px;
  }

  .nav-items a {
    font-size: 14px;
    padding: 8px 10px;
  }

  .social-icons a {
    padding: 8px;
    margin-left: 12px;
  }

  .social-icons a i {
    font-size: 16px;
  }

  .main-content {
    padding: 100px 30px 50px;
    gap: 50px;
  }

  .main-title {
    font-size: 2.5rem;
  }

  .description {
    font-size: 0.95rem;
  }

  .image-wrapper {
    width: 320px;
    height: 320px;
  }

  .skills {
    margin-top: 180px;
    padding: 0 24px;
  }

  .skills .skill-header {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .skills-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .skill-item {
    padding: 20px;
  }

  .skill-label {
    font-size: 1.1rem;
  }

  .skill-label svg {
    width: 22px;
    height: 22px;
    min-width: 22px;
  }

  .about-me {
    padding: 40px 24px;
    margin: 30px 20px;
    margin-top: 150px;
    max-width: 90%;
  }

  .about-header {
    font-size: 2rem;
    margin-bottom: 30px;
  }

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

  .usp-section {
    padding: 20px;
    margin: 30px 0;
  }

  .cta-container h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }

  .projects-section {
    margin-top: 150px;
    padding: 0 24px;
  }

  .title {
    font-size: 2.2rem;
    margin-bottom: 40px;
  }

  .card {
    width: 100%;
    max-width: 320px;
  }

  .card-title {
    font-size: 1.6rem;
  }

  .image-placeholder {
    height: 200px;
  }

  .cert-item {
    width: 100%;
    max-width: 500px;
    height: auto;
    aspect-ratio: 5 / 4;
  }
}

/* ===== RESPONSIVE: 768px ===== */
@media (max-width: 768px) {
  .nav-bar {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
  }

  .nav-header {
    order: 1;
    flex: 1;
    text-align: left;
    font-size: 18px;
  }

  .nav-toggle-label {
    order: 2;
    display: flex;
  }

  .nav-items {
    display: none;
    order: 3;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
  }

  .nav-items a {
    font-size: 15px;
    padding: 10px 16px;
    width: auto;
  }

  .nav-bar .social-icons {
    display: none;
    order: 4;
    justify-content: center;
    width: 100%;
    gap: 12px;
    padding: 8px 0;
  }

  .nav-bar .social-icons a {
    margin-left: 0;
    padding: 10px;
  }

  .nav-bar .social-icons a i {
    font-size: 18px;
  }

  .nav-toggle:checked~.nav-items,
  .nav-toggle:checked~.social-icons {
    display: flex;
  }

  .main-content {
    flex-direction: column;
    padding: 90px 24px 40px;
    gap: 40px;
    text-align: center;
  }

  .summary {
    max-width: 100%;
  }

  .greeting {
    font-size: 1rem;
  }

  .main-title {
    font-size: 2rem;
  }

  .description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .image-wrapper {
    width: 280px;
    height: 280px;
  }

  .main-btns {
    justify-content: center;
    gap: 15px;
  }

  .blue-btn,
  .outline-btn {
    width: auto;
    min-width: 200px;
  }

  .skills {
    margin-top: 140px;
    padding: 0 20px;
  }

  .skills .skill-header {
    font-size: 2rem;
    margin-bottom: 35px;
  }

  .skills-list {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 100%;
  }

  .skill-item {
    padding: 20px;
  }

  .skill-label {
    font-size: 1.05rem;
    gap: 10px;
  }

  .skill-label svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
  }

  .skill-percentage {
    font-size: 1rem;
  }

  .about-me {
    padding: 30px 20px;
    margin: 25px 16px;
    margin-top: 120px;
    border-radius: 8px;
  }

  .about-header {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }

  .about-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .usp-section {
    padding: 18px;
    margin: 25px 0;
    border-left-width: 3px;
  }

  .cta-btns {
    gap: 10px;
  }

  .cta-btns a {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .projects-section {
    margin-top: 120px;
    padding: 0 16px;
  }

  .title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .card-container {
    gap: 15px;
  }

  .card {
    width: 100%;
    max-width: 300px;
  }

  .card-title {
    font-size: 1.5rem;
  }

  .image-placeholder {
    height: 180px;
  }

  .image-placeholder img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  .cert-item {
    width: 100%;
    max-width: 500px;
    height: auto;
    aspect-ratio: 5 / 4;
  }

  .cert-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .contact-social-icons {
    display: flex !important;
    margin-top: 30px;
  }
}

/* ===== RESPONSIVE: 600px ===== */
@media (max-width: 600px) {
  .nav-bar {
    padding: 11px 15px;
  }

  .nav-header {
    font-size: 17px;
  }

  .nav-items a {
    font-size: 14px;
    padding: 9px 15px;
  }

  .nav-bar .social-icons a {
    padding: 9px;
  }

  .nav-bar .social-icons a i {
    font-size: 17px;
  }

  .main-content {
    padding: 85px 20px 35px;
  }

  .greeting {
    font-size: 0.95rem;
  }

  .main-title {
    font-size: 1.85rem;
  }

  .image-wrapper {
    width: 260px;
    height: 260px;
  }
}

/* ===== RESPONSIVE: 480px ===== */
@media (max-width: 480px) {
  .nav-bar {
    padding: 10px 14px;
  }

  .nav-header {
    font-size: 16px;
  }

  .nav-items a {
    font-size: 14px;
    padding: 8px 14px;
  }

  .nav-bar .social-icons a {
    padding: 8px;
  }

  .nav-bar .social-icons a i {
    font-size: 16px;
  }

  .nav-toggle-label {
    width: 36px;
    height: 36px;
  }

  .nav-toggle-label span {
    width: 20px;
  }

  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    width: 20px;
  }

  .main-content {
    padding: 80px 16px 30px;
    gap: 30px;
  }

  .greeting {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  .main-title {
    font-size: 1.75rem;
    margin-bottom: 20px;
  }

  .description {
    font-size: 0.9rem;
    margin-bottom: 25px;
  }

  .image-wrapper {
    width: 240px;
    height: 240px;
    padding: 10px;
  }

  .main-btns {
    flex-direction: column;
    gap: 12px;
  }

  .blue-btn,
  .outline-btn {
    width: 100%;
    max-width: 280px;
  }

  .skills {
    margin-top: 110px;
    padding: 0 16px;
  }

  .skills .skill-header {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .skills-list {
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 100%;
  }

  .skill-item {
    padding: 18px;
  }

  .skill-label {
    font-size: 1rem;
    gap: 8px;
  }

  .skill-label svg {
    width: 18px;
    height: 18px;
    min-width: 18px;
  }

  .skill-percentage {
    font-size: 0.95rem;
  }

  .skill-info-row {
    margin-bottom: 15px;
  }

  .about-me {
    padding: 20px 16px;
    margin: 20px 12px;
    margin-top: 100px;
    max-width: 100%;
  }

  .about-header {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .about-text p {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  .usp-section {
    padding: 15px;
    margin: 20px 0;
  }

  .cta-container h4 {
    font-size: 1.1rem;
  }

  .cta-btns {
    flex-direction: column;
    gap: 8px;
  }

  .cta-btns a {
    width: 100%;
    padding: 10px 16px;
  }

  .projects-section {
    margin-top: 100px;
    padding: 0 16px;
  }

  .title {
    font-size: 1.5rem;
    margin-bottom: 25px;
  }

  .card-container {
    gap: 12px;
  }

  .card {
    width: 100%;
    max-width: 280px;
  }

  .card-title {
    font-size: 1.4rem;
  }

  .image-placeholder {
    height: 160px;
  }

  .image-placeholder img {
    height: 100%;
    width: 100%;
  }

  .cert-item {
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 5 / 4;
  }

  .cert-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
  }

}

/* ===== REVEAL ON SCROLL ANIMATIONS ===== */

/* Base state for all reveal elements */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active state when element is visible */
[data-reveal].reveal-active {
  opacity: 1;
}

/* Fade in animation */
[data-reveal="fade"] {
  opacity: 0;
}

[data-reveal="fade"].reveal-active {
  opacity: 1;
}

/* Slide up animation */
[data-reveal="slide-up"] {
  opacity: 0;
  transform: translateY(60px);
}

[data-reveal="slide-up"].reveal-active {
  transform: translateY(0);
}

/* Slide down animation */
[data-reveal="slide-down"] {
  opacity: 0;
  transform: translateY(-60px);
}

[data-reveal="slide-down"].reveal-active {
  transform: translateY(0);
}

/* Slide left animation */
[data-reveal="slide-left"] {
  opacity: 0;
  transform: translateX(60px);
}

[data-reveal="slide-left"].reveal-active {
  transform: translateX(0);
}

/* Slide right animation */
[data-reveal="slide-right"] {
  opacity: 0;
  transform: translateX(-60px);
}

[data-reveal="slide-right"].reveal-active {
  transform: translateX(0);
}

/* Zoom in animation */
[data-reveal="zoom-in"] {
  opacity: 0;
  transform: scale(0.9);
}

[data-reveal="zoom-in"].reveal-active {
  transform: scale(1);
}

/* Zoom out animation */
[data-reveal="zoom-out"] {
  opacity: 0;
  transform: scale(1.1);
}

[data-reveal="zoom-out"].reveal-active {
  transform: scale(1);
}

/* Flip animation */
[data-reveal="flip"] {
  opacity: 0;
  transform: perspective(1000px) rotateY(-15deg);
}

[data-reveal="flip"].reveal-active {
  transform: perspective(1000px) rotateY(0);
}

/* Delay variants for staggered animations */
[data-reveal-delay="100"] {
  transition-delay: 100ms;
}

[data-reveal-delay="200"] {
  transition-delay: 200ms;
}

[data-reveal-delay="300"] {
  transition-delay: 300ms;
}

[data-reveal-delay="400"] {
  transition-delay: 400ms;
}

[data-reveal-delay="500"] {
  transition-delay: 500ms;
}

[data-reveal-delay="600"] {
  transition-delay: 600ms;
}

[data-reveal-delay="700"] {
  transition-delay: 700ms;
}

[data-reveal-delay="800"] {
  transition-delay: 800ms;
}

/* Duration variants */
[data-reveal-duration="fast"] {
  transition-duration: 0.4s;
}

[data-reveal-duration="slow"] {
  transition-duration: 1.2s;
}

[data-reveal-duration="slower"] {
  transition-duration: 1.6s;
}

/* Easing variants */
[data-reveal-easing="ease-out"] {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

[data-reveal-easing="ease-in"] {
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}

[data-reveal-easing="bounce"] {
  transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}