/* Base Colors & Variables */
:root {
    --primary-blue: #3498db;
    --primary-green: #2ecc71;
    --light-blue: #ebf5fb;
    --light-green: #eafaf1;
    --dark-grey: #2c3e50;
    --text-color: #34495e;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

/* Navigation */
header {
    background-color: var(--white);
    padding: 1rem 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-blue);
    text-transform: uppercase;
}

.logo span {
    color: var(--primary-green);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-green);
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--light-green) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 10%;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--dark-grey);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
    background-color: var(--primary-green);
    transform: translateY(-2px);
}

/* Common Content Styles */
.content-page {
    padding: 4rem 10%;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.container h1 {
    font-size: 2.5rem;
    color: var(--dark-grey);
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--primary-green);
    display: inline-block;
}

/* Portfolio Styles */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    background-color: var(--light-blue);
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.3s;
}

.portfolio-item:hover {
    transform: scale(1.05);
}

.item-placeholder {
    width: 100%;
    height: 200px;
    background-color: #ccd1d1;
    border-radius: 5px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-style: italic;
}

/* Form Styles */
.contact-form {
    background-color: var(--light-green);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Footer */
footer {
    background-color: var(--dark-grey);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    nav ul {
        display: none; /* Simplification for mobile for this basic code */
    }
}

/* ... [Keep the previous styles, but replace/add the sections below] ... */

/* Improved Navigation for Mobile */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 15px;
    }

    nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 15px;
        padding: 0;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .hero-content h1 {
        font-size: 2.2rem; /* Smaller text for mobile screens */
    }

    .content-page {
        padding: 2rem 5%; /* More breathing room on small screens */
    }

    .portfolio-grid {
        grid-template-columns: 1fr; /* Stack portfolio items in a single column */
    }
}

/* Touch-Friendly Improvements */
.btn, nav ul li a {
    padding: 12px; /* Larger hit-area for fingers */
    display: inline-block;
}

input, textarea {
    font-size: 16px; /* Prevents iOS from auto-zooming on input */
}

/* Ensure images in the visuals folder fit nicely */
.portfolio-img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* This crops the image to fill the space perfectly */
    border-radius: 8px 8px 0 0;
}

/* Style for your logo image */
.logo img {
    display: block;
    max-width: 150px;
    height: auto;
}

/* ... [Keep all your existing CSS] ... */

/* Ensure the success/error messages display correctly when Formspree toggles them */
[data-fs-success], [data-fs-error] {
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    margin-top: 1rem;
}

/* Optional: add a "sending" state for the button */
[data-fs-submit-btn]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
