:root {
  --primary: #0071E3;
  --secondary: #86868b;
  --dark: #1d1d1f;
  --light: #f5f5f7;
  --gradient-start: #7B82FB;
  --gradient-middle: #C878DD;
  --gradient-end: #F797B6;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-hover: rgba(255, 255, 255, 0.8);
  --dark-gradient-start: #161853;
  --dark-gradient-middle: #291D54;
  --dark-gradient-end: #3C1A4F;
  --dark-surface: rgba(30, 30, 46, 0.8);
  --dark-surface-hover: rgba(40, 40, 56, 0.9);
  --dark-border: rgba(255, 255, 255, 0.07);
  --dark-card: rgba(28, 28, 44, 0.85);
}

/* Font display swap for better text visibility during loading */
@font-face {
  font-family: 'SF Pro Display';
  font-display: swap;
  src: url('https://fonts.cdnfonts.com/s/59278/SFPRODISPLAYREGULAR.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

/* Critical rendering path styles */
body {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.dark .navbar {
  background: rgba(29, 29, 31, 0.8);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid white;
  transition: all 0.5s ease;
}

/* Scroll progress bar optimization */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 1000;
}

.scroll-progress-bar {
  height: 100%;
  background: var(--primary);
  width: 0%;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg, 
    var(--gradient-start) 0%, 
    var(--gradient-middle) 30%, 
    var(--gradient-end) 60%, 
    #ffffff 100%);
  color: var(--dark);
  transition: all 0.3s ease;
  min-height: 100vh;
  background-attachment: fixed;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.dark {
  color-scheme: dark;
}

.dark body {
  background: linear-gradient(180deg, 
    var(--dark-gradient-start) 0%, 
    var(--dark-gradient-middle) 30%, 
    var(--dark-gradient-end) 60%, 
    #111827 100%);
  color: var(--light);
  background-attachment: fixed;
}

/* Glass effect base style - Apple-inspired */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.glass:hover {
  background: var(--glass-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.dark .glass {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.dark .glass:hover {
  background: var(--dark-surface-hover);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* Buttons - Apple-style */
.btn-primary {
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 980px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-size: 17px;
  letter-spacing: -0.01em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #0077ED;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.btn-secondary:hover {
  text-decoration: underline;
}

/* Titles - Apple-style */
.section-title {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--dark);
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.dark .section-title {
  color: white;
}

/* Project cards styling */
.project-card, .skill-card {
  position: relative;
  transition: all 0.5s cubic-bezier(0.42, 0, 0.58, 1);
  overflow: hidden;
  border-radius: 18px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.dark .project-card, .dark .skill-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.project-card:hover, .skill-card:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.dark .project-card:hover, .dark .skill-card:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.project-card h3, .skill-card h3 {
  color: var(--dark);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.dark .project-card h3, .dark .skill-card h3 {
  color: white;
}

.project-card p {
  color: var(--secondary);
  font-size: 17px;
  line-height: 1.4;
}

.dark .project-card p {
  color: rgba(255, 255, 255, 0.85);
}

/* Skill details */
.skill-details {
  font-size: 14px;
  color: var(--secondary);
  text-align: center;
  transition: all 0.3s ease;
}

.dark .skill-details {
  color: rgba(255, 255, 255, 0.7);
}

/* Tool cards in dark mode */
.dark .tool-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.dark .tool-name {
  color: rgba(255, 255, 255, 0.95);
}

/* Tags in dark mode */
.dark .tag {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.dark .tag:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Social icons in dark mode */
.dark .social-icon {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
}

/* UI Components */
.scroll-top, .dark-mode-toggle {
  background: var(--glass-bg);
  color: var(--dark);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.42, 0, 0.58, 1);
}

.dark .scroll-top, .dark .dark-mode-toggle {
  background: var(--dark-surface);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--dark-border);
}

.scroll-top:hover, .dark-mode-toggle:hover {
  background: var(--glass-hover);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.dark .scroll-top:hover, .dark .dark-mode-toggle:hover {
  background: var(--dark-surface-hover);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Enhanced Navigation - Apple-style */
nav {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: none !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05) !important;
  height: 48px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.dark nav {
  background: rgba(20, 20, 36, 0.85) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.dark nav.scrolled {
  background: rgba(20, 20, 36, 0.95) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

nav a {
  color: var(--dark) !important;
  opacity: 0.85;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  position: relative;
  padding: 4px 0;
}

.dark nav a {
  color: white !important;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

nav a:hover, nav a.active {
  opacity: 1;
  color: var(--primary) !important;
}

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

.nav-brand {
  font-weight: 600;
  font-size: 16px;
}

.nav-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 2rem;
}

@media (max-width: 640px) {
  nav {
    padding: 0 1rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
}

/* Tags - Apple-style */
.tag {
  background: #E8E8ED;
  color: var(--dark);
  padding: 4px 12px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all 0.3s ease;
}

.tag:hover {
  background: #D8D8D8;
  transform: translateY(-1px);
}

/* Sections */
section {
  padding: 100px 20px;
  position: relative;
  z-index: 1;
}

section#home {
  padding-top: 120px;
}

/* Hero section - Apple-style */
.hero-headline {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  color: var(--dark);
}

.dark .hero-headline {
  color: white;
}

.hero-subheadline {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  color: rgb(0, 0, 0);
}

.dark .hero-subheadline {
  color: rgb(255, 255, 255);
}

/* Footer styling */
footer {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  color: var(--secondary);
  font-size: 12px;
  padding: 16px 0;
}

.dark footer {
  background: var(--dark-surface);
  border-top: 1px solid var(--dark-border);
  color: rgba(255, 255, 255, 0.7);
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.42, 0, 0.58, 1);
  z-index: 1000;
}

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

/* Dark mode toggle */
.dark-mode-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--dark);
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dark .dark-mode-toggle {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

.dark-mode-toggle:hover {
  background-color: var(--primary);
  color: white;
  transform: scale(1.05);
}

/* Dark mode toggle in navbar */
.dark-mode-toggle-nav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--dark);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-border);
  font-size: 18px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 0;
  margin-left: 4px;
}

.dark-mode-toggle-nav i {
  font-size: 18px;
}

.dark .dark-mode-toggle-nav {
  color: white;
  background: rgba(0, 0, 0, 0.2);
}

.dark-mode-toggle-nav:hover {
  transform: rotate(90deg);
  color: var(--primary);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dark .dark-mode-toggle-nav:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Skills and tools icons */
.skill-card {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.42, 0, 0.58, 1);
  overflow: hidden;
  border-radius: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
  min-height: 220px;
}

.skill-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background: linear-gradient(to top, rgba(0,113,227,0.1), transparent);
  z-index: -1;
  transition: height 0.5s cubic-bezier(0.42, 0, 0.58, 1);
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.skill-card:hover::after {
  height: 100%;
}

.skill-card:hover .skill-icon {
  transform: scale(1.15);
  color: var(--primary);
}

.skill-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.5s cubic-bezier(0.42, 0, 0.58, 1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.skill-card:hover .skill-icon-wrapper {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

.skill-icon {
  font-size: 40px;
  color: var(--dark);
  transition: all 0.5s cubic-bezier(0.42, 0, 0.58, 1);
}

.skill-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.5s cubic-bezier(0.42, 0, 0.58, 1);
}

.skill-card:hover .skill-icon img {
  transform: scale(1.1);
}

.skill-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.skill-card:hover .skill-name {
  color: var(--primary);
}

/* Tools cards - larger circular design */
.tool-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.42, 0, 0.58, 1);
  overflow: hidden;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
  width: 180px;
  height: 180px;
  margin: 0 auto;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.42, 0, 0.58, 1);
}

.tool-card::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 100%);
  z-index: -1;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.5s cubic-bezier(0.42, 0, 0.58, 1);
}

.tool-card:hover {
  transform: scale(1.08) translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

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

.tool-card:hover::after {
  opacity: 1;
  transform: scale(1);
}

.tool-card:hover .tool-icon {
  transform: rotateY(180deg);
  color: var(--primary);
}

.tool-icon {
  font-size: 48px;
  margin-bottom: 15px;
  color: var(--dark);
  transition: all 0.8s cubic-bezier(0.42, 0, 0.58, 1);
}

.tool-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  text-align: center;
}

.dark .tool-icon,
.dark .tool-name {
  color: white;
}

/* Additional styling for skills section */
#skills {
  position: relative;
}

#skills::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  z-index: 0;
}

/* Additional styling for tools section */
#tools {
  position: relative;
}

#tools::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  z-index: 0;
}

#contact {
  position: relative;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  z-index: 0;
}

