/* Add any custom CSS rules here if needed */

/* Example: Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Add subtle fade-in animation (optional, can use JS libraries for more complex animations) */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Apply animation to sections - use sparingly */
/* 
section {
    animation: fadeIn 0.8s ease-out forwards;
}
*/

/* Nav link hover effect */
.nav-link {
    position: relative;
    padding-bottom: 4px; /* Space for underline */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1.5px; /* Slightly thinner */
    background-color: #60a5fa; /* Brighter blue for underline */
    transition: width 0.25s ease-in-out;
    box-shadow: 0 0 6px rgba(96, 165, 250, 0.6); /* Adjusted blue glow */
}

.nav-link:hover::after {
    width: 50%; /* Adjusted width */
}

/* Button Pulse Animation */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4); /* Corresponds to shadow-glow-primary */
  }
  50% {
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.7); /* Brighter glow */
  }
}

.cta-button:hover {
  animation: pulse-glow 1.5s infinite ease-in-out;
}

/* Optional: Add reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .cta-button:hover {
      animation: none;
  }
}

/* Custom Styles for Bunsble Devs Portfolio */
:root {
    --primary: #3b82f6; /* blue-500 */
    --primary-hover: #2563eb; /* blue-600 */
    --dark-bg: #111827; /* gray-900 */
    --dark-card: #1f2937; /* gray-800 */
    --light-text: #f3f4f6; /* gray-100 */
    --medium-text: #9ca3af; /* gray-400 */
    --border-color: #4b5563; /* gray-600 */
    --glow-primary: 0 0 15px rgba(59, 130, 246, 0.5);
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

body {
    @apply bg-dark-bg text-medium-text font-sans;
}

/* Mobile Menu Styles */
/* Hamburger Button */
#mobile-menu-button {
    @apply relative z-50 flex items-center justify-center transition-colors duration-300;
}

/* Hamburger Lines */
.hamburger-line {
    @apply transition-all duration-300 ease-in-out;
}

.hamburger-line-top {
    top: 0;
}

.hamburger-line-middle {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-line-bottom {
    bottom: 0;
}

/* Hamburger Animation */
#mobile-menu-button.open .hamburger-line-top {
    transform: translateY(10px) rotate(45deg);
}

#mobile-menu-button.open .hamburger-line-middle {
    @apply opacity-0 scale-x-0;
}

#mobile-menu-button.open .hamburger-line-bottom {
    transform: translateY(-10px) rotate(-45deg);
}

/* Mobile Menu Container */
#mobile-menu {
    @apply fixed top-0 right-0 h-full w-72 bg-gray-900/95 backdrop-blur-md shadow-2xl z-40 transform translate-x-full opacity-0 transition-[transform,opacity] duration-300 ease-in-out;
}

#mobile-menu.open {
    @apply translate-x-0 opacity-100;
}

/* Mobile Menu Overlay */
#mobile-menu-overlay {
    @apply fixed inset-0 bg-black/70 backdrop-blur-sm z-30 opacity-0 pointer-events-none transition-opacity duration-300 ease-in-out;
}

#mobile-menu-overlay.open {
    @apply opacity-100 pointer-events-auto;
}

/* Mobile Menu Links */
.nav-link-mobile {
    @apply relative block w-full py-4 px-6 text-base font-medium text-white hover:text-blue-300 transition-all duration-300;
    @apply border-l-2 border-transparent hover:border-blue-500 hover:bg-white/5 hover:pl-8;
    opacity: 0;
}

.menu-item:nth-child(1) .nav-link-mobile { animation: fadeInRight 0.3s 0.05s ease-out forwards; }
.menu-item:nth-child(2) .nav-link-mobile { animation: fadeInRight 0.3s 0.1s ease-out forwards; }
.menu-item:nth-child(3) .nav-link-mobile { animation: fadeInRight 0.3s 0.15s ease-out forwards; }
.menu-item:nth-child(4) .nav-link-mobile { animation: fadeInRight 0.3s 0.2s ease-out forwards; }
.menu-item:nth-child(5) .nav-link-mobile { animation: fadeInRight 0.3s 0.25s ease-out forwards; }
.menu-item:nth-child(6) .nav-link-mobile { animation: fadeInRight 0.3s 0.3s ease-out forwards; }

/* Fallback: ensure all menu items are visible if animation doesn't apply */
#mobile-menu.open .nav-link-mobile {
    opacity: 1;
}

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

/* Desktop Navigation Links */
.nav-link {
    @apply relative text-lg tracking-wide;
}

.nav-link::after {
    content: '';
    @apply absolute bottom-0 left-1/2 w-0 h-0.5 bg-primary transform -translate-x-1/2 transition-all duration-300 ease-in-out;
    box-shadow: 0 0 8px rgba(96, 165, 250, 0.6);
}

.nav-link:hover::after {
    @apply w-full;
}

/* Preserve existing animations */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(59, 130, 246, 0.7);
    }
}

.cta-button:hover {
    animation: pulse-glow 1.5s infinite ease-in-out;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .cta-button:hover {
        animation: none;
    }
} 