/* Custom styles for UCGeeks website */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animation classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Custom button styles */
.btn-primary {
    @apply bg-blue-600 hover:bg-blue-700 text-white px-6 py-3 rounded-lg font-semibold transition-all duration-300 transform hover:scale-105;
}

.btn-secondary {
    @apply border border-blue-400 text-white hover:bg-blue-900/30 px-6 py-3 rounded-lg font-semibold transition-all duration-300;
}

.btn-outline {
    @apply border border-gray-600 text-gray-300 hover:border-blue-400 hover:text-blue-400 px-6 py-3 rounded-lg font-semibold transition-all duration-300;
}

/* Card hover effects */
.card-hover {
    @apply transition-all duration-300 transform hover:scale-105 hover:shadow-lg;
}

/* Gradient backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom scrollbar - dark grey theme */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #181e29;
}
::-webkit-scrollbar-thumb {
    background: #343a40;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #23272f;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile menu animation */
.mobile-menu-enter {
    opacity: 0;
    transform: translateY(-10px);
}

.mobile-menu-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 300ms, transform 300ms;
}

.mobile-menu-exit {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-exit-active {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 300ms, transform 300ms;
}

/* Responsive typography */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
        line-height: 1.1;
    }
}

@media (min-width: 1025px) {
    .hero-title {
        font-size: 5rem;
        line-height: 1;
    }
}

/* Custom focus styles */
.focus-ring:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #3b82f6;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #1e40af;
    transform: translateY(-2px);
}

/* Toast notifications */
.toast {
    position: fixed;
    top: 90px;
    right: 20px;
    background: #1f2937;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

/* Course card enhancements */
.course-card {
    position: relative;
    overflow: hidden;
}

.course-card::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;
}

.course-card:hover::before {
    left: 100%;
}

/* Certification badge */
.cert-badge {
    position: relative;
    display: inline-block;
}

.cert-badge::after {
    content: '✓';
    position: absolute;
    top: -5px;
    right: -5px;
    background: #10b981;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Community section enhancements */
.community-card {
    position: relative;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(30, 64, 175, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.community-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(30, 64, 175, 0.15) 100%);
}

/* Hero section enhancements */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Navigation enhancements */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Footer enhancements */
.footer-link {
    position: relative;
    transition: color 0.3s ease;
}

.footer-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.footer-link:hover::before {
    width: 100%;
}

/* Utility classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.box-shadow-lg {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
} 

/* Modern animated glare effect for cards */
@keyframes glare-move {
  0% {
    transform: skewX(-20deg) translateX(-120%);
    opacity: 0.15;
  }
  50% {
    opacity: 0.28;
  }
  100% {
    transform: skewX(-20deg) translateX(120%);
    opacity: 0.15;
  }
}

.card-glare {
  position: relative;
  overflow: hidden;
}
.card-glare::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(59,130,246,0.18) 40%, rgba(255,255,255,0.32) 60%, rgba(59,130,246,0.12) 100%, rgba(255,255,255,0) 100%);
  pointer-events: none;
  z-index: 2;
  opacity: 0.15;
  transition: opacity 0.3s;
}
.card-glare:hover::after {
  animation: glare-move 1.2s cubic-bezier(0.4,0.2,0.2,1) 1;
  opacity: 0.28;
}

/* Enhance card-hover for modern look */
.card-hover {
  transition: box-shadow 0.3s, transform 0.3s;
  will-change: transform, box-shadow;
  box-shadow: 0 2px 12px 0 rgba(30,64,175,0.08);
}
.card-hover:hover {
  transform: translateY(-4px) scale(1.045);
  box-shadow: 0 8px 32px 0 rgba(59,130,246,0.18), 0 1.5px 8px 0 rgba(30,64,175,0.10);
}

/* Apply glare to all major card types */
.bg-gray-800,
.bg-gray-800\/50,
.bg-gray-800\/60,
.course-card,
.community-card {
  /* Compose with card-glare for effect */
} 

/* --- 2025 Modern Mobile UI/UX Enhancements --- */

/* 1. Full-screen, blurred, animated mobile nav overlay */
@media (max-width: 640px) {
  #mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(17, 24, 39, 0.98);
    box-shadow: 0 8px 32px 0 rgba(30,64,175,0.10);
    border-bottom-left-radius: 1.5rem;
    border-bottom-right-radius: 1.5rem;
    z-index: 1000;
    padding: 1.5rem 0 2rem 0;
    transition: max-height 0.3s, opacity 0.3s;
  }
  #mobile-menu.open {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 1;
  }
  #mobile-menu .mobile-close {
    display: none;
  }
  #mobile-menu a {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1rem 0;
    color: #fff;
    background: none;
    border-radius: 1.5rem;
    padding: 0.7rem 1.8rem;
    box-shadow: none;
    transition: background 0.2s, color 0.2s, transform 0.2s;
  }
  #mobile-menu a:active {
    background: #3b82f6;
    color: #fff;
    transform: scale(0.97);
  }
}

/* 2. Hero section: glassy overlay, bigger text, more spacing */
@media (max-width: 640px) {
  .hero-content, .hero-section .relative.z-10 {
    background: rgba(17, 24, 39, 0.55);
    border-radius: 1.5rem;
    padding: 2.5rem 1.2rem;
    box-shadow: 0 8px 32px 0 rgba(30,64,175,0.10);
    margin-top: 2.5rem;
  }
  .hero-content h1, .hero-section h1 {
    font-size: 2.2rem;
    line-height: 1.15;
    margin-bottom: 1.2rem;
  }
  .hero-content p, .hero-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
}

/* 3. Card improvements: spacing, rounding, tap effect */
@media (max-width: 640px) {
  .card-hover, .card-glare, .course-card, .community-card, .bg-gray-800, .bg-gray-800\/50, .bg-gray-800\/60 {
    border-radius: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 4px 24px 0 rgba(30,64,175,0.10);
    transition: box-shadow 0.2s, transform 0.2s;
  }
  .card-hover:active, .card-glare:active, .course-card:active, .community-card:active, .bg-gray-800:active, .bg-gray-800\/50:active, .bg-gray-800\/60:active {
    box-shadow: 0 2px 8px 0 rgba(30,64,175,0.08);
    transform: scale(0.98);
  }
}

/* 4. Modern pill/gradient buttons */
.btn-primary, .bg-blue-600 {
  border-radius: 9999px !important;
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%) !important;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 12px 0 rgba(59,130,246,0.10);
}
.btn-primary:active, .bg-blue-600:active {
  background: #1e40af !important;
}
@media (max-width: 640px) {
  .btn-primary, .bg-blue-600 {
    font-size: 1.1rem;
    padding: 1rem 2.2rem !important;
  }
}

/* 5. Section padding, headings, whitespace */
@media (max-width: 640px) {
  section, .section {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  h1, .text-4xl, .text-5xl, .text-6xl {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1.2rem !important;
  }
  h2, .text-3xl, .text-2xl {
    font-size: 1.3rem !important;
    margin-bottom: 1rem !important;
  }
  .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* 6. Footer: stack vertically, larger touch targets */
@media (max-width: 640px) {
  footer .container {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.2rem !important;
  }
  footer img, footer span, footer a {
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
  }
} 