/* RailShot TV - Atmospheric Billiard Hall Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color palette from billiard hall atmosphere */
    --primary: #00A8E8;
    --primary-dark: #0077B6;
    --accent: #FDD835;
    --accent-orange: #FF6B35;
    
    /* Dark atmospheric colors */
    --background-dark: #0A0E1A;
    --surface-dark: #1A1F2E;
    --surface-light: #2A3142;
    
    /* Text colors */
    --text: #FFFFFF;
    --text-muted: #B8C5D6;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: rgba(0, 0, 0, 0.6);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Border radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--background-dark);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Main atmospheric background - multiple billiard hall */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(180deg, rgba(10, 14, 26, 0.85) 0%, rgba(10, 14, 26, 0.75) 50%, rgba(10, 14, 26, 0.85) 100%),
        url('/images/bg-pool-hall-1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

/* Subtle overlay for depth */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(0, 168, 232, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 70% 60%, rgba(253, 216, 53, 0.06) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 14, 26, 0.95);
    border-bottom: 2px solid rgba(0, 168, 232, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.nav {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link:hover {
    background: rgba(0, 168, 232, 0.2);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Hero Section - Pool ball close-up background */
.hero {
    padding: var(--spacing-3xl) 0;
    background: 
        linear-gradient(135deg, rgba(10, 14, 26, 0.92) 0%, rgba(26, 31, 46, 0.88) 100%),
        url('/images/bg-pool-ball.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid rgba(0, 168, 232, 0.3);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(10, 14, 26, 0.4) 100%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: linear-gradient(135deg, rgba(0, 168, 232, 0.25) 0%, rgba(0, 119, 182, 0.25) 100%);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 20px rgba(0, 168, 232, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    width: 1.25rem;
    height: 1.25rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    color: var(--text);
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(0, 168, 232, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.hero-cta {
    margin-bottom: var(--spacing-lg);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-feature-item i {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--accent);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-screenshot {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    border-radius: var(--radius-xl);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 0 3px rgba(0, 168, 232, 0.3),
        0 0 30px rgba(0, 168, 232, 0.2);
    transition: transform 0.5s ease;
}

.app-screenshot:hover {
    transform: scale(1.05);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 1.25rem 2.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #FFFFFF;
    box-shadow: 0 6px 25px rgba(0, 168, 232, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(0, 168, 232, 0.7);
    background: linear-gradient(135deg, #48CAE4 0%, var(--primary) 100%);
}

.btn-large {
    padding: 1.5rem 3rem;
    font-size: 1.25rem;
}

.btn-icon {
    width: 1.5rem;
    height: 1.5rem;
}

/* Features Section - Pool hall background */
.features-section {
    padding: var(--spacing-3xl) 0;
    background: 
        linear-gradient(180deg, rgba(10, 14, 26, 0.90) 0%, rgba(26, 31, 46, 0.92) 100%),
        url('/images/bg-pool-hall-2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(180deg, rgba(10, 14, 26, 0.3) 0%, transparent 20%, transparent 80%, rgba(10, 14, 26, 0.3) 100%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    position: relative;
    z-index: 1;
}

.section-badge {
    display: inline-block;
    background: rgba(0, 168, 232, 0.2);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    border: 2px solid var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

.section-title {
    font-size: 2.75rem;
    font-weight: 900;
    margin-bottom: var(--spacing-sm);
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 168, 232, 0.2);
}

.section-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    margin-bottom: var(--spacing-3xl);
    padding: var(--spacing-xl);
    background: rgba(10, 14, 26, 0.7);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 168, 232, 0.2);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
}

.feature-row-reverse {
    direction: rtl;
}

.feature-row-reverse > * {
    direction: ltr;
}

.feature-icon-badge {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 6px 25px rgba(0, 168, 232, 0.5);
}

.feature-icon-badge i {
    width: 2.5rem;
    height: 2.5rem;
    color: #FFFFFF;
}

.feature-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.feature-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: var(--text);
    font-weight: 500;
}

.feature-list i {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--accent);
    flex-shrink: 0;
}

.feature-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.screenshot {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.6),
        0 0 0 2px rgba(0, 168, 232, 0.3),
        0 0 20px rgba(0, 168, 232, 0.2);
    transition: transform 0.5s ease;
}

.screenshot:hover {
    transform: scale(1.05);
}

.screenshot-landscape {
    max-width: 100%;
}

/* Download Section - Atmospheric pool hall */
.download-section {
    padding: var(--spacing-3xl) 0;
    background: 
        linear-gradient(135deg, rgba(10, 14, 26, 0.95) 0%, rgba(26, 31, 46, 0.95) 100%),
        url('/images/bg-pool-hall-1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    position: relative;
    border-top: 2px solid rgba(0, 168, 232, 0.3);
    border-bottom: 2px solid rgba(0, 168, 232, 0.3);
}

.download-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(0, 168, 232, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.download-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.download-icon {
    width: 6rem;
    height: 6rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    box-shadow: 0 8px 35px rgba(0, 168, 232, 0.6);
}

.download-icon i {
    width: 3rem;
    height: 3rem;
    color: #FFFFFF;
}

.download-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: var(--spacing-sm);
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(0, 168, 232, 0.3);
}

.download-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.download-note {
    margin-top: var(--spacing-md);
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
}

/* Footer */
.footer {
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    background: rgba(10, 14, 26, 0.98);
    border-top: 2px solid rgba(0, 168, 232, 0.3);
    backdrop-filter: blur(20px);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-xl);
}

.footer-brand .logo {
    margin-bottom: var(--spacing-sm);
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.footer-column-title {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-link {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: var(--spacing-xs);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-row,
    .feature-row-reverse {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        direction: ltr;
        padding: var(--spacing-md);
    }
    
    .feature-title {
        font-size: 1.75rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .download-title {
        font-size: 2.25rem;
    }
    
    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .btn-large {
        padding: 1.25rem 2.5rem;
        font-size: 1.125rem;
    }
}

/* Contact Section */
.contact-section {
    padding: var(--spacing-3xl) 0;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
}

/* Contact Information */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-info-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

.contact-info-description {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.contact-detail-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.contact-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 168, 232, 0.3);
}

.contact-icon i {
    width: 24px;
    height: 24px;
}

.contact-detail-content {
    flex: 1;
    padding-top: 0.5rem;
}

.contact-detail-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.contact-detail-content p,
.contact-detail-content a {
    color: var(--text-muted);
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-detail-content a:hover {
    color: var(--primary);
}

/* Contact Form */
.contact-form-wrapper {
    background: rgba(26, 31, 46, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.contact-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(184, 197, 214, 0.5);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23B8C5D6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 20px;
    padding-right: 3rem;
}

.form-select option {
    background: var(--surface-dark);
    color: var(--text);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.form-message {
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

.form-message.error {
    display: block;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #F44336;
}

/* Responsive Design for Contact Section */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .contact-info-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: var(--spacing-lg);
    }
    
    .contact-info-title {
        font-size: 1.5rem;
    }
    
    .contact-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }
    
    .contact-icon i {
        width: 20px;
        height: 20px;
    }
}
