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

/* Colour palette */
:root {
    --primary-color: #e61c4c; /* red accent taken from company logo */
    --primary-dark: #b8123b; /* darker shade for hover states */
    --background-dark: #101318; /* dark background for body */
    --card-dark: #1a1d23; /* dark background for cards and sections */
    --text-light: #f5f5f5; /* light text for dark backgrounds */
    --text-muted: #cccccc; /* muted text for paragraphs */
}

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

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Navigation */
/* Navigation */
.navbar {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

/* Logo wrapper for placing the image */
.logo-wrapper {
    display: flex;
    align-items: center;
    /* Add a subtle light background behind the logo so the dark logo remains visible on the dark navbar */
    background-color: rgba(255, 255, 255, 0.12);
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
}

.site-logo {
    height: 40px;
    width: auto;
    /* Remove colour inversion; rely on light background to make logo visible */
    filter: none;
}

/* About image styling */
.about-img {
    /* Limit the width of the about image so it doesn't dominate the section on large screens */
    width: 100%;
    height: auto;
    max-width: 600px;
    margin: 1.5rem auto 0 auto;
    display: block;
    border-radius: 4px;
}

/* Service card images */
.service-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

/* Projects grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.project-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}
.project-item h4 {
    font-size: 1rem;
    color: var(--text-light);
}

/* Video projects section */
.designed-projects .videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.video-item iframe {
    width: 100%;
    height: 180px;
    border: none;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}
.video-item h4 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--primary-color);
}
.video-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
/* Hero container now uses slider; removed flex centering */
.hero {
    position: relative;
    height: 80vh;
    overflow: hidden;
    color: var(--text-light);
    text-align: center;
}

/* Remove old hero background and overlay definitions (not needed for slider) */

/* Slider container and slides */
.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fade 24s infinite;
}

/* Individual slides set background images and animation delays in HTML classes */

.slide-1 {
    /* Administrative Buildings: modern office */
    background-image: url('../images/hero2.png');
    animation-delay: 0s;
}

.slide-2 {
    /* Industrial Buildings */
    background-image: url('../images/hero1.png');
    animation-delay: 8s;
}

.slide-3 {
    /* Educational Buildings */
    background-image: url('../images/hero3.png');
    animation-delay: 16s;
}

/* Dark overlay to enhance text contrast */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
}

/* Slide content centered on each slide */
.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    max-width: 90%;
}

.slide-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-light);
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* Fade animation controlling visibility of each slide */
@keyframes fade {
    0% { opacity: 1; }
    27% { opacity: 1; }
    33% { opacity: 0; }
    94% { opacity: 0; }
    100% { opacity: 1; }
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-dark);
}

/* Sections */
/* Sections */
.section {
    padding: 4rem 0;
    background-color: var(--card-dark);
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--primary-color);
}

.section p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Director Statement */
/* Director Statement */
.statement ul {
    list-style: disc inside;
    margin-top: 1rem;
    color: var(--text-muted);
}

.statement li {
    margin-bottom: 0.5rem;
}

/* Services */
 .services .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    background-color: var(--card-dark);
    padding: 2rem;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.service-item p {
    color: var(--text-muted);
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Projects */
.projects p {
    max-width: 800px;
    margin: 0.5rem auto;
    text-align: center;
}

/* Stats */
/* Stats */
.stats {
    background-color: var(--card-dark);
    color: var(--text-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem 1rem;
}

 .stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 1rem;
    color: var(--text-muted);
}

/* Contact */
/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: flex-start;
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-light);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #1e2127;
    color: var(--text-light);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form button {
    margin-top: 0.5rem;
}

/* Footer */
/* Footer */
.footer {
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.footer-col ul {
    list-style: none;
    padding-left: 0;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: var(--text-muted);
}