/* Modern Style System for ribalkavshvecii.com */
/* Version 2.0 - Premium Design */

:root {
    --primary: #2c3e50;
    --primary-dark: #1a252f;
    --accent: #27ae60;
    --accent-light: #2ecc71;
    --secondary: #3498db;
    --secondary-light: #5dade2;
    --warm: #e67e22;
    --warm-light: #f39c12;
    --dark: #2c3e50;
    --white: #FFFFFF;
    --light-gray: #f5f7fa;
    --gray: #7f8c8d;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 15px;
    --radius-xl: 20px;
}

/* Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

/* Premium Header */
.modern-header {
    background: linear-gradient(135deg, var(--primary) 0%, #34495e 100%);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.modern-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.modern-nav a {
    color: white;
    padding: 10px 16px;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
}

.modern-nav a:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.modern-nav a.active {
    background: rgba(255,255,255,0.2);
}

/* Premium Buttons */
.btn-modern {
    display: inline-block;
    padding: 14px 35px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1.05em;
    position: relative;
    overflow: hidden;
}

.btn-modern: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;
}

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

.btn-modern-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-modern-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(23,162,184,0.3);
}

.btn-modern-gold {
    background: linear-gradient(135deg, var(--warm) 0%, var(--warm-light) 100%);
    color: var(--dark);
    box-shadow: var(--shadow-md);
}

.btn-modern-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212,175,55,0.4);
}

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

.btn-modern-white:hover {
    background: var(--primary);
    color: white;
}

/* Premium Cards */
.premium-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
}

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

.premium-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.premium-card:hover img {
    transform: scale(1.05);
}

.premium-card-content {
    padding: 25px;
}

.premium-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5em;
}

.premium-card p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Badges */
.badge-modern {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
}

.badge-hot {
    background: linear-gradient(135deg, #ff4757, #ff6348);
    color: white;
}

.badge-vip {
    background: linear-gradient(135deg, var(--warm) 0%, var(--warm-light) 100%);
    color: var(--dark);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.8em;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

.section-header .subtitle {
    font-size: 1.3em;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layouts */
.premium-grid {
    display: grid;
    gap: 30px;
}

.premium-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.premium-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.premium-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Gradient Sections */
.section-gradient-warm {
    background: linear-gradient(135deg, #FFF5E6 0%, #FFE8CC 100%);
}

.section-gradient-cool {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
}

.section-gradient-dark {
    background: linear-gradient(135deg, var(--dark) 0%, #2a2a2a 100%);
    color: white;
}

.section-gradient-forest {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
}

/* Feature Lists */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--gray);
}

.feature-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2em;
}

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

.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out;
}

/* WhatsApp Float Button */
.whatsapp-modern {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.5);
    text-decoration: none;
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,0.8); }
    100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
}

.whatsapp-modern:hover {
    transform: scale(1.15);
}

.whatsapp-modern:before {
    content: '💬';
    font-size: 30px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modern-nav {
        flex-direction: column;
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        padding: 10px;
        box-shadow: var(--shadow-lg);
    }
    
    .modern-nav.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        z-index: 1001;
    }
    
    .mobile-menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: white;
        margin: 5px 0;
        transition: 0.3s;
        border-radius: 2px;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .section-header h2 {
        font-size: 2em;
    }
    
    .premium-grid-2,
    .premium-grid-3,
    .premium-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .btn-modern {
        padding: 12px 25px;
        font-size: 1em;
        width: 100%;
        text-align: center;
    }
}

/* Premium Effects */
.glow-gold {
    box-shadow: 0 0 30px rgba(212,175,55,0.3);
}

.glow-teal {
    box-shadow: 0 0 30px rgba(23,162,184,0.3);
}

/* Loading Animation */
.loading-spinner {
    border: 3px solid var(--light-gray);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

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

/* Page Hero Section - Fixed Height Like Langban */
.page-hero {
    position: relative;
    height: 650px;
    overflow: hidden;
    width: 100%;
    display: block;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    z-index: 2;
}

.page-hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: white;
    text-align: center;
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-hero-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    color: white !important;
    font-weight: 700;
    line-height: 1.2;
}

.page-hero-content p {
    font-size: 1.3em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    max-width: 800px;
    color: white !important;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .page-hero {
        height: 400px;
    }
    .page-hero-content h1 {
        font-size: 2em;
    }
    .page-hero-content p {
        font-size: 1em;
    }
}