/* Tailwind CSS Custom Styles */

/* Performance optimizations */
* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

/* Reduce animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Button styles for Tailwind */
.btn-primary {
  padding: 0.5rem 1.5rem;
  background-color: #1f2937;
  color: white;
  border-radius: 9999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-align: center;
  display: inline-block;
  min-width: 100px;
  transition: background-color 0.2s ease-in-out;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: #374151;
}

.btn-secondary {
  padding: 0.5rem 1.5rem;
  background-color: transparent;
  color: #1f2937;
  border: 2px solid #1f2937;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  display: inline-block;
  min-width: 175px;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: #1f2937;
  color: white;
}

/* Dark/Blackish Theme Styles */

/* Button styles for dark theme */
.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #e5e7eb;
  border: 2px solid #4b5563;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #374151, #4b5563);
  border-color: #6b7280;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(75, 85, 99, 0.3);
}

/* Dark theme text colors */
body {
  background: #000000;
  color: #ffffff;
}

/* Section content text colors for dark theme */
.about-section p,
.skills-section p,
.projects-section p,
.contact-section p {
  color: #d1d5db !important;
}

.about-section h3,
.about-section h4,
.skills-section h3,
.skills-section h4,
.projects-section h3,
.projects-section h4,
.contact-section h3,
.contact-section h4 {
  color: #f9fafb !important;
}

/* Profile image styles */
.profile-img {
  width: 250px;
  height: 250px;
  object-fit: cover;
}

