/* ============================================================
   DESIGN TOKENS
   Change a value here and it updates everywhere on the page.
   ============================================================ */
:root {
    --bg:           #07273D;   /* main background */
    --bg-alt:       #0b2d47;   /* slightly lighter — alt sections */
    --bg-card:      #0d3352;   /* card surfaces */
    --accent:       #3b9eff;   /* primary blue accent */
    --accent-hover: #1a7fe8;
    --gold:         #e3b716;   /* secondary accent — CTAs and highlights */
    --gold-hover:   #c9a010;

    --text:         #e2e8f0;   /* main body text */
    --text-muted:   #94a3b8;   /* secondary / caption text */
    --border:       rgba(255, 255, 255, 0.08);

    --font: 'Inter', sans-serif;

    --radius-sm: 6px;
    --radius:    10px;
    --radius-lg: 16px;

    --section-pad: 90px;
    --content-width: 1200px;
}

/* ============================================================
   BASE
   ============================================================ */
body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.1rem; font-weight: 600; }

p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

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

/* .content = max-width wrapper, centres content on wide screens */
.content {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font);
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    background-color: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn:hover {
    background-color: var(--bg-alt);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Gold filled — main CTA */
.btn-primary {
    background-color: var(--gold);
    color: #07273D;
    border-color: var(--gold);
}

.btn-primary:hover {
    background-color: var(--gold-hover);
    border-color: var(--gold-hover);
    color: #07273D;
}

/* ============================================================
   SECTION SHARED STYLES
   ============================================================ */
.about, .services, .portfolio, .contact, .contact-page,
.team-section, .values-section, .process-section, .cta-banner {
    padding: var(--section-pad) 0;
}

/* Small label that appears above section titles */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

/* Gold accent divider line under section titles */
hr {
    width: 48px;
    height: 3px;
    background-color: var(--gold);
    border: none;
    border-radius: 2px;
    margin: 16px 0 40px;
}

/* Centred variant for centred sections */
.services hr,
.portfolio hr,
.cta-banner hr,
.values-section hr,
.team-section hr,
.process-section hr {
    margin: 16px auto 40px;
}

/* ============================================================
   PAGE HERO (inner pages — about, services, portfolio, contact)
   ============================================================ */
.page-hero {
    padding: 80px 0 60px;
    background-color: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.page-hero p {
    max-width: 540px;
    margin: 0 auto;
}

/* ============================================================
   HERO (home page)
   ============================================================ */
.hero-section {
    background-color: var(--bg);
    padding: 110px 0 90px;
    border-bottom: 1px solid var(--border);
}

.hero-section .content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Left column — vertical social links */
.hero-social-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.hero-social-links a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.2s ease;
    writing-mode: vertical-rl;   /* rotates text 90° */
    text-orientation: mixed;
}

.hero-social-links a:hover {
    color: var(--gold);
}

/* Centre column — main text */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 560px;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* Gold highlight — wrap a word in <span class="highlight"> */
.highlight {
    color: var(--gold);
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 420px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Right column — image */
.hero-image {
    flex-shrink: 0;
    width: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    height: auto;
    opacity: 0.9;
}

/* ============================================================
   ABOUT (home page snippet)
   ============================================================ */
.about {
    border-bottom: 1px solid var(--border);
}

.about-direction {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 60px;
    margin-top: 20px;
    width: 100%;
}

.introduction {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.introduction h2 {
    font-size: 1.8rem;
}

.laptop-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.laptop-image img {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

/* ============================================================
   VALUES (about page)
   ============================================================ */
.values-section {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.value-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.value-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    transition: transform 0.2s ease;
}

.value-card:hover {
    transform: translateY(-4px);
}

.value-icon {
    font-size: 2rem;
    line-height: 1;
}

/* ============================================================
   TEAM (about page)
   ============================================================ */
.team-section {
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.team-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s ease;
}

.team-card:hover {
    transform: translateY(-4px);
}

.team-card-avatar {
    width: 100%;
    aspect-ratio: 1;
    background-color: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border-bottom: 1px solid var(--border);
}

.team-card-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.team-card-info h3 {
    color: var(--text);
    font-size: 1rem;
}

.team-card-role {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

.team-card-bio {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.6;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.services .content > p {
    max-width: 540px;
    margin: 0 auto;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);   /* coloured top accent line */
    border-radius: var(--radius);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-top-color: var(--gold);
}

.service-card h3 {
    font-size: 1.05rem;
    color: var(--text);
}

.service-card p {
    font-size: 0.92rem;
    line-height: 1.7;
}

.service-icon {
    font-size: 1.8rem;
    line-height: 1;
}

/* ============================================================
   PROCESS (services page — how we work)
   ============================================================ */
.process-section {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.process-step {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.4;
    line-height: 1;
}

.process-step h3 {
    color: var(--text);
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border);
    text-align: center;
}

.cta-banner .content > p {
    max-width: 480px;
    margin: 0 auto;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio {
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.portfolio .content > p {
    max-width: 540px;
    margin: 0 auto;
}

/* Filter tabs (purely visual styling) */
.filter-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-tab {
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    transition: all 0.2s ease;
}

.filter-tab:hover,
.filter-tab.active {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border);
}

/* Grey placeholder shown when the image hasn't loaded */
.portfolio-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background-color: var(--bg-card);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7,39,61,0.97) 0%, rgba(7,39,61,0.75) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding: 24px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1rem;
    color: var(--text);
}

.portfolio-overlay p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* ============================================================
   CONTACT (home page snippet)
   ============================================================ */
.contact {
    text-align: center;
}

.contact .content > p {
    max-width: 480px;
    margin: 0 auto;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
}

/* Shared input styles — used on home and contact page */
.contact input,
.contact textarea,
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

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

.contact input:focus,
.contact textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
}

.contact textarea,
.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact button.btn,
.contact-form button.btn {
    align-self: flex-start;
    background-color: var(--gold);
    color: #07273D;
    border-color: var(--gold);
    font-weight: 700;
}

.contact button.btn:hover,
.contact-form button.btn:hover {
    background-color: var(--gold-hover);
    border-color: var(--gold-hover);
}

/* ============================================================
   CONTACT PAGE (contact.html full layout)
   ============================================================ */
.contact-page {
    border-bottom: 1px solid var(--border);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-info h3 {
    font-size: 1.15rem;
    margin-bottom: 20px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.info-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.info-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.info-card p,
.info-card a {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.info-card a:hover {
    color: var(--accent);
}

.social-links-contact {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.social-media {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.social-media a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.social-media a:hover {
    color: var(--gold);
}

.contact-info {
    margin-bottom: 16px;
}

.contact-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

footer hr {
    width: 100%;
    max-width: var(--content-width);
    height: 1px;
    background-color: var(--border);
    border-radius: 0;
    margin: 20px auto;
}

footer > p {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .hero-section .content {
        flex-direction: column;
        text-align: center;
    }

    .hero-social-links {
        flex-direction: row;
        align-items: center;
    }

    .hero-social-links a {
        writing-mode: horizontal-tb;
    }

    .hero-content {
        align-items: center;
        max-width: 100%;
    }

    .hero-image {
        width: 180px;
    }

    .about-direction {
        flex-direction: column;
        gap: 40px;
    }

    .service-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .value-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 540px) {
    .content {
        padding: 0 20px;
    }

    :root {
        --section-pad: 60px;
    }

    .service-cards,
    .portfolio-grid,
    .process-grid,
    .team-grid,
    .value-cards {
        grid-template-columns: 1fr;
    }

    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .filter-tabs {
        gap: 6px;
    }
}
