/* =====================================================
   ROLLEN INVESTMENTS - ENHANCEMENT LAYER
   Adds dynamism while preserving existing design
   ===================================================== */

/* ===== ENHANCED LOGO VISIBILITY ===== */

/* Larger, more prominent logo in navigation */
.navbar .logo img {
    height: 65px !important; /* Increased from 55px */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled .logo img {
    height: 52px !important; /* Increased from 45px */
}

/* Enhanced logo hover effect */
.navbar .logo {
    position: relative;
}

.navbar .logo::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-rich-purple));
    transition: width 0.4s ease;
}

.navbar .logo:hover::after {
    width: 100%;
}

/* Hero logo - larger and more refined */
.hero-logo img {
    height: 95px !important; /* Increased from 80px */
    filter: brightness(0) invert(1) drop-shadow(0 4px 20px rgba(212, 175, 55, 0.3));
    animation: logoFloat 3s ease-in-out infinite;
}

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

/* Footer logo enhancement */
.footer-logo {
    height: 60px !important; /* Increased from 50px */
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 10px rgba(212, 175, 55, 0.2));
}

.footer-logo:hover {
    filter: drop-shadow(0 4px 15px rgba(212, 175, 55, 0.4));
    transform: scale(1.05);
}

/* ===== ENHANCED SCROLL ANIMATIONS ===== */

/* Smooth reveal on scroll */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays for groups */
.scroll-animate:nth-child(1) { transition-delay: 0s; }
.scroll-animate:nth-child(2) { transition-delay: 0.1s; }
.scroll-animate:nth-child(3) { transition-delay: 0.2s; }
.scroll-animate:nth-child(4) { transition-delay: 0.3s; }
.scroll-animate:nth-child(5) { transition-delay: 0.4s; }

/* ===== ENHANCED HOVER EFFECTS ===== */

/* Enhanced button hover - more dynamic */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.btn:hover::after {
    width: 300%;
    height: 300%;
}

.btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* Enhanced card hover - more sophisticated */
.card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.05) 0%, 
        rgba(77, 109, 184, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
    pointer-events: none;
}

.card:hover::after {
    opacity: 1;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
}

/* Card icon pulse effect */
.card-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 30px rgba(77, 109, 184, 0.4);
}

/* ===== ENHANCED LINK INTERACTIONS ===== */

/* Navigation links - more dynamic underline */
.nav-menu a {
    position: relative;
}

.nav-menu a::after {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left;
}

.nav-menu a:hover::after {
    width: 100%;
    box-shadow: 0 2px 8px rgba(77, 109, 184, 0.4);
}

/* Footer links glow effect */
.footer-links a,
.footer-contact a {
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::before,
.footer-contact a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover::before {
    left: -15px;
    opacity: 1;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--color-gold) !important;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    transform: translateX(5px);
}

/* ===== SECTION TRANSITIONS ===== */

/* Smooth section entrance */
.section {
    transition: all 0.3s ease;
}

/* Section title animations */
.section-title {
    transition: all 0.4s ease;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--color-gold), 
        transparent);
    opacity: 0;
    transition: all 0.6s ease;
}

.section-title.animated::after {
    opacity: 1;
    width: 120px;
}

/* ===== IMAGE ENHANCEMENTS ===== */

/* All images get subtle zoom on hover */
img {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-image img,
.trust-visual,
.gold-showcase {
    position: relative;
    overflow: hidden;
}

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

/* Image overlay fade effect */
.feature-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(39, 33, 71, 0.1) 0%, 
        rgba(77, 109, 184, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-image:hover::after {
    opacity: 1;
}

/* ===== STATS COUNTER ENHANCEMENT ===== */

.stat-number {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--color-gold);
    transition: width 0.6s ease 0.3s;
}

.stat-item:hover .stat-number::after {
    width: 60%;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
    color: var(--color-gold-light);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

/* ===== GOLD SHOWCASE ENHANCEMENTS ===== */

.gold-badge {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.gold-badge::before,
.gold-badge::after {
    content: '★';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0;
    transition: all 0.4s ease;
}

.gold-badge::before {
    left: -30px;
}

.gold-badge::after {
    right: -30px;
}

.gold-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(39, 33, 71, 0.4);
}

.gold-badge:hover::before {
    left: -20px;
    opacity: 1;
}

.gold-badge:hover::after {
    right: -20px;
    opacity: 1;
}

/* ===== PROCESS CARDS ENHANCEMENT ===== */

.process-step-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-step-card:hover {
    transform: translateY(-12px) scale(1.03);
}

.step-number-large {
    transition: all 0.4s ease;
}

.process-step-card:hover .step-number-large {
    color: rgba(77, 109, 184, 0.25);
    transform: scale(1.1) rotate(-5deg);
}

/* ===== TRUST VISUAL ENHANCEMENTS ===== */

.trust-visual-overlay {
    transition: all 0.5s ease;
}

.trust-visual:hover .trust-visual-overlay {
    background: linear-gradient(135deg, 
        rgba(39, 33, 71, 0.85) 0%, 
        rgba(77, 109, 184, 0.75) 100%);
}

.trust-visual-content {
    transition: all 0.4s ease;
}

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

/* ===== LOGO SHOWCASE ENHANCEMENTS ===== */

.logo-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.logo-item::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width 0.4s ease;
}

.logo-item:hover {
    opacity: 1 !important;
    transform: translateY(-5px) scale(1.1);
}

.logo-item:hover::after {
    width: 80%;
}

.logo-item img {
    filter: drop-shadow(0 0 0 transparent);
    transition: filter 0.4s ease;
}

.logo-item:hover img {
    filter: drop-shadow(0 4px 15px rgba(212, 175, 55, 0.4));
}

/* ===== HERO SECTION ENHANCEMENTS ===== */

/* Hero content staggered animation */
.hero-content > * {
    animation-fill-mode: both;
}

/* Enhanced slogan appearance */
.hero-slogan {
    position: relative;
    transition: all 0.4s ease;
}

.hero-slogan::before,
.hero-slogan::after {
    content: '•';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gold);
    font-size: 1.2rem;
    opacity: 0.6;
    transition: all 0.4s ease;
}

