/* Custom CSS for UnitCAA Website */

/* Prevent page rotation */
html, body {
    transform: none !important;
    animation: none !important;
}

/* Fix member association icon dimensions during loading */
.member-association-icon {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;
    max-width: 64px !important;
    max-height: 64px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.member-association-icon i {
    font-size: 1.25rem !important;
    line-height: 1 !important;
}

/* Disable scrollbar during loading */
body.loading {
    overflow: hidden !important;
}

/* Hide scrollbar during loading */
body.loading::-webkit-scrollbar {
    display: none !important;
}

body.loading {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

/* Hero Logo Responsive Styling - Optimized for Balanced Layout */
.hero-logo-container img {
    width: 14rem !important;
    height: 14rem !important;
    object-fit: contain;
    display: block;
}

/* Responsive logo sizing for different screen sizes - Balanced approach */
@media (max-width: 360px) {
    .hero-logo-container img {
        width: 6rem !important;
        height: 6rem !important;
    }
}

@media (min-width: 361px) and (max-width: 480px) {
    .hero-logo-container img {
        width: 7rem !important;
        height: 7rem !important;
    }
}

@media (min-width: 481px) and (max-width: 640px) {
    .hero-logo-container img {
        width: 8rem !important;
        height: 8rem !important;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .hero-logo-container img {
        width: 10rem !important;
        height: 10rem !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-logo-container img {
        width: 12rem !important;
        height: 12rem !important;
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    .hero-logo-container img {
        width: 14rem !important;
        height: 14rem !important;
    }
}

@media (min-width: 1201px) and (max-width: 1280px) {
    .hero-logo-container img {
        width: 16rem !important;
        height: 16rem !important;
    }
}

@media (min-width: 1281px) and (max-width: 1536px) {
    .hero-logo-container img {
        width: 18rem !important;
        height: 18rem !important;
    }
    
    /* Ensure logo container has enough space in XL view */
    .hero-logo-container {
        min-width: 18rem;
        min-height: 18rem;
    }
    
    /* Adjust hero grid for XL view */
    .hero-grid {
        grid-template-columns: 1fr 2fr 1fr;
        gap: 2rem;
    }
}

@media (min-width: 1537px) {
    .hero-logo-container img {
        width: 20rem !important;
        height: 20rem !important;
    }
    
    /* Ensure logo container has enough space in 2XL view */
    .hero-logo-container {
        min-width: 20rem;
        min-height: 20rem;
    }
    
    /* Adjust hero grid for 2XL view */
    .hero-grid {
        grid-template-columns: 1fr 2.5fr 1fr;
        gap: 2.5rem;
    }
}

/* Logo container overflow prevention - handled in responsive rules above */

@media (max-width: 1200px) {
    .hero-logo-container {
        max-width: 20rem;
        max-height: 20rem;
    }
}

@media (max-width: 1024px) {
    .hero-logo-container {
        max-width: 18rem;
        max-height: 18rem;
    }
}

@media (max-width: 768px) {
    .hero-logo-container {
        max-width: 16rem;
        max-height: 16rem;
    }
}

@media (max-width: 640px) {
    .hero-logo-container {
        max-width: 14rem;
        max-height: 14rem;
    }
}

@media (max-width: 480px) {
    .hero-logo-container {
        max-width: 12rem;
        max-height: 12rem;
    }
}

@media (max-width: 360px) {
    .hero-logo-container {
        max-width: 10rem;
        max-height: 10rem;
    }
}

/* Hero Section Viewport Fix - Balanced Layout */
#home {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

#home .min-h-full {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Hero content container - compact approach */
.hero-main-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
    box-sizing: border-box;
    overflow: hidden;
}

/* Ensure hero content is visible */
.hero-content {
    width: 100%;
    min-height: 0;
    overflow: visible;
}

/* Hero Section Layout Optimization */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: center;
    justify-items: center;
    width: 100%;
    max-width: 100%;
    min-height: 0;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 2fr 1fr;
        gap: 2rem;
        align-items: center;
    }
}

/* Ensure center column has enough space for logo and bottom image */
.hero-grid > div:nth-child(2) {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    overflow: visible;
    justify-content: flex-start;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .hero-grid > div:nth-child(2) {
        gap: 1.5rem;
    }
}

@media (min-width: 1280px) {
    .hero-grid > div:nth-child(2) {
        gap: 0rem;
    }
}

/* Ensure hero logo container doesn't cause overflow */
.hero-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    height: fit-content;
    max-width: 100%;
    max-height: 100%;
    overflow: visible;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

/* Prevent logo from being clipped by parent containers */
.hero-logo-container img {
    position: relative;
    z-index: 11;
    max-width: none !important;
    max-height: none !important;
}

/* Ensure parent containers don't clip the logo but contain bottom image */
.hero-logo-text-container {
    overflow: visible !important;
}

.hero-grid > div {
    overflow: hidden;
}

.hero-main-container,
#home .min-h-full {
    overflow: hidden;
}

/* Hero logo and text container - Balanced space allocation */
.hero-logo-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    padding: 0.5rem;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    flex-shrink: 1;
    max-height: 60%;
}

@media (min-width: 1024px) {
    .hero-logo-text-container {
        flex-direction: row;
        gap: 1.5rem;
        align-items: center;
        justify-content: center;
        max-height: 70%;
    }
}

/* Ensure logo has enough space but leaves room for bottom image */
@media (min-width: 1280px) {
    .hero-logo-text-container {
        max-height: 75%;
        padding: 1rem;
    }
}

@media (min-width: 1536px) {
    .hero-logo-text-container {
        max-height: 80%;
        padding: 1.5rem;
    }
}

/* Logo container optimization */
.hero-logo-container {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    height: fit-content;
    padding: 0.5rem;
    margin: 0.25rem 0;
}

