/* ============================= */
/* Future Technologies Website - Style Sheet */
/* Team Members: [Your Team Names] */
/* Date: [Current Date] */
/* Filename: style.css */
/* ============================= */

/* ===== CSS Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Raleway', sans-serif;
}

/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&family=Montserrat:wght@300;600&display=swap');

/* ===== Body & Wrapper ===== */
body {
    background-color: #8ac6e8;
    font-family: 'Raleway', sans-serif;
}

#wrapper {
    background-color: white;
    padding: 2em;
    width: 80%;
    margin: 0 auto;
    border-radius: 15px;
}

/* ===== Header ===== */
header {
    background-color: #0056b8;
    padding: 1.5em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

header h1 {
    font-size: 1.8em;
    font-family: 'Montserrat', sans-serif;
}

#menu-toggle {
    display: none;
    font-size: 20px;
    background: #0056b8;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 10px;
    margin: 10px;
}

/* ===== Navigation ===== */
nav {
    background-color: black;
}

nav ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
}

nav li {
    flex-grow: 1;
    text-align: center;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    font-weight: bold;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: lightgrey;
    color: black;
}

/* ===== Responsive Images ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    margin: 10px auto;
}

/* ===== Card Container ===== */
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em;
}

.card-container a {
    text-decoration: none;
    color: black;
    border: 3px solid black;
    padding: 20px;
    display: block;
    border-radius: 15px;
    text-align: center;
    transition: border-radius 0.125s, background-color 0.3s;
}

.card-container a:hover {
    border-radius: 0px;
    background-color: #8ac6e8;
}

.card-container div .arrow {
    display: none;
    font-weight: bolder;
    font-size: 50px;
}

.card-container a:hover .arrow {
    display: block;
}

/* ===== Footer ===== */
footer {
    background-color: black;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 2em;
}

/* ============================= */
/* ========== Mobile Styles Begin ========== */
@media screen and (max-width: 768px) {
    /* Mobile Menu */
    #menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        width: 100%;
        top: 60px;
        left: 0;
        background: black;
        padding: 10px 0;
        border-radius: 10px;
    }

    nav ul.active {
        display: flex;
    }

    nav li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
        border-bottom: 1px solid #ddd;
    }

    img, button {
        border-radius: 15px;
    }

    /* Structural Pseudo-Class Example */
    p:nth-of-type(odd) {
        background-color: #f0f0f0;
        padding: 10px;
    }

    /* Responsive Video Embed */
    .video-container {
        position: relative;
        overflow: hidden;
        width: 100%;
        padding-top: 56.25%; /* Aspect ratio 16:9 */
    }

    .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}
