/* Gen Z Portfolio - Enhanced Styles */

/* Core Animations */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  40%,
  43% {
    transform: translate3d(0, -10px, 0);
  }
  70% {
    transform: translate3d(0, -5px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}

@keyframes wiggle {
  0%,
  7% {
    transform: rotateZ(0);
  }
  15% {
    transform: rotateZ(-15deg);
  }
  20% {
    transform: rotateZ(10deg);
  }
  25% {
    transform: rotateZ(-10deg);
  }
  30% {
    transform: rotateZ(6deg);
  }
  35% {
    transform: rotateZ(-4deg);
  }
  40%,
  100% {
    transform: rotateZ(0);
  }
}

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

@keyframes glow {
  from {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4),
      0 0 30px rgba(168, 85, 247, 0.2);
  }
  to {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6),
      0 0 40px rgba(168, 85, 247, 0.3);
  }
}

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

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

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

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

/* Utility Classes */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
  animation: slideInFromLeft 0.6s ease-out;
}

.slide-in-right {
  animation: slideInFromRight 0.6s ease-out;
}

.bounce-animation {
  animation: bounce 1s ease-in-out;
}

.wiggle-animation {
  animation: wiggle 1s ease-in-out;
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

.glow-animation {
  animation: glow 2s ease-in-out infinite alternate;
}

.gradient-animation {
  animation: gradient 3s ease infinite;
}

.pulse-animation {
  animation: pulse 2s ease-in-out infinite;
}

.scale-animation {
  animation: scale 2s ease-in-out infinite;
}

.rotate-animation {
  animation: rotate 8s linear infinite;
}

/* Enhanced Gradient Text */
.gradient-text {
  background: linear-gradient(45deg, #6366f1, #8b5cf6, #ec4899, #06b6d4);
  background-size: 300% 300%;
  animation: gradient 3s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-bg {
  background: linear-gradient(45deg, #6366f1, #8b5cf6, #ec4899, #06b6d4);
  background-size: 300% 300%;
  animation: gradient 3s ease infinite;
}

/* Glassmorphism Effects */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hover Effects */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-rotate {
  transition: transform 0.3s ease;
}

.hover-rotate:hover {
  transform: rotate(5deg);
}

.hover-tilt {
  transition: transform 0.3s ease;
}

.hover-tilt:hover {
  transform: perspective(1000px) rotateX(10deg) rotateY(-10deg);
}

/* Button Enhancements */
.btn-gen-z {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-gen-z::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-gen-z:hover::before {
  left: 100%;
}

.btn-gen-z:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Card Enhancements */
.card-gen-z {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-gen-z::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-gen-z:hover::before {
  opacity: 1;
}

.card-gen-z:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Resume Modal Animations (Enhanced) */
.modal-overlay {
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(0, 0, 0, 0.5);
}

.modal-overlay.show {
  opacity: 1;
}

.modal-overlay.hide {
  opacity: 0;
}

.modal-content {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-content.fast-close {
  transition: all 0.15s ease-out !important;
}

.modal-overlay.fast-close {
  transition: all 0.15s ease-out !important;
}

.close-button {
  position: relative;
  transition: all 0.2s ease-in-out;
  transform: scale(1);
  background: linear-gradient(45deg, #6366f1, #8b5cf6);
  color: white;
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 600;
}

.close-button:hover {
  transform: scale(1.1);
  background: linear-gradient(45deg, #5b55e6, #7c3aed);
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

.close-button:active {
  transform: scale(0.95);
}

.modal-content.show {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.modal-content.hide {
  opacity: 0;
  transform: scale(0.85) translateY(20px);
}

/* PDF Viewer Styling (Enhanced) */
.pdf-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  background: white;
}

.pdf-iframe {
  border: none;
  border-radius: 16px;
  width: 100%;
  height: 100%;
}

/* Responsive Enhancements */
@media (max-width: 640px) {
  .modal-content {
    width: 95vw !important;
    height: 85vh !important;
    max-width: none !important;
    margin: 20px;
  }

  .gradient-text {
    font-size: clamp(2rem, 8vw, 4rem);
  }

  .btn-gen-z {
    padding: 12px 24px;
    font-size: 16px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .modal-content {
    width: 85vw !important;
    height: 80vh !important;
    max-width: 800px !important;
  }
}

@media (min-width: 1025px) {
  .modal-content {
    width: 70vw !important;
    max-width: 1000px !important;
    height: 85vh !important;
  }
}

/* Gen Z Enhancements */
.gen-z-shadow {
  box-shadow: 0 10px 40px rgba(168, 85, 247, 0.3);
}

.emoji-bounce {
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
}

.emoji-wiggle {
  display: inline-block;
  animation: wiggle 2s ease-in-out infinite;
}

.social-icon {
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-4px) scale(1.1);
  filter: brightness(1.2);
}

.blog-card {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #6366f1, #8b5cf6);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #5b55e6, #7c3aed);
}

/* Selection Color */
::selection {
  background: rgba(168, 85, 247, 0.3);
}

::-moz-selection {
  background: rgba(168, 85, 247, 0.3);
}

/* ===============================================
   DARK MODE STYLES
   =============================================== */

/* Dark Mode Root Variables */
.dark {
  --bg-primary: #0f0f23;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #16213e;
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* Dark Mode Theme Toggle Button */
.theme-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(45deg, #6366f1, #8b5cf6, #ec4899);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.theme-toggle:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.4);
}

.theme-toggle:active {
  transform: translateY(-2px) scale(1.05);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
  transition: all 0.3s ease;
  position: absolute;
}

.dark .theme-toggle .sun-icon {
  opacity: 0;
  transform: rotate(180deg) scale(0);
}

.dark .theme-toggle .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-toggle .sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-toggle .moon-icon {
  opacity: 0;
  transform: rotate(-180deg) scale(0);
}

/* Dark Mode Background Transitions */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dark body {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  color: var(--text-primary);
}

/* Dark Mode Navigation */
.dark nav {
  background: rgba(15, 15, 35, 0.9) !important;
  border-bottom: 1px solid var(--border-color) !important;
}

.dark .glass {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
}

/* Dark Mode Text Colors */
.dark h1,
.dark h2,
.dark h3,
.dark h4,
.dark h5,
.dark h6 {
  color: var(--text-primary);
}

.dark p,
.dark span:not(.gradient-text) {
  color: var(--text-secondary);
}

.dark .text-gray-600 {
  color: var(--text-muted) !important;
}

.dark .text-gray-700 {
  color: var(--text-secondary) !important;
}

.dark .text-gray-900 {
  color: var(--text-primary) !important;
}

/* Dark Mode Cards */
.dark .bg-white\/70,
.dark .bg-white\/80,
.dark .bg-white\/95 {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.dark .card-gen-z {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .card-gen-z:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Dark Mode Buttons */
.dark .hover\:bg-purple-50:hover {
  background-color: rgba(147, 51, 234, 0.1) !important;
}

.dark .bg-purple-100 {
  background-color: rgba(147, 51, 234, 0.2) !important;
}

.dark .hover\:bg-purple-200:hover {
  background-color: rgba(147, 51, 234, 0.3) !important;
}

/* Dark Mode Form Elements */
.dark input,
.dark textarea,
.dark select {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--text-primary) !important;
}

.dark input::placeholder,
.dark textarea::placeholder {
  color: var(--text-muted) !important;
}

.dark input:focus,
.dark textarea:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: #8b5cf6 !important;
}

/* Dark Mode Modal */
.dark .modal-content {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border-color) !important;
}

.dark .modal-overlay {
  background: rgba(0, 0, 0, 0.8) !important;
}

/* Dark Mode Scrollbar */
.dark ::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

.dark ::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #6366f1, #8b5cf6);
}

/* Dark Mode Glassmorphism Enhanced */
.dark .backdrop-blur-xl {
  backdrop-filter: blur(20px);
}

.dark .bg-gradient-to-br.from-purple-50 {
  background: linear-gradient(
    135deg,
    #0f0f23 0%,
    #1a1a2e 50%,
    #16213e 100%
  ) !important;
}

/* Dark Mode Hover Effects */
.dark .hover\:shadow-xl:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3),
    0 10px 10px -5px rgba(0, 0, 0, 0.2) !important;
}

.dark .hover\:shadow-2xl:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

/* Dark Mode Animation Adjustments */
@keyframes glow-dark {
  from {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6),
      0 0 30px rgba(168, 85, 247, 0.4);
  }
  to {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.8),
      0 0 40px rgba(168, 85, 247, 0.5);
  }
}

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

/* Dark Mode Mobile Menu */
.dark .mobile-menu {
  background: rgba(15, 15, 35, 0.95) !important;
  border: 1px solid var(--border-color) !important;
}

/* Dark Mode Footer */
.dark footer {
  background: var(--bg-secondary) !important;
  border-top: 1px solid var(--border-color) !important;
}

/* Dark Mode Transitions */
* {
  transition: background-color 0.3s ease, border-color 0.3s ease,
    color 0.3s ease;
}

/* Dark Mode Color Overrides for Specific Elements */
.dark .text-purple-600 {
  color: #a855f7 !important;
}

.dark .text-pink-600 {
  color: #ec4899 !important;
}

.dark .text-blue-600 {
  color: #3b82f6 !important;
}

.dark .text-green-600 {
  color: #22c55e !important;
}

.dark .text-emerald-600 {
  color: #10b981 !important;
}

.dark .text-orange-600 {
  color: #ea580c !important;
}

.dark .text-red-600 {
  color: #dc2626 !important;
}

.dark .text-cyan-600 {
  color: #0891b2 !important;
}

.dark .text-indigo-600 {
  color: #4f46e5 !important;
}

/* Dark Mode Border Adjustments */
.dark .border-white\/20 {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.dark .border-gray-900\/10 {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Dark Mode Background Adjustments */
.dark .bg-gray-50 {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

.dark .hover\:bg-gray-100:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

/* Dark Mode Enhanced Card Background Fixes */
.dark .bg-white\/30 {
  background: rgba(255, 255, 255, 0.08) !important;
}

/* Dark Mode Color Background Fixes for Cards */
.dark .bg-purple-50,
.dark .bg-purple-100 {
  background: rgba(147, 51, 234, 0.15) !important;
  color: var(--text-secondary) !important;
}

.dark .bg-pink-50,
.dark .bg-pink-100 {
  background: rgba(236, 72, 153, 0.15) !important;
  color: var(--text-secondary) !important;
}

.dark .bg-blue-50,
.dark .bg-blue-100 {
  background: rgba(59, 130, 246, 0.15) !important;
  color: var(--text-secondary) !important;
}

.dark .bg-cyan-50,
.dark .bg-cyan-100 {
  background: rgba(6, 182, 212, 0.15) !important;
  color: var(--text-secondary) !important;
}

.dark .bg-green-50,
.dark .bg-green-100 {
  background: rgba(34, 197, 94, 0.15) !important;
  color: var(--text-secondary) !important;
}

.dark .bg-emerald-50,
.dark .bg-emerald-100 {
  background: rgba(16, 185, 129, 0.15) !important;
  color: var(--text-secondary) !important;
}

.dark .bg-orange-50,
.dark .bg-orange-100 {
  background: rgba(249, 115, 22, 0.15) !important;
  color: var(--text-secondary) !important;
}

.dark .bg-red-50,
.dark .bg-red-100 {
  background: rgba(239, 68, 68, 0.15) !important;
  color: var(--text-secondary) !important;
}

.dark .bg-indigo-50,
.dark .bg-indigo-100 {
  background: rgba(79, 70, 229, 0.15) !important;
  color: var(--text-secondary) !important;
}

/* Dark Mode Text Colors for Card Content */
.dark .text-purple-700 {
  color: #c084fc !important;
}

.dark .text-pink-700 {
  color: #f472b6 !important;
}

.dark .text-blue-700 {
  color: #60a5fa !important;
}

.dark .text-cyan-700 {
  color: #22d3ee !important;
}

.dark .text-green-700 {
  color: #4ade80 !important;
}

.dark .text-emerald-700 {
  color: #34d399 !important;
}

.dark .text-orange-700 {
  color: #fb923c !important;
}

.dark .text-red-700 {
  color: #f87171 !important;
}

.dark .text-indigo-700 {
  color: #818cf8 !important;
}

.dark .text-gray-700 {
  color: var(--text-secondary) !important;
}

.dark .text-gray-500 {
  color: var(--text-muted) !important;
}

/* Dark Mode Experience Section Card Hashtags */
.dark .bg-purple-100.text-purple-700 {
  background: rgba(147, 51, 234, 0.2) !important;
  color: #c084fc !important;
}

.dark .bg-blue-100.text-blue-700 {
  background: rgba(59, 130, 246, 0.2) !important;
  color: #60a5fa !important;
}

.dark .bg-green-100.text-green-700 {
  background: rgba(34, 197, 94, 0.2) !important;
  color: #4ade80 !important;
}

.dark .bg-pink-100.text-pink-700 {
  background: rgba(236, 72, 153, 0.2) !important;
  color: #f472b6 !important;
}

/* Dark Mode Services Section Background */
.dark section.bg-white\/30 {
  background: rgba(255, 255, 255, 0.05) !important;
}

/* Dark Mode White Background Semi-Transparent Fix */
.dark .bg-white\/50 {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--text-secondary) !important;
}
