/* Home Page Specific Styles */

/* Prevent horizontal overflow on mobile */
html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0d1117 0%, #161b22 25%, #21262d 50%, #30363d 75%, #21262d 100%);
  color: white;
  padding: 40px 20px 30px 20px;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, #2196f3, #1976d2, #0d47a1) 1;
  box-shadow: 0 4px 20px rgba(33, 150, 243, 0.1);
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section .row {
  position: relative;
  z-index: 1;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(33, 150, 243, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(25, 118, 210, 0.06) 0%, transparent 40%),
    linear-gradient(45deg, transparent 0%, rgba(33, 150, 243, 0.02) 50%, transparent 100%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(45deg, transparent 0%, rgba(33, 150, 243, 0.03) 25%, transparent 50%),
    linear-gradient(-45deg, transparent 0%, rgba(25, 118, 210, 0.02) 25%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  justify-content: flex-start;
  background: rgba(33, 150, 243, 0.1);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(33, 150, 243, 0.2);
  backdrop-filter: blur(10px);
}

.hero-name-container {
  display: flex;
  align-items: center;
  min-height: 60px; /* Reduced from 80px */
  position: relative;
  z-index: 2;
}

.hero-name {
  font-size: 2.8rem;
  font-weight: 700;
  margin: 0;
  color: #2196f3 !important;
  text-shadow: 0 0 30px rgba(33, 150, 243, 0.3);
  line-height: 1.4;
  white-space: nowrap;
  /* Override global h1 transparent styling */
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  background-clip: initial !important;
}

/* Fix typing cursor height and appearance */
.hero-name .typed-cursor {
  font-size: 2.8rem;
  line-height: 1.4;
  color: #2196f3 !important;
  opacity: 1;
  animation: blink 1s infinite;
  /* Override global h1 transparent styling */
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  background-clip: initial !important;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 3;
}

.hero-social-links {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  position: relative;
  z-index: 3;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(33, 150, 243, 0.15);
  color: #2196f3;
  text-decoration: none;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  border: 2px solid rgba(33, 150, 243, 0.3);
  box-shadow: 0 0 20px rgba(33, 150, 243, 0.2);
  position: relative;
  z-index: 10;
  cursor: pointer;
  font-weight: 600;
}

.social-link:hover {
  background: rgba(33, 150, 243, 0.3);
  color: #ffffff;
  transform: translateY(-3px) scale(1.15);
  border-color: #2196f3;
  box-shadow: 0 8px 25px rgba(33, 150, 243, 0.5);
  text-decoration: none;
}

/* LinkedIn specific styling */
.social-link[href*="linkedin"]:hover {
  background: linear-gradient(135deg, #0077b5, #005885);
  border-color: #0077b5;
  box-shadow: 0 8px 25px rgba(0, 119, 181, 0.5);
}

/* GitHub specific styling */
.social-link[href*="github"]:hover {
  background: linear-gradient(135deg, #333, #24292e);
  border-color: #333;
  box-shadow: 0 8px 25px rgba(51, 51, 51, 0.5);
}

.hero-avatar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.profile-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(0, 188, 212, 0.4);
  box-shadow: 0 5px 15px rgba(0, 188, 212, 0.3), 0 0 20px rgba(0, 188, 212, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--background-dark);
}

.profile-img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 188, 212, 0.4), 0 0 60px rgba(0, 188, 212, 0.3);
}

/* Enhanced Buttons */
.btn-hero {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  position: relative;
  z-index: 10;
  cursor: pointer;
}

.btn-hero-primary {
  background: linear-gradient(45deg, #2196f3, #1976d2);
  color: #000000;
  border: 2px solid #2196f3;
  box-shadow: 0 0 20px rgba(0, 188, 212, 0.3);
}

.btn-hero-primary:hover {
  background: linear-gradient(45deg, #1976d2, #1565c0);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 188, 212, 0.4), 0 0 30px rgba(0, 188, 212, 0.3);
  color: #000000;
  text-decoration: none;
}

.btn-hero-outline {
  background: transparent;
  color: #2196f3;
  border: 2px solid #2196f3;
  box-shadow: 0 0 20px rgba(0, 188, 212, 0.2);
}

.btn-hero-outline:hover {
  background: rgba(0, 188, 212, 0.1);
  border-color: #2196f3;
  transform: translateY(-2px);
  color: #2196f3;
  box-shadow: 0 8px 25px rgba(0, 188, 212, 0.3);
  text-decoration: none;
}

/* Content Sections */
.content-section {
  padding: 40px 20px;
  background: linear-gradient(135deg, #161b22 0%, #1a1f26 50%, #1e2328 100%);
  margin: 1.5rem 0;
  border: 1px solid rgba(33, 150, 243, 0.1);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

/* Allow card hover transforms to be visible in certifications and projects sections */
.certifications-section,
.projects-section {
  overflow: visible;
}

.content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(33, 150, 243, 0.02) 0%, transparent 70%);
  pointer-events: none;
}

.content-section .container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #ffffff;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #2196f3, #1976d2);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
}

/* About Section */
.about-section {
  background: linear-gradient(135deg, #1a1f26 0%, #1e2328 50%, #22272e 100%);
  border: 1px solid rgba(76, 175, 80, 0.1);
  box-shadow: 0 4px 20px rgba(76, 175, 80, 0.05);
  padding: 40px 20px;
}

.about-section::before {
  background: radial-gradient(ellipse at center, rgba(76, 175, 80, 0.02) 0%, transparent 70%);
}

.about-text {
  max-width: 1200px;
  margin: 0 auto;
}

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

/* Certifications Section */
.certifications-section {
  background: linear-gradient(135deg, #1e2328 0%, #22272e 50%, #262b32 100%);
  border: 1px solid rgba(255, 152, 0, 0.1);
  box-shadow: 0 4px 20px rgba(255, 152, 0, 0.05);
  overflow: visible;
  padding: 40px 20px;
  /* Add extra top padding to accommodate hover transform */
  padding-top: 70px;
}

.certifications-section::before {
  background: radial-gradient(ellipse at center, rgba(255, 152, 0, 0.02) 0%, transparent 70%);
}

/* Slider Container */
.slider-container {
  position: relative;
  width: 100%;
  padding: 0 80px; /* Reduced padding for better mobile experience */
  /* Add top margin to provide space for hover transforms */
  margin-top: 30px;
}

.certifications-slider, .projects-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  /* Enable horizontal scrolling on mobile */
  overflow-x: auto;
  overflow-y: hidden;
  /* Smooth scrolling for mobile */
  scroll-behavior: smooth;
  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.certifications-slider::-webkit-scrollbar,
.projects-slider::-webkit-scrollbar {
  display: none;
}

.certifications-track, .projects-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s ease;
  will-change: transform;
  /* Prevent text selection during swipe */
  user-select: none;
  -webkit-user-select: none;
  /* Enable touch scrolling on mobile */
  min-width: max-content;
}

.certifications-track {
  /* Add top margin to prevent cards from being cut off on hover */
  margin-top: 15px;
}

.projects-track {
  /* Add top margin to prevent cards from being cut off on hover */
  margin-top: 12px;
}

/* Slider Navigation Buttons - Desktop Only */
@media (min-width: 769px) {
  .slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    padding: 0 15px;
    left: 0;
  }

  .projects-nav {
    left: 0;
  }

  .slider-btn {
    position: relative;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(33, 150, 243, 0.9);
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transform: scale(1);
    z-index: 10;
  }

  .slider-btn:hover {
    background: var(--primary-color);
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.6);
    backdrop-filter: blur(15px);
  }

  .slider-btn:active {
    transform: scale(1.05);
    transition: all 0.1s ease;
  }

  .slider-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: scale(1);
    background: rgba(33, 150, 243, 0.3);
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.1);
  }

  .slider-btn:disabled:hover {
    transform: scale(1);
    background: rgba(33, 150, 243, 0.3);
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.1);
  }
}

