/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Light mode colors - vibrant & balanced */
  --primary-color: #0066ff;
  --secondary-color: #0052cc;
  --accent-color: #00d4ff;
  --text-color: #1a1a2e;
  --text-light: #4a5568;
  --bg-color: #ffffff;
  --bg-secondary: #f7f9fc;
  --bg-tertiary: #eef2f7;
  --border-color: #d4dce6;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
  --ring-color: rgba(0, 102, 255, 0.15);
}

.dark-theme {
  --primary-color: #00d4ff;
  --secondary-color: #00a8cc;
  --accent-color: #ff6b9d;
  --text-color: #f0f4f8;
  --text-light: #b0bcc4;
  --bg-color: #0f1419;
  --bg-secondary: #1a1f2e;
  --bg-tertiary: #252d3d;
  --border-color: #3a4556;
  --ring-color: rgba(0, 212, 255, 0.2);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-color);
  transition: var(--transition);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition);
}

.dark-theme .header {
  background: rgba(15, 20, 25, 0.95);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-badge {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%,
  100% {
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.5);
  }
}

.logo h2 {
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  flex: 1;
  justify-content: center;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  font-size: 0.95rem;
}

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

.nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: var(--transition);
}

.nav a:hover::after {
  width: 100%;
}

/* Theme toggle */
.theme-toggle {
  position: relative;
}

#theme-switch {
  display: none;
}

.toggle-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 50px;
  height: 25px;
  background: var(--border-color);
  border-radius: 25px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.toggle-label::before {
  content: "";
  position: absolute;
  width: 21px;
  height: 21px;
  background: #fff;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

#theme-switch:checked + .toggle-label::before {
  transform: translateX(25px);
}

.toggle-label i {
  font-size: 12px;
  padding: 0 5px;
  color: var(--text-light);
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--text-color);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.mobile-nav.active {
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 0;
}

.mobile-nav a {
  display: block;
  padding: 12px 20px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.mobile-nav a:hover {
  background: var(--bg-secondary);
  border-left-color: var(--primary-color);
  color: var(--primary-color);
}

/* Home */
.home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
}

.home-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.text-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
  letter-spacing: -1px;
}

.text-content h1 span {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: colorPulse 3s ease-in-out infinite;
}

@keyframes colorPulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}

.text-content h3 {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.text-content p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.social-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid transparent;
  font-size: 1.2rem;
}

.social-icon:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.social-icon svg {
  width: 24px;
  height: 24px;
}

.download-btn,
.btn {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.download-btn:hover,
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
}

/* Enhanced profile image with ekno-style animations and gradient glow ring */
.profile-image {
  position: relative;
  width: 350px;
  height: 350px;
  margin: 0 auto;
}

.profile-image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 8px var(--ring-color), var(--shadow-lg);
  transition: var(--transition);
  animation: profileFloat 6s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

/* Animated glowing border with gradient and smooth glow effect */
.profile-image::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--primary-color));
  background-size: 200% 200%;
  z-index: 1;
  animation: borderGlow 3s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.6), inset 0 0 20px rgba(0, 212, 255, 0.3);
}

/* Smooth glowing border animation from reference code */
@keyframes borderGlow {
  0% {
    background-position: 0% 50%;
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.6), inset 0 0 20px rgba(0, 212, 255, 0.3);
  }
  50% {
    background-position: 100% 50%;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.8), inset 0 0 25px rgba(0, 102, 255, 0.4);
  }
  100% {
    background-position: 0% 50%;
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.6), inset 0 0 20px rgba(0, 212, 255, 0.3);
  }
}

.profile-image:hover img {
  transform: scale(1.05);
  filter: brightness(1.08);
  box-shadow: 0 0 0 8px var(--ring-color), 0 20px 40px -5px rgba(0, 0, 0, 0.25);
}

/* Floating animation from reference code */
@keyframes profileFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  25% {
    transform: translateY(-12px) rotate(1deg);
  }
  50% {
    transform: translateY(-6px) rotate(0);
  }
  75% {
    transform: translateY(-15px) rotate(-1deg);
  }
}

/* Sections */
section {
  padding: 60px 0;
}

.about {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.skills {
  background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-secondary) 100%);
}

.education {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
}

.projects {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-color) 100%);
}

.experience {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
}

.certifications {
  background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-secondary) 100%);
}

.contact {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-color);
  position: relative;
  animation: titleSlideIn 1s ease-out;
}

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

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

/* About */
.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.about-image img:hover {
  transform: scale(1.03);
}

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

.hidden-text {
  display: none;
}

.read-more-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.read-more-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

/* Skills */
.skills-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.skill-group {
  background: var(--bg-color);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary-color);
  transition: var(--transition);
}

.skill-group:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.skill-group h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-chip {
  background: var(--bg-secondary);
  color: var(--primary-color);
  padding: 8px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.skill-chip:hover {
  background: var(--primary-color);
  color: #fff;
  transform: scale(1.05);
}

/* Education */
.education-content {
  max-width: 800px;
  margin: 0 auto;
}

.education-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  padding: 2rem;
  background: var(--bg-color);
  border-radius: 10px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary-color);
  transition: var(--transition);
}

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

