/* Common CSS for Eternal Funding */

/* Base styles */
body {
    font-family: 'Inter', sans-serif;
}

.hero-bg {
    background-image: url('../background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.gradient-text {
    background: var(--eternal-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-text {
    color: white;
}

/* ===== NEW MODERN NAVBAR SYSTEM ===== */

/* Base Navbar Container */
.eternal-navbar {
    position: relative;
    z-index: 50;
    width: 100%;
    background: var(--eternal-glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--eternal-border-light);
    transition: all var(--eternal-transition-normal);
}

.eternal-navbar.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Navbar Inner Container */
.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--eternal-spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
}

/* Navbar Sections */
.navbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    transition: transform var(--eternal-transition-normal);
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-navigation {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    margin: 0 var(--eternal-spacing-xl);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--eternal-spacing-md);
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--eternal-spacing-sm);
    flex-shrink: 0;
}

/* Navigation Links */
.nav-link {
    position: relative;
    color: var(--eternal-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: var(--eternal-spacing-sm) var(--eternal-spacing-md);
    border-radius: var(--eternal-radius-lg);
    transition: all var(--eternal-transition-fast);
    display: flex;
    align-items: center;
    gap: var(--eternal-spacing-xs);
}

.nav-link:hover {
    color: var(--eternal-primary);
    background: var(--eternal-glass-bg-light);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--eternal-primary);
    background: var(--eternal-glass-bg-light);
    box-shadow: 0 2px 8px var(--eternal-shadow-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--eternal-primary);
    border-radius: 1px;
}

/* CTA Buttons */
.cta-button {
    background: var(--eternal-gradient-primary);
    color: var(--eternal-black);
    border: none;
    padding: var(--eternal-spacing-sm) var(--eternal-spacing-lg);
    border-radius: var(--eternal-radius-xl);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--eternal-transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--eternal-spacing-xs);
    box-shadow: 0 2px 10px var(--eternal-shadow-primary);
}

.cta-button:hover {
    background: var(--eternal-gradient-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--eternal-shadow-secondary);
}

.cta-button:active {
    transform: translateY(0);
}

/* Portal/Secondary Buttons */
.portal-button {
    background: var(--eternal-glass-bg-light);
    color: var(--eternal-primary);
    border: 1px solid var(--eternal-border-medium);
    padding: var(--eternal-spacing-sm) var(--eternal-spacing-lg);
    border-radius: var(--eternal-radius-xl);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--eternal-transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--eternal-spacing-xs);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.portal-button:hover {
    background: var(--eternal-border-medium);
    border-color: var(--eternal-primary);
    color: var(--eternal-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--eternal-shadow-primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--eternal-white);
    cursor: pointer;
    padding: var(--eternal-spacing-sm);
    border-radius: var(--eternal-radius-md);
    transition: all var(--eternal-transition-fast);
}

.mobile-menu-toggle:hover {
    background: var(--eternal-glass-bg-light);
    color: var(--eternal-primary);
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: none;
    flex-direction: column;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--eternal-spacing-lg);
    border-bottom: 1px solid var(--eternal-border-light);
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--eternal-white);
    cursor: pointer;
    padding: var(--eternal-spacing-sm);
    border-radius: var(--eternal-radius-md);
    transition: all var(--eternal-transition-fast);
}

.mobile-menu-close:hover {
    background: var(--eternal-glass-bg-light);
    color: var(--eternal-primary);
}

.mobile-menu-content {
    flex: 1;
    padding: var(--eternal-spacing-lg);
    overflow-y: auto;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    margin-bottom: var(--eternal-spacing-md);
}

.mobile-nav-link {
    display: block;
    color: var(--eternal-white);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: var(--eternal-spacing-md);
    border-radius: var(--eternal-radius-lg);
    transition: all var(--eternal-transition-fast);
    border: 1px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--eternal-glass-bg-light);
    color: var(--eternal-primary);
    border-color: var(--eternal-primary);
}

.mobile-menu-actions {
    padding: var(--eternal-spacing-lg);
    border-top: 1px solid var(--eternal-border-light);
    display: flex;
    flex-direction: column;
    gap: var(--eternal-spacing-md);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet and Mobile */
@media (max-width: 1024px) {
    .navbar-navigation {
        margin: 0 var(--eternal-spacing-lg);
    }

    .navbar-menu {
        gap: var(--eternal-spacing-md);
    }

    .navbar-container {
        padding: 0 var(--eternal-spacing-md);
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 var(--eternal-spacing-md);
        min-height: 64px;
    }

    .navbar-navigation {
        display: none;
    }

    .navbar-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu {
        display: none;
    }

    .mobile-menu.active {
        display: flex;
    }

    .navbar-brand img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 0 var(--eternal-spacing-sm);
        min-height: 60px;
    }

    .navbar-brand img {
        height: 36px;
    }

    .mobile-menu-header {
        padding: var(--eternal-spacing-md);
    }

    .mobile-menu-content {
        padding: var(--eternal-spacing-md);
    }

    .mobile-menu-actions {
        padding: var(--eternal-spacing-md);
    }

    .mobile-nav-link {
        font-size: 1rem;
        padding: var(--eternal-spacing-sm) var(--eternal-spacing-md);
    }
}

/* ===== LEGACY SUPPORT ===== */
.nav-glass {
    background: var(--eternal-glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--eternal-border-light);
}

.trust-rating {
    background: var(--eternal-glass-bg);
    border: 1px solid var(--eternal-border-light);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.star {
    color: #fbbf24;
}

/* Carousel styles */
.carousel {
    animation: scroll 30s linear infinite;
}

.carousel:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Evaluation card styles */
.evaluation-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.evaluation-card:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.evaluation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.evaluation-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: var(--eternal-gradient-primary);
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--eternal-shadow-primary);
}

.evaluation-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
    stroke-width: 2;
}

/* Content section styles */
.content-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Footer styles */
footer {
    background: black;
    border-top: 1px solid #374151;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .hero-bg {
        background-attachment: scroll;
    }

    .nav-glass {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

/* Common section styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #64748b;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    margin-bottom: 1rem;
}

.branded-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    position: relative;
}

.branded-title::after {
    content: '®';
    font-size: 0.75rem;
    vertical-align: super;
    opacity: 0.6;
}

.clean-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}
