/**
 * Modern UI CSS
 *
 * Advanced UI effects and animations for the AY-I-T website
 * Includes glassmorphism, neumorphism, animations, and enhanced hover states
 *
 * CLEANUP 2025-05-17: Removed duplicate color variables that are now defined in common.css
 * to maintain a single source of truth for color definitions across the site.
 */

:root {
  /* These color variables are now defined in common.css */
  
  /* Animation Variables */
  --transition-fast: 150ms;
  --transition-normal: 300ms;
  --transition-slow: 500ms;
  --easing: cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Shadow Variables */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  
  /* Blur Variables */
  --blur-sm: 4px;
  --blur-md: 8px;
  --blur-lg: 16px;
  --blur-xl: 24px;
}

/* Dark Mode Variables are now defined in common.css */

/* Header logo sizing - adjusted to fit in header */
.site-logo {
  height: 40px;
  max-height: 40px;
  width: auto;
  max-width: 50px;
  object-fit: contain;
}

/* Logo and icon visibility now handled by Tailwind dark: classes */

@media (min-width: 768px) {
  .site-logo {
    height: 44px;
    max-height: 44px;
    max-width: 55px;
  }
}

@media (min-width: 1024px) {
  .site-logo {
    height: 48px;
    max-height: 48px;
    max-width: 60px;
  }
}

/* ================= */
/* General Animations */
/* ================= */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

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

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

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

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

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

/* Ken Burns Effect */
@keyframes kenBurns {
  0% {
    transform: scale(1) translate(0);
  }
  50% {
    transform: scale(1.05) translate(-1%, -1%);
  }
  100% {
    transform: scale(1) translate(0);
  }
}

/* ================= */
/* Animation Classes */
/* ================= */

.animate-fadeIn {
  animation: fadeIn var(--transition-normal) var(--easing) forwards;
}

.animate-slideUp {
  animation: slideUp var(--transition-normal) var(--easing) forwards;
}

.animate-slideDown {
  animation: slideDown var(--transition-normal) var(--easing) forwards;
}

.animate-slideInLeft {
  animation: slideInLeft var(--transition-normal) var(--easing) forwards;
}

.animate-slideInRight {
  animation: slideInRight var(--transition-normal) var(--easing) forwards;
}

.animate-pulse {
  animation: pulse 2s var(--easing) infinite;
}

.animate-bounce {
  animation: bounce 2s var(--easing) infinite;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.animate-shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

.animate-kenBurns {
  animation: kenBurns 20s ease infinite alternate;
}

/* Staggered animations for lists */
.stagger-item {
  opacity: 0;
  animation: slideUp 0.5s var(--easing) forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }
.stagger-item:nth-child(7) { animation-delay: 0.7s; }
.stagger-item:nth-child(8) { animation-delay: 0.8s; }
.stagger-item:nth-child(9) { animation-delay: 0.9s; }
.stagger-item:nth-child(10) { animation-delay: 1.0s; }
.stagger-item:nth-child(11) { animation-delay: 1.1s; }
.stagger-item:nth-child(12) { animation-delay: 1.2s; }

/* ================= */
/* Glassmorphism */
/* ================= */

.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-dark {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-card {
  background: rgba(31, 41, 55, 0.95);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  transition: all var(--transition-normal) var(--easing);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(123, 44, 191, 0.4);
  border: 1px solid rgba(0, 245, 212, 0.4);
}

.glass-card .p-6 {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.glass-card .p-6 .btn-primary {
  margin-top: auto;
}

/* Light Mode Glass Card */
html:not(.dark) .glass-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 191, 165, 0.15);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
}

html:not(.dark) .glass-card:hover {
  box-shadow: 0 12px 40px 0 rgba(0, 191, 165, 0.2);
  border: 1px solid rgba(0, 191, 165, 0.3);
}

/* ================= */
/* Neumorphism */
/* ================= */

.neumorph {
  background: var(--dark-lighter);
  border-radius: 1rem;
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.25),
    -8px -8px 16px rgba(255, 255, 255, 0.05);
  transition: all var(--transition-normal) var(--easing);
}

.neumorph:hover {
  box-shadow: 
    12px 12px 20px rgba(0, 0, 0, 0.3),
    -12px -12px 20px rgba(255, 255, 255, 0.07);
}

