/* 
   Dart Scoreboard Website Styles - Modern Edition
   Color Scheme:
   - Background: #111111 (RGB: 17,17,17)
   - Additional Colors: #ffa600 (RGB: 255,166,0), #ff7b00 (RGB: 255,123,0), #f33430 (RGB: 243,52,48)
   - Primary Accent: #c32a36 (RGB: 195,42,54)
   - Secondary Accent: #2dc7b5 (RGB: 45,199,181)
   - Text Primary: #ffffff (RGB: 255,255,255)
   - Text Secondary: #898989 (RGB: 137,137,137)
*/

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: #111111;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 15px;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #ffa600, #f33430);
    border-radius: 2px;
}

p {
    margin-bottom: 20px;
    color: #898989;
    font-size: 1.1rem;
    line-height: 1.8;
}

section {
    padding: 100px 0;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(45, 199, 181, 0.03) 0%, rgba(17, 17, 17, 0) 80%);
    z-index: -1;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.5px;
    font-size: 1rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    z-index: -1;
}

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

.btn-primary {
    background: linear-gradient(135deg, #ffa600, #ff7b00);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 166, 0, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #c32a36, #f33430);
    color: #ffffff;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(195, 42, 54, 0.3);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

header.scrolled {
    padding: 15px 0;
    background-color: rgba(17, 17, 17, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: #ffffff;
    position: relative;
    transition: all 0.3s ease;
}

.logo:hover img {
    transform: rotate(-5deg);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 40px;
}

nav ul li a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    font-size: 1.05rem;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #ffa600, #f33430);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: #ffa600;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a.active {
    color: #ffa600;
}

nav ul li a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(45, 199, 181, 0.1) 0%, rgba(17, 17, 17, 0) 70%);
    z-index: -1;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-content h2 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff, #ffa600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease;
}

.hero-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2dc7b5;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.app-buttons {
    display: flex;
    gap: 15px;
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
    animation: floatAnimation 6s ease-in-out infinite;
}

.hero-image img {
    width: 1136px;
    height: 523px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.features {
    text-align: center;
    background-color: rgba(17, 17, 17, 0.7);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(195, 42, 54, 0.05) 0%, rgba(17, 17, 17, 0) 70%);
    z-index: -1;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-card {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.6), rgba(20, 20, 20, 0.6));
    border-radius: 15px;
    padding: 40px 25px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 166, 0, 0.1), rgba(195, 42, 54, 0.1));
    transition: all 0.6s ease;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
    top: 0;
    left: 0;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 166, 0, 0.1), rgba(195, 42, 54, 0.1));
    border-radius: 50%;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon img {
    width: 45px;
    height: 45px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.feature-card p {
    color: #898989;
    font-size: 1rem;
}

/* App Showcase Section */
.app-showcase {
    text-align: center;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.showcase-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.showcase-item img {
    width: 100%;
    height: 350px;
    object-fit: contain;
    border-radius: 15px;
    transition: all 0.5s ease;
    background-color: rgba(0,0,0,0.2);
}

.showcase-item:hover img {
    transform: scale(1.03);
}

.showcase-item h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: #ffffff;
    margin-bottom: 0;
    text-align: left;
    font-size: 1.3rem;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

/* CTA Section */
.cta {
    text-align: center;
    background: linear-gradient(135deg, rgba(195, 42, 54, 0.1), rgba(45, 199, 181, 0.1));
    border-radius: 20px;
    margin: 0 auto;
    width: 90%;
    max-width: 1100px;
    padding: 80px 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/></svg>');
    background-size: 100px 100px;
    opacity: 0.5;
    z-index: -1;
}

.cta h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #898989;
}

.cta .app-buttons {
    justify-content: center;
}

/* Footer Styles */
footer {
    background-color: rgba(10, 10, 10, 0.9);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #ffa600, #f33430, #c32a36, #2dc7b5);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-logo h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-logo p {
    color: #898989;
    font-size: 0.95rem;
}

.footer-links h3, .footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-links h3::after, .footer-social h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #ffa600, #f33430);
    border-radius: 2px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #898989;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: #ffa600;
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: linear-gradient(135deg, #ffa600, #f33430);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: #898989;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Legal Pages Styles */
.legal-content {
    padding: 150px 0 80px;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
}

.legal-content p, .legal-content li {
    color: #898989;
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.7;
}

.legal-content ul, .legal-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal-content li {
    margin-bottom: 10px;
}

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

@keyframes floatAnimation {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Media Queries */
@media (max-width: 1024px) {
    .hero-content h2 {
        font-size: 3rem;
    }
    
    .hero-content h3 {
        font-size: 1.6rem;
    }
    
    .showcase-item img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }
    
    .hero {
        padding: 150px 0 70px;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content h3 {
        font-size: 1.4rem;
    }
    
    .app-buttons {
        justify-content: center;
    }
    
    h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .showcase-item img {
        height: 350px;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: rgba(17, 17, 17, 0.95);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 15px 0;
        text-align: center;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content h3 {
        font-size: 1.2rem;
    }
    
    .app-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .app-buttons .btn {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .showcase-grid {
        grid-template-columns: 1fr;
    }
    
    .showcase-item img {
        height: 300px;
    }
    
    .cta {
        padding: 60px 20px;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        align-items: center;
    }
    
    .footer-links h3::after, .footer-social h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
    }
}