/* Root variables for consistent theming */
:root {
    --primary: #003d6a;    /* deep navy blue */
    --secondary: #006bb6;  /* royal blue accent */
    --background: #f9f9f9; /* light grey background */
    --text: #333333;       /* dark text colour */
}

/* Base styles */
html, body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: var(--secondary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Container provides consistent horizontal padding */
.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header and navigation */
header {
    background-color: var(--primary);
    color: #ffffff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
}

.logo .tagline {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    color: #ffffff;
    font-weight: 500;
    transition: opacity 0.2s;
}

nav ul li a:hover {
    opacity: 0.75;
}

/* Hero section */
.hero {
    background-color: #ffffff;
    padding: 3rem 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-text h2 {
    margin-top: 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.hero-text p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    max-width: 550px;
}

.button {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    background-color: var(--secondary);
    color: #ffffff;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background-color 0.2s;
}

.button:hover {
    background-color: #005797;
}

.hero-image img {
    max-width: 280px;
    width: 100%;
    border-radius: 50%;
    border: 4px solid var(--secondary);
}

/* Section styling */
.section {
    padding: 2.5rem 0;
    border-bottom: 1px solid #e6e6e6;
}

.section h2 {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary);
    border-bottom: 2px solid var(--secondary);
    display: inline-block;
    padding-bottom: 0.25rem;
}

.section p {
    margin-bottom: 1rem;
    font-size: 1rem;
    text-align: justify;
}

/* Projects */
.project {
    margin-bottom: 2rem;
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.project h3 {
    margin-top: 0;
    color: var(--secondary);
}

.project p {
    margin-bottom: 0.75rem;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.gallery img {
    width: calc(33.333% - 0.5rem);
    height: auto;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Contact and downloads */
.contact-list, .downloads-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-list li, .downloads-list li {
    margin-bottom: 0.5rem;
}

footer {
    background-color: var(--primary);
    color: #ffffff;
    text-align: center;
    padding: 1rem 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-image img {
        max-width: 200px;
        margin: 0 auto;
    }
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: flex-start;
        margin-top: 0.5rem;
    }
    nav ul li {
        margin-right: 1rem;
    }
}