.neumorph-inset {
  background: var(--dark-lighter);
  border-radius: 1rem;
  box-shadow: 
    inset 8px 8px 16px rgba(0, 0, 0, 0.25),
    inset -8px -8px 16px rgba(255, 255, 255, 0.05);
}

/* ================= */
/* Enhanced Buttons */
/* ================= */

.btn-primary {
  background-color: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal) var(--easing);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
}

.btn-primary::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: all var(--transition-normal);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal) var(--easing);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--primary);
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary:active {
  transform: translateY(0);
  box-shadow: var(--shadow);
}

/* ================= */
/* Navigation */
/* ================= */

.nav-link {
  color: var(--gray-light);
  padding: 0.5rem 1rem;
  font-weight: 500;
  position: relative;
  transition: all var(--transition-normal) var(--easing);
  cursor: pointer;
  text-decoration: none;
  border: none;
  background: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: all var(--transition-normal) var(--easing);
  transform: translateX(-50%);
}

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

.nav-link:hover::after {
  width: 80%;
}

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

.nav-link.active::after {
  width: 80%;
}

/* Projects Dropdown */
.projects-dropdown-container {
  position: relative;
}

.projects-dropdown-trigger svg {
  transition: transform var(--transition-normal) var(--easing);
}

.projects-dropdown-container:hover .projects-dropdown-trigger svg {
  transform: rotate(180deg);
}

.projects-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  margin-top: 0.5rem;
  background: rgba(31, 41, 55, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 0.75rem;
  border: 1px solid rgba(123, 44, 191, 0.3);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 30px -5px rgba(123, 44, 191, 0.3);
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  pointer-events: none;
  transition: all var(--transition-normal) var(--easing);
  z-index: 100;
}

.projects-dropdown-container:hover .projects-dropdown-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  color: var(--gray-light);
  text-decoration: none;
  transition: all var(--transition-fast) var(--easing);
  border-left: 3px solid transparent;
}

.dropdown-item svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  transition: all var(--transition-fast) var(--easing);
}

.dropdown-item:hover {
  background: linear-gradient(90deg, rgba(123, 44, 191, 0.2), rgba(0, 245, 212, 0.1));
  color: white;
  border-left-color: rgba(0, 245, 212, 0.8);
  padding-left: 1.5rem;
}

.dropdown-item:hover svg {
  color: rgba(0, 245, 212, 1);
  transform: scale(1.1);
}

.dropdown-item:first-child {
  font-weight: 600;
  background: rgba(123, 44, 191, 0.15);
}

.dropdown-item:first-child:hover {
  background: linear-gradient(90deg, rgba(123, 44, 191, 0.3), rgba(0, 245, 212, 0.15));
}

.mobile-nav-link {
  display: block;
  color: var(--gray-light);
  padding: 0.75rem 1rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all var(--transition-normal) var(--easing);
  text-decoration: none;
}

.mobile-nav-link:hover {
  color: white;
  background-color: var(--dark-lightest);
}

.mobile-nav-link.active {
  color: white;
  background-color: var(--primary);
}

/* Light Mode Navigation Overrides */
html:not(.dark) .nav-link {
  color: #4b5563;
}

html:not(.dark) .nav-link:hover {
  color: #1f2937;
}

html:not(.dark) .nav-link.active {
  color: #1f2937;
}

html:not(.dark) .dropdown-item {
  color: #4b5563;
}

html:not(.dark) .dropdown-item:hover {
  background: linear-gradient(90deg, rgba(0, 191, 165, 0.15), rgba(255, 112, 67, 0.1));
  color: #1f2937;
  border-left-color: var(--accent-teal);
}

html:not(.dark) .dropdown-item:first-child {
  background: rgba(0, 191, 165, 0.1);
}

html:not(.dark) .dropdown-item:first-child:hover {
  background: linear-gradient(90deg, rgba(0, 191, 165, 0.2), rgba(255, 112, 67, 0.1));
}

html:not(.dark) .mobile-nav-link {
  color: #4b5563;
}

html:not(.dark) .mobile-nav-link:hover {
  color: #1f2937;
  background-color: #f3f4f6;
}

html:not(.dark) .mobile-nav-link.active {
  color: white;
  background-color: var(--primary);
}

html:not(.dark) .projects-dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 191, 165, 0.2);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15), 0 0 30px -5px rgba(0, 191, 165, 0.15);
}

/* Mobile Projects Accordion */
.mobile-projects-toggle {
  cursor: pointer;
  border: none;
  text-align: left;
}

