:root {
  --bg-gradient-light: linear-gradient(135deg, #fafafa 0%, #f5f5f7 100%);
  --bg-gradient-dark: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  --text-color: #1d1d1f;
  --text-color-dark: #ffffff;
  --card-bg: rgba(255, 255, 255, 0.8);
  --card-bg-dark: rgba(0, 0, 0, 0.8);
  --border-color: rgba(0, 0, 0, 0.1);
  --border-color-dark: rgba(255, 255, 255, 0.1);
  --link-color: #0066cc;
  --link-color-dark: #2997ff;
  --icon-color: #0066cc;
  --icon-color-dark: #2997ff;
  --shadow-color: rgba(0, 0, 0, 0.05);
  --shadow-color-dark: rgba(0, 0, 0, 0.3);
  --header-text: #1d1d1f;
  --header-text-dark: #ffffff;
  --card-title: #1d1d1f;
  --card-title-dark: #ffffff;
}

.zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-gradient-light);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transform: scale(0);
  transform-origin: top right;
  border-radius: 50%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  will-change: transform, opacity;
}

.dark-mode .zoom-overlay {
  background: var(--bg-gradient-dark);
}

.zoom-overlay.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(4);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg-gradient-light);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  transition: all 0.5s ease;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.016em;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-gradient-light);
  z-index: -1;
}

body.dark-mode {
  background: var(--bg-gradient-dark);
  color: var(--text-color-dark);
}

body.dark-mode::before {
  background: var(--bg-gradient-dark);
}

body.dark-mode header h1,
body.dark-mode header p {
  color: var(--header-text-dark);
}

body.dark-mode .card h2 {
  color: var(--card-title-dark);
}

/* Navigation Menu */
.nav-menu {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 15px 30px;
  border-radius: 50px;
  display: flex;
  gap: 25px;
  z-index: 999;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-menu::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50px;
  background: conic-gradient(from var(--angle), transparent 70%, #ff8c42 80%, #ff8c42 90%, transparent 100%);
  animation: rotate 3s linear infinite;
  z-index: -1;
}

.nav-menu::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.95);
  z-index: -1;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotate {
  to { --angle: 360deg; }
}

.nav-menu.visible {
  top: 20px;
}

.dark-mode .nav-menu {
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dark-mode .nav-menu::after {
  background: rgba(0, 0, 0, 0.95);
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
}

.dark-mode .nav-link {
  color: var(--text-color-dark);
}

.nav-link:hover {
  background: var(--link-color);
  color: white;
  transform: translateY(-2px);
}

.dark-mode .nav-link:hover {
  background: var(--link-color-dark);
}

@media (max-width: 768px) {
  .nav-menu {
    gap: 5px;
    padding: 8px 10px;
  }
  
  .nav-link {
    font-size: 10px;
    padding: 6px 7px;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .nav-menu {
    gap: 3px;
    padding: 6px 8px;
  }
  
  .nav-link {
    font-size: 9px;
    padding: 5px 5px;
    white-space: nowrap;
  }
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--link-color);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
  box-shadow: 0 5px 20px rgba(0, 102, 204, 0.3);
}

@media (max-width: 768px) {
  .scroll-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .scroll-to-top {
    width: 40px;
    height: 40px;
    bottom: 15px;
    right: 15px;
    font-size: 0.9rem;
  }
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 102, 204, 0.4);
}

.dark-mode .scroll-to-top {
  background: var(--link-color-dark);
  box-shadow: 0 5px 20px rgba(41, 151, 255, 0.3);
}

.dark-mode .scroll-to-top:hover {
  box-shadow: 0 10px 30px rgba(41, 151, 255, 0.4);
}

/* Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.dark-mode-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--header-text);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

@media (max-width: 768px) {
  .dark-mode-toggle {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    top: 15px;
    right: 15px;
  }
}

@media (max-width: 480px) {
  .dark-mode-toggle {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
    top: 12px;
    right: 12px;
  }
}

.dark-mode .dark-mode-toggle {
  color: var(--header-text-dark);
}

.dark-mode-toggle:hover {
  transform: scale(1.1);
}

.dark-mode-toggle.clicked {
  animation: buttonPulse 0.5s ease forwards;
}

@keyframes buttonPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.dark-mode-toggle.zoomed {
  transform: scale(1.5);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.dark-mode .dark-mode-toggle.zoomed {
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.dark-mode .project-card {
  background: var(--card-bg-dark);
}

.dark-mode .project-card strong {
  color: var(--text-color-dark);
}

.dark-mode .tech-stack {
  color: var(--text-color-dark);
}

.dark-mode .live-link {
  color: var(--link-color-dark);
}

.dark-mode .live-link:hover {
  color: var(--link-color-dark);
  opacity: 0.8;
}

.dark-mode .contact-info i {
  color: var(--header-text-dark);
}

.dark-mode .contact-info p:not(:last-child):after {
  color: var(--header-text-dark);
}

.dark-mode .experience-card,
.dark-mode .skills-card,
.dark-mode .education-card {
  background: var(--card-bg-dark);
  box-shadow: 0px 4px 10px var(--shadow-color-dark);
}

.dark-mode .experience-card:hover,
.dark-mode .skills-card:hover,
.dark-mode .education-card:hover {
  box-shadow: 0px 5px 15px var(--shadow-color-dark);
}

.dark-mode .job-entry,
.dark-mode .education-entry,
.dark-mode .skills-section {
  border-color: var(--border-color-dark);
}

.dark-mode .company,
.dark-mode .job-details li,
.dark-mode .skills-section span,
.dark-mode .education-entry p {
  color: var(--text-color-dark);
}

.dark-mode .job-date,
.dark-mode .education-date {
  color: var(--link-color-dark);
}

.dark-mode .icon {
  color: var(--icon-color-dark);
}

.dark-mode .skills-header strong {
  color: var(--text-color-dark);
}

.dark-mode footer {
  background: var(--bg-gradient-dark);
}

.header-top {
  position: relative;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.profile-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 2rem;
  border: 2px solid white;
  transition: all 0.3s ease;
}

.dark-mode .profile-icon {
  background: rgba(0, 0, 0, 0.2);
  border-color: var(--text-color-dark);
}

.header-content {
  text-align: center;
  flex-grow: 1;
}

.profile-section {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 80px 20px;
  margin-bottom: 60px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 768px) {
  .profile-section {
    flex-direction: column;
    padding: 50px 15px;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .profile-section {
    padding: 40px 10px;
    gap: 20px;
  }
}

.profile-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-gradient-light);
  opacity: 0.8;
  backdrop-filter: blur(20px);
  z-index: -1;
}

.dark-mode .profile-section::before {
  background: var(--bg-gradient-dark);
}

.profile-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px var(--shadow-color);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation: float 3s ease-in-out infinite;
}

@media (max-width: 768px) {
  .profile-image {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 480px) {
  .profile-image {
    width: 120px;
    height: 120px;
    border: 3px solid rgba(255, 255, 255, 0.3);
  }
}

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

.profile-image:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 50px var(--shadow-color);
}

.profile-info {
  flex: 1;
  min-width: 280px;
  text-align: left;
}

@media (max-width: 768px) {
  .profile-info {
    text-align: center;
    min-width: 100%;
  }
}

.profile-info h1 {
  font-size: 56px;
  line-height: 1.07143;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 20px;
  color: var(--text-color);
}

@media (max-width: 768px) {
  .profile-info h1 {
    font-size: 36px;
  }
}

@media (max-width: 480px) {
  .profile-info h1 {
    font-size: 28px;
  }
}

.profile-info p {
  font-size: 28px;
  line-height: 1.10722;
  font-weight: 400;
  letter-spacing: .004em;
  color: var(--text-color);
  opacity: 0.8;
}

@media (max-width: 768px) {
  .profile-info p {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .profile-info p {
    font-size: 16px;
  }
}

.dark-mode .profile-info p {
  color: var(--text-color-dark);
}

.card {
  background: var(--card-bg);
  border-radius: 30px;
  padding: 40px;
  margin: 40px 0;
  box-shadow: 0 20px 40px var(--shadow-color);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation: scaleIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .card {
    padding: 25px;
    margin: 25px 0;
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 20px;
    margin: 20px 0;
    border-radius: 15px;
  }
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px var(--shadow-color);
}

.card h2 {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 40px;
  color: var(--card-title);
  text-align: left;
}

@media (max-width: 768px) {
  .card h2 {
    font-size: 28px;
    margin-bottom: 25px;
  }
}

@media (max-width: 480px) {
  .card h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }
}

.dark-mode .card {
  background: var(--card-bg-dark);
  color: var(--text-color-dark);
  border: 1px solid var(--border-color-dark);
  box-shadow: 0 8px 20px var(--shadow-color-dark);
}

.dark-mode .card h2 {
  color: var(--card-title-dark);
}

.dark-mode .card h2::after {
  background: var(--card-title-dark);
}

.dark-mode a {
  color: var(--link-color-dark);
}

.dark-mode .job-entry,
.dark-mode .education-entry,
.dark-mode .skills-section {
  border-color: var(--border-color-dark);
}

.dark-mode .company,
.dark-mode .job-details li,
.dark-mode .skills-section span {
  color: var(--text-color-dark);
}

.dark-mode .card {
  box-shadow: 0px 4px 10px var(--shadow-color-dark);
}

.dark-mode .card:hover {
  box-shadow: 0px 5px 15px var(--shadow-color-dark);
}

/* Professional Experience Styling */
/* Professional Experience Card */
.experience-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
  }
  
  .experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
  }
  
  /* Job Entry */
  .job-entry {
    padding: 15px 0;
    border-bottom: 2px solid #eee;
  }
  
  .job-entry:last-child {
    border-bottom: none;
  }
  
  /* Job Header */
  .job-header {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  
  .job-info {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  /* Icons */
  .icon {
    font-size: 22px;
    color: #007bff;
  }
  
  /* Job Title */
  .job-info h3 {
    font-size: 18px;
    margin: 0;
    font-weight: bold;
  }
  
  /* Company Name */
  .company {
    font-size: 16px;
    color: #555;
    font-weight: 500;
  }
  
  /* Job Date */
  .job-date {
    font-size: 14px;
    color: #007bff;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  /* Job Details */
  .job-details {
    list-style: none;
    padding: 0;
    margin-top: 10px;
  }
  
  .job-details li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    color: #444;
    font-size: 15px;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .job-info {
      gap: 8px;
    }
  
    .icon {
      font-size: 20px;
    }
  
    .job-info h3 {
      font-size: 16px;
    }
  
    .job-date {
      font-size: 13px;
    }
  
    .job-details li {
      font-size: 14px;
    }
  }
  
  @media (max-width: 480px) {
    .job-info h3 {
      font-size: 14px;
    }
  
    .company {
      font-size: 14px;
    }
  
    .job-date {
      font-size: 12px;
    }
  
    .job-details li {
      font-size: 13px;
    }
  }
/* Skills Card */
.skills-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
  }
  
  .skills-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
  }
  
  /* Skills Section */
  .skills-section {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }
  
  .skills-section:last-child {
    border-bottom: none;
  }
  
  /* Skills Header */
  .skills-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
  }
  
  /* Icons */
  .icon {
    font-size: 22px;
    color: #007bff;
  }
  
  /* Strong (Skill Categories) */
  .skills-header strong {
    font-size: 16px;
    font-weight: bold;
    color: #333;
  }
  
  /* Skill List */
  .skills-section span {
    font-size: 15px;
    color: #555;
    display: block;
    padding-left: 32px; /* Indent text for alignment */
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .icon {
      font-size: 20px;
    }
  
    .skills-header strong {
      font-size: 15px;
    }
  
    .skills-section span {
      font-size: 14px;
    }
  }
  
  @media (max-width: 480px) {
    .icon {
      font-size: 18px;
    }
  
    .skills-header {
      gap: 8px;
    }
  
    .skills-header strong {
      font-size: 14px;
    }
  
    .skills-section span {
      font-size: 13px;
    }
  }
    
  /* Education Card */
