/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

.hidden {
    display: none !important;
}

/* Header & Navigation */
header {
    background: #fff;
    color: #333;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-weight: bold;
    font-size: 1.5rem;
    text-decoration: none;
    color: #333;
}

nav .nav-links {
    list-style: none;
    display: flex; /* Default for larger screens */
}

nav .nav-links li {
    margin-left: 20px;
}

nav .nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav .nav-links a:hover {
    color: #007BFF;
}

.hamburger {
    display: none; /* Hidden by default for larger screens */
    cursor: pointer;
    font-size: 1.5rem;
}

/* Sections */
section {
    padding: 4rem 5%;
    text-align: center;
}

section:nth-child(odd) {
    background: #fff;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Hero Section */
#hero {
    background: #333;
    color: #fff;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
    max-width: 1000px;
    margin: 0 auto;
}

.about-content img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
}

/* Work Section */
.sample-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.sample-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: left;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sample-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.sample-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.sample-card-content {
    padding: 1rem;
}

.sample-card-content h3 {
    margin-bottom: 0.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.pagination button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Testimonials */
.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 5px solid #007BFF;
}

.testimonial p {
    font-style: italic;
}

.testimonial .author {
    font-style: normal;
    font-weight: bold;
    margin-top: 1rem;
    text-align: right;
}

/* Contact Form */
#contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

#success-message {
    margin-top: 1rem;
    color: #28a745;
    font-weight: bold;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 2rem 5%;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #007BFF;
}

footer p {
    margin-top: 1rem;
}

/* Buttons & Admin */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background: #0056b3;
}

#admin-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    gap: 10px;
}

/* Form Editor Styles (for form.html if you use it) */
.form-container {
    padding: 2rem 5%;
    max-width: 900px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 8px;
}

.form-container h1 {
    text-align: center;
    margin-bottom: 2rem;
}

fieldset {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

legend {
    padding: 0 0.5rem;
    font-weight: bold;
    font-size: 1.2rem;
}

.form-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-container input,
.form-container textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-actions {
    text-align: center;
}

.editor-group {
    border: 1px dashed #ddd;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    position: relative;
}

.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    /* THIS IS THE KEY FIX FOR THE HAMBURGER MENU */
    nav .nav-links {
        display: none; /* Hide the menu by default on mobile */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px; /* Adjust based on your header height */
        left: 0;
        background: #fff;
        text-align: center;
        padding: 1rem 0;
        box-shadow: 0 5px 5px rgba(0,0,0,0.1);
        z-index: 999;
    }

    nav .nav-links.active {
        display: flex; /* Show the menu when the 'active' class is added by JS */
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .hamburger {
        display: block; /* Show the hamburger icon on mobile */
    }

    .about-content {
        flex-direction: column;
    }
}