.mobile-projects-toggle svg {
  transition: transform var(--transition-normal) var(--easing);
}

.mobile-projects-toggle.open svg {
  transform: rotate(180deg);
}

.mobile-projects-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) var(--easing);
}

.mobile-projects-content.open {
  max-height: 500px;
}

/* ================= */
/* User Badge & Dropdown */
/* ================= */

#userBadgeContainer {
  cursor: pointer;
  transition: all var(--transition-normal) var(--easing);
}

#userBadgeContainer:hover {
  transform: scale(1.05);
}

.user-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal) var(--easing);
}

.user-avatar:hover {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3), var(--shadow-lg);
}

.user-initials {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: white;
  font-weight: 600;
  border: 2px solid var(--primary-light);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal) var(--easing);
}

.user-initials:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3), var(--shadow-lg);
}

#userDropdown {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-normal) var(--easing);
}

#userDropdown.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

#userDropdown:not(.hidden) {
  opacity: 1;
  transform: scale(1);
}

.user-dropdown-header {
  background-color: var(--dark-lighter);
}

.user-dropdown-name {
  font-weight: 600;
  color: white;
  margin-bottom: 0.25rem;
}

.user-dropdown-email {
  font-size: 0.875rem;
  color: var(--gray-light);
}

.user-dropdown-menu {
  background-color: var(--dark);
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--gray-light);
  transition: all var(--transition-normal) var(--easing);
  border-radius: 0.5rem;
  margin: 0.25rem;
}

.user-dropdown-item svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
  transition: all var(--transition-normal) var(--easing);
}

.user-dropdown-item:hover {
  background-color: var(--dark-lighter);
  color: white;
}

.admin-only {
  display: none;
}

.admin-user .admin-only {
  display: flex;
}

/* ================= */
/* Cards & Sections */
/* ================= */

.card {
  background-color: var(--dark-lighter);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal) var(--easing);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: white;
}

.card-description {
  color: var(--gray-light);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.gradient-bg {
  background: linear-gradient(135deg, var(--dark), var(--dark-lighter));
}

/* ================= */
/* Hero Section */
/* ================= */

.hero {
  position: relative;
  overflow: hidden;
  /* Fallback gradient so hero never looks blank */
  background: linear-gradient(135deg, var(--dark), var(--dark-lighter));
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  background-image: linear-gradient(0deg, rgba(17,24,39,0.55), rgba(17,24,39,0.55)), url('/assets/images/hero-bg-abstract.png');
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

/* ================= */
/* Dark Mode Toggle */
/* ================= */

#darkModeToggle {
  position: relative;
  overflow: hidden;
}

#darkModeToggle svg {
  transition: all var(--transition-normal) var(--easing);
}

#darkModeToggle:hover svg {
  color: white;
  transform: rotate(30deg);
}

/* ================= */
/* Mobile Menu */
/* ================= */

#mobileMenu {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--transition-normal) var(--easing);
}

#mobileMenu.hidden {
  max-height: 0;
}

#mobileMenu:not(.hidden) {
  max-height: 500px;
}

/* ================= */
/* Header Adjustments */
/* ================= */

header {
  transition: all var(--transition-normal) var(--easing);
}

header.scrolled {
  background-color: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  box-shadow: var(--shadow-lg);
}

.header-spacer {
  height: 4rem;
}

/* ================= */
/* Footer */
/* ================= */

footer {
  background-color: var(--dark);
}

/* ================= */
/* Utilities */
/* ================= */

/* .hidden utility removed - use Tailwind's .hidden class instead */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ================= */
/* Responsive Adjustments */
/* ================= */

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.875rem;
  }
  
  .card {
    margin-bottom: 1.5rem;
  }
}

/* Header visual polish */
header:not(.scrolled) {
  background: linear-gradient(to bottom, rgba(17,24,39,0.55), rgba(17,24,39,0));
}
header .nav-link {
  color: rgba(255,255,255,0.9);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: color var(--transition-normal) var(--easing), background var(--transition-normal) var(--easing), transform var(--transition-fast) var(--easing);
}
header .nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}
header .nav-link.active {
  color: var(--secondary);
}

