/* General body styling */
body {
    background-image: url('images/BG.jpg');
    background-size: cover; /* makes it cover the whole screen */
    background-repeat: no-repeat;
    background-position: center;
    font-family: 'Arial', sans-serif;
    color: #ffffff;
    margin: 0;
    padding: 0;

}
/* background floating GIF bongo cat */
#floatingGif {
    position: absolute;
    top: 100px;
    left: 100px;
    width: 90px; /* size adjustment of bongo cat */
    animation: floatAround 20s infinite linear; /* Adjust duration */
}

/* Trying to simulate movement pattern to packman(map style) researched for reference in HTML5 */
@keyframes floatAround {
    0% {
      transform: translate(0, 0);
    }
    20% {
      transform: translate(100vw, 0); /* Moves to the right edge */
    }
    40% {
      transform: translate(100vw, 100vh); /* Moves to the bottom-right corner */
    }
    60% {
      transform: translate(0, 100vh); /* Moves to the bottom-left corner */
    }
    80% {
      transform: translate(0, 0); /* Moves back to the top-left corner */
    }
    100% {
      transform: translate(100vw, 0); /* Moves back to the right edge again */
    }
}


/* Header styling */
header {
    padding: 20px 0;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: #222;
}

/* Logo container styling */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

/* Logo styling */
.logo {
    font-size: 64px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    transition: all 0.3s ease;
}

/* TM symbol styling */
.logo::after {
    content: "TM";
    font-size: 18px;
    position: absolute;
    top: 5px;
    right: -30px;
    color: #ffffff;
}

/* Logo hover effect */
.logo:hover {
    text-shadow: 0 0 15px #172ba0;
    transform: translateY(-2px);
}

/* Navigation styling */
nav {
    padding: 15px 0;

}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: flex-end; /* Moves navigation items to the right */
    margin: 0;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    position: relative;
}
/* drop down for CIST1510 */
.dropdown {
    background-color: #352d9e;
    padding: 1em 0;
    position: absolute; /*WITH RESPECT TO PARENT*/
    display: none;
    border-radius: 8px;
    top: 30px;
  }
/* Hover effects */
nav ul li a:hover {
    background-color: #352d9e;
    transform: translateY(-2px);
}

nav ul li a:hover::after {
    width: 60%;
}

/* Active state */
nav ul li a.active {
    color: #ffffff;
    font-weight: bold;
}

nav ul li a.active::after {
    width: 60%;
}

/* Dropdown styling */
nav ul li:hover .dropdown {
    display: block;
}

/* Main content styling */
main {
    flex-grow: 1;
    padding: 40px 20px;
}

/* Footer styling */
footer {
    background-color: #222;
    padding: 15px 0;
    width: 100%;
    margin-top: auto;
}
/*Contact located in the footer*/
#footer-Contact {
   text-align: center;
    color: #ffffff;
    font-size: 1rem;
    margin-top: 10px;
}
#footer-Contact i {
    margin-right: 8px;
    color: #555;
}
#footer-Contact a {
    text-decoration: none;
    color: #ffffff;
}
#footer-Contact a:hover {
    text-decoration: underline;
}





/* Responsive Design */
@media (max-width: 768px) {
    #footer-Contact h1 {
        font-size: 24px;
    }

    #footer-Contact p {
        font-size: 15px;
    }

    .logo {
        font-size: 48px;
    }

    .logo::after {
        font-size: 14px;
        top: 2px;
        right: -20px;
    }
}

/* Phones (max-width: 576px) */
@media (max-width: 576px) {
    #footer-Contact h1 {
        font-size: 20px;
    }

    #footer-Contact p {
        font-size: 14px;
    }

    .logo {
        font-size: 40px;
    }

    .logo::after {
        font-size: 12px;
        top: 2px;
        right: -15px;
    }
}

/* Small phones or very narrow devices (max-width: 400px) */
@media (max-width: 400px) {
    #footer-Contact {
        padding: 15px 10px;
    }

    #footer-Contact h1 {
        font-size: 18px;
    }

    #footer-Contact p {
        font-size: 13px;
    }

    .logo {
        font-size: 36px;
    }

    .logo::after {
        font-size: 10px;
        top: 1px;
        right: -10px;
    }
}

#about  {
    text-align: center;
    min-height: 100vh;
    width: 100%;
}
.footer-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.contact-info, .contact-form {
    flex: 1 1 300px;
    color: #fff;
}

.contact-form h2 {
    margin-bottom: 10px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    padding: 10px;
    border: none;
    border-radius: 5px;
    width: 100%;
    background-color: #333;
    color: white;
}

.contact-form textarea {
    resize: vertical;
}

.form-buttons {
    margin-top: 15px;
}

.contact-form input[type="submit"],
.contact-form input[type="reset"] {
    padding: 10px 15px;
    margin-right: 10px;
    border: none;
    border-radius: 5px;
    background-color: #352d9e;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form input[type="submit"]:hover,
.contact-form input[type="reset"]:hover {
    background-color: #5752cc;
}

/* Responsive stacking for small screens */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-info, .contact-form {
        width: 100%;
    }
}
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: 50vh;
    background-color: rgba(0, 0, 0, 0.7); /* Slight overlay for readability */
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    gap: 40px;
    justify-content: center;
    align-items: center;
    color: white;
}

.hero-text {
    flex: 1 1 500px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #00ffcc;
}

.hero-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.hero-video {
    flex: 1 1 500px;
}

.hero-video iframe {
    width: 100%;
    max-width: 100%;
    height: 315px;
    border-radius: 12px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        flex-direction: column;
    }

    .hero-video iframe {
        height: 240px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }
}
.featured-keyboards {
    text-align: center;
    padding: 60px 20px;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.featured-keyboards h2 {
    font-size: 2rem;
    color: #00ffcc;
    margin-bottom: 10px;
}

.featured-keyboards p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.keyboard-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 500px;
}

.keyboard-list li {
    padding: 10px;
    font-size: 1.1rem;
    border-bottom: 1px solid #444;
}
.keyboard-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    justify-items: center;
    margin-top: 30px;
}

.keyboard-gallery figure {
    margin: 0;
    padding: 0;
    text-align: center;
    color: white;
}

.keyboard-gallery img {
    width: 100%;
    max-width: 250px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.keyboard-gallery img:hover {
    transform: scale(1.05);
}

.keyboard-gallery figcaption {
    margin-top: 8px;
    font-size: 1rem;
    color: #00ffcc;
}

