/* main.css - Modern Theme for Refar.io */
:root {
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --bg-light: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #475569;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Navigation */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-img {
    height: 36px;
    width: auto;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.lang-switch {
    display: flex;
    gap: 16px;
}

.lang-switch a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
}

.lang-switch a:hover {
    color: var(--primary);
}

.lang-switch a.active {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 160px 24px 80px;
    background: radial-gradient(circle at top right, #eff6ff 0%, #ffffff 50%);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Section Common */
.section {
    padding: 100px 24px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Product Cards */
.product-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.product-card {
    display: flex;
    align-items: center;
    gap: 60px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

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

.product-card:nth-child(even) {
    flex-direction: row-reverse;
}

.product-info {
    flex: 1;
}

.product-image-wrapper {
    flex: 1.2;
    position: relative;
}

.product-image-wrapper img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.5s ease;
}

.product-image-wrapper:hover img {
    transform: scale(1.02);
}

.product-info h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1e293b;
}

.product-info p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.23);
}

/* Why Us Section */
.why-us {
    background-color: var(--bg-light);
    border-radius: 40px;
    margin: 0 24px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
    text-align: left;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 20px;
    display: inline-block;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

/* Footer */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 80px 24px 40px;
    text-align: center;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-links {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    border-top: 1px solid #1e293b;
    padding-top: 40px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 36px; }
    .product-card, .product-card:nth-child(even) {
        flex-direction: column;
        gap: 32px;
    }
    .section { padding: 60px 24px; }
    .nav-container { padding: 0 16px; }
}
