:root {
    --primary: #000000;
    --secondary: #111111;
    --accent: #39FF14;
    --text: #FFFFFF;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.main-nav {
    background: var(--primary);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    margin: 0;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.main-nav a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* Hero Section */
.hero {
    position: relative;
    height: 60vh;
    animation: fadeIn 1s ease-in-out;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: fadeIn 1s ease-in-out;
}

.hero h1 {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent);
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    white-space: nowrap; /* Prevent text from wrapping */
    overflow: hidden; /* Hide overflow text */
    text-overflow: ellipsis; /* Add ellipsis for overflow text */
    max-width: 80%; /* Ensure text fits within the hero section */
    animation: slideIn 1s ease-in-out;
}

.hero p {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent);
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    white-space: nowrap; /* Prevent text from wrapping */
    overflow: hidden; /* Hide overflow text */
    text-overflow: ellipsis; /* Add ellipsis for overflow text */
    max-width: 80%; /* Ensure text fits within the hero section */
    animation: slideIn 1s ease-in-out;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    animation: fadeIn 1s ease-in-out;
}

.services-grid article {
    background: #B22222; /* Dark red brick color */
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    animation: slideIn 0.5s ease-in-out;
}

/* Gallery Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 2rem 0;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

.gallery-grid figcaption {
    color: var(--text);
    text-align: center;
    margin-top: 0.5rem;
}

#gallery {
    background: var(--primary);
    color: var(--text);
    padding: 2rem 0;
}

#gallery h2 {
    color: var(--text);
}

/* Contact Section */
.contact-content {
    background: var(--secondary);
    color: var(--text);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.contact-content h2 {
    color: var(--text);
}

address a {
    color: white;
    text-decoration: none;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact-form label {
    font-weight: bold;
}

#contact-form input, #contact-form textarea {
    padding: 0.5rem;
    border: 1px solid var(--primary);
    border-radius: 4px;
}

#contact-form button {
    background: var(--primary);
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#contact-form button:hover {
    background: darken(var(--primary), 10%);
    transform: scale(1.05);
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--accent);
    text-align: center;
    padding: 1rem;
    margin: 0;
    animation: fadeIn 1s ease-in-out;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(20px); }
    to { transform: translateY(0); }
}

/* Brickwork Pattern */
.brick-pattern {
    background-image: url('../images/brickwork_pattern.jpg');
    background-size: 100px 100px; /* Adjust the size to match the pattern */
    background-repeat: repeat;
}

/* Navigation */
.main-nav {
    background: var(--primary);
    padding: 0.5rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Header */
.main-nav ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #FFFFFF;
}

/* Hero Section */
.hero {
    position: relative;
    height: 40vh; /* Adjust the height as needed */
}

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

.hero h1 {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent);
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    white-space: nowrap; /* Prevent text from wrapping */
    overflow: hidden; /* Hide overflow text */
    text-overflow: ellipsis; /* Add ellipsis for overflow text */
    max-width: 80%; /* Ensure text fits within the hero section */
}

.hero p {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent);
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    white-space: nowrap; /* Prevent text from wrapping */
    overflow: hidden; /* Hide overflow text */
    text-overflow: ellipsis; /* Add ellipsis for overflow text */
    max-width: 80%; /* Ensure text fits within the hero section */
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--accent);
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    animation: fadeIn 1s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }
}

/* About Section */
.about-content {
    background: var(--secondary);
    color: var(--text);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-image img {
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    margin: 2rem auto;
    display: block;
}

/* Contact Page */
#contact {
    background: var(--primary);
    color: var(--text);
    padding: 2rem 0;
}

#contact h2 {
    color: var(--text);
}

/* Home Page */
#services {
    background: var(--primary);
    color: var(--text);
    padding: 2rem 0;
}

#services h2 {
    color: var(--text);
}
