:root {
    --dark: #0e1a2b;
    --white: #ffffff;
    --accent: #c8102e; /* Canadian red */
}

/* GLOBAL STYLES */
* { box-sizing: border-box; }
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--white);
    overflow-x: hidden; /* fix horizontal scroll */
}

/* HEADER */
header {
    background: var(--dark);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.brand img { height: 80px; }
nav a {
    color: var(--white);
    margin-left: 1.5rem;
    text-decoration: none;
    font-weight: 600;
}
nav a:hover { color: var(--accent); }

/* Universal section style */
section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
    overflow: hidden;
}
section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5); /* dark overlay */
    z-index: 0;
}
section .content {
    position: relative;
    max-width: 900px;
    z-index: 1;
}
section .bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: -1;
    pointer-events: none;
}

/* HERO SECTION */
.hero {
    display: flex;
    justify-content: center;
    text-align: center;
    background: var(--dark); /* solid dark background */
}

.hero h1 {
    font-size: clamp(3rem, 14vw, 9rem); /* adjusts automatically based on viewport width */
    font-weight: 800;
    background: url('images/canada-flag.png') no-repeat center center;
    background-size: 90%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin: 0 0 0.6rem 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
} 
.hero p { font-size: clamp(1rem, 2.2vw, 1.5rem); }

/* ABOUT SECTION */
.about {
    justify-content: flex-end; /* align content to right */
    padding: 4rem 2rem;
    color: white;
    font-family: "Courier New", monospace;
}
.about .content {
    text-align: right;
    margin-right: 5%; /* padding from edge */
}

.about h2 {
    font-size: 2.5rem;       /* increase from default */
    font-weight: 700;      /* bold but slightly lighter than hero */
    margin-bottom: 2rem;
    color: white;
}
.about p { font-size: 1.5rem; }

.typing-text {
    display: inline-block;
    white-space: pre-wrap;
    overflow: hidden;
    font-size: 1rem;
    max-width: 900px;
    margin: 1rem auto;
    letter-spacing: 0.05em;
}

/* SERVICES SECTION */
.services {
    justify-content: center; /* flex-startalign content to left */
    color: var(--white);
    padding: 4rem 2rem;
}
.services .content {
    text-align: justify;
    margin-left: 5%;
}

.services h2 {
    font-size: 2.5rem;       /* increase from default */
    font-weight: 800;      /* bold but slightly lighter than hero */
    margin-bottom: 1.5rem;
    text-align: center;
}
.services p { font-size: 1.5rem; }

.services .intro {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
}

.services-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem 2rem;
    padding: 0;
    margin: 0 auto;
}

.services-list li {
    background: rgba(255, 255, 255, 0.05); /* subtle transparent background */
    padding: 1.2rem;
    border-radius: 12px;
    font-weight: 600; /* bold text */
    text-align: left;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.services-list li::before {
    content: "✔";
    color: var(--accent);
    font-weight: bold;
    margin-right: 0.6rem;
}

.services-list li:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-4px);
}

/* TECHNOLOGIES SECTION */
.technologies {
    justify-content: center; /* center content */
    text-align: center;
    padding: 4rem 2rem;
    color: white;
}

.technologies h2 {
    font-size: 2.5rem;       /* increase from default */
    font-weight: 800;      /* bold but slightly lighter than hero */
    margin-bottom: 2rem;
    letter-spacing: 2px;
}
.technologies p { font-size: 1.5rem; }

.technologies-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 0;
    list-style: none;
}

.technologies-list li {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 14px;
    font-weight: 700;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 12px rgba(0, 200, 255, 0.2); /* tech glow */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.technologies-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 18px rgba(0, 200, 255, 0.4);
    border-color: rgba(0, 200, 255, 0.6);
}

@media (max-width: 768px) {
    section {
        padding: 2rem 1rem; /* reduce padding for mobile */
        min-height: auto;   /* optional, to shrink tall sections */
    }
    form {
        padding: 1.5rem;
    }
}

.services-list, .technologies-list {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* PARTNERS SECTION */
.partners {
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem;
}

.partners h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.maple-leaf {
    margin-bottom: 2rem;
}

.maple-leaf img {
    width: 60px;
    height: auto;
}

.partner-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem; /* space between logos */
}

.partner-grid a img {
    max-width: 180px;
    height: auto;
    transition: transform 0.3s;
}

.partner-grid a img:hover {
    transform: scale(1.1); /* hover effect */
}

/* FOOTER */
footer {
    background: #0e1a2b;        /* dark footer consistent with header */
    color: #ffffff;
    padding: 1.5rem 2rem;
    font-size: 1rem;
}

footer a {
    color: #c8102e;             /* accent color for email */
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;            /* allows wrapping on small screens */
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left, .footer-right {
    margin: 0.5rem 0;
}

.footer-center a {
    color: #c8102e; /* accent color */
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-center a:hover {
    text-decoration: underline;
}
