/* Global Styles */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

@font-face {
    font-family: 'Lora';
    src: url('../fonts/Lora-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lora';
    src: url('../fonts/Lora-Italic-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Typography */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.display-4 {
    font-weight: 700;
    letter-spacing: -0.025em;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
}

/* EMGLINK Brand Styling */
.emglink-logo .emglink-text,
.emglink-text {
    letter-spacing: 0.15em;
    font-weight: 700;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
}

.emglink-logo:hover .emglink-text {
    color: var(--primary-dark);
    transition: color 0.3s ease;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
}

.hero-title {
    font-family: 'Lora', serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    font-size: 1.25rem;
}

/* Index page hero section - remove gradient but keep background image */
.hero-section-index {
    background: none !important;
    background-image: url('/static/images/background.jpeg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.hero-section-index::before {
    display: none !important;
}

/* Partners Scrolling Section */
.partners-scroll-container {
    overflow: hidden;
    position: relative;
    margin: 2rem 0;
}

.partners-scroll {
    display: flex;
    animation: scroll 30s linear infinite;
    gap: 3rem;
    align-items: center;
}

.partners-scroll:hover {
    animation-play-state: paused;
}

.partner-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

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

.partner-logo img {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
}

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


/* Buttons */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.fixed-language-btn {
    width: 100px;
    text-align: center;
}

.transparent-hover-menu .dropdown-item:active,
.transparent-hover-menu .dropdown-item:hover,
.transparent-hover-menu .dropdown-item:focus {
    background-color: transparent !important;
}

/* Cards */
.feature-card,
.service-card,
.testimonial-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 1rem;
}

.feature-card:hover,
.service-card:hover,
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon,
.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 123, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
}

.item-icon {
    width: 56px;
    height: 56px;
    background: rgba(222, 225, 231, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
}

.item-icon-opaque {
    background: white !important;
}

/* Compliance Section */
.compliance-item {
    padding: 2rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.compliance-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

/* Compliance Section */
.compliance-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.compliance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.compliance-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.compliance-card:hover::before {
    transform: scaleX(1);
}

.compliance-icon {
    width: 80px;
    height: 80px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.compliance-card:hover .compliance-icon {
    background: rgba(37, 99, 235, 0.2);
    transform: scale(1.1);
}

.compliance-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.compliance-card h4 {
    text-align: center;
}

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

.compliance-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.compliance-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 0.9rem;
}

.compliance-list li:last-child {
    margin-bottom: 0;
}

/* FAQ Accordion */
.accordion-item {
    border: none;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.accordion-button {
    background: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.accordion-body {
    background: white;
    border-radius: 0 0 0.5rem 0.5rem;
    padding: 1.5rem;
    color: var(--secondary-color);
}

/* Forms */
.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
}

footer a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: calc(1.5rem + 1.5vw);
        letter-spacing: -0.01em;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }

    .partners-scroll {
        gap: 2rem;
    }
    
    .partner-logo {
        height: 60px;
    }
    
    .partner-logo img {
        max-height: 40px;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .feature-card,
    .service-card,
    .testimonial-card {
        margin-bottom: 2rem;
    }
    
    .compliance-item {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 2.5rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: var(--gradient-primary) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-md {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* Legal Pages (Privacy, Terms of Service) - Sticky Sidebar Navigation */
.sticky-custom {
    position: sticky;
    top: 80px;
    align-self: flex-start;
}

/* Table of Contents Label - Better alignment for different languages */
.sticky-custom h2 {
    letter-spacing: 0.05em;
    min-height: 1.5rem;
    display: flex;
    align-items: center;
}

#priv-nav .nav-link,
#tos-nav .nav-link {
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
}

#priv-nav .nav-link:hover,
#tos-nav .nav-link:hover {
    background-color: rgba(37, 99, 235, 0.05);
    border-left-color: var(--primary-color);
}

#priv-nav .nav-link.active,
#tos-nav .nav-link.active {
    background-color: rgba(37, 99, 235, 0.1);
    border-left-color: var(--primary-color);
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
} 