@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/Fonts/Roboto-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('assets/Fonts/Roboto-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('assets/Fonts/Roboto-Bold.woff2') format('woff2');
}

:root {
    /* Color Palette - Visual Engineering */
    --bg-color: #F8F9FA;
    /* Technical White */
    --text-primary: #2D3436;
    /* Deep Slate - Headlines/Body */
    --text-light: #636e72;
    /* Slightly lighter for secondary text */
    --brand-primary: #005A6E;
    /* Blue Petrol */
    --brand-cta: #005A6E;
    /* Blue Petrol */
    --ui-structure: #B2BEC3;
    /* Concrete Grey - Grid/Lines */

    --font-main: 'Roboto', sans-serif;
    --container-width: 1200px;
    --nav-height: 80px;
    --section-spacing: 120px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
}

/* Typography & Layout */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
    margin-bottom: 2rem;
    position: relative;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    max-width: 70ch;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Utilities */
.text-teal {
    color: var(--brand-primary);
}



.mt-4 {
    margin-top: 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(248, 249, 250, 0.95);
    border-bottom: 1px solid var(--ui-structure);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 40px;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 2px;
    /* Technical, sharp look */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: transparent;
    border: 2px solid var(--brand-cta);
    color: var(--brand-cta);
}

.btn-primary:active {
    background-color: var(--brand-cta);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
}

.btn-secondary:active {
    background-color: var(--brand-primary);
    color: white;
}

@media (hover: hover) {
    .btn-primary:hover {
        background-color: var(--brand-cta);
        color: white;
    }

    .btn-secondary:hover {
        background-color: var(--brand-primary);
        color: white;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    /* Full viewport height or adjust based on needs */
    padding-top: var(--nav-height);
    display: flex;
    align-items: center;
    background-color: #e0e0e0;
    /* Placeholder for rendering */
    position: relative;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 0;
}

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slideshow .slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 10;
    width: 100%;
}

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

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-subline {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero .btn-primary {
    border-color: white;
    color: white;
}

.hero .btn-primary:active {
    background-color: white;
    color: var(--brand-cta);
}

@media (hover: hover) {
    .hero .btn-primary:hover {
        background-color: white;
        color: var(--brand-cta);
    }
}

.cta-group {
    display: flex;
    gap: 20px;
}

/* Bifurcation Section */
.bifurcation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 60vh;
}

.bifurcation-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    text-align: center;
    transition: background-color 0.3s;
}

.bifurcation-block:first-child {
    border-right: 1px solid var(--ui-structure);
}

.bifurcation-block h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
}

.bifurcation-block p {
    font-size: 1.2rem;
    color: var(--text-light);
}

.bifurcation-block:hover {
    background-color: #f1f3f5;
}



/* Services */
.section {
    padding: var(--section-spacing) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    padding: 40px;
    border: 1px solid var(--ui-structure);
    background: white;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-primary);
}

.service-card h3 {
    color: var(--brand-primary);
    margin-bottom: 1rem;
}

.service-card ul {
    list-style: disc;
    margin-left: 20px;
    margin-top: 1rem;
    color: var(--text-light);
}

.service-card li {
    margin-bottom: 0.5rem;
}

/* Data Security banner */
.security-banner {
    margin-top: 80px;
    padding: 40px;
    background: #e8f4f4;
    border-left: 4px solid var(--brand-primary);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background-color: transparent;
    border: none;
}

.portfolio-item {
    background-color: white;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /* Added subtle shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid var(--ui-structure);
    transform: translateY(100%);
    transition: transform 0.3s;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 2001;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 20px;
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.portfolio-item.hidden {
    display: none;
}

/* Profile Section */
.profile-container {
    display: flex;
    gap: 60px;
    align-items: center;
}

.profile-img {
    width: 300px;
    height: 400px;
    background-color: #dcdcdc;
    flex-shrink: 0;
    object-fit: cover;
    border: 1px solid var(--brand-primary);
}

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

.profile-content .highlight {
    color: var(--brand-primary);
    font-weight: 700;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    font-size: 1.1rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid var(--ui-structure);
    background: white;
    font-family: var(--font-main);
    font-size: 1rem;
    border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
}

/* Form Validation & State */
.form-group input.is-invalid,
.form-group textarea.is-invalid {
    border-color: #d9534f !important;
}

.form-group input[type="checkbox"].is-invalid {
    outline: 2px solid #d9534f;
    outline-offset: 2px;
}

.form-group input[type="checkbox"].is-invalid+label {
    color: #d9534f;
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

.form-message {
    padding: 15px;
    border-radius: 2px;
    font-weight: 500;
    text-align: center;
}

.form-message.success {
    background-color: var(--brand-primary);
    color: white;
    margin-top: 15px;
}

.form-message.error {
    background-color: transparent;
    border: 2px solid #d9534f;
    color: #d9534f;
}

footer {
    padding: 40px 0;
    border-top: 1px solid var(--ui-structure);
    margin-top: 80px;
    background-color: white;
}

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

.footer-center {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-right {
    display: flex;
    gap: 20px;
}

.footer-right a {
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.lang-btn {
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-main);
    font-weight: 300;
    cursor: pointer;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    transition: color 0.2s;
}

.lang-btn:hover {
    background: none;
    color: var(--brand-primary);
}

button.lang-btn-mobile {
    font-size: 1.5rem;
    border: none;
    text-transform: uppercase;
    font-weight: 300;
    margin-top: 10px;
    background: none;
    cursor: pointer;
    color: var(--text-primary);
}

.lang-btn-mobile:hover {
    color: var(--brand-primary);
}

/* Mobile Navigation UI */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    /* Above navbar background but below other potential modals */
}



.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hamburger active animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6.5px, 6.4px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6.5px, -6.4px);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    padding-top: var(--nav-height);
    /* Ensure content is below header */
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    /* Slightly tighter gap if fonts are smaller */
    text-align: center;
}

.mobile-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-link:hover {
    color: var(--brand-primary);
}

.mobile-link.small {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0;
}

.mobile-divider {
    width: 40px;
    height: 2px;
    background-color: var(--ui-structure);
    margin: 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }

    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

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

    .bifurcation {
        grid-template-columns: 1fr;
        height: auto;
    }

    .bifurcation-block {
        padding: 3rem 1.5rem;
        border-right: none;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .profile-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .profile-img {
        width: 100%;
        height: auto;
        grid-column: 1;
        grid-row: 1;
    }

    .profile-content {
        display: contents;
    }

    .profile-content h2 {
        grid-column: 2;
        grid-row: 1;
        margin-bottom: 0;
        font-size: 2.2rem;
        font-weight: 700;
        line-height: 1;
        align-self: end;
        /* This pushes the element to the bottom of the grid cell */
    }

    .profile-content p {
        grid-column: 1 / -1;
    }
}