/* Slider Dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-muted);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

.slider-dot:hover {
  background: var(--primary-light);
  transform: scale(1.1);
}

.certification-card {
  min-width: 280px; /* Reduced from 300px for better mobile fit */
  background: linear-gradient(135deg, #21262d 0%, #30363d 100%);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(33, 150, 243, 0.15), 0 4px 16px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 152, 0, 0.3);
  transition: all 0.3s ease;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.certification-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff9800, #ffc107);
  box-shadow: 0 0 10px rgba(255, 152, 0, 0.6);
}

.certification-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(33, 150, 243, 0.25), 0 8px 24px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 152, 0, 0.6);
  background: linear-gradient(135deg, #30363d 0%, #21262d 100%);
}

.cert-logo {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 152, 0, 0.05);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 152, 0, 0.15);
}

.cert-logo img {
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
  filter: brightness(1.1) contrast(1.1);
}

.cert-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.cert-org {
  font-size: 1.1rem;
  color: #ff9800;
  margin-bottom: 1rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cert-description {
  font-size: 1rem;
  color: #e6edf3;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 0.5rem;
  border-left: 3px solid rgba(255, 152, 0, 0.5);
}

.cert-verify {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(45deg, #ff9800, #ffc107);
  color: #000000;
  text-decoration: none;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cert-verify:hover {
  background: linear-gradient(45deg, #f57c00, #ff9800);
  color: #000000;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

/* Projects Section */
.projects-section {
  background: linear-gradient(135deg, #22272e 0%, #262b32 50%, #2a2f36 100%);
  border: 1px solid rgba(244, 67, 54, 0.1);
  box-shadow: 0 4px 20px rgba(244, 67, 54, 0.05);
  overflow: visible;
  padding: 40px 20px;
  /* Add extra top padding to accommodate hover transform */
  padding-top: 60px;
}

.projects-section::before {
  background: radial-gradient(ellipse at center, rgba(244, 67, 54, 0.02) 0%, transparent 70%);
}

.project-card {
  min-width: 280px; /* Reduced from 300px for better mobile fit */
  background: var(--card-background);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 188, 212, 0.08);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2196f3, #1976d2);
  box-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 188, 212, 0.2);
  border-color: var(--primary-color);
}

.project-title {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.project-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.project-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.project-link {
  display: inline-block;
  padding: 10px 20px;
  background: var(--background-dark);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  font-size: 0.9rem;
}

.project-link:hover {
  background: var(--primary-color);
  color: var(--background-dark);
  text-decoration: none;
  transform: translateY(-2px);
}

/* Responsive Design */
/* Large tablets and small desktops */
@media (max-width: 1024px) {
  .slider-container {
    padding: 0 60px;
  }

  .certification-card, .project-card {
    min-width: 260px;
    padding: 1.8rem;
  }
}

/* Tablets */
@media (max-width: 968px) {
  .content-section {
    padding: 35px 15px;
    margin: 1rem 0;
  }

  .about-section, .certifications-section, .projects-section {
    padding: 35px 15px;
    /* Maintain extra top padding for hover effects on tablets */
  }

  .certifications-section {
    padding-top: 65px;
  }

  .projects-section {
    padding-top: 55px;
  }

  .content-section .container {
    padding: 0 10px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-name {
    font-size: 2.5rem;
    line-height: 1.4;
  }

  .hero-social-links {
    justify-content: center;
  }

  .slider-container {
    padding: 0 50px;
  }

  .certifications-track {
    gap: 1rem;
  }

  .certification-card, .project-card {
    min-width: 240px;
    padding: 1.5rem;
  }
}

/* Standard mobile devices */
@media (max-width: 768px) {
  .content-section {
    padding: 30px 15px;
    margin: 0.75rem 0;
  }

  .about-section, .certifications-section, .projects-section {
    padding: 30px 15px;
    /* Maintain extra top padding for hover effects on mobile */
  }

  .certifications-section {
    padding-top: 60px;
  }

  .projects-section {
    padding-top: 50px;
  }

  .content-section .container {
    padding: 0 10px;
  }

  .hero-section {
    padding: 30px 15px; /* Reduced from 60px 0 for better mobile fit */
  }

  .hero-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1rem;
  }

  .hero-name-container {
    min-height: 60px;
    justify-content: center;
  }

  .hero-name {
    font-size: 2rem;
    line-height: 1.4;
  }

  .hero-name .typed-cursor {
    font-size: 2rem;
    line-height: 1.4;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-social-links {
    justify-content: center;
    margin-top: 1rem;
  }

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

  .slider-container {
    padding: 0 20px;
  }

  /* Enable native scrolling on mobile */
  .certifications-slider, .projects-slider {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .certifications-track, .projects-track {
    /* Allow JavaScript transforms to work on mobile */
  }

  .certification-card, .project-card {
    scroll-snap-align: start;
    min-width: 280px;
    flex-shrink: 0;
  }

  /* Hide arrow buttons on mobile for touch-only navigation */
  .slider-nav {
    display: none;
  }

  /* Disable hover effects on mobile for smoother touch interaction */
  .certification-card:hover,
  .project-card:hover {
    transform: none;
    box-shadow: 0 8px 32px rgba(33, 150, 243, 0.15), 0 4px 16px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 152, 0, 0.3);
  }

  .social-link:hover {
    transform: none;
    background: rgba(33, 150, 243, 0.1);
    color: #2196f3;
    border-color: transparent;
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.2);
  }

  .profile-img {
    width: 60px;
    height: 60px;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .content-section {
    padding: 25px 10px;
    margin: 0.5rem 0;
  }

  .about-section, .certifications-section, .projects-section {
    padding: 25px 10px;
    /* Maintain extra top padding for hover effects on small mobile */
  }

  .certifications-section {
    padding-top: 55px;
  }

  .projects-section {
    padding-top: 45px;
  }

  .content-section .container {
    padding: 0 5px;
  }

  .hero-section {
    padding: 25px 10px;
  }

  .hero-header {
    padding: 0.8rem;
    gap: 0.8rem;
  }

  .hero-name-container {
    min-height: 50px;
  }

  .hero-name {
    font-size: 1.75rem;
    line-height: 1.4;
  }

  .hero-name .typed-cursor {
    font-size: 1.75rem;
    line-height: 1.4;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .btn-hero {
    width: 100%;
    max-width: 280px;
    padding: 10px 20px;
  }

  .hero-social-links {
    justify-content: center;
    gap: 1rem;
  }

  .social-link {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  /* Disable hover effects on small mobile for smoother interaction */
  .social-link:hover {
    transform: none;
    background: rgba(33, 150, 243, 0.1);
    color: #2196f3;
    border-color: transparent;
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.2);
  }

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

  .slider-container {
    padding: 0 15px; /* Further reduced since no arrows */
  }

  /* Hide arrow buttons on small mobile devices */
  .slider-nav {
    display: none;
  }

  .certification-card, .project-card {
    min-width: 200px;
    padding: 1.2rem;
  }

  /* Disable hover effects on small mobile for better touch performance */
  .certification-card:hover,
  .project-card:hover {
    transform: none;
    box-shadow: 0 8px 32px rgba(33, 150, 243, 0.15), 0 4px 16px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 152, 0, 0.3);
  }

  .cert-logo {
    padding: 0.8rem;
    margin-bottom: 1rem;
  }

  .cert-logo img {
    max-width: 60px;
    max-height: 60px;
  }

  .cert-name {
    font-size: 1.2rem;
  }

  .cert-org {
    font-size: 1rem;
  }

  .cert-description {
    font-size: 0.9rem;
    padding: 0.8rem;
    margin-bottom: 1rem;
  }

  .project-title {
    font-size: 1.2rem;
  }

  .project-description {
    font-size: 0.9rem;
  }

  .profile-img {
    width: 50px;
    height: 50px;
  }

  .slider-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .slider-dots {
    margin-top: 1.5rem;
  }

  .slider-dot {
    width: 10px;
    height: 10px;
  }
}

/* Very small mobile devices */
@media (max-width: 360px) {
  .hero-section {
    padding: 20px 8px;
  }

  .hero-name {
    font-size: 1.5rem;
    line-height: 1.4;
  }

  .hero-name .typed-cursor {
    font-size: 1.5rem;
    line-height: 1.4;
  }

  .btn-hero {
    max-width: 240px;
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .social-link {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

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

  .slider-container {
    padding: 0 10px; /* Further reduced since no arrows */
  }

  /* Hide arrow buttons on very small devices */
  .slider-nav {
    display: none;
  }

  .certification-card, .project-card {
    min-width: 180px;
    padding: 1rem;
  }

  .cert-name {
    font-size: 1.1rem;
  }

  .cert-org {
    font-size: 0.95rem;
  }

  .cert-description {
    font-size: 0.85rem;
  }

  .slider-btn {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .profile-img {
    width: 45px;
    height: 45px;
  }
}

/* Additional mobile improvements */
@media (max-width: 576px) {
  /* Hide arrow buttons on mobile for smoother touch interaction */
  .slider-nav {
    display: none;
  }

  .slider-container {
    padding: 0 15px; /* Reduced padding since no arrows */
  }

  .certification-card, .project-card {
    min-width: 260px; /* Ensure cards aren't too narrow */
  }
}
