/* =========================
   GLOBAL STYLES
========================= */

/* Prevent image dragging and right-click save */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}

/* Universal box-sizing */
* {
    box-sizing: border-box;
}

/* =========================
   HTML & BODY
========================= */
html,
body {
    font-family: 'Roboto', sans-serif;
    background-color: #171616;
    /* Dark background */
    color: #fff;
    /* White text */
    margin: 0;
    padding: 0;
    line-height: 1.7;
    height: 100%;
    display: flex;
    flex-direction: column;

    /* Disable text selection across browsers */
    user-select: none;
    -webkit-user-select: none;
    /* Safari, Chrome */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE/Edge */
}

/* =========================
   MAIN CONTENT
========================= */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 20px;
    flex: 1;
    /* Fill vertical space */
}

/* =========================
   HEADINGS
========================= */
h1 {
    text-align: center;
    font-size: 3rem;
    color: #9900ff;
    /* Purple accent */
    margin-bottom: 40px;
}

h2 {
    color: #9900ff;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 2rem;
}

/* =========================
   PARAGRAPHS
========================= */
p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* Highlighted text */
.highlight {
    color: #9900ff;
    font-weight: bold;
}

/* =========================
   SECTIONS
========================= */
.section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 50px 0;
    background: #222121;
    /* Dark gray background */
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.section-text {
    flex: 1;
}

.section-image {
    flex: 0.5;
    overflow: hidden;
    border-radius: 10px;
}

.section-image img {
    width: 100%;
    height: auto;
    display: block;
    animation: float 4s ease-in-out infinite;
    /* Float animation */
}

/* =========================
   FLOAT ANIMATION
========================= */
@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    /* Move up */
    100% {
        transform: translateY(0);
    }

    /* Back to start */
}

/* =========================
   RESPONSIVE STYLES
========================= */

/* Tablets and smaller screens */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    p {
        font-size: 1.1rem;
    }

    main {
        padding: 40px 15px;
    }

    .section {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .section-text {
        font-size: 1rem;
    }

    .section-image {
        width: 90%;
    }
}

/* Mobile screens */
@media (max-width: 768px) {
    .section {
        flex-direction: column;
        gap: 20px;
        padding: 20px 15px;
    }

    .section-text {
        font-size: 0.95rem;
    }

    .section-image {
        width: 100%;
    }
}

/* Extra small mobile screens */
@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1rem;
    }

    main {
        padding: 30px 10px;
    }
}