/* Hero text container */
.hero-text-container {
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

/* Tamil spiritual quote optimization */
.tamil-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.tamil-quote img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    filter: brightness(1.2) contrast(1.1);
}

/* Hero logo and text container - Compact layout */
.hero-logo-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    flex-shrink: 1;
    max-height: none;
}

/* Responsive side-by-side layout */
@media (min-width: 768px) {
    .hero-logo-text-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        gap: 1rem;
        padding: 1.5rem 0.5rem;
    }
    
    .hero-logo-container {
        flex-shrink: 0;
        max-width: 45%;
        padding: 0.5rem;
    }
    
    .hero-text-container {
        flex: 1;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .hero-logo-text-container {
        gap: 0rem;
        padding: 5rem 0 0;
    }
    
    .hero-logo-container {
        max-width: 50%;
        padding: 5rem 0 0;
    }
}

@media (min-width: 1280px) {
    .hero-logo-text-container {
        gap: 0rem;
        padding: 5rem 0 0;
    }
    
    .hero-logo-container {
        padding: 5rem 0 0;
    }
}

/* Hero images optimization - Balanced with smaller logo */
.hero-basilica-right,
.hero-basilica-center,
.hero-basilica-left {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .hero-basilica-right,
    .hero-basilica-center,
    .hero-basilica-left {
        height: 140px;
    }
}

@media (min-width: 1024px) {
    .hero-basilica-right,
    .hero-basilica-center,
    .hero-basilica-left {
        height: 160px;
    }
}

@media (min-width: 1280px) {
    .hero-basilica-right,
    .hero-basilica-center,
    .hero-basilica-left {
        height: 180px;
    }
}

@media (min-width: 1536px) {
    .hero-basilica-right,
    .hero-basilica-center,
    .hero-basilica-left {
        height: 200px;
    }
}

/* Ensure bottom image is visible and compact */
.hero-basilica-center {
    margin-top: 0.5rem;
    height: 192px;
    min-height: 192px;
}

@media (min-width: 640px) {
    .hero-basilica-center {
        height: 224px;
        min-height: 224px;
    }
}

@media (min-width: 1024px) {
    .hero-basilica-center {
        margin-top: 0.75rem;
        height: 288px;
        min-height: 288px;
    }
}

@media (min-width: 1280px) {
    .hero-basilica-center {
        margin-top: 1rem;
        height: 320px;
        min-height: 320px;
    }
}

@media (min-width: 1536px) {
    .hero-basilica-center {
        height: 360px;
        min-height: 360px;
    }
}

