:root {
    --color-primary-blue: #1160AC;
    /* Brand Tech Blue */
    --color-accent-green: #ACCE22;
    /* Brand Lime Green */
    --color-text: #333333;
    --color-text-light: #555555;
    --color-bg: #ffffff;
    --color-bg-light: #f8fafc;
    --font-main: 'Montserrat', sans-serif;
    --font-tech: 'Roboto Mono', monospace;
    --font-logo: 'Orbitron', sans-serif;
    /* Techno match */
    --container-width: 1200px;
}

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

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scroll from animations */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-white {
    background-color: #ffffff;
}

.section-light {
    background-color: var(--color-bg-light);
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
    color: var(--color-text);
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    font-size: 1.2rem;
    color: var(--color-text-light);
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid #eee;
    transition: transform 0.3s ease;
}

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

/* New Logo Styles */
.header-logo-img {
    height: 75px;
    /* Adjust size to be prominent but not overwhelming */
    width: auto;
    object-fit: contain;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 2px;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary-blue);
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

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

.hamburger {
    display: none;
    /* Hidden by default on desktop */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-nav {
    border: 1px solid var(--color-primary-blue);
    color: var(--color-primary-blue);
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-nav:hover {
    background-color: var(--color-primary-blue);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(17, 96, 172, 0.2);
}

.btn-nav:hover::after {
    width: 0;
}

.btn-hero {
    background: var(--color-primary-blue);
    color: #fff;
    box-shadow: 0 4px 15px rgba(17, 96, 172, 0.25);
    z-index: 1;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #0d4a86;
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-hero:hover::before {
    width: 100%;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(17, 96, 172, 0.4);
}

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

.btn-outline:hover {
    background: rgba(17, 96, 172, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(17, 96, 172, 0.1);
}

/* Hero Section */
.hero {
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #ffffff;
    background-image:
        linear-gradient(rgba(17, 96, 172, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 96, 172, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    position: relative;
    padding-top: 80px;
}

.hero-logo-img {
    max-width: 625px;
    height: auto;
    margin: 0 auto 30px;
    display: block;
}

.hero-title {
    font-family: var(--font-main);
    /* Switch back to Montserrat for readability */
    font-size: 3rem;
    /* Slightly larger for impact since it's not all caps */
    font-weight: 800;
    /* Extra Bold */
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--color-text);
    letter-spacing: -0.5px;
    /* Tighter for sans-serif */
    text-transform: none;
    /* Sentence case for readability */
}

.hero-subtitle {
    font-family: var(--font-main);
    font-size: 1.25rem;
    /* Refined size */
    color: var(--color-text-light);
    margin-bottom: 50px;
    font-weight: 500;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-cta-wrapper {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Value Props Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.card-value {
    padding: 30px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--color-accent-green);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card-value:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.card-icon {
    margin-bottom: 20px;
    color: var(--color-primary-blue);
    transition: transform 0.3s ease;
}

.card-value:hover .card-icon {
    transform: scale(1.1);
    color: var(--color-accent-green);
}

.card-value h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--color-text);
}

.card-value p {
    color: var(--color-text-light);
    font-size: 1rem;
}

/* Services Grid */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.service-card {
    background: white;
    padding: 40px;
    border: 1px solid #eee;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.service-card:hover {
    border-color: var(--color-primary-blue);
    box-shadow: 0 15px 40px rgba(17, 96, 172, 0.1);
    transform: translateY(-5px);
}

.service-card h3 {
    margin-bottom: 25px;
    font-size: 1.4rem;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-accent-green);
    display: inline-block;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--color-primary-blue);
}

.service-icon {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #e0e6ed;
    /* Subtle grey initially */
    transition: all 0.5s ease;
    opacity: 0.5;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    color: rgba(17, 96, 172, 0.15);
    /* Blue tint on hover */
    opacity: 1;
}

.service-list {
    list-style: none;
}

.service-list li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    color: var(--color-text-light);
    cursor: help;
    /* Indicate interactiveness */
    transition: color 0.3s ease;
}

.service-list li:hover {
    color: var(--color-primary-blue);
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent-green);
    transition: transform 0.3s ease;
}

.service-card:hover .service-list li::before {
    transform: translateX(3px);
}

/* Tooltip Styles */
.service-list li[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--color-primary-blue);
    color: #fff;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 100;
    pointer-events: none;
    line-height: 1.4;
    font-weight: 500;
    text-align: center;
}

