body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, sans-serif;
    background-color: #0a0f1e;
    color: #f0f8ff; /* Enhanced readability (near white) */
    line-height: 1.6;
    scroll-behavior: smooth; 
}

main {
    /* Centers content on large screens and sets a maximum width */
    max-width: 1200px; 
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #0d1325;
    border-bottom: 1px solid #00c6ff; /* Consistent brand color */
}

/* --- LOGO FIX --- */
.logo {
    width: 200px; /* Adjusted to a suitable size */
    height: auto;
}

nav button {
    background: none;
    border: none;
    color: #00c6ff; /* Consistent brand color */
    font-size: 1rem;
    margin-left: 1rem;
    cursor: pointer;
    transition: color 0.3s; 
}

nav button:hover {
    color: #fff;
}

section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    padding: 4rem 2rem;
    border-bottom: 1px solid #1e2a3d;
}

/* --- ZIG-ZAG LAYOUT (Alternating Image/Text) --- */
section:nth-child(odd) {
    flex-direction: row-reverse;
}

section img {
    width: 45%;
    height: 350px; /* Uniform height for visual consistency */
    object-fit: cover; 
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,255,255,0.1);
}

section div {
    width: 45%;
    max-width: 600px;
}

/* Default spacing: padding on the left for the text block */
section div {
    padding-left: 20px; 
}

/* Fix spacing for the reversed sections */
section:nth-child(odd) div {
    padding-left: 0;
    padding-right: 20px;
}

h2 {
    color: #00c6ff; /* Consistent heading color */
    font-size: 2.2rem; 
    margin-top: 0;
}

/* --- LIST STYLING IMPROVEMENTS --- */
ul {
    list-style-type: none; 
    padding-left: 0;
}

ul li {
    padding-left: 1.5em; 
    margin-bottom: 0.5em;
    position: relative;
}

ul li:before {
    content: '→'; /* Custom bullet point */
    color: #00c6ff; 
    position: absolute;
    left: 0;
}

a {
    color: #00c6ff;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #e0f7ff; 
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 1.5rem 1rem; /* Increased padding for better separation */
    border-top: 1px solid #00c6ff;
    font-size: 0.9rem;
    color: #88bcd0;
}

/* Style for the new navigation links in the footer */
.footer-nav {
    margin-top: 0.5rem; /* Add a little space below the copyright text */
    font-size: 0.85rem; /* Slightly smaller text size for secondary links */
}

.footer-nav a {
    color: #88bcd0; /* Use a softer, less distracting color for footer links */
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #00c6ff; /* Highlight with the brand color on hover */
    text-decoration: underline;
}


/* --- MOBILE RESPONSIVENESS (Media Query) --- */
@media (max-width: 768px) {
    /* STACKS CONTENT VERTICALLY */
    section {
        flex-direction: column; /* Overrides desktop layout */
        padding: 3rem 1rem;
    }

    /* Ensures the zig-zag layout is undone on mobile to maintain vertical stacking order */
    section:nth-child(odd) {
        flex-direction: column; 
    }

    /* MAKES IMAGE AND TEXT TAKE FULL WIDTH */
    section img, 
    section div {
        width: 100%;
        max-width: 100%;
        margin-bottom: 2rem; 
        padding-left: 0 !important; /* Forces padding removal */
        padding-right: 0 !important; /* Forces padding removal */
    }

    /* Reduces header padding for mobile */
    header {
        padding: 0.8rem 1rem;
    }

    /* Smaller logo for mobile */
    .logo {
        width: 150px; 
    }

    /* Adjusts font size */
    h2 {
        font-size: 1.8rem;
    }
}