/* Custom Modern CSS for MarvelAcademy - Advanced Look */

:root {
    --primary: #2d5bf6;
    --primary-dark: #1a3cb3;
    --primary-light: #5c7cfa;
    --secondary: #00102E;
    --accent: #00d084;
    --accent-glow: rgba(0, 208, 132, 0.4);
    --text-dark: #0f172a;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --surface: #ffffff;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-primary: 0 10px 25px -5px rgba(45, 91, 246, 0.4);
    
    /* Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   Global Reset & Base
   ========================================= */
body {
    background-color: var(--bg-light);
    font-family: 'Poppins', 'Roboto', sans-serif;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: var(--radius-full);
    border: 3px solid var(--bg-light);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

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

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

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

/* Scroll Reveal Classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Header & Nav
   ========================================= */
.main-header.header_layout_2 {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-sm) !important;
    transition: var(--transition-base);
}

.main-header.sticky-active {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: var(--shadow-md) !important;
}

#mainnav > ul > li > a {
    color: var(--secondary) !important;
    font-weight: 600;
    padding: 8px 16px !important;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    position: relative;
    z-index: 1;
}

#mainnav > ul > li > a:hover,
#mainnav > ul > li > a.active {
    color: var(--primary) !important;
    background: rgba(45, 91, 246, 0.08) !important;
}

/* =========================================
   Hero Section
   ========================================= */
.sydney-hero-area, 
.elementor-element-970bfbc {
    position: relative;
    overflow: hidden;
}

.elementor-element-970bfbc::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 16, 46, 0.95) 0%, rgba(45, 91, 246, 0.85) 100%) !important;
    z-index: 0;
}

/* Add a subtle texture overlay */
.elementor-element-970bfbc::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
    opacity: 0.4;
}

.elementor-element-970bfbc .elementor-heading-title {
    color: var(--white) !important;
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
    text-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 1.5rem !important;
    position: relative;
    z-index: 1;
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.elementor-element-970bfbc p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.25rem !important;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
    opacity: 0; /* Initial state for animation */
}

/* =========================================
   Modern Buttons
   ========================================= */
.elementor-button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    border-radius: var(--radius-full) !important;
    padding: 16px 36px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    font-size: 1rem !important;
    box-shadow: var(--shadow-primary) !important;
    transition: var(--transition-base) !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none !important;
}

.elementor-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
    z-index: -1;
}

.elementor-button:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 15px 30px -5px rgba(45, 91, 246, 0.6) !important;
}

.elementor-button:hover::before {
    left: 100%;
    transition: 0.7s;
}

/* =========================================
   Cards & Containers
   ========================================= */
.elementor-widget-wrap {
    transition: var(--transition-base) !important;
}

.services-advanced .elementor-widget-wrap,
.why-advanced .elementor-widget-wrap,
.elementor-element-investment-grid .elementor-widget-wrap,
.testimonial-cards .card {
    background: var(--surface) !important;
    border-radius: var(--radius-lg) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: var(--shadow-md) !important;
    overflow: hidden;
    position: relative;
}

/* Hover effects for cards */
.services-advanced .elementor-widget-wrap:hover,
.why-advanced .elementor-widget-wrap:hover,
.elementor-element-investment-grid .elementor-widget-wrap:hover {
    transform: translateY(-8px) !important;
    box-shadow: var(--shadow-xl) !important;
    border-color: rgba(45, 91, 246, 0.1) !important;
}

.services-advanced .elementor-widget-image img,
.elementor-element-investment-grid .elementor-widget-image img {
    border-radius: var(--radius-md) !important;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.elementor-widget-wrap:hover .elementor-widget-image img {
    transform: scale(1.05);
}

/* Why Advanced Icons */
.why-advanced .elementor-icon-box .elementor-icon {
    background: rgba(45, 91, 246, 0.08) !important;
    color: var(--primary) !important;
    transition: var(--transition-base);
}

.why-advanced .elementor-widget-wrap:hover .elementor-icon-box .elementor-icon {
    background: var(--primary) !important;
    color: var(--white) !important;
    transform: rotateY(180deg);
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
    background-color: var(--secondary) !important;
    position: relative;
    padding-top: 4rem;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-dark));
}

.footer-widgets-grid h3 {
    color: var(--white) !important;
    font-size: 1.25rem !important;
    margin-bottom: 1.5rem !important;
}

/* =========================================
   Utilities & Extras
   ========================================= */
.investment-minimum-badge {
    background: rgba(0, 208, 132, 0.1) !important;
    color: var(--accent) !important;
    border: 1px solid rgba(0, 208, 132, 0.2);
    padding: 6px 16px !important;
    border-radius: var(--radius-full) !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
}

.floating-cta {
    background: var(--primary) !important;
    box-shadow: var(--shadow-lg) !important;
    transition: var(--transition-base) !important;
}

.floating-cta:hover {
    transform: translateY(-4px) scale(1.05) !important;
    background: var(--primary-dark) !important;
}

/* Custom Selection Color */
::selection {
    background: var(--primary);
    color: var(--white);
}

/* Fix for Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Trust Badges */
.trust-badges .badge-card {
    background: var(--white) !important;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}
.trust-badges .badge-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}


