:root {
    /* Beetroot-inspired Palette */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F5FA;
    /* Light Grey for sections */
    --bg-dark: #24294F;
    /* Deep Blue for Footer/Hero */

    --bg-nordic: #F4F7F9;
    /* Nordic Light Grey-Blue */

    --text-primary: #1D1D27;
    /* Dark almost black */
    --text-secondary: #6B6B78;
    /* Grey text */
    --text-inverted: #FFFFFF;
    /* For dark backgrounds */

    --accent-primary: #FF3C00;
    /* Beetroot Red-Orange for primary actions */
    --accent-secondary: #61D4C3;
    /* Teal/Cyan for decorations */

    --card-bg: #FFFFFF;
    --card-border: #E1E1E5;
    --border-color: rgba(0, 0, 0, 0.1);

    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --transition-speed: 0.3s;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1200px;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-speed);
}

img {
    max-width: 100%;
    display: block;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

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

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 60, 0, 0.3);
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 80px;
    /* Increased height */
    width: auto;
    /* Fix stretching */
    object-fit: contain;
    /* Maintain aspect ratio */
    mix-blend-mode: multiply;
    /* Remove white box */
    display: block;
    /* Remove inline spacing */
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background-color: var(--bg-dark);
    /* Dark Hero */
    color: var(--text-inverted);
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.4;
    /* Adjusted for dark bg */
    mix-blend-mode: overlay;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #a0d8ef);
    /* White to Light Blue text gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    /* Center line */
    width: 2px;
    height: 100%;
    background: var(--accent-primary);
    /* High contrast timeline line */
    transform: translateX(-50%);
}

.step {
    position: relative;
    margin-bottom: var(--spacing-lg);
    width: 50%;
    padding-right: 40px;
    clear: both;
}

.step:nth-child(even) {
    float: right;
    text-align: right;
    /* Right align content for right clear */
    padding-left: 40px;
    padding-right: 0;
    margin-top: 50px;
    /* Stagger effect */
}

/* Revert text align for the content inside to natural flow or keep right? 
   Reference site has alternating layout. Let's keep it simple: 
   Left steps text-align right (facing center), Right steps text-align left (facing center).
*/
.step:nth-child(odd) {
    text-align: right;
    float: left;
}

.step:nth-child(even) {
    text-align: left;
    float: right;
}


.step-number {
    position: absolute;
    top: 0;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
    z-index: -1;
}

.step:nth-child(odd) .step-number {
    right: 40px;
}

.step:nth-child(even) .step-number {
    left: 40px;
}


.step-marker {
    position: absolute;
    top: 20px;
    width: 16px;
    height: 16px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
    z-index: 3;
}

.step:nth-child(odd) .step-marker {
    right: -8px;
    /* Half of width to center on line */
}

.step:nth-child(even) .step-marker {
    left: -8px;
}

.step-content {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-speed);
}

.step-content:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.tags {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: inherit;
    /* Align with parent text align */
}

.tag {
    font-size: 0.8rem;
    color: var(--accent-primary);
    background: rgba(0, 242, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

/* Clearfix for floating steps */
.timeline::after {
    content: "";
    display: table;
    clear: both;
}

/* Process Section */
.process {
    padding: var(--spacing-xl) 0;
    position: relative;
    background: var(--bg-nordic);
}

/* Services */
.services {
    padding: var(--spacing-xl) 0;
    background: var(--bg-secondary);
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2.5rem;
    border-radius: 24px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-secondary);
}

.service-card h3 {
    margin: 1.5rem 0 1rem;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-secondary);
    /* Cyan icons */
}

/* Performance Section */
.performance {
    background: var(--bg-secondary);
    padding: var(--spacing-xl) 0;
}

.performance-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.score-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.circular-chart {
    width: 120px;
    height: 120px;
    background: conic-gradient(var(--accent-primary) 0%, var(--bg-primary) 0%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
}

.circular-chart::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--bg-secondary);
    border-radius: 50%;
}

