/* Base Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(180deg, #121212, #2a2a2a);
    color: #fff;
}

/* Header & Footer */
header, footer {
    text-align: center;
    padding: 20px;
}

header h1 {
    font-size: 3em;
    margin: 0;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

footer {
    font-size: 1.1em;
}

/* Container */
.container {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Row Layout with Fade-in Animation */
.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 60px 0;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.row.reverse {
    flex-direction: row-reverse;
}

/* Fade-in Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Image & Text Containers */
.image-container, .text-container {
    width: 50%;
    box-sizing: border-box;
    padding: 20px;
}

/* Image Styling */
.image-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.7);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.image-container img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Text Container Styling */
.text-container {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 30px;
    transition: background 0.3s ease;
}

.text-container:hover {
    background: rgba(0, 0, 0, 0.7);
}

.text-container p {
    font-size: 1.2em;
    line-height: 1.6;
    margin: 0;
}

/* Download Button */
.download-container {
    text-align: center;
    margin-top: 40px;
}

.download-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
}

.download-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.7);
}

/* Back Link Styling */
.back-link {
    color: #1e90ff;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s;
}

.back-link:hover {
    color: #63b3ff;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .row {
        flex-direction: column !important;
        margin: 20px 0;
        text-align: center;
    }
    .image-container, .text-container {
        width: 100%;
        padding: 10px;
    }
    /* Force image first, then text on mobile */
    .image-container {
        order: 1;
    }
    .text-container {
        order: 2;
    }
    header h1 {
        font-size: 2em;
    }
    .text-container p {
        font-size: 1em;
    }
    .back-link {
        font-size: 1em;
    }
}

/* Machine Learning Script Breakdown Section */
#ml-script {
    padding: 40px;
    margin-top: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

#ml-script h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ff8a00;
}

#ml-script h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #e52e71;
}

/* Download Section */
#download-section {
    padding: 40px;
    margin-top: 40px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
}

#download-section h3 {
    font-size: 1.8em;
    color: #ff8a00;
    margin-bottom: 10px;
}