/* Light Mode Header Overrides */
html:not(.dark) header:not(.scrolled) {
  background: linear-gradient(to bottom, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
}

html:not(.dark) header .nav-link {
  color: #4b5563;
}

html:not(.dark) header .nav-link:hover {
  color: #1f2937;
  background: rgba(0, 191, 165, 0.08);
}

html:not(.dark) header .nav-link.active {
  color: var(--accent-teal);
}

/* ================= */
/* Loading Spinner */
/* ================= */

.loading {
  width: 48px;
  height: 48px;
  border: 5px solid rgba(255, 255, 255, 0.1);
  border-bottom-color: var(--primary);
  border-radius: 50%;
  display: inline-block;
  animation: spin 1s linear infinite;
}

/* ================= */
/* 3D Hover Card Effects */
/* ================= */

.hover-card {
  transition: all var(--transition-normal) var(--easing);
  transform-style: preserve-3d;
  cursor: pointer;
}

.hover-card:hover {
  z-index: 10;
}

.card-3d-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  transition: inherit;
}

/* ================= */
/* 2025 Site Enhancements */
/* ================= */

/* Enhanced button styles with better hover effects */
.btn-primary, .btn-secondary {
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.3px;
}

.btn-primary:hover {
  box-shadow: 0 15px 35px -5px rgba(123, 44, 191, 0.5), 0 5px 15px -3px rgba(0, 245, 212, 0.2);
  transform: translateY(-3px) scale(1.02);
}

.btn-secondary:hover {
  background-color: rgba(123, 44, 191, 0.15);
  border-color: rgba(0, 245, 212, 0.6);
  box-shadow: 0 10px 25px -5px rgba(123, 44, 191, 0.3);
  transform: translateY(-3px) scale(1.02);
}

/* Deeper, more dramatic card shadows */
.glass-card, .card, .hover-card {
  box-shadow: 0 10px 35px -5px rgba(0, 0, 0, 0.6), 0 5px 15px -3px rgba(123, 44, 191, 0.2);
}

.glass-card:hover, .card:hover, .hover-card:hover {
  box-shadow: 0 20px 50px -10px rgba(123, 44, 191, 0.5), 0 10px 25px -5px rgba(0, 245, 212, 0.3), 0 0 60px -15px rgba(123, 44, 191, 0.4);
  transform: translateY(-8px) scale(1.02);
}

/* Smooth scroll behavior for entire site */
html {
  scroll-behavior: smooth;
}

/* Better focus indicators for accessibility */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(0, 245, 212, 0.6);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(123, 44, 191, 0.2);
}

/* Enhanced reveal-on-scroll animation */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--easing), transform 0.6s var(--easing);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Typography improvements - better readability */
p, li, .text-gray-300, .text-gray-400 {
  line-height: 1.7;
  letter-spacing: 0.2px;
}

h1, h2, h3, .hero-title, .section-title {
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.hero-subtitle, p.text-xl {
  font-size: 1.35rem;
  line-height: 1.65;
  font-weight: 400;
}

/* Better section separators */
section {
  position: relative;
}

section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123, 44, 191, 0.3) 20%, rgba(0, 245, 212, 0.3) 80%, transparent);
}

section:last-child::after {
  display: none;
}

/* Enhanced grid gaps for better spacing */
.grid {
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid {
    gap: 2.5rem;
  }
}

/* Better image transitions */
img {
  transition: transform var(--transition-normal) var(--easing), filter var(--transition-normal) var(--easing);
}

.hover-card img:hover, .glass-card img:hover, .card img:hover {
  transform: scale(1.08);
  filter: brightness(1.1);
}

/* Enhanced category cards with pulse effect on hover */
.glass-card:hover .text-4xl,
.hover-card:hover .text-4xl {
  animation: pulse 1s var(--easing) infinite;
}