.education-year {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  height: fit-content;
  min-width: 120px;
  text-align: center;
  font-size: 0.9rem;
}

.education-details h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  color: var(--text-color);
}

.education-details p {
  color: var(--text-light);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary-color);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--accent-color);
}

.project-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.08);
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.project-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tech span {
  background: var(--bg-secondary);
  color: var(--primary-color);
  padding: 4px 10px;
  border-radius: 14px;
  border: 1px solid var(--primary-color);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.project-tech span:hover {
  background: var(--primary-color);
  color: #fff;
}

/* Experience */
.experience-content {
  max-width: 800px;
  margin: 0 auto;
}

.experience-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  padding: 2rem;
  background: var(--bg-color);
  border-radius: 10px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary-color);
  transition: var(--transition);
}

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

.experience-date {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  padding: 12px 15px;
  border-radius: 8px;
  font-weight: 600;
  height: fit-content;
  min-width: 150px;
  text-align: center;
  font-size: 0.9rem;
}

.experience-details h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  color: var(--text-color);
}

.experience-details h4 {
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.experience-details p {
  color: var(--text-light);
  line-height: 1.7;
}

/* Certifications */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.certification-card {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 4px solid var(--primary-color);
  transition: var(--transition);
}

.certification-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.cert-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #fff;
  font-size: 1.8rem;
}

.cert-icon.animate-icon {
  animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.certification-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  color: var(--text-color);
}

.certification-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.cert-status {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cert-status.ongoing {
  background: #fef3c7;
  color: #b45309;
}

.cert-status.completed {
  background: #d1fae5;
  color: #047857;
}

.cert-btn {
  color: #fff;
  background: var(--primary-color);
  text-decoration: none;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
  display: inline-block;
  transition: var(--transition);
}

.cert-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

/* Contact */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-color);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.contact-item i {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item h4 {
  color: var(--text-color);
  margin-bottom: 0.3rem;
}

.contact-item .contact-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.contact-item .contact-link:hover {
  color: var(--primary-color);
}

.contact-form {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
  background: var(--bg-color);
  color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--ring-color);
}

.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
}

/* Success popup */
.popup.hidden {
  display: none;
}

.popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  padding: 20px;
}

.popup-card {
  background: var(--bg-color);
  color: var(--text-color);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 24px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.popup-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d1fae5;
  color: #047857;
  font-size: 22px;
}

.popup-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-color);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  box-shadow: none;
  transform: translateY(-2px);
}

/* Reduced footer height for compact, clean appearance */
.footer {
  background: var(--text-color);
  color: #fff;
  padding: 2rem 0 0.75rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 2rem;
}

.footer-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.footer-info p {
  color: #9ca3af;
}

.footer-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-btn {
  background: var(--primary-color);
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.footer-btn:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #374151;
  color: #9ca3af;
  font-size: 0.9rem;
}

/* Accessibility */
.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;
}

/* Responsive */
@media (max-width: 992px) {
  .home-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

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

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .text-content h1 {
    font-size: 2.5rem;
  }

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

  section {
    padding: 50px 0;
  }

  .projects-grid,
  .certifications-grid {
    grid-template-columns: 1fr;
  }

  .skills-categories {
    grid-template-columns: 1fr;
  }

  .education-item,
  .experience-item {
    flex-direction: column;
    gap: 1rem;
  }

  .education-year,
  .experience-date {
    min-width: auto;
  }
}

/* Enhanced mobile spacing for profile image and download button */
@media (max-width: 600px) {
  .container {
    padding: 0 15px;
  }

  .logo h2 {
    display: none;
  }

  .logo-badge {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .text-content h1 {
    font-size: 2rem;
  }

  .text-content h3 {
    font-size: 1.2rem;
  }

  /* Increased profile image size and spacing on mobile */
  .profile-image {
    width: 260px;
    height: 260px;
    margin: 2rem auto;
  }

  .social-icons {
    gap: 0.75rem;
    margin-bottom: 2.5rem;
  }

  .social-icon {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  /* Enhanced download button spacing and sizing on mobile */
  .download-btn {
    padding: 14px 24px;
    font-size: 1rem;
    margin-top: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  .section-title::after {
    width: 60px;
  }

  .home-content {
    gap: 1.5rem;
  }

  .about-content {
    gap: 1.5rem;
  }

  .contact-info {
    gap: 1rem;
  }

  .contact-item {
    padding: 1rem;
    gap: 1rem;
  }

  .contact-item i {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .footer-buttons {
    justify-content: center;
  }

  .footer-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .text-content h1 {
    font-size: 1.75rem;
  }

  .text-content h3 {
    font-size: 1rem;
  }

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

  /* Optimized profile image for small screens */
  .profile-image {
    width: 240px;
    height: 240px;
    margin: 1.5rem auto;
  }

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

  .skill-group {
    padding: 1rem;
  }

  .skill-chip {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .project-card,
  .certification-card {
    padding: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 16px;
  }
}

/* Theme toggle */
.theme-toggle {
  position: relative;
  margin-right: 1rem;
}

@media (max-width: 600px) {
  .container {
    padding: 0 15px;
  }

  .logo h2 {
    display: block;
    font-size: 0.9rem;
    margin-left: 0.5rem;
  }

  .logo-badge {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}