.education-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
  }
  
  .education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
  }
  
  /* Education Entry */
  .education-entry {
    padding: 10px 0;
    border-bottom: 2px solid #eee;
  }
  
  .education-entry:last-child {
    border-bottom: none;
  }
  
  /* Align icon and heading in one line */
  .education-header {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  /* Icons */
  .icon {
    font-size: 22px;
    color: #007bff;
  }
  
  /* Education Info */
  .education-header h3 {
    font-size: 18px;
    margin: 0;
    font-weight: bold;
  }
  
  .education-entry p {
    margin: 5px 0;
    color: #555;
    font-size: 15px;
  }
  
  .education-date {
    font-size: 14px;
    color: #007bff;
    font-weight: bold;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .education-header {
      gap: 8px;
    }
  
    .icon {
      font-size: 20px;
    }
  
    .education-header h3 {
      font-size: 16px;
    }
  
    .education-date {
      font-size: 13px;
    }
  }
  
  @media (max-width: 480px) {
    .education-header h3 {
      font-size: 14px;
    }
  
    .education-date {
      font-size: 12px;
    }
  }
      
  
  @media (max-width: 480px) {
    .job-header {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .job-info h3 {
      font-size: 14px;
    }
  
    .job-date {
      font-size: 11px;
    }
  
    .job-details li {
      font-size: 13px;
    }
  }
      
  
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

@media (max-width: 768px) {
  .projects-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 15px 0;
  }
}

@media (max-width: 480px) {
  .projects-container {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 10px 0;
  }
}

.project-card {
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
  border-radius: 30px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  backdrop-filter: blur(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px var(--shadow-color);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 30px;
  z-index: 1;
}

.dark-mode .project-card::before {
  background: linear-gradient(135deg, rgba(41, 151, 255, 0.1), rgba(86, 67, 250, 0.1));
}

.project-card:hover::before {
  opacity: 1;
}

.project-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  background: var(--card-bg);
  transition: all 0.4s ease;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card:hover .project-content {
  transform: translateY(-10px);
}

.project-card strong {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.004em;
  margin-bottom: 15px;
  display: block;
  color: var(--text-color);
}

.project-card p {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: .012em;
  /* color: var(--text-color); */
  opacity: 0.8;
  margin-bottom: 20px;
  flex: 1;
}

.tech-stack {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: -.022em;
  padding: 12px 20px;
  background: rgba(0, 102, 204, 0.1);
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 20px;
  color: var(--text-color);
}

.live-link {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -.022em;
  padding: 12px 30px;
  background: var(--link-color);
  color: white;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  align-self: flex-start;
}

.live-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 102, 204, 0.2);
}