.hero-slogan::before {
    left: -30px;
}

.hero-slogan::after {
    right: -30px;
}

/* ===== GRID ENHANCEMENTS ===== */

/* Grid items stagger on hover */
.grid-2 > *,
.grid-3 > *,
.grid-4 > * {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Neighbor cards slightly elevate when one is hovered */
.grid-2:hover > *:not(:hover),
.grid-3:hover > *:not(:hover),
.grid-4:hover > *:not(:hover) {
    opacity: 0.7;
    transform: scale(0.98);
}

/* ===== FEATURE IMAGE SECTION ENHANCEMENTS ===== */

.feature-image-section {
    position: relative;
}

.feature-content {
    transition: all 0.4s ease;
}

.feature-image-section:hover .feature-content {
    transform: translateX(10px);
}

.feature-image-section:hover .feature-image {
    transform: translateX(-10px);
}

/* ===== CTA SECTION ENHANCEMENTS ===== */

.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(212, 175, 55, 0.1) 0%, 
        transparent 70%);
    animation: ctaPulse 10s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.6; }
}

/* ===== NAVBAR SCROLL ENHANCEMENTS ===== */

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

.navbar.scrolled {
    backdrop-filter: blur(15px);
    box-shadow: 0 6px 35px rgba(0, 0, 0, 0.15);
}

/* ===== RESPONSIVE ENHANCEMENTS ===== */

@media (max-width: 768px) {
    /* Logo remains prominent on mobile */
    .navbar .logo img {
        height: 55px !important;
    }
    
    .hero-logo img {
        height: 75px !important;
    }
    
    /* Reduce animation intensity on mobile for performance */
    .card:hover {
        transform: translateY(-6px);
    }
    
    .btn:hover {
        transform: translateY(-2px);
    }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-animate {
        opacity: 1;
        transform: none;
    }
}

/* ===== FOCUS ENHANCEMENTS ===== */

/* Enhanced focus states for accessibility */
a:focus,
button:focus,
.btn:focus {
    outline: 3px solid var(--color-gold);
    outline-offset: 4px;
    transition: outline-offset 0.2s ease;
}

a:focus-visible,
button:focus-visible {
    outline-offset: 6px;
}

/* ===== SMOOTH SCROLL BEHAVIOR ===== */

html {
    scroll-behavior: smooth;
}

/* Smooth scroll padding for fixed navbar */
html {
    scroll-padding-top: 100px;
}

/* ===== LOADING STATES ===== */

/* Skeleton loading for images */
img:not([src]) {
    background: linear-gradient(90deg, 
        #f0f0f0 25%, 
        #e0e0e0 50%, 
        #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

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

/* ===== OUR PARTNERS SECTION ===== */

.partners-section {
    padding: 100px 0;
    background: var(--color-off-white);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    align-items: center;
    justify-items: center;
}

.partner-logo-item {
    width: 100%;
    max-width: 200px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Subtle gradient overlay on hover */
.partner-logo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(77, 109, 184, 0.05) 0%, 
        rgba(212, 175, 55, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.partner-logo-item:hover::before {
    opacity: 1;
}

.partner-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

/* Elegant hover effect */
.partner-logo-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 40px rgba(77, 109, 184, 0.15),
                0 0 0 2px rgba(212, 175, 55, 0.1);
}

.partner-logo-item:hover img {
    filter: grayscale(0) brightness(1.05);
    transform: scale(1.05);
}

/* Gold accent line appears on bottom */
.partner-logo-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--color-gold), 
        transparent);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

.partner-logo-item:hover::after {
    width: 80%;
}

/* Responsive adjustments for partners grid */
@media (max-width: 1024px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 2.5rem;
    }
    
    .partner-logo-item {
        max-width: 180px;
        height: 130px;
    }
}

@media (max-width: 768px) {
    .partners-section {
        padding: 70px 0;
    }
    
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 2rem;
    }
    
    .partner-logo-item {
        max-width: 160px;
        height: 120px;
        padding: 1.2rem;
    }
    
    /* Reduce hover intensity on mobile */
    .partner-logo-item:hover {
        transform: translateY(-4px) scale(1.02);
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .partner-logo-item {
        max-width: 140px;
        height: 110px;
        padding: 1rem;
    }
}