/* Tooltip Arrow */
.service-list li[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.service-list li[data-tooltip]:hover::before {
    /* Optional: Animate the arrow more on hover */
    transform: translateX(5px) scale(1.2);
}

/* Mobile Adjustment for Tooltips */
@media (max-width: 768px) {
    .service-list li[data-tooltip]::after {
        width: 220px;
        left: 0;
        transform: translateX(0) translateY(10px);
    }

    .service-list li[data-tooltip]:hover::after {
        transform: translateX(0) translateY(0);
    }
}

/* Methodology */
.principles-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.principle-item {
    background: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid #ddd;
    font-weight: 600;
    color: var(--color-primary-blue);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.principle-item:hover {
    border-color: var(--color-primary-blue);
    background-color: var(--color-primary-blue);
    color: #fff;
    transform: translateY(-2px);
}

.process-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.process-step {
    text-align: center;
    flex: 1;
    min-width: 150px;
    position: relative;
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--color-text);
    color: #fff;
    border-radius: 50%;
    line-height: 40px;
    font-weight: 700;
    margin-bottom: 15px;
    transition: background-color 0.3s ease;
}

.process-step:hover .step-number {
    background: var(--color-primary-blue);
}

.process-step h4 {
    font-size: 1rem;
    color: var(--color-text);
}

.process-connector {
    flex-grow: 1;
    height: 2px;
    background: #ddd;
    margin: 0 10px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .process-connector {
        display: none;
    }

    .process-step {
        margin-bottom: 30px;
        flex-basis: 100%;
    }
}

/* About Overlay */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 60px;
    align-items: center;
}

.lead {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--color-text);
}