/* Responsive text sizing */
.hero-title {
    font-size: 1.5rem;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

.hero-subtitle {
    font-size: 0.875rem;
    line-height: 1.4;
}

@media (min-width: 640px) {
    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {
    .hero-subtitle {
        font-size: 1.125rem;
    }
}

/* Ensure no overflow on small screens */
@media (max-width: 640px) {
    .hero-logo-container img {
        width: 16rem !important;
        height: 16rem !important;
        max-width: 16rem !important;
        max-height: 16rem !important;
    }
    
    .hero-logo-text-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .tamil-quote {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .tamil-quote img {
        width: 2rem;
        height: 2rem;
    }
}

/* Additional Hero Section Optimizations */
.hero-main-container {
    position: relative;
    z-index: 10;
}

/* Ensure proper spacing and alignment */
.hero-grid > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Logo visibility enhancement */
.hero-logo-container img {
    filter: brightness(1.1) contrast(1.1) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.hero-logo-container img:hover {
    filter: brightness(1.2) contrast(1.2) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
    transform: scale(1.02);
}

/* Text readability enhancement */
.hero-text-container {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments for very large screens */
@media (min-width: 1920px) {
    .hero-logo-container img {
        width: 28rem !important;
        height: 28rem !important;
        max-width: 28rem !important;
        max-height: 28rem !important;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* High DPI display optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-logo-container img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Font Family Configuration */
.font-inter {
    font-family: 'Inter', sans-serif;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 1s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 1s ease-out;
}

.animate-fade-in-scale {
    animation: fadeInScale 1s ease-out;
}

.animate-slide-in-bottom {
    animation: slideInFromBottom 1s ease-out;
}

.animate-pulse-custom {
    animation: pulse 2s infinite;
}

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

/* Custom Button Styles */
.btn-primary {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.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: left 0.5s;
}

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

.btn-secondary {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

/* Navigation Styles */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #f59e0b;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

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

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

/* 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: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Glass Morphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Custom Shadows */
.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.shadow-custom-lg {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Text Selection */
::selection {
    background-color: #f59e0b;
    color: white;
}

::-moz-selection {
    background-color: #f59e0b;
    color: white;
}

/* Focus Styles */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.5);
}

/* Responsive Typography */
@media (max-width: 640px) {
    .text-responsive {
        font-size: 1.5rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .text-responsive {
        font-size: 2rem;
    }
}

@media (min-width: 1025px) {
    .text-responsive {
        font-size: 2.5rem;
    }
}

/* Custom Grid Layouts */
.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-auto-fill {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Intersection Observer Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Custom Form Styles */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Custom Icon Styles */
.icon-bounce {
    transition: transform 0.3s ease;
}

.icon-bounce:hover {
    transform: scale(1.2) rotate(5deg);
}

/* Custom Background Patterns */
.bg-pattern-dots {
    background-image: radial-gradient(circle, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.bg-pattern-grid {
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Custom Utilities */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.text-shadow-lg {
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.4);
}

.backdrop-blur-custom {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid currentColor;
    }
    
    .btn-secondary {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .auto-dark {
        background-color: #1f2937;
        color: #f9fafb;
    }
}

/* Custom Component Styles */
.hero-gradient {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #581c87 100%);
}

.section-gradient {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.card-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

/* Hero Section Specific Styles */
.hero-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.hero-image-container:hover::before {
    opacity: 1;
}

.hero-image-container img {
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.9) contrast(1.1);
}

.hero-image-container:hover img {
    transform: scale(1.05) rotate(1deg);
    filter: brightness(1) contrast(1.2);
}

.hero-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    z-index: 2;
}

.hero-image-container:hover .hero-image-overlay {
    transform: translateY(0);
}

.hero-icon {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-image-container:hover .hero-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.3);
}

/* Floating Elements Animation */
.floating-element {
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(2) {
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    animation-delay: 4s;
}

/* Enhanced Text Animations */
.hero-title {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 50%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Responsive Hero Adjustments */
@media (max-width: 1024px) {
    .hero-image-container {
        margin-bottom: 2rem;
    }
    
    .hero-image-container img {
        height: 16rem;
    }
}

@media (max-width: 768px) {
    .hero-image-container img {
        height: 14rem;
    }
    
    .hero-image-overlay {
        transform: translateY(0);
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    }
}

/* Image Loading States */
.hero-image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Custom Animation Delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* Custom Hover States */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
}

/* Custom Border Styles */
.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, #3b82f6, #8b5cf6) 1;
}

/* Custom Typography */
.heading-underline {
    position: relative;
}

.heading-underline::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

/* Custom Spacing */
.section-padding {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
}

/* Custom Container */
.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container-custom {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .container-custom {
        padding: 0 3rem;
    }
}

/* Enhanced UI/UX Improvements */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-border {
    position: relative;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #3b82f6, #8b5cf6) border-box;
    border: 2px solid transparent;
}

.text-gradient {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.card-glow {
    transition: all 0.3s ease;
}

.card-glow:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

/* Improved Button Styles */
.btn-modern {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

/* Enhanced Form Styles */
.form-input-modern {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-input-modern:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
    transform: translateY(-2px);
}

/* Improved Navigation */
.nav-item {
    position: relative;
    transition: all 0.3s ease;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-item:hover::after {
    width: 100%;
}

/* Enhanced Section Spacing */
.section-spacing {
    padding: 6rem 0;
}

@media (max-width: 768px) {
    .section-spacing {
        padding: 4rem 0;
    }
}

/* Improved Typography */
.heading-primary {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.heading-secondary {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

.text-body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.7;
}

/* Enhanced Card Styles */
.card-modern {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(59, 130, 246, 0.2);
}

/* Improved Image Styles */
.image-modern {
    transition: all 0.4s ease;
    border-radius: 1rem;
    overflow: hidden;
}

.image-modern:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Enhanced Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

/* Improved Accessibility */
.focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.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;
}

/* Enhanced Mobile Experience */
@media (max-width: 768px) {
    .mobile-optimized {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .mobile-spacing {
        margin-bottom: 2rem;
    }
}

/* Performance Optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .auto-dark {
        background-color: #1f2937;
        color: #f9fafb;
    }
    
    .auto-dark .card-modern {
        background-color: #374151;
        border-color: #4b5563;
    }
}

/* Logo Styling */
.logo-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.logo-container img {
    transition: all 0.3s ease;
}

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

/* Logo fallback */
.logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
}

/* Navigation Logo Styling - Removed (logo moved to hero section for better visibility) */

/* Logo glow animation */
@keyframes logo-glow {
    0% {
        box-shadow: 
            0 0 25px rgba(59, 130, 246, 0.7),
            0 0 50px rgba(139, 92, 246, 0.5),
            0 0 75px rgba(245, 158, 11, 0.3);
    }
    100% {
        box-shadow: 
            0 0 35px rgba(59, 130, 246, 0.9),
            0 0 70px rgba(139, 92, 246, 0.7),
            0 0 100px rgba(245, 158, 11, 0.5);
    }
}

.footer-logo {
    width: 4rem;
    height: 4rem;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: none;
    z-index: 10;
}

.footer-logo::before {
    display: none;
}

.footer-logo::after {
    display: none;
}

.footer-logo:hover {
    transform: scale(1.1);
}

.footer-logo img {
    filter: brightness(1.8) contrast(2.0) saturate(1.6) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
}

.footer-logo:hover img {
    filter: brightness(2.0) contrast(2.2) saturate(1.8) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6)) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
    transform: scale(1.05);
}

/* Enhanced logo fallback styling */
.logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

/* Nav logo fallback removed - logo moved to hero section */

.footer-logo .logo-fallback {
    font-size: 1.6rem;
    background: linear-gradient(135deg, #f59e0b, #3b82f6, #8b5cf6);
}

.logo-fallback:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Mobile logo optimizations */
@media (max-width: 768px) {
    .nav-logo {
        width: 4rem;
        height: 4rem;
    }
    
    .footer-logo {
        width: 3rem;
        height: 3rem;
    }
    
    /* Nav logo fallback removed - logo moved to hero section */
    
    .footer-logo .logo-fallback {
        font-size: 1.2rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .nav-logo img,
    .footer-logo img {
        filter: contrast(3) brightness(2) saturate(2);
    }
}

/* Enhanced Hero Section Styles */
.hero-main-image {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-main-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.hero-main-image:hover::before {
    opacity: 1;
}

.hero-floating-card {
    animation: floatCard 6s ease-in-out infinite;
    z-index: 5;
}

.hero-floating-card:nth-child(2) {
    animation-delay: 2s;
}

.hero-floating-card:nth-child(3) {
    animation-delay: 4s;
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(1deg);
    }
    50% {
        transform: translateY(-5px) rotate(0deg);
    }
    75% {
        transform: translateY(-15px) rotate(-1deg);
    }
}

/* Particle Animation */
.particle {
    animation: particleFloat 8s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) translateX(-5px);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-30px) translateX(15px);
        opacity: 0.8;
    }
}

/* Enhanced Button Animations */
.hero-cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta-button::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.6s;
}

.hero-cta-button:hover::before {
    left: 100%;
}

/* Text Animation Effects */
.hero-title {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 50%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Scroll Indicator Animation */
.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

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

/* Responsive Hero Adjustments */
@media (max-width: 1024px) {
    .hero-floating-card {
        position: relative !important;
        margin: 1rem 0;
        animation: none;
    }
    
    .hero-main-image {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-main-image img {
        height: 16rem;
    }
    
    .hero-floating-card {
        width: 12rem !important;
        height: 8rem !important;
    }
    
    .particle {
        display: none;
    }
}

/* Enhanced Glass Morphism */
.glass-morphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Advanced Hover Effects */
.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
    transform: translateY(-2px);
}

/* Loading Animation for Images */
.hero-image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

/* Enhanced Focus States */
.hero-focus:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.5);
}

/* Performance Optimizations */
.hero-optimized {
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* Dark Mode Hero Adjustments */
@media (prefers-color-scheme: dark) {
    .hero-main-image {
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    }
    
    .glass-morphism {
        background: rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* 2025 Trending Animations */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

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

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(0deg);
    }
    75% {
        transform: translateY(-30px) rotate(-5deg);
    }
}

@keyframes particle-float {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translateY(-30px) translateX(15px) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-15px) translateX(-10px) scale(0.9);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-40px) translateX(20px) scale(1.2);
        opacity: 1;
    }
}

/* 2025 Trending Classes */
.animate-gradient-shift {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease-in-out infinite;
}

.animate-gradient-text {
    background-size: 200% 200%;
    animation: gradient-text 3s ease-in-out infinite;
}

.animate-float-slow {
    animation: float-slow 12s ease-in-out infinite;
}

.animate-particle-float {
    animation: particle-float 10s ease-in-out infinite;
}

/* 2025 Trending Hero Cards */
.hero-basilica-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-basilica-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.hero-basilica-card:hover::before {
    opacity: 1;
}

.hero-basilica-card:hover {
    transform: scale(1.05) translateY(-16px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 2025 Trending Geometric Shapes */
.geometric-shape {
    transition: all 0.5s ease;
}

.geometric-shape:hover {
    transform: scale(1.1) rotate(10deg);
    opacity: 0.8;
}

/* 2025 Trending Particles */
.particle-2025 {
    transition: all 0.3s ease;
}

.particle-2025:hover {
    transform: scale(1.5);
    opacity: 1;
}

/* 2025 Trending Button Effects */
.hero-cta-2025 {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta-2025::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.8s;
}

.hero-cta-2025:hover::before {
    left: 100%;
}

.hero-cta-2025:hover {
    transform: scale(1.1);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.3);
}

/* 2025 Trending Typography */
.hero-title-2025 {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 30%, #e2e8f0 60%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background-size: 200% 200%;
    animation: gradient-text 4s ease-in-out infinite;
}

/* 2025 Trending Scroll Indicator */
.scroll-indicator-2025 {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

/* 2025 Trending Responsive Design */
@media (max-width: 1024px) {
    .hero-basilica-card {
        margin-bottom: 2rem;
    }
    
    .geometric-shape {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-basilica-card {
        height: 20rem;
    }
    
    .particle-2025 {
        display: none;
    }
    
    .hero-title-2025 {
        font-size: 3rem;
    }
}

/* 2025 Trending Performance Optimizations */
.hero-optimized-2025 {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* 2025 Trending Glass Morphism Enhanced */
.glass-morphism-2025 {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.glass-morphism-2025:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* 2025 Trending Focus States */
.hero-focus-2025:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.5);
    transform: scale(1.02);
}

/* 2025 Trending Loading States */
.hero-loading-2025 {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

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

/* 2025 Trending Ripple Effect */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple-effect {
    animation: ripple 0.6s linear;
}

/* 2025 Professional Typography Enhancements */
.professional-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.professional-body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

.professional-accent {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Enhanced Professional Cards */
.professional-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.professional-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Professional Button Styles */
.professional-button {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.professional-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Enhanced Professional Navigation */
.professional-nav {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.15) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.1);
}

/* Professional Section Spacing */
.professional-section {
    padding: 6rem 0;
}

/* Enhanced Professional Gradients */
.professional-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.professional-gradient-accent {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Tamil Spiritual Quote Styling */
.tamil-quote {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tamil-quote:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.tamil-text {
    font-family: 'Noto Sans Tamil', 'Tamil', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
}

.holy-spirit-dove {
    animation: holySpiritFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

@keyframes holySpiritFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-3px) scale(1.05);
    }
}

.bible-icons {
    transition: all 0.3s ease;
}

.bible-icons:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.5));
}

/* Professional Text Gradients */
.text-gradient-professional {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-accent {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Professional Form Elements */
.professional-input {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.professional-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: rgba(255, 255, 255, 1);
}

/* Professional Badge Styles */
.professional-badge {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

/* Enhanced Professional Shadows */
.professional-shadow {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.professional-shadow-lg {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.professional-shadow-xl {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

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

.professional-hover:hover {
    transform: translateY(-4px);
}

/* Professional Loading States */
.professional-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Professional Focus States */
.professional-focus:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Professional Responsive Typography */
@media (max-width: 768px) {
    .professional-heading {
        font-size: 2.5rem;
    }
    
    .professional-body {
        font-size: 1rem;
    }
    
    .professional-accent {
        font-size: 0.75rem;
    }
}

/* Mission Cards Styling */
.mission-card {
    position: relative;
    overflow: hidden;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

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

.mission-card:hover {
    transform: translateY(-16px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

/* Mission Card Icon Animations */
.mission-card .icon-container {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mission-card:hover .icon-container {
    transform: scale(1.1) rotate(6deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Enhanced Mission Section Background */
.mission-section-bg {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    position: relative;
}

.mission-section-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23667eea" fill-opacity="0.05"><circle cx="30" cy="30" r="2"/></g></svg>');
    opacity: 0.3;
}

/* Mission Card Gradient Overlays */
.mission-card-primary::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.mission-card-green::before {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.mission-card-accent::before {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
}

.mission-card-purple::before {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
}

.mission-card-red::before {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(248, 113, 113, 0.05) 100%);
}

.mission-card-indigo::before {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(129, 140, 248, 0.05) 100%);
}

/* Mission Card Hover Effects */
.mission-card:hover .mission-icon {
    animation: missionIconPulse 0.6s ease-in-out;
}

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

/* Mission Section Responsive */
@media (max-width: 1024px) {
    .mission-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .mission-card {
        padding: 1.5rem;
    }
    
    .mission-card .icon-container {
        width: 4rem;
        height: 4rem;
    }
    
    .mission-card .icon-container i {
        font-size: 2rem;
    }
}

/* 2025 Hero Section - New Layout */
.hero-basilica-left,
.hero-basilica-center,
.hero-basilica-right {
    position: relative;
    overflow: hidden;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-basilica-left::before,
.hero-basilica-center::before,
.hero-basilica-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.hero-basilica-left:hover::before,
.hero-basilica-center:hover::before,
.hero-basilica-right:hover::before {
    opacity: 1;
}

.hero-basilica-left:hover,
.hero-basilica-center:hover,
.hero-basilica-right:hover {
    transform: scale(1.05) translateY(-16px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

/* Hero Section Responsive Design */
@media (max-width: 1024px) {
    .hero-basilica-left,
    .hero-basilica-right {
        height: 20rem;
    }
    
    .hero-basilica-center {
        height: 16rem;
    }
}

@media (max-width: 768px) {
    .hero-basilica-left,
    .hero-basilica-center,
    .hero-basilica-right {
        height: 18rem;
        margin-bottom: 1rem;
    }
    
    .hero-basilica-left .text-2xl,
    .hero-basilica-center .text-2xl,
    .hero-basilica-right .text-2xl {
        font-size: 1.5rem;
    }
    
    .hero-basilica-left .text-lg,
    .hero-basilica-center .text-lg,
    .hero-basilica-right .text-lg {
        font-size: 1rem;
    }
}

/* Hero Section Animation Enhancements */
.hero-basilica-left img,
.hero-basilica-center img,
.hero-basilica-right img {
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-basilica-left:hover img,
.hero-basilica-center:hover img,
.hero-basilica-right:hover img {
    transform: scale(1.1);
}

/* Hero Section Icon Animations */
.hero-basilica-left .w-14,
.hero-basilica-center .w-14,
.hero-basilica-right .w-14 {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-basilica-left:hover .w-14,
.hero-basilica-center:hover .w-14,
.hero-basilica-right:hover .w-14 {
    transform: scale(1.1) rotate(5deg);
}

/* Hero Section Content Overlay */
.hero-basilica-left .absolute.bottom-6,
.hero-basilica-center .absolute.bottom-6,
.hero-basilica-right .absolute.bottom-6 {
    transition: all 0.3s ease;
}

.hero-basilica-left:hover .absolute.bottom-6,
.hero-basilica-center:hover .absolute.bottom-6,
.hero-basilica-right:hover .absolute.bottom-6 {
    transform: translateY(-4px);
}

/* Hero Section Pulse Animation */
.hero-basilica-left .animate-pulse,
.hero-basilica-center .animate-pulse,
.hero-basilica-right .animate-pulse {
    animation: heroPulse 2s ease-in-out infinite;
}

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

/* Hero Section Full Height Optimization */
@media (min-height: 800px) {
    .hero-basilica-left,
    .hero-basilica-right {
        height: 28rem;
    }
    
    .hero-basilica-center {
        height: 22rem;
    }
}

@media (min-height: 1000px) {
    .hero-basilica-left,
    .hero-basilica-right {
        height: 32rem;
    }
    
    .hero-basilica-center {
        height: 26rem;
    }
}

/* Enhanced Hero Background Animations - 2025 Trending */
@keyframes orb-float {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) translateX(20px) scale(1.1) rotate(90deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-15px) translateX(-10px) scale(0.9) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-40px) translateX(25px) scale(1.2) rotate(270deg);
        opacity: 0.6;
    }
}

@keyframes morphing-blob {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        border-radius: 50% 30% 60% 50% / 30% 50% 60% 70%;
        transform: translateY(-10px) rotate(180deg);
    }
    75% {
        border-radius: 40% 70% 30% 60% / 70% 40% 50% 30%;
        transform: translateY(-30px) rotate(270deg);
    }
}

@keyframes floating-card {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    25% {
        transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }
    50% {
        transform: translateY(-8px) rotateX(-3deg) rotateY(-3deg);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    }
    75% {
        transform: translateY(-20px) rotateX(8deg) rotateY(-5deg);
        box-shadow: 0 25px 45px rgba(0, 0, 0, 0.18);
    }
}

@keyframes neon-pulse {
    0%, 100% {
        box-shadow: 
            0 0 5px rgba(59, 130, 246, 0.5),
            0 0 10px rgba(59, 130, 246, 0.3),
            0 0 15px rgba(59, 130, 246, 0.2);
    }
    50% {
        box-shadow: 
            0 0 10px rgba(59, 130, 246, 0.8),
            0 0 20px rgba(59, 130, 246, 0.6),
            0 0 30px rgba(59, 130, 246, 0.4);
    }
}

@keyframes light-sweep {
    0% {
        transform: translateY(-100%) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(5deg);
        opacity: 0;
    }
}

@keyframes enhanced-particle-float {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.4;
    }
    20% {
        transform: translateY(-25px) translateX(15px) scale(1.1);
        opacity: 0.7;
    }
    40% {
        transform: translateY(-10px) translateX(-8px) scale(0.9);
        opacity: 0.5;
    }
    60% {
        transform: translateY(-35px) translateX(20px) scale(1.2);
        opacity: 0.8;
    }
    80% {
        transform: translateY(-20px) translateX(-5px) scale(1.05);
        opacity: 0.6;
    }
}

@keyframes enhanced-geometric-float {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) scale(0.9);
        opacity: 0.7;
    }
    75% {
        transform: translateY(-30px) scale(1.2);
        opacity: 0.9;
    }
}

/* Enhanced Animation Classes - 2025 Trending */
.animate-orb-float {
    animation: orb-float 15s ease-in-out infinite;
}

.animate-morphing-blob {
    animation: morphing-blob 20s ease-in-out infinite;
}

.animate-floating-card {
    animation: floating-card 8s ease-in-out infinite;
}

.animate-neon-pulse {
    animation: neon-pulse 3s ease-in-out infinite;
}

.animate-light-sweep {
    animation: light-sweep 12s linear infinite;
}

.animate-enhanced-particle-float {
    animation: enhanced-particle-float 14s ease-in-out infinite;
}

.animate-enhanced-geometric-float {
    animation: enhanced-geometric-float 16s ease-in-out infinite;
}

/* Hero Orb Styling */
.hero-orb {
    transition: all 0.3s ease;
}

.hero-orb:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Light Beam Styling */
.light-beam {
    transition: all 0.3s ease;
}

.light-beam:hover {
    opacity: 0.8;
    transform: scaleX(2);
}

/* Enhanced Geometric Shape Styling */
.geometric-shape {
    transition: all 0.5s ease;
}

.geometric-shape:hover {
    transform: scale(1.2) rotate(45deg);
    opacity: 0.8;
}

/* Enhanced Particle Styling */
.particle-2025 {
    transition: all 0.3s ease;
}

.particle-2025:hover {
    transform: scale(2);
    opacity: 1;
}

/* Performance Optimizations */
.hero-orb,
.light-beam,
.geometric-shape,
.particle-2025 {
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* Responsive Hero Animations */
@media (max-width: 768px) {
    .hero-orb {
        display: none;
    }
    
    .light-beam {
        display: none;
    }
    
    .geometric-shape {
        display: none;
    }
    
    .particle-2025 {
        display: none;
    }
    
    /* Keep floating card animation on mobile but reduce intensity */
    .animate-floating-card {
        animation-duration: 12s;
    }
}

@media (max-width: 1024px) {
    .hero-orb {
        opacity: 0.5;
    }
    
    .light-beam {
        opacity: 0.3;
    }
    
    .animate-floating-card {
        animation-duration: 12s;
    }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 640px) {
    .hero-basilica-left,
    .hero-basilica-center,
    .hero-basilica-right {
        margin-bottom: 1rem;
    }
    
    /* Ensure images are visible on mobile */
    .hero-basilica-left,
    .hero-basilica-center,
    .hero-basilica-right {
        min-height: 20rem;
    }
    
    .hero-basilica-left .text-lg,
    .hero-basilica-center .text-lg,
    .hero-basilica-right .text-lg {
        font-size: 1rem;
    }
    
    .hero-basilica-left .text-2xl,
    .hero-basilica-center .text-2xl,
    .hero-basilica-right .text-2xl {
        font-size: 1.25rem;
    }
}

/* Extra Large Screen Optimizations */
@media (min-width: 1536px) {
    .hero-basilica-left,
    .hero-basilica-right {
        height: 28rem;
    }
    
    .hero-basilica-center {
        height: 24rem;
    }
}

/* Hero Logo Styling - Clean Display */
.hero-logo-container {
    position: relative;
    z-index: 20;
    display: inline-block;
    flex-shrink: 0;
}

.hero-logo-container img {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1.2) contrast(1.1);
}

.hero-logo-container:hover img {
    transform: scale(1.05);
    filter: brightness(1.3) contrast(1.2);
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
    .hero-logo-container img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Logo readability enhancements */
.hero-logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

/* High resolution display optimization */
@media (min-width: 1920px) and (min-height: 1200px) {
    .hero-logo-container {
        min-width: 20rem;
        min-height: 20rem;
    }
    
    /* Better spacing for high resolution */
    .space-y-2.lg\\:space-y-3 {
        margin-bottom: 4rem !important;
    }
}

/* Removed conflicting logo sizing rules - using unified responsive system above */

/* Prevent text cut-off and ensure proper spacing */
.hero-logo-container {
    flex-shrink: 0;
    overflow: visible;
}

/* Ensure the flex container doesn't cause overflow */
.flex.items-center.justify-center {
    flex-wrap: nowrap;
    overflow: visible;
}

/* Welcome text overlay styling */
.hero-logo-container .absolute.-top-8,
.hero-logo-container .absolute.-top-10,
.hero-logo-container .absolute.-top-12,
.hero-logo-container .absolute.-top-14,
.hero-logo-container .absolute.-top-16 {
    z-index: 30;
    pointer-events: none;
}

.hero-logo-container .absolute.-top-8 span,
.hero-logo-container .absolute.-top-10 span,
.hero-logo-container .absolute.-top-12 span,
.hero-logo-container .absolute.-top-14 span,
.hero-logo-container .absolute.-top-16 span {
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Ensure proper spacing to prevent bottom overlap */
.space-y-2.lg\\:space-y-3 {
    margin-bottom: 2rem !important;
}

@media (min-width: 1024px) {
    .space-y-2.lg\\:space-y-3 {
        margin-bottom: 3rem !important;
    }
}

/* Additional top padding for hero section */
.pt-8.sm\\:pt-12.md\\:pt-16.lg\\:pt-20.xl\\:pt-24 {
    padding-top: 2rem !important;
}

@media (min-width: 640px) {
    .pt-8.sm\\:pt-12.md\\:pt-16.lg\\:pt-20.xl\\:pt-24 {
        padding-top: 3rem !important;
    }
}

@media (min-width: 768px) {
    .pt-8.sm\\:pt-12.md\\:pt-16.lg\\:pt-20.xl\\:pt-24 {
        padding-top: 4rem !important;
    }
}

@media (min-width: 1024px) {
    .pt-8.sm\\:pt-12.md\\:pt-16.lg\\:pt-20.xl\\:pt-24 {
        padding-top: 5rem !important;
    }
}

@media (min-width: 1280px) {
    .pt-8.sm\\:pt-12.md\\:pt-16.lg\\:pt-20.xl\\:pt-24 {
        padding-top: 6rem !important;
    }
}

.hero-logo-container img {
    filter: brightness(1.3) contrast(1.4) saturate(1.3) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.hero-logo-container:hover img {
    filter: brightness(1.5) contrast(1.6) saturate(1.5) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    transform: scale(1.05);
}

/* Navigation Brand Styling */
.nav-brand {
    transition: all 0.3s ease;
}

.nav-brand:hover {
    transform: translateY(-1px);
}

.nav-brand h1 {
    background: linear-gradient(135deg, #1e40af, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.nav-brand:hover h1 {
    background: linear-gradient(135deg, #1d4ed8, #2563eb, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Background Animations */
@keyframes enhanced-gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
        opacity: 0.2;
    }
    25% {
        background-position: 100% 50%;
        opacity: 0.3;
    }
    50% {
        background-position: 50% 100%;
        opacity: 0.25;
    }
    75% {
        background-position: 50% 0%;
        opacity: 0.35;
    }
}

@keyframes floating-waves {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 0.15;
    }
    75% {
        transform: translateY(-30px) rotate(270deg);
        opacity: 0.25;
    }
}


/* Enhanced Animation Classes */
.animate-enhanced-gradient-shift {
    animation: enhanced-gradient-shift 8s ease-in-out infinite;
    background-size: 200% 200%;
}

.animate-floating-waves {
    animation: floating-waves 12s ease-in-out infinite;
}

/* Professional Hero Loading State */
#hero-loading {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

/* Loading Animation Enhancements */
#loading-progress {
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
    background-size: 200% 100%;
    animation: progressShimmer 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

@keyframes progressShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Loading Dots Animation */
#hero-loading .animate-bounce {
    animation: loadingBounce 1.4s ease-in-out infinite both;
}

@keyframes loadingBounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Logo Container Animation */
#hero-loading .w-24 {
    animation: logoFloat 3s ease-in-out infinite;
}

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

/* Loading Status Text Animation */
#loading-status {
    transition: all 0.3s ease;
    font-weight: 500;
}

#loading-status:last-child {
    color: #f59e0b;
    font-weight: 600;
}

/* Enhanced Loading Background */
#hero-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: backgroundPulse 4s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* ========================================
   COMPREHENSIVE MOBILE HERO SECTION FIX
   ======================================== */

/* Universal Mobile Fix - All devices below 1024px */
@media (max-width: 1024px) {
    #hero-loading {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 1rem !important;
        z-index: 9999 !important;
        overflow: hidden !important;
    }
    
    #hero-loading .text-center {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Logo container - Force to top */
    #hero-loading .text-center > .relative {
        order: 1 !important;
        margin-bottom: 1.5rem !important;
        display: block !important;
        width: auto !important;
        height: auto !important;
    }
    
    /* Content container - Force below logo */
    #hero-loading .text-center > .space-y-3,
    #hero-loading .text-center > .space-y-4 {
        order: 2 !important;
        display: block !important;
        width: 100% !important;
    }
}

/* Tablet and Large Mobile - 768px to 1024px */
@media (max-width: 1024px) and (min-width: 769px) {
    #hero-loading .text-center {
        max-width: 500px !important;
    }
    
    #hero-loading .w-16,
    #hero-loading .w-20,
    #hero-loading .w-24 {
        width: 5rem !important;
        height: 5rem !important;
    }
    
    #hero-loading h2 {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
    }
    
    #hero-loading p {
        font-size: 0.875rem !important;
        line-height: 1.4 !important;
    }
}

/* Standard Mobile - 481px to 768px */
@media (max-width: 768px) and (min-width: 481px) {
    #hero-loading .text-center {
        max-width: 400px !important;
    }
    
    #hero-loading .w-16,
    #hero-loading .w-20,
    #hero-loading .w-24 {
        width: 4rem !important;
        height: 4rem !important;
    }
    
    #hero-loading h2 {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
    }
    
    #hero-loading p {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }
    
    #hero-loading .space-y-3 > * + * {
        margin-top: 0.75rem !important;
    }
    
    #hero-loading .space-y-4 > * + * {
        margin-top: 1rem !important;
    }
}

/* Small Mobile - 320px to 480px */
@media (max-width: 480px) {
    #hero-loading {
        padding: 0.75rem !important;
    }
    
    #hero-loading .text-center {
        max-width: 100% !important;
        padding: 0 1rem !important;
    }
    
    #hero-loading .w-16,
    #hero-loading .w-20,
    #hero-loading .w-24 {
        width: 3.5rem !important;
        height: 3.5rem !important;
    }
    
    #hero-loading h2 {
        font-size: 1.25rem !important;
        line-height: 1.2 !important;
    }
    
    #hero-loading p {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
    }
    
    #hero-loading .space-y-3 > * + * {
        margin-top: 0.5rem !important;
    }
    
    #hero-loading .space-y-4 > * + * {
        margin-top: 0.75rem !important;
    }
    
    #hero-loading .mb-4,
    #hero-loading .mb-6 {
        margin-bottom: 1rem !important;
    }
    
    #hero-loading .mb-2,
    #hero-loading .mb-3 {
        margin-bottom: 0.5rem !important;
    }
}