/* Card image container for projects */
.card-img-container {
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-img-container img {
  width: 100%;
  height: 400px;
  object-fit: contain;
}

/* Projects section image fixes */
.projects-section img,
.aspect-video img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

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

/* Focus indicators for better accessibility */
a:focus,
button:focus {
  outline: 2px solid #374151;
  outline-offset: 2px;
  outline-style: solid;
  border-radius: 4px;
}

/* Typography consistency - these can be removed if using Tailwind utility classes consistently */
.section-title {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 700;
}

.section-subtitle {
  font-size: 1.125rem;
  line-height: 1.3;
  font-weight: 600;
}

/* Mobile hamburger menu styles */
.mobile-menu {
  display: none;
}

.mobile-menu.active {
  display: block;
}

/* Mobile navigation styles with animations */
@media (max-width: 767px) {
  [data-mobile-menu] {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #374151;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 50;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  [data-mobile-menu].block {
    opacity: 1;
    transform: translateY(0);
  }
  
  [data-mobile-menu] ul {
    flex-direction: column !important;
    padding: 1.5rem;
    margin: 0;
    background-color: transparent;
    border-radius: 0.5rem;
  }
  
  [data-mobile-menu] li {
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.3s ease-out forwards;
  }
  
  [data-mobile-menu] li:nth-child(1) { animation-delay: 0.1s; }
  [data-mobile-menu] li:nth-child(2) { animation-delay: 0.2s; }
  [data-mobile-menu] li:nth-child(3) { animation-delay: 0.3s; }
  [data-mobile-menu] li:nth-child(4) { animation-delay: 0.4s; }
  
  [data-mobile-menu] a {
    display: block;
    padding: 0.75rem 1rem;
    text-align: left;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  [data-mobile-menu] a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
  }
  
  [data-mobile-menu] a:hover::before {
    left: 100%;
  }
  
  [data-mobile-menu] a:hover {
    background-color: rgba(229, 231, 235, 0.8);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  /* Ensure nav container has relative positioning for absolute mobile menu */
  nav {
    position: relative;
  }
}

/* Hamburger icon animation */
.hamburger-active {
  transform: rotate(90deg);
}

/* Slide in animation keyframes */
@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Smooth transitions for mobile menu */
[data-mobile-menu] {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Desktop navigation styling with animations */
@media (min-width: 768px) {
  [data-mobile-menu] {
    display: flex !important;
    align-items: center;
    margin-left: auto;
  }
  
  /* Desktop navigation hover effects */
  nav a {
    position: relative;
    overflow: hidden;
  }
  
  nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }
  
  nav a:hover::after {
    width: 100%;
  }
}

/* Navigation Z-Index and Positioning Fixes */
nav {
  z-index: 1000 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
}

/* Mobile menu z-index */
nav [data-mobile-menu] {
  z-index: 999 !important;
}

nav ul {
  z-index: 999 !important;
}

/* Ensure mobile menu appears above all content */
@media (max-width: 768px) {
  nav [data-mobile-menu] {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999 !important;
    margin-top: 0 !important;
  }
  
  nav ul {
    background-color: #1f2937 !important;
    border: 1px solid #374151 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
    margin-top: 0 !important;
    border-top: none !important;
    border-radius: 0 0 0.5rem 0.5rem !important;
  }
}

/* Account for fixed navbar */
body {
  padding-top: 0;
}

/* Smooth scroll offset for fixed navbar */
html {
  scroll-padding-top: 80px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .profile-img {
    width: 200px;
    height: 200px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .btn-primary,
  .btn-secondary {
    min-width: 120px;
    font-size: 0.875rem;
  }
}

@media (max-width: 576px) {
  .profile-img {
    width: 150px;
    height: 150px;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .btn-primary,
  .btn-secondary {
    min-width: 100px;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
}

/* Contact Section Enhancements */
.contact-section .group:hover .bg-blue-600 {
  animation: pulse-blue 2s infinite;
}

.contact-section .group:hover .bg-indigo-600 {
  animation: pulse-indigo 2s infinite;
}

.contact-section .group:hover .bg-gray-800 {
  animation: pulse-gray 2s infinite;
}

@keyframes pulse-blue {
  0%, 100% { 
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }
  50% { 
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
}

@keyframes pulse-indigo {
  0%, 100% { 
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
  }
  50% { 
    box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
  }
}

@keyframes pulse-gray {
  0%, 100% { 
    box-shadow: 0 0 0 0 rgba(55, 65, 81, 0.7);
  }
  50% { 
    box-shadow: 0 0 0 10px rgba(55, 65, 81, 0);
  }
}

/* Staggered animation for contact cards */
.contact-section .group:nth-child(1) {
  animation: slideInUp 0.6s ease-out;
}

.contact-section .group:nth-child(2) {
  animation: slideInUp 0.6s ease-out 0.2s both;
}

.contact-section .group:nth-child(3) {
  animation: slideInUp 0.6s ease-out 0.4s both;
}

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

/* Enhanced button hover effects */
.contact-section a[class*="bg-"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Tag animation on hover */
.contact-section span[class*="bg-"]:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

/* About Section Enhancements */
.about-section .group:hover .bg-blue-600 {
  animation: pulse-blue 2s infinite;
}

.about-section .group:hover .bg-green-600 {
  animation: pulse-green 2s infinite;
}

.about-section .group:hover .bg-purple-600 {
  animation: pulse-purple 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { 
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  50% { 
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
}

@keyframes pulse-purple {
  0%, 100% { 
    box-shadow: 0 0 0 0 rgba(147, 51, 234, 0.7);
  }
  50% { 
    box-shadow: 0 0 0 10px rgba(147, 51, 234, 0);
  }
}

/* Staggered animation for about cards */
.about-section .group:nth-child(1) {
  animation: slideInLeft 0.6s ease-out;
}

.about-section .group:nth-child(2) {
  animation: slideInRight 0.6s ease-out 0.2s both;
}

.about-section .group:nth-child(3) {
  animation: slideInUp 0.6s ease-out 0.4s both;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Highlight cards animation */
.about-section .grid .hover\:scale-105:hover {
  animation: bounce 0.5s ease-in-out;
}

@keyframes bounce {
  0%, 100% { 
    transform: scale(1); 
  }
  50% { 
    transform: scale(1.1); 
  }
}

/* Enhanced text animations */
.about-section p {
  animation: fadeIn 0.8s ease-out 0.6s both;
}

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

/* Status badge glow effect */
.about-section .bg-green-100 {
  position: relative;
  overflow: hidden;
}

.about-section .bg-green-100::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.2), transparent);
  transition: left 2s ease;
}

.about-section .group:hover .bg-green-100::before {
  left: 100%;
}

/* Skills Section Simple Animations */
.skills-section .group {
  transition: all 0.3s ease;
}

.skills-section .group:hover {
  transform: translateY(-5px);
}

/* Education Section Simple Animations */
.education-section .group {
  transition: all 0.3s ease;
}

.education-section .group:hover {
  transform: translateY(-5px);
}

/* Projects Section Simple Animations */
.projects-section article {
  transition: all 0.3s ease;
}

.projects-section article:hover {
  transform: translateY(-5px);
}

/* Simple hover glow effects */
.skills-section .from-orange-50:hover {
  box-shadow: 0 0 15px rgba(234, 88, 12, 0.2);
}

.skills-section .from-blue-50:hover {
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.skills-section .from-yellow-50:hover {
  box-shadow: 0 0 15px rgba(202, 138, 4, 0.2);
}

.skills-section .from-gray-50:hover {
  box-shadow: 0 0 15px rgba(55, 65, 81, 0.2);
}

.skills-section .from-green-50:hover {
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

.skills-section .from-purple-50:hover {
  box-shadow: 0 0 15px rgba(147, 51, 234, 0.2);
}

/* Projects hover glow effects */
.projects-section .from-blue-50:hover {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.projects-section .from-green-50:hover {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

/* Enhanced Section Heading Styles */
.section-heading-container {
  position: relative;
  display: inline-block;
}

.section-heading-container::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6, #06b6d4, #3b82f6);
  background-size: 400% 400%;
  border-radius: 20px;
  z-index: -1;
  opacity: 0;
  animation: gradient-shift 3s ease infinite;
  transition: opacity 0.3s ease;
}

.section-heading-container:hover::before {
  opacity: 0.1;
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Profile Section Enhancements */
.profile-badge {
  position: relative;
  overflow: hidden;
}

.profile-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.profile-badge:hover::before {
  left: 100%;
}

/* Gradient Text Animation */
@keyframes gradient-text {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.gradient-text-animated {
  background: linear-gradient(-45deg, #1f2937, #3b82f6, #8b5cf6, #1f2937);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-text 4s ease infinite;
}

/* Enhanced Button Hover Effects */
.btn-enhanced {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-enhanced::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.5s;
}

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

/* Profile Image Glow Effect */
.profile-glow {
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
  transition: filter 0.3s ease;
}

.profile-glow:hover {
  filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.5));
}

/* Section Divider Enhancement */
.section-divider {
  position: relative;
  overflow: hidden;
}

.section-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Floating Animation for Icons */
.float-animation {
  animation: float 3s ease-in-out infinite;
}

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

/* Card Hover Enhancement */
.enhanced-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.enhanced-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.enhanced-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* Dark/Blackish Theme Styles */

/* Button styles for dark theme */
.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #e5e7eb;
  border: 2px solid #4b5563;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #374151, #4b5563);
  border-color: #6b7280;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(75, 85, 99, 0.3);
}

/* Dark theme text colors */
body {
  background: #000000;
  color: #ffffff;
}

/* Section content text colors for dark theme */
.about-section p,
.skills-section p,
.projects-section p,
.contact-section p {
  color: #d1d5db !important;
}

.about-section h3,
.about-section h4,
.skills-section h3,
.skills-section h4,
.projects-section h3,
.projects-section h4,
.contact-section h3,
.contact-section h4 {
  color: #f9fafb !important;
}

/* Card styles for dark theme */
.enhanced-card {
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid rgba(75, 85, 99, 0.5);
  transition: all 0.3s ease;
}

.enhanced-card:hover {
  background: rgba(31, 41, 55, 0.9);
  border-color: rgba(96, 165, 250, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Skill badges and tags for dark theme */
.skill-badge,
.project-tag {
  background: linear-gradient(135deg, #1f2937, #374151);
  color: #e5e7eb;
  border: 1px solid #4b5563;
}

/* Icons for dark theme */
svg {
  transition: all 0.3s ease;
}

.icon-blue {
  color: #60a5fa !important;
}

.icon-purple {
  color: #a78bfa !important;
}

/* Glow effects for dark theme */
.glow-blue {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.glow-purple {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Scroll effects for dark navbar */
.nav-scrolled {
  background: rgba(17, 24, 39, 0.95) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(75, 85, 99, 0.3);
}

/* Dark theme animations */
@keyframes darkGlow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6), 0 0 30px rgba(139, 92, 246, 0.4);
  }
}

.animate-dark-glow {
  animation: darkGlow 2s ease-in-out infinite;
}

/* Contact and link colors for dark theme */
a {
  color: #60a5fa;
  transition: color 0.3s ease;
}

a:hover {
  color: #93c5fd;
}

/* Form inputs for dark theme */
input, textarea, select {
  background: rgba(31, 41, 55, 0.8);
  border: 1px solid #4b5563;
  color: #e5e7eb;
}

input:focus, textarea:focus, select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Progress bars for dark theme */
.progress-bar {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

/* Mobile menu adjustments for dark theme */
@media (max-width: 768px) {
  .mobile-menu {
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid rgba(75, 85, 99, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

/* Global Dark Theme Override for all sections */

/* Override all white/light backgrounds in sections */
.about-section,
.skills-section,
.projects-section,
.contact-section {
  background: #1f2937 !important;
  border-color: #374151 !important;
}

/* Override all light colored cards and elements */
.about-section div[class*="from-blue-50"],
.about-section div[class*="from-green-50"],
.about-section div[class*="from-purple-50"],
.skills-section div[class*="from-orange-50"],
.skills-section div[class*="from-blue-50"],
.skills-section div[class*="from-green-50"],
.skills-section div[class*="from-yellow-50"],
.skills-section div[class*="from-purple-50"],
.skills-section div[class*="from-red-50"],
.projects-section div[class*="from-blue-50"],
.projects-section div[class*="from-green-50"],
.projects-section div[class*="from-purple-50"],
.contact-section div[class*="from-blue-50"],
.contact-section div[class*="from-green-50"] {
  background: linear-gradient(135deg, #374151, #4b5563) !important;
  border-color: #6b7280 !important;
}

/* Override all text colors in sections */
.about-section h3,
.about-section h4,
.about-section h5,
.skills-section h3,
.skills-section h4,
.skills-section h5,
.projects-section h3,
.projects-section h4,
.projects-section h5,
.contact-section h3,
.contact-section h4,
.contact-section h5 {
  color: #ffffff !important;
}

.about-section p,
.skills-section p,
.projects-section p,
.contact-section p {
  color: #d1d5db !important;
}

/* Override skill level text and labels */
.about-section span,
.skills-section span,
.projects-section span,
.contact-section span {
  color: #e5e7eb !important;
}

/* Override skill badges and tags */
.about-section span[class*="bg-"],
.skills-section span[class*="bg-"],
.projects-section span[class*="bg-"],
.contact-section span[class*="bg-"] {
  background: linear-gradient(135deg, #1f2937, #374151) !important;
  color: #e5e7eb !important;
  border: 1px solid #4b5563 !important;
}

/* Override education cards */
.about-section div[class*="bg-gradient"],
.skills-section div[class*="bg-gradient"],
.projects-section div[class*="bg-gradient"],
.contact-section div[class*="bg-gradient"] {
  background: linear-gradient(135deg, #374151, #4b5563) !important;
  border-color: #6b7280 !important;
}

/* Override progress bars and skill indicators */
.about-section div[class*="bg-orange"],
.about-section div[class*="bg-blue"],
.about-section div[class*="bg-green"],
.about-section div[class*="bg-purple"],
.skills-section div[class*="bg-orange"],
.skills-section div[class*="bg-blue"],
.skills-section div[class*="bg-green"],
.skills-section div[class*="bg-purple"],
.skills-section div[class*="bg-yellow"],
.skills-section div[class*="bg-red"],
.projects-section div[class*="bg-orange"],
.projects-section div[class*="bg-blue"],
.projects-section div[class*="bg-green"],
.projects-section div[class*="bg-purple"],
.contact-section div[class*="bg-orange"],
.contact-section div[class*="bg-blue"],
.contact-section div[class*="bg-green"],
.contact-section div[class*="bg-purple"] {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
}

/* Override any remaining white/light backgrounds */
.about-section *[class*="bg-white"],
.skills-section *[class*="bg-white"],
.projects-section *[class*="bg-white"],
.contact-section *[class*="bg-white"],
.about-section *[class*="bg-gray-50"],
.skills-section *[class*="bg-gray-50"],
.projects-section *[class*="bg-gray-50"],
.contact-section *[class*="bg-gray-50"],
.about-section *[class*="bg-gray-100"],
.skills-section *[class*="bg-gray-100"],
.projects-section *[class*="bg-gray-100"],
.contact-section *[class*="bg-gray-100"] {
  background: #374151 !important;
  border-color: #6b7280 !important;
}

/* Ensure all dark text becomes light */
.about-section *[class*="text-gray-900"],
.about-section *[class*="text-gray-800"],
.about-section *[class*="text-gray-700"],
.skills-section *[class*="text-gray-900"],
.skills-section *[class*="text-gray-800"],
.skills-section *[class*="text-gray-700"],
.projects-section *[class*="text-gray-900"],
.projects-section *[class*="text-gray-800"],
.projects-section *[class*="text-gray-700"],
.contact-section *[class*="text-gray-900"],
.contact-section *[class*="text-gray-800"],
.contact-section *[class*="text-gray-700"] {
  color: #ffffff !important;
}

.about-section *[class*="text-gray-600"],
.about-section *[class*="text-gray-500"],
.skills-section *[class*="text-gray-600"],
.skills-section *[class*="text-gray-500"],
.projects-section *[class*="text-gray-600"],
.projects-section *[class*="text-gray-500"],
.contact-section *[class*="text-gray-600"],
.contact-section *[class*="text-gray-500"] {
  color: #d1d5db !important;
}

/* Hover effects for dark theme */
.about-section *:hover,
.skills-section *:hover,
.projects-section *:hover,
.contact-section *:hover {
  color: inherit;
}

/* Education and Projects Section Specific Overrides */

/* Education section - force dark theme */
.education-section {
  background: #1f2937 !important;
  border-color: #4b5563 !important;
}

.education-section * {
  color: #ffffff !important;
}

.education-section p,
.education-section span:not([class*="bg-"]) {
  color: #d1d5db !important;
}

.education-section div[class*="bg-gradient-to-br"] {
  background: linear-gradient(135deg, #374151, #4b5563) !important;
  border-color: #6b7280 !important;
}

.education-section div[class*="from-blue"],
.education-section div[class*="from-green"],
.education-section div[class*="from-purple"],
.education-section div[class*="from-orange"],
.education-section div[class*="from-yellow"] {
  background: linear-gradient(135deg, #374151, #4b5563) !important;
  border-color: #6b7280 !important;
}

.education-section span[class*="bg-"] {
  background: linear-gradient(135deg, #1f2937, #374151) !important;
  color: #e5e7eb !important;
  border: 1px solid #4b5563 !important;
}

/* Projects section - force dark theme */
.projects-section * {
  color: #ffffff !important;
}

.projects-section p,
.projects-section span:not([class*="bg-"]) {
  color: #d1d5db !important;
}

.projects-section div[class*="bg-gradient-to-br"] {
  background: linear-gradient(135deg, #374151, #4b5563) !important;
  border-color: #6b7280 !important;
}

.projects-section div[class*="from-blue"],
.projects-section div[class*="from-green"],
.projects-section div[class*="from-purple"],
.projects-section div[class*="from-orange"],
.projects-section div[class*="from-yellow"] {
  background: linear-gradient(135deg, #374151, #4b5563) !important;
  border-color: #6b7280 !important;
}

.projects-section span[class*="bg-"] {
  background: linear-gradient(135deg, #1f2937, #374151) !important;
  color: #e5e7eb !important;
  border: 1px solid #4b5563 !important;
}

.projects-section img {
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.projects-section img:hover {
  opacity: 1;
}

/* Override any specific color classes that might be persistent */
.education-section *[class*="text-gray-900"],
.education-section *[class*="text-gray-800"],
.education-section *[class*="text-gray-700"],
.projects-section *[class*="text-gray-900"],
.projects-section *[class*="text-gray-800"],
.projects-section *[class*="text-gray-700"] {
  color: #ffffff !important;
}

.education-section *[class*="text-gray-600"],
.education-section *[class*="text-gray-500"],
.projects-section *[class*="text-gray-600"],
.projects-section *[class*="text-gray-500"] {
  color: #d1d5db !important;
}

/* Button styling in projects section */
.projects-section button,
.projects-section a[class*="bg-"] {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
  color: white !important;
  border-color: #4b5563 !important;
}

.projects-section button:hover,
.projects-section a[class*="bg-"]:hover {
  background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* Remove any unwanted spacing in mobile menu */
@media (max-width: 768px) {
  nav [data-mobile-menu].hidden {
    display: none !important;
  }
  
  nav [data-mobile-menu]:not(.hidden) {
    display: block !important;
  }
  
  /* Ensure no gap between navbar and mobile menu */
  nav .container {
    position: relative;
  }
  
  /* Remove default margins and padding that might cause gaps */
  nav [data-mobile-menu] * {
    margin-top: 0 !important;
  }
}

/* Fix any potential spacing issues */
nav button + div {
  margin-top: 0 !important;
}

/* Reduce section spacing for better visual flow */
section {
  margin-bottom: 0 !important;
}

/* Reduce internal section spacing */
.text-center.mb-12 {
  margin-bottom: 2rem !important;
}

.py-8 {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

/* Compact container spacing */
.container.mx-auto.max-w-6xl {
  margin-bottom: 1.5rem !important;
}

/* Reduce header spacing */
header {
  padding-bottom: 2rem !important;
}