/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #0a0a0a;
    color: #f5f5f5;
    line-height: 1.6;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: #000;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #00ff99;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 25px;
    transition: 0.3s;
    font-weight: 500;
}

nav a:hover {
    color: #00ff99;
}

/* HERO SECTION */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1546484959-fc1c8e1c9a4c') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
}

.hero-content {
    background: rgba(0,0,0,0.75);
    padding: 50px;
    border-radius: 10px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    margin-bottom: 25px;
    font-size: 18px;
}

button {
    padding: 12px 25px;
    background: #00ff99;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 5px;
}

button:hover {
    background: #00cc77;
}

/* GENERAL SECTIONS */
.section {
    padding: 100px 50px;
    max-width: 1200px;
    margin: auto;
}

.section h2 {
    margin-bottom: 40px;
    color: #00ff99;
}

/* SCIENCE BLOCK */
.science-block {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    align-items: center;
}

.science-block img {
    width: 350px;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

.science-block h3 {
    margin-bottom: 10px;
}

/* NEW SPORT BLOCK (FOR COMMON SPORTS SECTION) */
.sport-block {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
    align-items: center;
}

.sport-block img {
    width: 380px;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

.sport-block div {
    max-width: 700px;
}

.sport-block h3 {
    margin-bottom: 15px;
    color: #00ff99;
}

/* EVENT CARDS */
.event-card {
    background: #1a1a1a;
    margin-bottom: 35px;
    padding: 30px;
    border-left: 5px solid #00ff99;
    border-radius: 6px;
    transition: 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card h3 {
    margin-bottom: 15px;
    color: #00ff99;
}

/* REVIEWS */
.review {
    background: #1a1a1a;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 6px;
}

.review strong {
    display: block;
    margin-top: 10px;
    color: #00ff99;
}

/* FOOTER */
footer {
    background: #000;
    text-align: center;
    padding: 25px;
    margin-top: 40px;
    font-size: 14px;
}

/* CHATBOT BUTTON */
.chatbot-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #00ff99;
    color: black;
    font-size: 26px;
    padding: 18px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px #00ff99;
    transition: 0.3s;
}

.chatbot-btn:hover {
    transform: scale(1.1);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {

    .science-block {
        flex-direction: column;
    }

    .sport-block {
        flex-direction: column;
        text-align: center;
    }

    .sport-block img {
        width: 100%;
    }

    header {
        flex-direction: column;
    }

    nav {
        margin-top: 10px;
    }
}
/* EVENT LIST STYLE */
.event-card ul {
    margin-top: 15px;
    padding-left: 20px;
}

.event-card ul li {
    margin-bottom: 10px;
}

/* COMPARISON TABLE */
.comparison-table {
    margin-top: 60px;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.comparison-table th,
.comparison-table td {
    border: 1px solid #333;
    padding: 15px;
    text-align: left;
}

.comparison-table th {
    background-color: #00ff99;
    color: black;
}

.comparison-table tr:nth-child(even) {
    background-color: #1a1a1a;
}

/* REVIEWS GRID LAYOUT */
.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.review-card {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid #00ff99;
    transition: 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
}

.stars {
    color: gold;
    font-size: 18px;
    margin-bottom: 10px;
}

/* FEEDBACK SECTION */
.feedback-section {
    margin-top: 80px;
    padding: 60px 40px;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)),
        url('https://images.unsplash.com/photo-1520975922284-1f1d84f6d4f0') center/cover no-repeat;
    border-radius: 10px;
}

.feedback-section h3 {
    margin-bottom: 20px;
    color: #00ff99;
}

.feedback-section form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
}

.feedback-section input,
.feedback-section textarea,
.feedback-section select {
    padding: 12px;
    border-radius: 6px;
    border: none;
}

.feedback-section textarea {
    resize: none;
    height: 100px;
}

.feedback-section button {
    width: 200px;
}

/* EVENT IMAGE LAYOUT */
.event-layout {
    display: flex;
    gap: 30px;
    align-items: center;
}

.event-layout img {
    width: 350px;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

.event-content {
    flex: 1;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .event-layout {
        flex-direction: column;
    }

    .event-layout img {
        width: 100%;
    }
}

/* changes to do down
/* --- NEW BACKGROUND ADDITIONS --- */

/* 1. First image as background for the Hero section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('images/AI-Powered Athletic Performance Platform image.jpg') center/cover no-repeat !important;
}

/* 2. Second image above "About This Platform" - Full length */
#about::before {
    content: "";
    display: block;
    width: 100%;
    height: 400px; /* Adjust height as needed */
    background: url('images/overall bg image.jpg') center/cover no-repeat;
    margin-bottom: 40px;
    border-radius: 10px;
}

/* 3. Third image as the overall site background (multiple times/tiled) */
body {
    background-image: url('images/background image.jpg') !important;
    background-repeat: repeat !important;
    background-size: auto !important; /* This ensures it tiles naturally */
    background-attachment: fixed;
}

/* Adjusting section backgrounds to ensure readability over the tiled image */
.section, .hero-content, .event-card, .review-card {
    background-color: rgba(26, 26, 26, 0.9); /* Slight transparency to see the pattern */
    backdrop-filter: blur(5px); /* Optional: makes text pop against the background */
}