/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #222222;
    color: #ffffff;
    line-height: 1.6;
    font-family: quasimoda, sans-serif; /* Removed quotes */
    font-weight: 400;
    font-style: normal;
}

h1, h2, h3, h4, .logo, nav a, .cta-button, .section-title {
    font-family: ivystyle-sans, sans-serif;
    font-weight: 600;
    font-style: normal;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    padding: 20px 0;
}

.logo {
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 10px;
}

nav {
    display: flex;
    justify-content: center;
    padding: 15px 0;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}

nav a:hover {
    opacity: 0.7;
}

.social-icons {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    position: absolute;
    top: 30px;
    left: 30px;
}

.social-icons a {
    color: #ffffff;
    font-size: 0.9rem;
}

.cta-button {
    position: absolute;
    top: 20px;
    right: 30px;
    background-color: #3a7e8c; /* Teal blue instead of yellow */
    color: #ffffff;
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #2c6470;
}

/* Hero Section */
.hero {
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url('../images/hero-bg.webp');
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
}

/* Section Styles */
section {
    padding: 60px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 40px;
}

.section-divider {
    width: 60%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 30px auto;
}

/* Services Section */
.services {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.service-item {
    flex: 0 0 30%;
    text-align: center;
    padding: 20px;
}

.service-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.service-item p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.learn-more {
    display: inline-block;
    color: #4db6ac; /* Softer teal color */
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid #4db6ac;
    padding-bottom: 2px;
    transition: opacity 0.3s ease;
}

.learn-more:hover {
    opacity: 0.7;
}

/* Portfolio Section */
.portfolio {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.portfolio-text {
    flex: 0 0 45%;
    padding-right: 40px;
}

.portfolio-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.portfolio-text p {
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.portfolio-image {
    flex: 0 0 50%;
    height: 350px;
    overflow: hidden;
    background-color: #333;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-cta {
    margin-top: 20px;
    background-color: #3a7e8c;
    color: #ffffff;
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.portfolio-cta:hover {
    background-color: #2c6470;
}

/* AI for beginners section */
.ai-beginners {
    background-color: rgba(58, 126, 140, 0.1);
    padding: 30px;
    border-radius: 5px;
    margin-top: 40px;
}

.ai-beginners h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.ai-beginners p {
    margin-bottom: 20px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Blog Preview */
.blog-preview {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 40px;
}

.blog-item {
    flex: 0 0 30%;
    margin-bottom: 30px;
    background-color: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.blog-thumbnail {
    height: 200px;
    overflow: hidden;
}

.blog-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.blog-content p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Contact Section */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.9rem;
    font-family: quasimoda, sans-serif;
}

.form-group textarea {
    min-height: 120px;
}

.submit-btn {
    background-color: #3a7e8c;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-family: ivystyle-sans, sans-serif;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #2c6470;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: #4db6ac;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.7;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .services {
        flex-direction: column;
    }

    .service-item {
        flex: 0 0 100%;
        margin-bottom: 30px;
    }

    .portfolio {
        flex-direction: column;
    }

    .portfolio-text, .portfolio-image {
        flex: 0 0 100%;
    }

    .portfolio-text {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .blog-item {
        flex: 0 0 100%;
    }

    .social-icons, .cta-button {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
    }

    .social-icons {
        justify-content: center;
        margin-bottom: 20px;
    }

    .cta-button {
        display: block;
        margin: 20px auto;
    }
}