/* Responsive adjustments for projects */
@media (max-width: 1024px) {
  .projects-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
  
  .project-card strong {
    font-size: 24px;
  }
  
  .project-card p {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .projects-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .project-content {
    padding: 30px;
  }
  
  .project-card strong {
    font-size: 22px;
  }
  
  .project-card p {
    font-size: 15px;
  }
  
  .tech-stack {
    font-size: 14px;
    padding: 10px 16px;
  }
  
  .live-link {
    font-size: 14px;
    padding: 10px 24px;
  }
}

@media (max-width: 480px) {
  .projects-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .project-content {
    padding: 25px;
  }
  
  .project-card strong {
    font-size: 20px;
  }
  
  .project-card p {
    font-size: 14px;
  }
  
  .tech-stack {
    font-size: 13px;
    padding: 8px 14px;
  }
  
  .live-link {
    font-size: 13px;
    padding: 8px 20px;
  }
}

/* Enhanced responsive design for the whole page */
@media (max-width: 1024px) {
  .container {
    padding: 0 15px;
  }
  
  .profile-section {
    padding: 60px 0;
  }
  
  .profile-image {
    width: 180px;
    height: 180px;
  }
  
  .profile-info h1 {
    font-size: 42px;
  }
  
  .profile-info p {
    font-size: 22px;
  }
  
  .card {
    padding: 30px;
    margin: 30px 0;
  }
  
  .card h2 {
    font-size: 32px;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .profile-section {
    flex-direction: column;
    text-align: center;
    padding: 40px 0;
    gap: 30px;
  }
  
  .profile-image {
    width: 160px;
    height: 160px;
  }
  
  .profile-info h1 {
    font-size: 36px;
  }
  
  .profile-info p {
    font-size: 20px;
  }
  
  .contact-info {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 25px;
  }
  
  .contact-item {
    padding: 20px;
  }
  
  .contact-icon {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }
  
  .contact-item a {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }
  
  .profile-section {
    padding: 30px 0;
  }
  
  .profile-image {
    width: 140px;
    height: 140px;
  }
  
  .profile-info h1 {
    font-size: 30px;
  }
  
  .profile-info p {
    font-size: 18px;
  }
  
  .card {
    padding: 20px;
    margin: 20px 0;
  }
  
  .card h2 {
    font-size: 28px;
    margin-bottom: 25px;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px;
  }
  
  .contact-item {
    padding: 15px;
  }
  
  .contact-icon {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
  
  .contact-item a {
    font-size: 15px;
  }
  
  .dark-mode-toggle {
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .scroll-to-top {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

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

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

header {
  text-align: center;
  padding: 20px 0;
  animation: fadeIn 1s ease;
}

header h1 {
  margin: 0;
  color: white;
  /* White text color */
  font-size: 3em;
}

header p {
  margin: 5px 0;
  color: white;
  /* White text color */
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 30px;
}

@media (max-width: 768px) {
  .contact-info {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding: 20px;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .contact-info {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 15px;
    gap: 10px;
  }
}

.contact-item {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
}

.contact-item span {
  font-size: 19px;
  line-height: 1.21053;
  font-weight: 400;
  letter-spacing: .012em;
  color: var(--text-color);
}

@media (max-width: 480px) {
  .contact-item span {
    display: none;
  }
}

.dark-mode .contact-item span {
  color: var(--text-color-dark);
}

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

.dark-mode .contact-item:hover span {
  color: var(--link-color-dark);
}

@media (max-width: 768px) {
  .contact-item {
    padding: 12px;
  }
  
  .contact-item span {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .contact-item {
    padding: 0;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    flex: 0 0 auto;
  }
}

.contact-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-gradient-light);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
  border-radius: 20px;
}

.dark-mode .contact-item::before {
  background: rgba(41, 151, 255, 0.1);
}

.contact-item:hover::before {
  opacity: 0.1;
}

.contact-item:hover {
  transform: translateY(-5px);
}

.contact-icon {
  width: 64px;
  height: 64px;
  background: var(--link-color);
  font-size: 1.8rem;
  margin-bottom: 20px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .contact-icon {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
    margin-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .contact-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    margin-bottom: 0;
  }
  
  .contact-icon::before {
    font-size: 1.1rem;
  }
}

.contact-item:hover .contact-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--link-color-dark);
}



/* iOS-style Font Awesome icons */
.contact-icon.email::before {
  content: "\f0e0";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.5rem;
}

.contact-icon.phone::before {
  content: "\f095";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.5rem;
}

.contact-icon.location::before {
  content: "\f3c5";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.5rem;
}

.contact-icon.linkedin::before {
  content: "\f08c";
  font-family: "Font Awesome 6 Brands";
  font-weight: 400;
  font-size: 1.5rem;
}

.contact-icon.github::before {
  content: "\f09b";
  font-family: "Font Awesome 6 Brands";
  font-weight: 400;
  font-size: 1.5rem;
}

.contact-icon.resume::before {
  content: "\f1c1";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-info {
    padding: 30px;
    gap: 20px;
  }
  
  .contact-item {
    padding: 20px;
  }
  
  .contact-icon {
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
  }
  
  .contact-item a {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .contact-info {
    padding: 20px;
    gap: 15px;
  }
  
  .contact-item {
    padding: 15px;
  }
  
  .contact-icon {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }
  
  .contact-item a {
    font-size: 16px;
  }
}

/* Smooth Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.profile-section {
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.card {
  animation: scaleIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.project-card {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.contact-info {
  animation: scaleIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Loading Animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-gradient-light);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.dark-mode .loading {
  background: var(--bg-gradient-dark);
}

.loading.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--card-bg);
  border-top-color: var(--link-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .profile-info h1 {
    font-size: 48px;
  }
  
  .profile-info p {
    font-size: 24px;
  }
  
  .card h2 {
    font-size: 36px;
  }
  
  .project-card strong {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .profile-section {
    flex-direction: column;
    text-align: center;
    padding: 60px 0;
    gap: 40px;
  }
  
  .profile-image {
    width: 180px;
    height: 180px;
  }
  
  .profile-info h1 {
    font-size: 40px;
  }
  
  .profile-info p {
    font-size: 21px;
  }
  
  .card {
    padding: 30px;
    margin: 30px 0;
  }
  
  .card h2 {
    font-size: 32px;
  }
  
  .project-card strong {
    font-size: 24px;
  }
  
  .project-card p {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .profile-section {
    padding: 40px 0;
  }
  
  .profile-image {
    width: 150px;
    height: 150px;
  }
  
  .profile-info h1 {
    font-size: 32px;
  }
  
  .profile-info p {
    font-size: 19px;
  }
  
  .card {
    padding: 25px;
    margin: 25px 0;
  }
  
  .card h2 {
    font-size: 28px;
  }
  
  .project-card strong {
    font-size: 21px;
  }
  
  .project-card p {
    font-size: 16px;
  }
  
  .tech-stack,
  .live-link {
    font-size: 15px;
    padding: 10px 20px;
  }
}

/* Dark mode styles for contact and project sections */
.dark-mode .contact-info {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.dark-mode .project-card {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.dark-mode .project-content {
  background: #000000;
}

.dark-mode .tech-stack {
  background: rgba(41, 151, 255, 0.1);
  color: #ffffff;
}

.dark-mode .live-link {
  background: #2997ff;
  color: #ffffff;
}

.dark-mode .live-link:hover {
  background: #0077ed;
  box-shadow: 0 10px 20px rgba(41, 151, 255, 0.2);
}

.dark-mode .contact-item::before {
  background: rgba(41, 151, 255, 0.1);
}

.dark-mode .contact-icon {
  background: #2997ff;
}

.dark-mode .contact-item:hover .contact-icon {
  background: #0077ed;
}

.dark-mode .contact-item a {
  color: #ffffff;
}

.dark-mode .contact-item a:hover {
  color: #2997ff;
}

/* Update hover effects for dark mode */
.dark-mode .project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.dark-mode .contact-info:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Responsive adjustments for dark mode toggle */
@media (max-width: 768px) {
  .dark-mode-toggle {
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    font-size: 1rem;
    padding: 6px;
  }
  
  .dark-mode-toggle.zoomed {
    transform: scale(1.4);
  }
}

@media (max-width: 480px) {
  .dark-mode-toggle {
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
    padding: 5px;
  }
  
  .dark-mode-toggle.zoomed {
    transform: scale(1.3);
  }
}

/* Responsive Typography */
@media screen and (min-width: 1200px) {
  .profile-info h1 { font-size: 56px; }
  .profile-info p { font-size: 28px; }
  .card h2 { font-size: 40px; }
  .project-card strong { font-size: 28px; }
}

@media screen and (max-width: 1199px) {
  .profile-info h1 { font-size: 48px; }
  .profile-info p { font-size: 24px; }
  .card h2 { font-size: 36px; }
  .project-card strong { font-size: 24px; }
}

@media screen and (max-width: 991px) {
  .profile-info h1 { font-size: 42px; }
  .profile-info p { font-size: 22px; }
  .card h2 { font-size: 32px; }
  .project-card strong { font-size: 22px; }
  
  .profile-section {
    padding: 60px 15px;
    gap: 40px;
  }
  
  .profile-image {
    width: 180px;
    height: 180px;
  }
}

@media screen and (max-width: 767px) {
  .profile-info h1 { font-size: 36px; }
  .profile-info p { font-size: 20px; }
  .card h2 { font-size: 28px; }
  .project-card strong { font-size: 20px; }
  
  .profile-section {
    padding: 40px 15px;
    text-align: center;
  }
  
  .profile-info {
    text-align: center;
  }
  
  .profile-image {
    width: 160px;
    height: 160px;
  }
  
  .contact-info {
    padding: 20px;
  }
  
  .card {
    padding: 25px;
    margin: 25px 0;
  }
}

@media screen and (max-width: 575px) {
  .profile-info h1 { font-size: 32px; }
  .profile-info p { font-size: 18px; }
  .card h2 { font-size: 24px; }
  .project-card strong { font-size: 18px; }
  
  .profile-section {
    padding: 30px 10px;
  }
  
  .profile-image {
    width: 140px;
    height: 140px;
  }
  
  .contact-info {
    padding: 15px;
    grid-template-columns: 1fr;
  }
  
  .card {
    padding: 20px;
    margin: 20px 0;
  }
  
  .projects-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contact-item {
    padding: 15px;
  }
  
  .contact-icon {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
}

/* Experience Card Responsive */
@media screen and (max-width: 575px) {
  .job-entry {
    padding: 15px 0;
  }
  
  .job-header {
    flex-direction: column;
    gap: 5px;
  }
  
  .job-info h3 {
    font-size: 16px;
  }
  
  .company {
    font-size: 14px;
  }
  
  .job-date {
    font-size: 12px;
  }
  
  .job-details li {
    font-size: 14px;
    padding: 3px 0;
  }
}

/* Education Card Responsive */
@media screen and (max-width: 575px) {
  .education-entry {
    padding: 15px 0;
  }
  
  .education-header h3 {
    font-size: 16px;
  }
  
  .education-entry p {
    font-size: 14px;
  }
  
  .education-date {
    font-size: 12px;
  }
}

/* Skills Card Responsive */
@media screen and (max-width: 575px) {
  .skills-header strong {
    font-size: 15px;
  }
  
  .skills-section span {
    font-size: 14px;
  }
  
  .skills-progress {
    margin-top: 8px;
  }
}

/* Ensure proper spacing on very small devices */
@media screen and (max-width: 320px) {
  .container {
    padding: 0 10px;
  }
  
  .profile-info h1 {
    font-size: 28px;
  }
  
  .profile-info p {
    font-size: 16px;
  }
  
  .card h2 {
    font-size: 22px;
  }
  
  .project-card strong {
    font-size: 16px;
  }
  
  .contact-item a {
    font-size: 14px;
  }
}

/* Maintain dark mode styles */
.dark-mode .card,
.dark-mode .contact-info,
.dark-mode .project-card,
.dark-mode .experience-card,
.dark-mode .skills-card,
.dark-mode .education-card {
  background: #000000;
  color: var(--text-color-dark);
}

/* Animation durations for better performance on mobile */
@media screen and (max-width: 767px) {
  .profile-section,
  .card,
  .project-card,
  .contact-info {
    animation-duration: 0.5s;
  }
}

#typed-name {
  font-size: 2.5rem; /* Match your original h1 size */
  font-weight: bold;
  margin: 0;
}

.typed-cursor {
  font-size: 2.5rem; /* Match cursor size to text */
  color: #000; /* Customize cursor color */
}