/* ========================================
   ADDITIONAL MOBILE OPTIMIZATIONS
   ======================================== */

/* Progress bar and loading dots - All mobile devices */
@media (max-width: 1024px) {
    /* Progress bar */
    #hero-loading .h-1 {
        height: 0.25rem !important;
    }
    
    #hero-loading .h-1\.5 {
        height: 0.375rem !important;
    }
    
    /* Loading dots */
    #hero-loading .w-1\.5 {
        width: 0.25rem !important;
    }
    
    #hero-loading .h-1\.5 {
        height: 0.25rem !important;
    }
    
    #hero-loading .w-2 {
        width: 0.375rem !important;
    }
    
    #hero-loading .h-2 {
        height: 0.375rem !important;
    }
    
    /* Golden separator line */
    #hero-loading .h-px {
        height: 1px !important;
        opacity: 0.8 !important;
    }
    
    /* Welcome message */
    #hero-loading .text-accent-400 {
        color: #f59e0b !important;
        font-weight: 600 !important;
    }
}

/* Small mobile specific adjustments */
@media (max-width: 480px) {
    /* Progress bar */
    #hero-loading .h-1 {
        height: 0.2rem !important;
    }
    
    #hero-loading .h-1\.5 {
        height: 0.3rem !important;
    }
    
    /* Loading dots */
    #hero-loading .w-1\.5 {
        width: 0.2rem !important;
    }
    
    #hero-loading .h-1\.5 {
        height: 0.2rem !important;
    }
    
    #hero-loading .w-2 {
        width: 0.3rem !important;
    }
    
    #hero-loading .h-2 {
        height: 0.3rem !important;
    }
}

