/* ===================================
   PREMIUM VISUAL ENHANCEMENTS
   10/10 Polish & Sophistication
   =================================== */

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

/* Premium button hover effects */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

/* Premium card hover effects */
.highlight-card,
.service-card,
.team-card,
.health-stat-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.highlight-card:hover,
.service-card:hover,
.team-card:hover,
.health-stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.3);
}

/* Glowing accent border animation */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3), 0 0 40px rgba(212, 175, 55, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.5), 0 0 60px rgba(212, 175, 55, 0.3);
    }
}

.press-kit,
.cta-box,
.hero-badge {
    animation: glow 3s ease-in-out infinite;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #E8C547 0%, #D4AF37 50%, #B8941F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Premium section dividers */
.section-header::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 30px auto 0;
    border-radius: 2px;
}

/* Floating animation for icons */
@keyframes float-icon {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.highlight-icon,
.stat-icon i,
.health-stat-icon i {
    animation: float-icon 3s ease-in-out infinite;
}

/* Shimmer effect on hover */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
    pointer-events: none;
}

/* Premium text shadows */
.hero-title,
.section-title {
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
}

/* Subtle pulse on important elements */
@keyframes subtle-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.9;
    }
}

.stat-badge,
.hero-badge {
    animation: subtle-pulse 4s ease-in-out infinite;
}

/* Premium scroll indicator */
.scroll-indicator {
    animation: bounce 2s ease-in-out infinite;
}

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

/* Image zoom on hover */
.photo-item img,
.team-image img {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.photo-item:hover img,
.team-card:hover .team-image img {
    transform: scale(1.1);
}

/* Premium link underline animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

/* Rotating gradient background */
@keyframes rotate-gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-bg {
    background: linear-gradient(270deg, #000000, #1a1a1a, #2a2a2a);
    background-size: 600% 600%;
    animation: rotate-gradient 15s ease infinite;
}

/* Premium testimonial card styling */
.testimonial-card {
    backdrop-filter: blur(10px);
    background: rgba(245, 245, 245, 0.95) !important;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.testimonial-card.active {
    border: 2px solid var(--accent);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
}

/* Parallax effect enhancement */
.hero {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* Premium loader for slow connections */
@keyframes loader-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loader {
    border: 4px solid rgba(212, 175, 55, 0.2);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: loader-spin 1s linear infinite;
}

/* Sophisticated fade-in for sections */
section {
    opacity: 0;
    animation: fade-in-up 0.8s ease forwards;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation delays for child elements */
.highlights-grid > *:nth-child(1) { animation-delay: 0.1s; }
.highlights-grid > *:nth-child(2) { animation-delay: 0.2s; }
.highlights-grid > *:nth-child(3) { animation-delay: 0.3s; }
.highlights-grid > *:nth-child(4) { animation-delay: 0.4s; }

/* Premium gold accents with glow */
.institution-badges span,
.stat-badge,
.team-badge {
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.institution-badges span:hover,
.stat-badge:hover,
.team-badge:hover {
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
    transform: translateY(-5px);
}

/* Elegant scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-light), var(--accent-dark));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Premium focus states */
*:focus {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

button:focus,
a:focus {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

/* Sophisticated image loading effect */
img {
    opacity: 0;
    animation: image-fade-in 0.6s ease forwards;
}

@keyframes image-fade-in {
    to {
        opacity: 1;
    }
}

/* Premium divider lines */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 60px 0;
}

/* Luxury spacing */
.section-spacer {
    height: 100px;
}

/* Premium modal/overlay effects */
.overlay {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
}

/* Elegant tooltip */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    padding: 8px 16px;
    background: var(--accent);
    color: var(--primary);
    font-size: 14px;
    white-space: nowrap;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Premium selection color */
::selection {
    background: var(--accent);
    color: var(--primary);
}

::-moz-selection {
    background: var(--accent);
    color: var(--primary);
}

/* Sophisticated number counter animation */
@keyframes count-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    animation: count-up 0.8s ease;
}

/* Premium video/media controls */
video {
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Luxury spacing for premium feel */
.hero {
    min-height: 100vh;
}

section {
    padding: 120px 0;
}

/* Premium mobile optimizations */
@media (max-width: 768px) {
    section {
        padding: 50px 0 !important;
    }

    .press-kit {
        padding: 40px 0 !important;
    }

    .impact-stats {
        padding: 50px 0 40px 0 !important;
    }

    .hero {
        background-attachment: scroll !important;
        min-height: 600px !important;
    }
    
    .btn:hover {
        transform: translateY(-2px);
    }
    
    .highlight-card:hover,
    .service-card:hover {
        transform: translateY(-5px) scale(1.01);
    }

    /* Disable heavy animations on mobile */
    .highlight-icon,
    .stat-icon i,
    .health-stat-icon i {
        animation: none;
    }

    img {
        animation: none;
        opacity: 1;
    }

    .btn::before {
        display: none;
    }
}

@media (max-width: 480px) {
    section {
        padding: 40px 0 !important;
    }

    .hero {
        min-height: 500px !important;
    }

    .section-spacer {
        height: 50px;
    }

    .divider {
        margin: 40px 0;
    }
}

/* Ultra-premium text reveal animation */
@keyframes text-reveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.hero-title,
.hero-subtitle {
    animation: text-reveal 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.hero-subtitle {
    animation-delay: 0.2s;
}

/* Premium loading state */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

/* Pulse animation for statistics */
@keyframes pulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 0.8;
    }
}
