/* ========================================
   ROLLEN INVESTMENTS - INTERNAL PAGES DYNAMISM
   Professional Visual Enhancements
   Corporate, Elegant, Modern
   ======================================== */

/* ====================
   SMOOTH TRANSITIONS - ALL ELEMENTS
   ==================== */

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

/* Specific elements with custom transitions */
.btn,
.card,
.feature-card,
.value-card,
.service-card,
.contact-info-card,
.partner-logo-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====================
   BUTTON HOVER EFFECTS
   ==================== */

.btn-primary {
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(58, 49, 106, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(77, 109, 184, 0.3);
}

/* ====================
   CARD HOVER EFFECTS
   ==================== */

.feature-card,
.value-card,
.service-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card::before,
.value-card::before,
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(212, 175, 55, 0.1),
        transparent
    );
    transition: left 0.6s;
}

.feature-card:hover::before,
.value-card:hover::before,
.service-card:hover::before {
    left: 100%;
}

.feature-card:hover,
.value-card:hover,
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* ====================
   CONTACT INFO CARDS
   ==================== */

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

.contact-info-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #4d6db8);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-info-card:hover::after {
    width: 80%;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ====================
   LINK HOVER EFFECTS
   ==================== */

.nav-menu a {
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-strong-blue);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.footer-links a::after,
.footer-contact a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.footer-links a:hover::after,
.footer-contact a:hover::after {
    width: 100%;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #d4af37;
    transform: translateX(5px);
}

/* ====================
   PARTNER LOGOS HOVER
   ==================== */

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

.partner-logo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(77, 109, 184, 0.1));
    opacity: 0;
    transition: opacity 0.4s;
}

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

.partner-logo-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ====================
   FORM INPUTS FOCUS EFFECTS
   ==================== */

.form-group input,
.form-group select,
.form-group textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-strong-blue);
    box-shadow: 0 0 0 3px rgba(77, 109, 184, 0.1);
    transform: translateY(-2px);
}

/* ====================
   IMAGE HOVER EFFECTS
   ==================== */

.content-image {
    overflow: hidden;
    border-radius: 10px;
}

.content-image img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ====================
   SECTION ENTRANCE ANIMATIONS
   ==================== */

.section {
    animation: fadeIn 0.8s ease-out;
}

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

/* ====================
   STEP NUMBERS ENHANCEMENT
   ==================== */

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

.step-number::before,
.cta-step .step-number::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.2);
    opacity: 0;
    transition: all 0.4s;
}

.cta-step:hover .step-number::before {
    opacity: 1;
    width: 130%;
    height: 130%;
}

.cta-step:hover .step-number {
    transform: scale(1.1) rotate(5deg);
}

/* ====================
   CHALLENGE/SOLUTION BOXES
   ==================== */

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

.challenge::before,
.solution::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #d4af37, #4d6db8);
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.challenge:hover::before,
.solution:hover::before {
    height: 100%;
}

.challenge:hover,
.solution:hover {
    transform: translateX(10px);
}

/* ====================
   LOGO SHOWCASE EFFECTS
   ==================== */

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

.logo-showcase .logo-item:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 10px 20px rgba(212, 175, 55, 0.3));
}

/* ====================
   SCROLL PROGRESS INDICATOR (Optional)
   ==================== */

.section-light,
.section-dark {
    position: relative;
}

.section-light::before,
.section-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #4d6db8);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-light.in-view::before,
.section-dark.in-view::before {
    width: 100%;
}

/* ====================
   NAVBAR SCROLL EFFECT
   ==================== */

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

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

.navbar.scrolled .logo img {
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

/* ====================
   FOOTER ENTRANCE
   ==================== */

.footer {
    animation: fadeInUp 0.8s ease-out;
}

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

/* ====================
   SUBTLE PULSE EFFECT FOR PRIMARY EMAIL
   ==================== */

.contact-info-card a[href^="mailto:info@"] {
    position: relative;
    font-weight: 600;
}

.contact-info-card a[href^="mailto:info@"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 3px;
    background: rgba(212, 175, 55, 0.1);
    opacity: 0;
    transition: opacity 0.3s;
}

.contact-info-card:hover a[href^="mailto:info@"]::after {
    opacity: 1;
}

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

@media (max-width: 767px) {
    /* Reduce animation complexity on mobile */
    .feature-card:hover,
    .value-card:hover,
    .service-card:hover {
        transform: translateY(-4px);
    }
    
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: translateY(-2px);
    }
    
    /* Disable complex animations on mobile */
    .feature-card::before,
    .value-card::before,
    .service-card::before {
        display: none;
    }
    
    .btn-primary::before {
        display: none;
    }
}

/* ====================
   ACCESSIBILITY - FOCUS STATES
   ==================== */

*:focus {
    outline: 3px solid rgba(212, 175, 55, 0.5);
    outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(77, 109, 184, 0.5);
    outline-offset: 2px;
}

/* ====================
   SMOOTH SCROLLING
   ==================== */

html {
    scroll-behavior: smooth;
}

/* ====================
   VISUAL RHYTHM - SPACING CONSISTENCY
   ==================== */

.section + .section {
    position: relative;
}

.section + .section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    opacity: 0.3;
}
