/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #1a1a1a;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Header styles */
header {
    background-color: #1a1a1a;
    padding: 20px 0;
    border-bottom: 1px solid #333;
}

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

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

.logo {
    width: 200px;
    height: auto;
    margin-right: 10px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.header-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff3232; /* Red color for the racing theme */
}

nav ul {
    display: flex;
}

nav li {
    margin-left: 20px;
}

nav a {
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ff3232;
}

/* Dotted background pattern */
.dotted-background {
    background-color: #121212;
    background-image: radial-gradient(#444444 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

/* Hero section */
.hero {
    padding: 80px 0;
    background-color: #121212;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
        radial-gradient(#333333 1px, transparent 1px);
    background-size: cover, 20px 20px;
    background-position: center, 0 0;
}

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

.hero-content {
    width: 60%;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #e0e0e0;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #ff3232;
    color: white;
}

.btn-primary:hover {
    background-color: #e62b2b;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hero-image {
    width: 35%;
    aspect-ratio: 9/16;
    background-color: #333; /* Fallback if video doesn't load */
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px;
}

/* Section styling */
section {
    padding: 80px 0;
}

section h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    text-align: center;
    color: #ff3232;
}

section p {
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* About section */
.about {
    background-color: #212121;
}

.about-grid {
    display: grid;
    grid-template-columns: 60% 35%;
    gap: 5%;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.how-it-works {
    height: 100%;
}

.about-item {
    padding: 10px 0;
    transition: transform 0.3s ease;
}

.about-item.boxed {
    padding: 25px;
    background-color: #2a2a2a;
    border-radius: 8px;
    height: calc(100% - 50px);
}

.about-item:hover {
    transform: translateY(-3px);
}

.about-item h3 {
    color: #ff3232;
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-align: left;
}

.about-item h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 10px;
    margin-top: 20px;
    text-align: left;
    font-weight: 600;
}

/* Yellow headings */
.about-item h4.yellow-heading {
    color: #ffcf00;
}

.about-item p, 
.about-item ul, 
.about-item a {
    text-align: left;
}

.about-item p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.feature-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.feature-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    text-align: left;
}

.feature-list li:before {
    content: "•";
    color: #ff3232;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.learn-more {
    color: #ff3232;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Pylon features section */
.pylon-features {
    background-color: #262626;
}

.pylon-carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.pylon-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #555;
    cursor: pointer;
}

.dot.active {
    background-color: #ff3232;
}

/* Features race section */
.features-race {
    background-color: #1f1f1f;
}

.features-race h2 {
    color: #ffffff;
}

.highlight-text {
    color: #ff3232;
}

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

.feature-card {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 25px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background-color: #ff3232;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: white;
    padding: 8px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    color: #ff3232;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.feature-card p {
    text-align: left;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Coming soon section */
.coming-soon {
    background-color: #0a0a0a;
    padding-top: 70px;
    padding-bottom: 70px;
}

.coming-soon h2 {
    color: #ff3232;
    margin-bottom: 30px;
}

.coming-soon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.coming-soon-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    background-color: #121212;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #1a1a1a;
}

.coming-soon-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff3232;
    background-color: rgba(255, 50, 50, 0.1);
    border-radius: 50%;
    padding: 8px;
}

.coming-soon-content {
    flex: 1;
}

.coming-soon-content h3 {
    color: #ffffff;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.coming-soon-content p {
    margin: 0;
    text-align: left;
    font-size: 0.95rem;
    color: #e0e0e0;
}

/* Subscribe section with SendFox form */
.subscribe {
    background-color: #121212;
    background-image: radial-gradient(#333333 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0;
    padding-bottom: 100px;
}

.form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background-color: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
}

.sendfox-form p {
    margin-bottom: 15px;
    text-align: left;
}

.sendfox-form input[type="text"],
.sendfox-form input[type="email"] {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #333;
    color: white;
    font-size: 1rem;
}

.sendfox-form .checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sendfox-form .checkbox-row input {
    margin-top: 2px;
    width: auto;
}

.sendfox-form button {
    background-color: #ff3232;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1rem;
}

.sendfox-form button:hover {
    background-color: #dd2020;
}

.form-row button {
    width: 100%;
    padding: 15px;
    border: none;
    background-color: #ff3232;
    color: white;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-row button:hover {
    background-color: #e62b2b;
}

.form-row .disclaimer {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #a0a0a0;
    text-align: center;
}

/* Footer */
footer {
    background-color: #121212;
    padding: 30px 0;
}

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

.footer-info {
    text-align: left;
}

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

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #222;
    border-radius: 50%;
    color: #ff3232;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #ff3232;
    color: white;
    transform: translateY(-3px);
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-info {
        text-align: center;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .hero-image {
        width: 100%;
        aspect-ratio: 9/16;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .how-it-works {
        margin-top: 20px;
    }
    
    .pylon-display-gallery {
        grid-template-columns: 1fr;
    }
    
    .coming-soon-grid {
        grid-template-columns: 1fr;
    }
}

/* Pylon Carousel */
.pylon-carousel {
    margin: 40px auto;
    max-width: 600px;
    position: relative;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background-color: #1f1f1f;
}

.carousel-slide {
    display: none;
    width: 100%;
}

.carousel-slide.active {
    display: block;
}

.pylon-image {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
}

.carousel-prev,
.carousel-next {
    background: #ff3232;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 15px;
    transition: background-color 0.3s;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: #e62b2b;
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #555;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #ff3232;
}