/* Define color variables */
:root {
    --color-primary: #333;/*#4a4a8d; /* Primary brand color */
    --color-secondary: #333;/*#805ad5; /* Secondary brand color */
    --color-light: #f7f9fc; /* Light background */
    --color-dark: #1a202c; /* Dark text color */
    --color-muted: #4a5568; /* Muted text color */
    --color-white: #ffffff; /* White */
    --color-box-shadow: rgba(0, 0, 0, 0.1); /* Box shadow color */
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--color-light);
    color: #333;
}

/* Header */
header {
    background-color: var(--color-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    box-shadow: 0 2px 8px var(--color-box-shadow);
}

header .logo h1 {
    font-size: 2.5rem;
    color: var(--color-primary);
}

#logo-img { 
    float: left;
    display: inline-block;
    width: 25vw;
    height: 6vh;
    color: var(--color-secondary);
}

header nav ul {
    display: flex;
    list-style: none;
}

header nav ul li {
    margin: 0 1.5rem;
}

header nav ul li a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
}

.cta-header a {
    background-color: var(--color-secondary);
    padding: 0.75rem 1.5rem;
    color: var(--color-white);
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

/* Hero Section */
#hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/img/hero-bg.png'); /* Add a relevant background image */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90vh;
    text-align: center;
    padding: 3rem;
    color: var(--color-white); /* Ensure text is visible against background */
}

#hero .hero-content h2 {
    font-size: 4rem;
    color: var(--color-white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

#hero .hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.cta-button {
    background-color: var(--color-secondary);
    padding: 1rem 2rem;
    color: var(--color-white);
    font-size: 1.2rem;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background-color: #716b6b;/*#6a41b3;*/
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(128, 90, 213, 0.3);
}


/* About Section */
#about {
    background-color: var(--color-white);
    padding: 5rem 10rem;
    text-align: center;
    box-shadow: 0 2px 8px var(--color-box-shadow);
    margin: 3rem auto;
    max-width: 1000px;
    border-radius: 12px;
}

#about h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

#about p {
    font-size: 1.2rem;
    color: var(--color-muted);
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 1rem;
    padding: 0 2rem;
}

/* Features Section */
#features {
    padding: 5rem 10rem;
    background-color: var(--color-light);
}

.features-heading {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: var(--color-light);
    padding: 1rem 0;
    transition: opacity 0.3s ease;
}

.feature {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5rem;
    padding: 3rem;
    border-radius: 12px;
    background-color: var(--color-white);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.feature:hover ~ .features-heading {
    opacity: 0;
}

.feature img {
    flex: 1;
    width: 45%;
    border-radius: 10px;
    box-shadow: 0 4px 12px var(--color-box-shadow);
    transition: transform 0.3s ease;
}

.feature img:hover {
    transform: scale(1.05);
}

.feature-content {
    flex: 1;
    padding: 0 2rem;
}

.feature-content h3 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.feature-content p {
    font-size: 1.1rem;
    color: var(--color-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.feature-content a {
    display: inline-block;
    background-color: var(--color-secondary);
    padding: 0.75rem 2rem;
    color: var(--color-white);
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-content a:hover {
    background-color: #6a41b3;
    box-shadow: 0 4px 12px rgba(128, 90, 213, 0.3);
}

.feature.reverse {
    flex-direction: row-reverse;
}

/* Portfolio Section */
#portfolio {
    padding: 5rem 10rem;
    background-color: var(--color-light);
}

#portfolio h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.portfolio-item {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.portfolio-item h4 {
    font-size: 1.7rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.portfolio-item p {
    font-size: 1.1rem;
    color: var(--color-muted);
    line-height: 1.6;
}

/* Contact Section */
#contact {
    padding: 5rem 10rem;
    background-color: var(--color-light);
    text-align: center;

}

#contact h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

#contact p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--color-muted);
}

form input, form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

form button:hover {
    background-color: #716b6b/*#6a41b3;*/
}

#contact p:last-child {
    margin-top: 2rem;
    font-size: 1rem;
}

/* Footer */
footer {
    padding: 2rem 0;
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
}

footer p {
    margin-bottom: 1rem;
}

footer .social-links a {
    color: var(--color-white);
    margin: 0 0.5rem;
    text-decoration: none;
}

footer .social-links a:hover {
    text-decoration: underline;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    #about, #features, #portfolio, #contact {
        padding: 2rem;
    }

    .feature {
        flex-direction: column;
    }

    .portfolio-container {
        flex-direction: column;
    }

    form input, form textarea {
        padding: 0.75rem;
    }
}
