/* General styling */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333333;
    background-color: #f4f4f4;
    line-height: 1.6;
}

/* Header styling */
header {
    background: #1a73e8;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header .logo-container {
    display: inline-block;
    margin-right: 1rem;
}

header .logo {
    height: 50px;
    vertical-align: middle;
}

header nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

header a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

header a:hover {
    color: #fbbc05;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    header nav {
        flex-direction: column;
        display: none;
        width: 100%;
    }

    header nav.active {
        display: flex;
    }

    header a {
        margin: 0.5rem 0;
    }

    .hamburger {
        display: flex;
    }
}

/* Footer styling */
footer {
    background: #1a73e8;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    color: #fbbc05;
}

/* Main content styling */
main {
    margin-top: 80px; /* Adjust based on header height */
    padding-bottom: 80px; /* Adjust based on footer height */
}

.hero {
    background: linear-gradient(rgba(26, 115, 232, 0.7), rgba(26, 115, 232, 0.7)), url('/static/background-image.jpg') no-repeat center center/cover;
    color: #fff;
    padding: 5rem 2rem;
    text-align: center;
    animation: fadeIn 2s ease-in-out;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero a {
    background: #fbbc05;
    color: #1a73e8;
    padding: 1rem 2rem;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.hero a:hover {
    background: #e09b00;
}

/* Card Layout */
.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.card h2 {
    font-family: 'Montserrat', sans-serif;
    color: #1a73e8;
    margin-bottom: 1rem;
    font-weight: 700;
}

.card p {
    margin-bottom: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive design enhancements */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero a {
        padding: 0.5rem 1rem;
    }

    .card {
        margin: 1rem 0;
    }
}

/* GPT Grid Layout */
.gpt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.gpt-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gpt-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.gpt-card img {
    max-width: 100%;
    border-radius: 5px;
}

.gpt-card h4 {
    font-family: 'Montserrat', sans-serif;
    color: #1a73e8;
    margin: 1rem 0;
    font-weight: 700;
}

.gpt-card p {
    margin-bottom: 1rem;
}

.gpt-card a {
    background: #1a73e8;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.gpt-card a:hover {
    background: #155ab2;
}

/* Applications Grid Layout */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.app-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    text-align: left; /* Align text to the left */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.app-card img {
    display: block; /* Makes sure the image behaves like a block element */
    margin: 0 auto; /* Centers the image */
    max-width: 100%;
    border-radius: 5px;
}

.app-card h4 {
    font-family: 'Montserrat', sans-serif;
    color: #1a73e8;
    margin: 1rem 0;
    font-weight: 700;
}

.app-card p {
    margin-bottom: 1rem;
}

.app-card a {
    background: #1a73e8;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.app-card a:hover {
    background: #155ab2;
}

/* Services Section Enhancements */
#services {
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('/static/ai-background.jpg') no-repeat center center/cover;
    color: #333333;
    padding: 3rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#services h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

#services p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

#services ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    text-align: left;
    display: inline-block;
    margin-top: 1rem;
}

#services ul li {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

#services .contact-btn {
    display: inline-block;
    background: #fbbc05;
    color: #1a73e8;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
    margin-top: 2rem;
    transition: background 0.3s ease;
}

#services .contact-btn:hover {
    background: #e09b00;
}