#projects {
  position: relative;
}

#projects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  z-index: 0;
}

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.42, 0, 0.58, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
}

.from-left {
  transform: translateX(-50px);
}

.from-left.is-visible {
  transform: translateX(0);
}

.from-right {
  transform: translateX(50px);
}

.from-right.is-visible {
  transform: translateX(0);
}

/* Custom icons for tools without proper DevIcon representation */
.custom-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-icon img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  transition: all 0.8s cubic-bezier(0.42, 0, 0.58, 1);
}

.skill-card:hover .custom-icon img {
  transform: scale(1.1);
}

/* Override the scale transform with rotate for tool cards */
.tool-card:hover .custom-icon img {
  transform: rotateY(180deg);
}

/* Modern animated social icons */
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark .social-icon {
  background: rgba(30, 30, 46, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon i, .social-icon svg {
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Original brand colors */
.social-icon.linkedin {
  color: #0077B5;
}

.social-icon.github {
  color: #333;
}

.social-icon.twitter {
  color: #000000;
}

.social-icon.instagram {
  color: #E1306C;
}

.social-icon.youtube {
  color: #FF0000;
}

.social-icon.dribbble {
  color: #EA4C89;
}

.social-icon.whatsapp {
  color: #25D366;
}

.social-icon.telegram {
  color: #0088cc;
}

/* Hover effects */
.social-icon.linkedin:hover {
  background-color: #0077B5;
  color: white;
}

.social-icon.github:hover {
  background-color: #333;
  color: white;
}

.social-icon.twitter:hover {
  background-color: #000000;
  color: white;
}

.social-icon.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
}

.social-icon.youtube:hover {
  background-color: #FF0000;
  color: white;
}

.social-icon.whatsapp:hover {
  background-color: #25D366;
  color: white;
}

.social-icon.telegram:hover {
  background-color: #0088cc;
  color: white;
}

.dark .social-icon {
  color: white;
}

/* Modern tool card effects */
.tool-card.postman:hover::after,
.tool-card.chrome:hover::after,
.tool-card.railway:hover::after {
  display: none;
}

.tool-card.postman:hover::before,
.tool-card.chrome:hover::before,
.tool-card.railway:hover::before {
  opacity: 1;
}

.tool-card.postman::before {
  background: linear-gradient(135deg, #FF6C37 0%, #FF9B69 100%) border-box !important;
}

.tool-card.chrome::before {
  background: linear-gradient(135deg, #EA4335 0%, #4285F4 50%, #34A853 100%) border-box !important;
}

.tool-card.railway::before {
  background: linear-gradient(135deg, #0B0D1C 0%, #131627 100%) border-box !important;
}

/* Brand-specific colors for all tool cards */
.tool-card:nth-child(1)::before {
  background: linear-gradient(135deg, #007ACC 0%, #23A9F2 100%) border-box;
}

.tool-card:nth-child(2)::before {
  background: linear-gradient(135deg, #F54D27 0%, #F76D52 100%) border-box;
}

.tool-card:nth-child(5)::before {
  background: linear-gradient(135deg, #A259FF 0%, #C18FFF 100%) border-box;
}

.tool-card:nth-child(6)::before {
  background: linear-gradient(135deg, #2496ED 0%, #59B6FF 100%) border-box;
}

.tool-card:nth-child(7)::before {
  background: linear-gradient(135deg, #24292E 0%, #6E7781 100%) border-box;
}

/* Add colored hover effects to match the other icons */
.tool-card.postman:hover .custom-icon img {
  transform: rotateY(180deg);
  filter: drop-shadow(0 0 5px rgba(255, 108, 55, 0.8));
}

.tool-card.chrome:hover .custom-icon img {
  transform: rotateY(180deg);
  filter: drop-shadow(0 0 5px rgba(66, 133, 244, 0.8));
}

.tool-card.railway:hover .custom-icon img {
  transform: rotateY(180deg);
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}

/* Tool-specific border colors */
#tool1 .tool-card::before {
  background: linear-gradient(135deg, #007ACC 0%, #23A9F2 100%) border-box;
}

#tool2 .tool-card::before {
  background: linear-gradient(135deg, #F54D27 0%, #F76D52 100%) border-box;
}

#tool3 .tool-card::before {
  background: linear-gradient(135deg, #FF6C37 0%, #FF9B69 100%) border-box;
}

#tool4 .tool-card::before {
  background: linear-gradient(135deg, #EA4335 0%, #4285F4 50%, #34A853 100%) border-box;
}

#tool5 .tool-card::before {
  background: linear-gradient(135deg, #A259FF 0%, #C18FFF 100%) border-box;
}

#tool6 .tool-card::before {
  background: linear-gradient(135deg, #2496ED 0%, #59B6FF 100%) border-box;
}

#tool7 .tool-card::before {
  background: linear-gradient(135deg, #24292E 0%, #6E7781 100%) border-box;
}

#tool8 .tool-card::before {
  background: linear-gradient(135deg, #0B0D1C 0%, #131627 100%) border-box;
}

/* Small button for navbar */
.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 14px;
  font-weight: 500;
}

/* Typing effect styles */
.typewriter {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cursor {
  display: inline-block;
  width: 2px;
  margin-left: 2px;
  animation: blink 1s infinite;
}

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

/* Dark mode toggle in navbar */
.dark-mode-toggle-nav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--dark);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-border);
  font-size: 18px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 0;
  margin-left: 4px;
}

.dark-mode-toggle-nav i {
  font-size: 18px;
}

.dark .dark-mode-toggle-nav {
  color: white;
  background: rgba(0, 0, 0, 0.2);
}

.dark-mode-toggle-nav:hover {
  transform: rotate(90deg);
  color: var(--primary);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dark .dark-mode-toggle-nav:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Dark Mode Comprehensive Styling */
html.dark {
  color-scheme: dark;
}

.dark body {
  background: linear-gradient(180deg, 
    #2B2F8E 0%, 
    #742A91 30%, 
    #963D68 60%, 
    #111827 100%);
  color: var(--light);
}

.dark .glass {
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dark .project-card, 
.dark .skill-card,
.dark .tool-card {
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.dark .section-title,
.dark .hero-headline,
.dark h1, .dark h2, .dark h3,
.dark .skill-name,
.dark .tool-name {
  color: white;
}

.dark p,
.dark .hero-subheadline,
.dark .typewriter,
.dark .skill-details {
  color: rgba(255, 255, 255, 0.8);
}

.dark .tag {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.dark .social-icon {
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .tool-card::after {
  background: radial-gradient(circle, rgba(30, 30, 35, 0.9) 0%, rgba(20, 20, 25, 0.6) 100%);
}

.dark .tool-icon {
  color: rgba(255, 255, 255, 0.9);
}

/* Dark mode tool icon colors */
.dark .tool-icon {
  color: rgba(255, 255, 255, 0.9);
}

/* Colored tool icons in dark mode */
.dark .devicon-vscode-plain.colored {
  color: #007ACC !important;
}

.dark .devicon-git-plain.colored {
  color: #F54D27 !important;
}

.dark .devicon-figma-plain.colored {
  color: #A259FF !important;
}

.dark .devicon-docker-plain.colored {
  color: #2496ED !important;
}

.dark .devicon-github-original.colored {
  color: #ffffff !important;
}

/* Make sure all icons have the same hover behavior in dark mode */
.dark .tool-card:hover .tool-icon {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.dark .tool-card:hover .devicon-vscode-plain.colored {
  filter: drop-shadow(0 0 8px rgba(0, 122, 204, 0.6));
}

.dark .tool-card:hover .devicon-git-plain.colored {
  filter: drop-shadow(0 0 8px rgba(245, 77, 39, 0.6));
}

.dark .tool-card:hover .devicon-figma-plain.colored {
  filter: drop-shadow(0 0 8px rgba(162, 89, 255, 0.6));
}

.dark .tool-card:hover .devicon-docker-plain.colored {
  filter: drop-shadow(0 0 8px rgba(36, 150, 237, 0.6));
}

.dark .tool-card:hover .devicon-github-original.colored {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

/* Enhance the Connect button */
.btn-primary.btn-sm {
  position: relative;
  overflow: hidden;
}

.btn-primary.btn-sm::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.7s ease;
}

.btn-primary.btn-sm:hover::before {
  left: 100%;
}

/* Profile photo styling */
.profile-photo-container {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.5s cubic-bezier(0.42, 0, 0.58, 1);
  animation: scaleIn 1.2s ease forwards, shimmer 3s infinite 1.5s, float 6s ease-in-out infinite 2s;
}

.dark .profile-photo-container {
  background: linear-gradient(135deg, var(--dark-gradient-start), var(--dark-gradient-end));
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.profile-photo-container:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.dark .profile-photo-container:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid white;
  transition: all 0.5s ease;
}

.dark .profile-photo {
  border-color: rgba(255, 255, 255, 0.8);
}

/* Adjust hero section layout */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-content {
    flex-direction: row;
    text-align: left;
    justify-content: center;
    gap: 3rem;
  }
  
  .hero-text {
    max-width: 500px;
  }
  
  .typewriter {
    justify-content: flex-start;
  }
}

/* Enhanced profile photo animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes fadeUpIn {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow: 0 0 20px 5px rgba(123, 130, 251, 0.5);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.profile-photo-container {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.5s cubic-bezier(0.42, 0, 0.58, 1);
  animation: scaleIn 1.2s ease forwards, shimmer 3s infinite 1.5s, float 6s ease-in-out infinite 2s;
}

/* Hero animations */
.hero-headline {
  animation: fadeUpIn 1s ease-out forwards;
  opacity: 0;
}

.hero-subheadline {
  animation: fadeUpIn 1s ease-out 0.3s forwards;
  opacity: 0;
}

.hero-cta {
  animation: fadeUpIn 1s ease-out 0.6s forwards;
  opacity: 0;
}

/* Navbar animation */
@keyframes slideInDown {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

nav {
  animation: slideInDown 0.6s ease-out forwards;
}

.nav-link {
  position: relative;
  opacity: 0;
  animation: fadeUpIn 0.4s ease-out forwards;
}

.nav-link:nth-child(1) {
  animation-delay: 0.3s;
}

.nav-link:nth-child(2) {
  animation-delay: 0.4s;
}

.nav-link:nth-child(3) {
  animation-delay: 0.5s;
}

.nav-link:nth-child(4) {
  animation-delay: 0.6s;
}

.btn-primary.btn-sm {
  opacity: 0;
  animation: fadeUpIn 0.4s ease-out 0.7s forwards;
}

.dark-mode-toggle-nav {
  opacity: 0;
  animation: fadeUpIn 0.4s ease-out 0.8s forwards;
}

/* Tool card animations */
@keyframes toolCardPop {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  70% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.tool-card {
  opacity: 0;
}

.tool-card.is-visible {
  animation: toolCardPop 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

#tool1 .tool-card.is-visible { animation-delay: 0.1s; }
#tool2 .tool-card.is-visible { animation-delay: 0.2s; }
#tool3 .tool-card.is-visible { animation-delay: 0.3s; }
#tool4 .tool-card.is-visible { animation-delay: 0.4s; }
#tool5 .tool-card.is-visible { animation-delay: 0.5s; }
#tool6 .tool-card.is-visible { animation-delay: 0.6s; }
#tool7 .tool-card.is-visible { animation-delay: 0.7s; }
#tool8 .tool-card.is-visible { animation-delay: 0.8s; }

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
  .hero-headline {
    font-size: 42px;
  }
  
  .hero-subheadline {
    font-size: 22px;
  }
  
  .section-title {
    font-size: 36px;
  }
  
  .project-card, .skill-card {
    padding: 24px 16px;
  }
  
  .tool-card {
    width: 140px;
    height: 140px;
  }
}

/* Enhanced mobile menu button */
.mobile-menu-btn {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
  background-color: transparent;
  border: none;
}

.mobile-menu-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.dark .mobile-menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Match hamburger icon exactly as in index.html */
.hamburger-icon {
  width: 24px;
  height: 18px;
  position: relative;
  transform: rotate(0deg);
  transition: .5s ease-in-out;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: auto 0;
}

.hamburger-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--dark);
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.dark .hamburger-icon span {
  background: white;
}

.hamburger-icon span:nth-child(1) {
  top: 0px;
}

.hamburger-icon span:nth-child(2) {
  top: 8px;
}

.hamburger-icon span:nth-child(3) {
  top: 16px;
}

.hamburger-icon.open span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}

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

.hamburger-icon.open span:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}


/* Close button for mobile menu */
#mobileMenuCloseBtn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  color: var(--dark);
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 101;
  font-size: 1.2rem;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dark #mobileMenuCloseBtn {
  background-color: rgba(255, 255, 255, 0.12);
  color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#mobileMenuCloseBtn:hover {
  background-color: var(--primary);
  color: white;
  transform: rotate(90deg);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Mobile Menu */
.mobile-menu {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(16px);
z-index: 100;
opacity: 0;
visibility: hidden;
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
display: flex;
justify-content: center;
align-items: center;
}

.mobile-menu-content {
transform: translateY(30px);
transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.4s ease;
width: 90%;
max-width: 400px;
max-height: 90vh;
background-color: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(25px);
display: flex;
flex-direction: column;
overflow: hidden;
padding: 2.5rem;
border-radius: 24px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
opacity: 0;
}

.dark .mobile-menu-content {
background-color: rgba(30, 30, 46, 0.95);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
border: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu.active {
opacity: 1;
visibility: visible;
}

.mobile-menu.active .mobile-menu-content {
transform: translateY(0);
opacity: 1;
}

.mobile-menu-header {
margin-bottom: 2rem;
text-align: center;
position: relative;
}

.mobile-menu-header a {
font-size: 1.75rem;
letter-spacing: -0.02em;
display: inline-block;
margin-bottom: 0.5rem;
}

.mobile-link {
position: relative;
display: flex;
align-items: center;
color: var(--dark);
font-weight: 500;
transition: all 0.3s ease;
padding: 1rem 1.25rem;
font-size: 1.2rem;
border-radius: 12px;
margin-bottom: 0.5rem;
}

.dark .mobile-link {
color: white;
}

.mobile-link i {
transition: transform 0.3s ease;
font-size: 1.25rem;
width: 2.5rem;
height: 2.5rem;
display: flex;
align-items: center;
justify-content: center;
background-color: rgba(0, 0, 0, 0.04);
border-radius: 50%;
margin-right: 1rem;
}

.dark .mobile-link i {
background-color: rgba(255, 255, 255, 0.08);
}

.mobile-link:hover {
color: var(--primary);
background-color: rgba(0, 0, 0, 0.03);
transform: translateX(3px);
}

.dark .mobile-link:hover {
background-color: rgba(255, 255, 255, 0.04);
}

.mobile-link:hover i {
transform: scale(1.1);
color: white;
background-color: var(--primary);
}

#mobileMenuCloseBtn {
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
background-color: rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
color: var(--dark);
position: absolute;
top: 1rem;
right: 1rem;
z-index: 101;
font-size: 1rem;
cursor: pointer;
border: none;
}

.dark #mobileMenuCloseBtn {
background-color: rgba(255, 255, 255, 0.08);
color: white;
}

#mobileMenuCloseBtn:hover {
background-color: var(--primary);
color: white;
transform: rotate(90deg);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--dark);
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dark .dark-mode-toggle {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

.dark-mode-toggle:hover {
  background-color: var(--primary);
  color: white;
  transform: scale(1.05);
}

/* Dark mode toggle in navbar */
.dark-mode-toggle-nav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--dark);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-border);
  font-size: 18px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 0;
  margin-left: 4px;
}

.dark-mode-toggle-nav i {
  font-size: 18px;
}

.dark .dark-mode-toggle-nav {
  color: white;
  background: rgba(0, 0, 0, 0.2);
}

.dark-mode-toggle-nav:hover {
  transform: rotate(90deg);
  color: var(--primary);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dark .dark-mode-toggle-nav:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Circle connect button */
.circle-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-weight: 600;
  font-size: 0;
  position: relative;
}

.circle-btn::before {
  content: "Connect";
  font-size: 0;
  transition: all 0.3s ease;
}

.circle-btn::after {
  content: "+";
  font-size: 22px;
  position: absolute;
}

.circle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.dark .circle-btn {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.dark .circle-btn:hover {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

/* Circle button for mobile */
.circle-btn-mobile {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-weight: 600;
  font-size: 22px;
}

.circle-btn-mobile:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.dark .circle-btn-mobile {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.dark .circle-btn-mobile:hover {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

/* Navbar Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 50;
}

.dark .navbar {
  background-color: rgba(26, 26, 46, 0.85);
}

.logo a {
  color: var(--dark);
  text-decoration: none;
}

.dark .logo a {
  color: white;
}

.logo span {
  color: var(--primary);
}

.nav-link {
  position: relative;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 5px 0;
}

.dark .nav-link {
  color: white;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Add these styles to your stylesheet */
.contact-card {
  border-radius: 24px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dark .contact-card {
  background: rgba(30, 30, 46, 0.75);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.dark .contact-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.contact-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 18px;
  transition: all 0.3s ease;
}

.contact-info-item:hover .contact-icon {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 113, 227, 0.3);
}

.quick-input-wrapper {
  position: relative;
}

.quick-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  font-size: 15px;
  color: var(--dark);
}

.dark .quick-input {
  background: rgba(50, 50, 70, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.quick-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.2);
}

textarea.quick-input {
  resize: none;
  min-height: 100px;
}

.quick-connect {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.dark .quick-connect {
  background: rgba(40, 40, 60, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Add these styles to your existing CSS */
.social-icon.youtube:hover {
  background-color: #FF0000;
}

.social-icon.dribbble:hover {
  background-color: #EA4C89;
}

.social-icon.whatsapp:hover {
  background-color: #25D366;
}

.social-icon.telegram:hover {
  background-color: #0088cc;
}

/* Add this to your CSS */
.social-icon-container {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  color: #4B5563;
  font-size: 1.5rem;
}

.dark .social-icon-container {
  background: rgba(55, 65, 81, 0.5);
  color: #D1D5DB;
}

.social-icon-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Brand colors on hover */
.social-icon-container:nth-child(1):hover { color: #0A66C2; } /* LinkedIn */
.social-icon-container:nth-child(2):hover { color: #333333; } /* GitHub */
.social-icon-container:nth-child(3):hover { color: #1DA1F2; } /* Twitter */
.social-icon-container:nth-child(4):hover { color: #00AB6C; } /* Medium */
.social-icon-container:nth-child(5):hover { color: #EA4C89; } /* Dribbble */
.social-icon-container:nth-child(6):hover { color: #1769FF; } /* Behance */
.social-icon-container:nth-child(7):hover { color: #F48024; } /* Stack Overflow */
.social-icon-container:nth-child(8):hover { color: #0A0A0A; } /* DEV.to */
.social-icon-container:nth-child(9):hover { color: #FF0000; } /* YouTube */

.dark .social-icon-container:hover {
  background: rgba(75, 85, 99, 0.7);
}

/* Add MongoDB Compass specific hover effects */
.tool-card.mongodb-compass::before {
  background: linear-gradient(135deg, #13AA52 0%, #69D280 100%) border-box !important;
}

.tool-card.mongodb-compass:hover .custom-icon div {
  transform: rotateY(180deg);
}

.dark .tool-card.mongodb-compass:hover .custom-icon span {
  color: white !important;
}

.dark .tool-card.mongodb-compass .custom-icon span {
  color: white;
}

/* Add Vercel specific hover effects */
.tool-card.vercel::before {
  background: linear-gradient(135deg, #000000 0%, #333333 100%) border-box !important;
}

.tool-card.vercel:hover .custom-icon div {
  transform: rotateY(180deg);
}

.dark .tool-card.vercel:hover .custom-icon span {
  color: white !important;
}

.dark .tool-card.vercel .custom-icon span {
  color: white;
}

/* Dark mode styling for Railway icon */
.dark .tool-card.railway .custom-icon img {
  filter: brightness(2);
}

/* Scroll Progress Indicator */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 1000;
}

.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--primary) 0%, #69D280 100%);
  width: 0%;
  transition: width 0.1s ease;
}

/* Enhanced focus styles for better keyboard navigation */
:focus-visible {
  outline: 3px solid #6366f1;
  outline-offset: 3px;
  border-radius: 2px;
  z-index: 999;
  position: relative;
  transition: outline-offset 0.2s ease;
}

a:focus-visible, button:focus-visible {
  text-decoration: none;
  outline: 3px solid #6366f1;
  outline-offset: 3px;
}

.dark :focus-visible {
  outline: 3px solid rgba(99, 102, 241, 0.8);
}

/* This will hide the focus indicator if the element receives focus via mouse click */
.js-focus-visible :focus:not(.focus-visible) {
  outline: none;
}

/* Page Preloader Styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff; /* Light mode background */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.dark #preloader {
  background: #111827; /* Dark mode background */
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader {
  position: relative;
  width: 60px;
  height: 60px;
}

.loader-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid transparent;
  border-radius: 50%;
  animation: rotate 2s linear infinite;
}

.loader-circle:nth-child(1) {
  border-top-color: var(--gradient-start, #7B82FB);
  animation-delay: 0s;
}

.loader-circle:nth-child(2) {
  border-right-color: var(--gradient-middle, #C878DD);
  animation-delay: 0.5s;
}

.loader-circle:nth-child(3) {
  border-bottom-color: var(--gradient-end, #F797B6);
  animation-delay: 1s;
}

.loader-text {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'SF Pro Display', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--primary, #0071E3);
  white-space: nowrap;
}

.dark .loader-text {
  color: #ffffff;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* View More Button Styling */
.view-more-btn {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1);
}

.view-more-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.7s ease;
}

.view-more-btn:hover::after {
  left: 100%;
}

.view-more-btn:active {
  transform: translateY(2px) scale(0.98);
}

.dark .view-more-btn {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.dark .view-more-btn:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Add curtain effect animation */
@keyframes curtainReveal {
  0% {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
  }
  100% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }
}

@keyframes curtainHide {
  0% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }
  100% {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
  }
}

.curtain-reveal {
  animation: curtainReveal 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.curtain-hide {
  animation: curtainHide 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

#more-projects {
  transition: max-height 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.6s ease, transform 0.6s ease;
  transform-origin: top;
}

/* Enhanced View More button */
.view-more-btn {
  background: linear-gradient(to right, rgba(0, 113, 227, 0.7), rgba(0, 113, 227, 0.9));
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-more-btn:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.dark .view-more-btn {
  background: linear-gradient(to right, rgba(0, 113, 227, 0.7), rgba(0, 113, 227, 0.9));
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: white;
  border-color: rgba(0, 113, 227, 0.4);
}

.dark .view-more-btn:hover {
  background: linear-gradient(to right, rgba(0, 113, 227, 0.8), rgba(0, 113, 227, 1));
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: rgba(0, 113, 227, 0.6);
}

/* Add Google Developer icon styling */
.social-icon.google-dev {
  color: #4285F4;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.social-icon.google-dev:hover {
  background: linear-gradient(45deg, #4285F4, #34A853, #FBBC05, #EA4335);
  color: white;
}

.social-icon.google-dev:hover svg path {
  fill: white;
}

/* Project cards mobile fix - simple approach */
@media (max-width: 767px) {
  .project-card {
    padding: 1rem;
  }
  
  .project-card .relative {
    min-height: 280px;
  }
}

/* Extra small screens fix */
@media (max-width: 480px) {
  .project-card .relative {
    min-height: 320px;
  }
  
  /* Ensure text doesn't get cut off */
  .project-card p {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }
  
  /* Make tags smaller on mobile */
  .project-card .tag {
    padding: 3px 8px;
    font-size: 10px;
    margin: 2px;
  }
  
  /* Better button spacing */
  .project-card .flex-wrap {
    gap: 0.5rem;
  }
}

/* Extra small screens fix - Project with many tags */
@media (max-width: 480px) {
  .project-card .relative {
    min-height: 360px;  /* Further increase for projects with many tags */
  }
  
  /* Better tag display on mobile */
  .project-card .flex-wrap.gap-2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
  }
  
  /* Limit number of visible tags on very small screens */
  #project3 .flex-wrap.gap-2 {
    max-height: 65px;
    overflow: hidden;
    position: relative;
  }
  
  #project3 .flex-wrap.gap-2::after {
    content: "View More";
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 10px;
    cursor: pointer;
    z-index: 10;
  }
  
  .dark #project3 .flex-wrap.gap-2::after {
    background: var(--primary);
    color: white;
  }
}

/* Improve project card buttons on mobile */
@media (max-width: 480px) {
  /* Make buttons more touch-friendly */
  .project-card button,
  .project-card a {
    width: 100%;
    text-align: center;
    padding: 0.6rem 0.5rem;
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Stack buttons vertically on very small screens */
  .project-card .flex-wrap {
    flex-direction: column;
    width: 90%;
    margin: 0 auto;
  }
  
  /* Add subtle shadow for better visual separation */
  .project-card button,
  .project-card a {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  .dark .project-card button,
  .dark .project-card a {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  }
  
  /* Ensure buttons are visible enough */
  .project-card .bg-red-600,
  .project-card .bg-blue-600,
  .project-card .bg-gray-800 {
    font-weight: 500;
  }
}

/* Fix for project3 tags "View More" functionality */
@media (max-width: 480px) {
  #project3 .flex-wrap.gap-2 {
    max-height: 65px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
  }
  
  #project3 .flex-wrap.gap-2.expanded {
    max-height: 200px;
  }
  
  #project3 .flex-wrap.gap-2::after {
    content: "View More";
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 10px;
    cursor: pointer;
    z-index: 10;
  }
  
  #project3 .flex-wrap.gap-2.expanded::after {
    content: "Show Less";
  }
}

/* Simplified tag display with static +more indicator */
@media (max-width: 480px) {
  /* Reset previous changes */
  #project3 .flex-wrap.gap-2 {
    max-height: none;
    overflow: visible;
    position: static;
    transition: none;
  }
  
  #project3 .flex-wrap.gap-2::after {
    content: none;
  }
  
  /* Show only first 4 tags for Project 3 */
  #project3 .flex-wrap.gap-2 .tag:nth-child(n+5) {
    display: none;
  }
  
  /* Add a +more tag at the end */
  #project3 .flex-wrap.gap-2 .tag:nth-child(4)::after {
    content: " +more";
    color: var(--primary);
    font-weight: 600;
  }
}

/* Project cards mobile fix - add scroll for overflow */
@media (max-width: 480px) {
  .project-card .absolute {
    max-height: 320px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
    scrollbar-width: thin; /* For Firefox */
  }
  
  /* Hide scrollbar for Chrome/Safari but maintain functionality */
  .project-card .absolute::-webkit-scrollbar {
    width: 4px;
  }
  
  .project-card .absolute::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
  }
  
  .dark .project-card .absolute::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
  }
}

/* Project cards mobile fix - comprehensive visibility fix */
@media (max-width: 480px) {
  /* Fix the card container height */
  .project-card .relative {
    height: auto !important;
    min-height: 350px !important;
  }
  
  /* Ensure content is fully visible */
  .project-card .absolute {
    position: relative !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 1rem !important;
    inset: 0 !important;
  }
  
  /* Adjust video container */
  .project-card #videoContainer1,
  .project-card #videoContainer2,
  .project-card #videoContainer3 {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important;
    height: 50% !important;
    z-index: 9999 !important;
  }
  
  /* Fix any transition issues */
  .project-card .transition-opacity {
    transition: none !important;
  }
}

/* Add styles for the video coming soon message */
.video-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  text-align: center;
  padding: 2rem;
  border-radius: 0.5rem;
}

.dark .video-coming-soon {
  background: linear-gradient(135deg, var(--dark-gradient-start), var(--dark-gradient-end));
}

.back-button {
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}