/* Loading Fade Out Animation */
#hero-loading.fade-out {
    animation: loadingFadeOut 0.8s ease-out forwards;
}

@keyframes loadingFadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Prevent animations from starting immediately on mobile */
@media (max-width: 768px) {
    .animate-enhanced-gradient-shift,
    .animate-floating-waves,
    .animate-float-slow,
    .animate-particle-float,
    .animate-morphing-blob,
    .animate-neon-pulse,
    .animate-light-sweep {
        animation-play-state: paused;
    }
    
    /* Enable animations after a delay */
    .hero-loaded .animate-enhanced-gradient-shift,
    .hero-loaded .animate-floating-waves,
    .hero-loaded .animate-float-slow,
    .hero-loaded .animate-particle-float,
    .hero-loaded .animate-morphing-blob,
    .hero-loaded .animate-neon-pulse,
    .hero-loaded .animate-light-sweep {
        animation-play-state: running;
    }
}

/* Reduce animation intensity on mobile */
@media (max-width: 768px) {
    .animate-float-slow {
        animation-duration: 20s; /* Slower animation */
        animation-timing-function: ease-in-out;
    }
    
    .animate-particle-float {
        animation-duration: 15s; /* Slower particle animation */
    }
    
    .animate-morphing-blob {
        animation-duration: 25s; /* Much slower morphing */
    }
    
    .animate-neon-pulse {
        animation-duration: 4s; /* Slower pulse */
    }
    
    .animate-light-sweep {
        animation-duration: 20s; /* Slower light sweep */
    }
}

