@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #333;
    --secondary-color: #f4f4f4;
    --accent-color: #007BFF;
    --text-color: #555;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Montserrat', sans-serif;
}

body {
    font-family: var(--body-font);
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: #fff;
    line-height: 1.6;
}

.container {
    width: 85%;
    margin: 0 auto;
    max-width: 1200px;
}

/* Header and Navigation */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./images/hero.jpg') no-repeat center center/cover;
    height: 100vh;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
    z-index: 1000;
    transition: background 0.3s;
}

nav .logo {
    float: left;
    font-size: 1.8rem;
    font-weight: 700;
    margin-left: 5%;
}

nav ul {
    float: right;
    margin-right: 5%;
    list-style: none;
}

nav ul li {
    display: inline;
    margin-left: 2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--accent-color);
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-family: var(--heading-font);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.cta-button {
    background: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: #0056b3;
}

/* Content Sections */
.content-section {
    padding: 6rem 0;
}

.content-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-family: var(--heading-font);
    color: var(--primary-color);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-item {
    background: var(--secondary-color);
    padding: 2rem;
    text-align: center;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-item h3 {
    color: var(--primary-color);
    font-family: var(--heading-font);
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    height: 300px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.4s;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.4s;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

/* Contact Section */


.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.contact-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-item h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-item p {
    margin: 0;
    font-size: 1rem;
    color: #666;
    word-wrap: break-word;
}

.contact-item a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--body-font);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-in-out forwards;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s, transform 1s;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media(max-width: 768px) {

    nav .logo,
    nav ul {
        float: none;
        text-align: center;
        margin: 0;
    }

    nav ul {
        margin-top: 1rem;
    }

    nav ul li {
        display: block;
        margin: 0.5rem 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Mobile Navigation Styles */
.menu-toggle {
    display: none;
    /* Hidden by default on larger screens */
    cursor: pointer;
    position: absolute;
    right: 5%;
    top: 25px;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: all 0.3s ease-in-out;
}

@media(max-width: 768px) {
    .menu-toggle {
        display: block;
        /* Show hamburger menu */
    }

    .nav-links {
        display: none;
        /* Hide navigation links by default */
        position: absolute;
        width: 100%;
        top: 70px;
        /* Adjust as needed */
        left: 0;
        background: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        align-items: center;
    }

    .nav-links.active {
        display: flex;
        /* Show when active */
    }

    nav .logo,
    nav ul {
        float: none;
        text-align: center;
        margin: 0;
        width: auto;
    }

    nav {
        padding-bottom: 70px;
    }

    nav.nav-open {
        background: rgba(0, 0, 0, 0.9);
    }
}