.score-text {
    position: relative;
    z-index: 2;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.score-label {
    font-weight: 600;
    color: var(--text-secondary);
}

/* Tech Stack */
.tech-stack {
    padding: var(--spacing-xl) 0;
}

.tech-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.tech-item {
    font-size: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.tech-item span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.tech-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

/* Resources */
.resources {
    background: var(--bg-secondary);
    padding: var(--spacing-xl) 0;
}

/* Portfolio grid */
.portfolio {
    padding: var(--spacing-xl) 0;
}

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

.card {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
}

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

.card-img {
    height: 200px;
    background: #2a2a35;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.card:hover .card-img img {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
}

/* Reviews */
.reviews {
    padding: var(--spacing-xl) 0;
    background: var(--bg-secondary);
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #333;
    object-fit: cover;
}

/* Footer */
footer {
    background: var(--bg-dark);
    padding: 3rem 0;
    text-align: left;
    /* Reset text align */
    color: var(--text-inverted);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    justify-self: start;
}

.footer-links {
    justify-self: end;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links,
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links h4,
.footer-social h4 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-social a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Industries */
.industries {
    padding: var(--spacing-xl) 0;
}

.industries-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.industry-card {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
    color: var(--text-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.industry-card:hover {
    background: #fff;
    border-color: var(--accent-secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ind-icon {
    font-size: 1.2rem;
}

/* Team Section */
.team {
    background: var(--bg-secondary);
    padding: var(--spacing-xl) 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--card-bg);
    /* White */
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-secondary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}



.team-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
}

.rate-badge {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.team-exp {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.team-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.team-tag {
    background: var(--bg-secondary);
    /* Light grey */
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid #E1E1E5;
}

.btn-outline {
    display: block;
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 25px;
    /* Pill shape button */
    text-align: center;
    color: var(--text-primary);
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 242, 255, 0.1);
}

/* FAQ Section */
.faq {
    padding: var(--spacing-xl) 0;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.faq-item.active {
    background: #fff;
    border-color: var(--accent-secondary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h4 {
    margin: 0;
    font-size: 1.1rem;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding-bottom: 1.5rem;
    max-height: 200px;
    /* simple accordion height limit */
}

/* Contact Block */
.contact-block {
    padding: var(--spacing-xl) 0;
    background: var(--bg-secondary);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form-wrapper h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: #fff;
    /* White inputs */
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

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

.map-wrapper {
    background: #fff;
    padding: 0;
    /* Full bleed map */
    border-radius: 16px;
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    /* Key for border radius on map */
    height: 100%;
    /* Fill column */
}

.office-info {
    margin-bottom: 0;
    /* Remove margin inside wrapper */
    padding: 1.5rem;
    /* Add padding for text separately if needed, or overlay? Actually Office Info is OUTSIDE wrapper in HTML? Let me check HTML structure first. */
}

.office-info h3 {
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    /* Larger map */
    border: 0;
    /* Force Light Mode */
    opacity: 1;
    filter: none !important;
    mix-blend-mode: normal !important;
}

/* Footer Brand Logo Contrast */
/* Footer Brand Logo Contrast */
.footer-brand .logo {
    color: #FFFFFF;
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .performance-grid {
        gap: 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .timeline::before {
        left: 20px;
    }

    .step {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
    }

    .step:nth-child(even) {
        left: 0;
    }

    .step-marker {
        left: 14px;
    }

    .step:nth-child(even) .step-marker {
        left: 14px;
    }

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

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

    .step:nth-child(even) {
        margin-top: 0;
    }

    .step:nth-child(odd) {
        float: none;
    }

    .step:nth-child(odd) .step-number,
    .step:nth-child(even) .step-number {
        right: auto;
        left: 50px;
    }

    .step:nth-child(odd) .step-marker,
    .step:nth-child(even) .step-marker {
        left: 12px;
        /* Adjust to line position */
        right: auto;
    }

    .tags {
        justify-content: flex-start;
    }
}