/* Smooth animation transitions */
.animate-enhanced-gradient-shift,
.animate-floating-waves,
.animate-float-slow,
.animate-particle-float,
.animate-morphing-blob,
.animate-neon-pulse,
.animate-light-sweep {
    animation-fill-mode: both;
    animation-iteration-count: infinite;
    animation-direction: normal;
}

/* Prevent animation flicker on mobile */
@media (max-width: 768px) {
    .geometric-shape,
    .particle-2025,
    .hero-orb,
    .light-beam {
        will-change: auto;
        transform: translateZ(0);
        backface-visibility: hidden;
    }
}

/* Optimize animations for better performance */
@media (prefers-reduced-motion: reduce) {
    .animate-enhanced-gradient-shift,
    .animate-floating-waves,
    .animate-float-slow,
    .animate-particle-float,
    .animate-morphing-blob,
    .animate-neon-pulse,
    .animate-light-sweep {
        animation: none !important;
    }
}

/* Hero Section Anti-Collapse Fixes */
#home {
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
}

/* Ensure hero content doesn't collapse on mobile */
@media (max-width: 768px) {
    #home {
        min-height: 100vh;
        min-height: 100dvh;
        height: auto;
        min-height: 600px; /* Minimum height to prevent collapse */
    }
    
    #home .h-full {
        min-height: 600px;
    }
}

/* Prevent viewport height issues on mobile */
@media (max-width: 640px) {
    #home {
        min-height: 100vh;
        min-height: 100dvh;
        height: auto;
        min-height: 500px;
    }
    
    #home .h-full {
        min-height: 500px;
    }
}

/* Ensure proper spacing on all devices */
#home .min-h-full {
    min-height: 100vh;
    min-height: 100dvh;
}

@media (max-width: 768px) {
    #home .min-h-full {
        min-height: 600px;
    }
}

@media (max-width: 640px) {
    #home .min-h-full {
        min-height: 500px;
        height:auto !important;
    }
}