.competence-blocks {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.competence-block {
    transition: transform 0.3s ease;
    padding: 10px;
    border-radius: 8px;
}

.competence-block:hover {
    background-color: #f8fafc;
    /* Very subtle hover bg */
    transform: translateX(5px);
}

.competence-block h5 {
    font-size: 1.1rem;
    color: var(--color-primary-blue);
    margin-bottom: 5px;
}

.competence-block p {
    color: var(--color-text-light);
}

/* Profile Image */
.about-visual {
    text-align: center;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.about-profile-img {
    max-width: 100%;
    width: 320px;
    /* Good size for profile */
    height: auto;
    border-radius: 50%;
    /* Circle profile */
    border: 5px solid white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-profile-img:hover {
    transform: scale(1.02);
}

/* Optional conceptual ring behind profile */
.about-visual::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 340px;
    height: 340px;
    border: 1px dashed var(--color-primary-blue);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}


@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Footer */
.footer {
    padding: 80px 0 20px;
    background: #fff;
    border-top: 1px solid #eaeaea;
}

.contact-cta {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-bottom {
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    margin-top: 20px;
}

/* Text Highlights & Animations */
.tech-highlight {
    font-family: var(--font-tech);
    color: var(--color-primary-blue);
    background: rgba(17, 96, 172, 0.06);
    padding: 0 4px;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s ease;
}

.tech-highlight:hover {
    background: rgba(17, 96, 172, 0.12);
    transform: scale(1.05);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(172, 206, 34, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(172, 206, 34, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(172, 206, 34, 0);
    }
}

.pulse-p {
    animation: pulse 2s infinite;
}

/* Fade In Animation Classes */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Stagger delays for grid items if needed, can be applied via JS or manual classes */

/* Responsive */
@media (max-width: 900px) {

    /* Global Safety */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    img,
    video,
    iframe {
        max-width: 100%;
        height: auto;
    }

    .container {
        width: 90%;
        padding: 0;
        margin: 0 auto;
    }

    .header-container {
        flex-direction: row;
        /* Keep row for logo (if visible) and hamburger */
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
        position: relative;
    }

    /* Hide Header Logo on Mobile as requested */
    .header-logo-img {
        display: none;
    }

    /* Hamburger Menu Styles */
    .hamburger {
        display: block;
        cursor: pointer;
        padding: 10px;
        background: transparent;
        border: none;
        z-index: 2000;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background-color: var(--color-primary-blue);
    }

    /* Hamburger Animation */
    .hamburger.toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .hamburger.toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mobile Navigation Drawer */
    .nav {
        display: flex;
        /* Ensure flex context for alignment */
        flex-direction: column;
        justify-content: center;
        /* Center items vertically */
        align-items: center;
        /* Center items horizontally */
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 100%;
        /* Full screen overlay */
        background-color: rgba(255, 255, 255, 0.98);
        transform: translateX(100%);
        /* Hidden by default */
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1500;
        gap: 30px;
        /* Spacing between links */
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav.nav-active {
        transform: translateX(0);
        /* Slide in */
    }

    .nav a {
        width: auto;
        /* Cancel full width from previous fix */
        border-bottom: none;
        /* Clean look */
        font-size: 1.5rem;
        /* Larger font for menu */
        font-weight: 600;
        color: var(--color-primary-blue);
        opacity: 0;
        /* Fade in animation setup */
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    /* Animate links when menu opens */
    .nav.nav-active a {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.2s;
    }

    .btn-nav {
        margin-top: 20px;
        font-size: 1.2rem !important;
        padding: 12px 30px !important;
        border-radius: 50px !important;
    }

    /* Hero Logo Reset - Make it smaller on mobile */
    .hero-logo-img {
        max-width: 60%;
        /* Significantly smaller as requested */
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 1.8rem;
        /* Further refined for balance */
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
        line-height: 1.6;
    }

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

    .about-visual {
        order: -1;
        margin-bottom: 40px;
    }

    .grid-2,
    .grid-3 {
        /* Fix: Allow grids to shrink below 450px/300px on small screens */
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 25px;
        /* Reduce padding on mobile */
    }

    .hero-cta-wrapper {
        flex-direction: column;
        align-items: center;
        /* Center buttons */
        width: 100%;
        gap: 15px;
    }

    .btn {
        width: 100%;
        /* Full width buttons on mobile */
        max-width: 320px;
        /* Slightly tighter max width */
        text-align: center;
    }

    /* Footer Fix */
    .footer-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        align-items: center;
    }

    .footer-right {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

/* Specific fix for very small screens (iPhone SE/mini etc) */
@media (max-width: 380px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .nav a {
        font-size: 0.8rem;
    }
}

/* Contact Form Styles */
.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

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

.form-group {
    position: relative;
    padding-top: 15px;
    /* Space for label animation */
}

/* Floating Label Logic */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 0;
    font-size: 1rem;
    color: var(--color-text);
    border: none;
    border-bottom: 2px solid #ddd;
    background: transparent;
    outline: none;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--color-primary-blue);
}

.form-group label {
    position: absolute;
    top: 25px;
    left: 0;
    font-size: 1rem;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Float label when focused or content exists (placeholder trick) */
.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: 0;
    font-size: 0.8rem;
    color: var(--color-primary-blue);
    font-weight: 600;
}

/* Checkbox */
.form-privacy {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 10px;
}

.form-privacy input {
    margin-top: 3px;
    accent-color: var(--color-primary-blue);
}

.form-privacy a {
    color: var(--color-primary-blue);
    position: relative;
}

.form-privacy a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
}

/* Submit Button Override */
.btn-submit {
    width: 100%;
    margin-top: 20px;
    border: none;
    font-size: 1.1rem;
    padding: 15px;
}

.text-center {
    text-align: center;
}