
/* 

Brand Guidelines:

Logo: Need to find (Currently it is text)
Font: Montserrat (Looking up how to implement)
Colors: Grey and Dark Blue
Design Style: Sleek and Modern
Pictures Used: Realistic, Tech Orientied, No drawn images.

*/


/* Global Styles */

* {
    font-family: 'Montserrat', sans-serif; /* Sets all website fonts to be Montserrat" */
}

section {
    padding-left: 40px;
    padding-right: 40px;
}

header {
    margin-left: 50px;
    padding-top: 50px;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Applies box-sizing globally */
}

img {
    width: 100%;
    height: auto;
    border-radius: 5px; /* Rounds image corners */
}

a {
    text-decoration: none;  /* Removes Underline from links */
    color: inherit;  /* Links inherit text color */
}

button {
    padding: 10px 20px;
    background-color: #230097;
    color: #fff;
    border: none;
    cursor: pointer;  /* Changes cursor to hand to show that an element is clickable */
    border-radius: 5px;
}

button:hover {
    opacity: 0.8;  /* Reduces Opacity on hover */
}

/* Nav Bar Styles */

nav {

    display: flex;
    justify-content: space-between; /* Distributes items with equal spacing */
    align-items: center;
    padding: 20px;
    background-color: #333;
}

.logo {                  
    color: #fff;
    font-size: 24px;
    font-weight: bold; /* Makes text bold */
}

/* Navigation Bar */


.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    position: sticky;
    background-color: #1b1f2b;
    top: 0;
    z-index: 999; /* Makes navbar stay on top of all items */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;    /* Space added between nav links */
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;  /* Adds color transition */
}

.nav-links a:hover {
    color: #4C57C4;
}

.hamburger {
    display: none; /* Hidden on larger screens */
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}


/* Drop Down Menu */

.dropdown {                   
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333;
    min-width: 160px;
    border-radius: 5px;
    z-index: 1000;     /* Makes dropdown menu appear above all other elements */
    padding: 0;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.dropdown-menu li {
    display: block;
    text-align: left;
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;    /* Stop text wrap */
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a:hover {
    background-color: #444;
}

.navbar ul li:hover .dropdown-menu {
    display: block;
    visibility: visible;
    opacity: 1;       /* Makes drop down visible */
}

.book-demo {
    background-color: #230097;     /* Book a demo button style */
    color: #fff;
    padding: 10px;
}

/* Welcome Section */

.welcome-section {
    position: relative;
    width: 100%;
    height: 400px;
    background: url('Welcome.jpg') no-repeat center center/cover; 
    text-align: center;
    color: #fff;
}

.welcome-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.welcome-section .tagline {  
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center content */
    font-size: 36px;
    font-weight: bold;
}

.welcome-section .learn-more {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translateX(-50%);  /* Centers elements */
}

/* Product Overview */

.product-overview {
    text-align: center;
    padding: 50px 20px;
}

.product-overview .overview-content {
    width: 80%;
    margin: 0 auto;
    font-size: 18px;
}

/* Features */

.features {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.feature-box {
    width: 80%;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
}

.feature-box img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 5px;
}

.feature-box h3 {
    margin: 10px 0;
}

/* Blogs */

.featured-blogs {
    text-align: center;
    padding: 50px 20px;
}

.featured-blogs .read-more {
    margin: 20px 0;
}

.blog-items {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.blog-item {
    width:30%;
    text-align: center;
}

.blog-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 200px;
    border-radius: 5px;
}

/* Contact Us */

.contact-us {
    padding: 50px 20px;
    background-color: #fff;
}

.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    max-height: 550px;
    object-fit: cover;
    border-radius: 10px;
}

.contact-text {
    max-width: 50%;
    padding-left: 40px;
}

.contact-button {
    margin-top: 20px;
}

/* Media Query */

@media (max-width: 768px) {

    /* Makes navbar vertical */

    .navbar {
        flex-direction: column;
        align-items: center;
        position: relative;
    }
    
    /* Adds hamburger menu on mobile screens */

    .hamburger {
        display: block;
        position: absolute;
        top: 5px;
        right: 20px;
        z-index: 1001;
        cursor: pointer;
        color: white;
        font-size: 2rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #1b1f2b;
        position: absolute;
        top: 60px;
        left: 0;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-links li {
        margin: 8px 0;
        text-align: center;
        list-style: none;
    }

    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        background-color: #1b1f2b;
        flex-direction: column;
        text-align: center;
        margin-top: 8px;
    }

    .dropdown:hover .dropdown-menu {
        display: flex;
    }

    .feature-box {
        width: 90%;
        margin: 10px auto;
        padding: 15px;
    }

    .features {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .blog-items {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        display: flex;
    }

    .blog-item {
        width: 90%;
    }

    .blog-container,
    .blog-item,
    .contact-containers {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-containers {
        display: flex ;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-text {
        max-width: 90%;
        padding: 0;
        text-align: center;
    }

    .contact-image img {
        max-height: 300px;
        width: 100%;
        height: auto;
    }
    
    .welcome-section .tagline {
        font-size: 24px;  /* Smaller Tagline for mobile */
        text-align: center;
    }

    .welcome-section .learn-more button {
        padding: 8px 16px;
        font-size: 14px;
    }

    .learn-more button {
        padding: 8px 16px;
        font-size: 14px;
    }

    .product-overview .overview-content {
        width: 100%;
        padding: 0 10px;
        text-align: center;
    }

    .blog-main {
        display: grid;
        grid-template-columns: 1fr;
    }

    footer .footer-content {
        text-align: center;
        padding: 20px;
    }

    .book-demo {
        display: none;
    }
    
}

/* Button Hover Animation */

button:hover {  /* Changes background on hover */
    background-color: #333;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

/* Support Page */

.support-section {
    padding: 50px 20px;
    background-color: #f4f4f4;
}

.support-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

button[type="submit"] {
    background-color: #230097;
    color: #fff;
    padding: 15px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {      /* Hover effect for submit button */
    background-color: #333;
}

/* Blog Container */
.blog-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* Blog Main Content */
.blog-main {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns layout */
    gap: 20px; /* Spacing between posts */
    flex: 2;
}

/* Individual Blog Post */
.blog-post {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Shadow effect */
    transition: transform 0.3s ease; /* Slight hover effect */
}

.blog-post:hover {              /* Slight post elevation on hover */
    transform: translateY(-5px);
}

.blog-post img {
    width: 100%;
    height: auto;
    max-width: 350px;
    margin-bottom: 20px;
    object-fit: cover;  /* Maintains aspect ratio */
    border-radius: 5px;
}

.blog-post h2 {
    font-size: 20px;
    margin: 10px 0;
}

.blog-post p {
    font-size: 16px;
    color: #555;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.read-more:hover {              /* Underline on hover */
    text-decoration: underline;
}

/* Sidebar */
.blog-sidebar {
    flex: 1;
    padding: 20px;
    background: #fff;
    border-left: 2px solid #ddd;
}

/* Footer */

.site-footer {
    background-color: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

.site-footer a {
    color: #4C57C4;
    text-decoration: none;
}

.site-footer a:hover {          /* Underline link on hover */
    text-decoration: underline;
}