/* 4Pay.online - Main Styles */

/* Root Variables */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #333333;
    --text-color: #2c2c2c;
    --text-muted: #6b7280;
    --background-color: #ffffff;
    --light-gray: #f8fafc;
    --medium-gray: #e2e8f0;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    font-weight: 300;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--medium-gray);
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    position: relative;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.01em;
}

/* Desktop Navigation */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    font-weight: 400;
    white-space: nowrap;
}

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

/* Language Selectors */
.language-selector {
    margin-left: 1.5rem;
}

.language-selector select,
.language-selector-mobile select {
    border: none;
    padding: 0.5rem 0.75rem;
    background: transparent;
    color: var(--text-muted);
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.language-selector select:hover,
.language-selector-mobile select:hover {
    color: var(--text-color);
}

.language-selector select:focus,
.language-selector-mobile select:focus {
    color: var(--primary-color);
}

.language-selector-mobile {
    margin-right: 1rem;
}

.language-selector-mobile select {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

/* Mobile Navigation */
.navbar-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.navbar-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.navbar-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.navbar-menu-mobile {
    position: absolute;
    top: calc(100% + 1.5rem);
    left: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid var(--medium-gray);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 1.5rem 0;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.navbar-menu-mobile.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.nav-link-mobile {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.75rem 2rem;
    border-bottom: 1px solid var(--light-gray);
    font-size: 1rem;
    transition: color 0.3s ease;
}

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

.nav-link-mobile:last-child {
    border-bottom: none;
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 400;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #1a1a1a);
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
    color: white;
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Hero Section */
.hero {
    background-color: var(--background-color);
    text-align: center;
    padding: 140px 0 100px;
    margin-top: 70px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 200;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 200;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Feature Cards */
.feature-card {
    background: white;
    border: 1px solid var(--medium-gray);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.feature-card h3 {
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.3rem;
    line-height: 1.4;
}

.feature-card p {
    line-height: 1.7;
    color: var(--text-muted);
}

/* Column spacing for multi-column layouts */
.row .col-md-6,
.row .col-md-4 {
    margin-bottom: 2rem;
}

/* Remove bottom margin from last row items */
.row .col-md-6:nth-last-child(-n+2),
.row .col-md-4:nth-last-child(-n+3) {
    margin-bottom: 0;
}

/* Ensure equal spacing on mobile */
@media (max-width: 767.98px) {
    .row .col-md-6,
    .row .col-md-4 {
        margin-bottom: 2rem;
    }
    
    .row .col-md-6:last-child,
    .row .col-md-4:last-child {
        margin-bottom: 0;
    }
}

/* Timeline */
.step-timeline {
    position: relative;
    padding: 2rem 0;
    list-style: none;
    margin: 0;
}

.step-item {
    margin-bottom: 3rem;
    position: relative;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 400;
}

/* Semantic Elements */
main {
    flex: 1;
}

article.feature-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 0;
    height: 100%;
}

article.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

aside[role="complementary"] {
    background-color: var(--light-gray);
}

footer[role="contentinfo"] {
    margin-top: auto;
}

/* Contact Section */
.contact-section {
    background-color: var(--light-gray);
    text-align: center;
}

.contact-email {
    font-size: inherit;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.contact-email:hover {
    color: var(--text-color);
}

.contact-email:focus {
    outline: 1px solid rgba(0,0,0,0.1);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 3rem auto 0;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    border: 1px solid var(--light-gray);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 400;
    letter-spacing: 0.01em;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: var(--text-color);
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Footer */
.footer {
    background-color: var(--light-gray);
    color: var(--text-color);
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--medium-gray);
}

.footer a {
    color: var(--secondary-color);
    margin: 0 1rem;
    text-decoration: none;
    font-weight: 400;
}

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

/* Animations */
.hidden {
    display: none;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .step-item {
        text-align: center;
    }
    
    .nav-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .language-selector {
        margin-left: 0.5rem;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Smooth transitions for language switching */
[data-translate] {
    transition: opacity 0.2s ease;
}

/* Loading animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s infinite;
}

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

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--medium-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 1px solid rgba(0,0,0,0.1);
    outline-offset: 2px;
}

.language-selector select:focus {
    outline: 1px solid rgba(0,0,0,0.08);
    outline-offset: 1px;
}

/* Print styles */
@media print {
    .navbar,
    .footer {
        display: none;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .hero {
        padding: 2rem 0;
    }
}