/* Improved mobile spacing */
@media (max-width: 768px) {
  .py-16 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .py-12 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* Staggered list improvements */
.staggered-list > * {
  opacity: 0;
  animation: slideUp 0.5s var(--easing) forwards;
}

.staggered-list > *:nth-child(1) { animation-delay: 0.05s; }
.staggered-list > *:nth-child(2) { animation-delay: 0.1s; }
.staggered-list > *:nth-child(3) { animation-delay: 0.15s; }
.staggered-list > *:nth-child(4) { animation-delay: 0.2s; }
.staggered-list > *:nth-child(5) { animation-delay: 0.25s; }
.staggered-list > *:nth-child(6) { animation-delay: 0.3s; }
.staggered-list > *:nth-child(7) { animation-delay: 0.35s; }
.staggered-list > *:nth-child(8) { animation-delay: 0.4s; }

/* Enhanced gradient text with animation */
.gradient-text {
  background: linear-gradient(135deg, #7b2cbf, #00f5d4, #7b2cbf);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 3s ease infinite;
}

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

/* Better form input styling */
.form-input, input[type="email"], input[type="text"], textarea {
  background: rgba(31, 41, 55, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: white;
  transition: all var(--transition-normal) var(--easing);
}

.form-input:hover, input[type="email"]:hover, input[type="text"]:hover, textarea:hover {
  border-color: rgba(123, 44, 191, 0.5);
  box-shadow: 0 0 0 3px rgba(123, 44, 191, 0.1);
}

.form-input:focus, input[type="email"]:focus, input[type="text"]:focus, textarea:focus {
  border-color: rgba(0, 245, 212, 0.6);
  box-shadow: 0 0 0 4px rgba(0, 245, 212, 0.15);
}

/* Newsletter section enhancement */
.glass-card form {
  transition: all var(--transition-normal) var(--easing);
}

.glass-card:hover form {
  transform: scale(1.01);
}

/* Logo responsive sizing improvements */
@media (max-width: 768px) {
  img[src*="ay-i-t_title.png"] {
    max-height: 400px !important;
  }
}

@media (max-width: 480px) {
  img[src*="ay-i-t_title.png"] {
    max-height: 300px !important;
  }
}

/* ================= */
/* Button Size Variants */
/* ================= */

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
}

/* ================= */
/* Text Truncation Utilities */
/* ================= */

.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================= */
/* Enhanced Project Cards */
/* ================= */

.glass-card .p-6 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.glass-card .p-6 > * {
  flex-shrink: 0;
}

.glass-card .p-6 .btn-primary {
  margin-top: auto;
}

/* Better spacing for 4-column grid */
@media (min-width: 1024px) {
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lg\:grid-cols-4 .glass-card h3 {
    font-size: 1rem;
  }

  .lg\:grid-cols-4 .glass-card p {
    font-size: 0.825rem;
  }
}

/* ================= */
/* Improved Mobile Menu */
/* ================= */

#mobileMenu.hidden {
  display: none;
}

/* Make header always visible and attractive */
header {
  background: linear-gradient(to bottom, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.90));
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

header.scrolled {
  background: rgba(17, 24, 39, 0.98);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(123, 44, 191, 0.3);
}

/* ================= */
/* Secondary Navigation Bar */
/* ================= */

.secondary-nav {
  position: sticky;
  top: 64px; /* Below main header */
  z-index: 85;
  background: linear-gradient(135deg,
    rgba(17, 24, 39, 0.98) 0%,
    rgba(28, 46, 74, 0.95) 50%,
    rgba(17, 24, 39, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(123, 44, 191, 0.3);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.secondary-nav-container {
  position: relative;
}

.secondary-nav-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.secondary-nav-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  background: rgba(123, 44, 191, 0.05);
  border: 1px solid rgba(123, 44, 191, 0.2);
  position: relative;
  overflow: hidden;
}

.secondary-nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 245, 212, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.secondary-nav-link:hover {
  color: white;
  background: rgba(123, 44, 191, 0.2);
  border-color: rgba(0, 245, 212, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(123, 44, 191, 0.3);
}

.secondary-nav-link:hover::before {
  left: 100%;
}

.secondary-nav-link.active {
  color: white;
  background: linear-gradient(135deg, rgba(123, 44, 191, 0.3), rgba(0, 245, 212, 0.2));
  border-color: rgba(0, 245, 212, 0.6);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.3);
}

.secondary-nav-link .icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.secondary-nav-link:hover .icon {
  transform: scale(1.2);
}

/* Scroll behavior enhancement */
.secondary-nav.scrolled {
  padding: 0.75rem 0;
  box-shadow: 0 4px 30px rgba(123, 44, 191, 0.4);
  border-bottom-color: rgba(0, 245, 212, 0.5);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .secondary-nav-links {
    gap: 0.25rem;
    padding: 0 0.5rem;
  }

  .secondary-nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }

  .secondary-nav-link .text {
    display: none; /* Hide text on mobile, show icon only */
  }

  .secondary-nav-link .icon {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .secondary-nav {
    padding: 0.5rem 0;
  }

  .secondary-nav-link {
    padding: 0.4rem 0.6rem;
  }
}
