:root {
    --bg-dark: #0a0e17;
    --navy: #0d1a33;
    --charcoal: #161b22;
    --microsoft-blue: #0078d4;
    --microsoft-blue-hover: #006abc;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --highlight: #38bdf8;
    --glass-bg: rgba(22, 27, 34, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Utilidades compartidas para reducir la duplicación de código */
.glass-card,
.solution-card,
.success-visual,
.contact-form-wrapper {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
}

.headline .highlight,
.section-title {
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background: var(--bg-dark);
    background-image: linear-gradient(135deg, var(--charcoal) 0%, var(--navy) 100%);
}

.geometric-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
}

.geometric-bg::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 120, 212, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    filter: blur(40px);
}

.geometric-bg::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    filter: blur(40px);
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem 2rem;
    position: relative;
    z-index: 10;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 120, 212, 0.1);
    color: var(--highlight);
    border: 1px solid rgba(0, 120, 212, 0.3);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
    box-shadow: 0 0 20px rgba(0, 120, 212, 0.15);
}

.headline {
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

/* .headline .highlight agrupado en utilidades compartidas */

.headline .highlight-alt {
    color: var(--highlight);
}

.subheadline {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #0a0e17;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    min-height: 48px;
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #ffffff;
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 48px;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

#tilt-wrapper {
    perspective: 1200px;
}

.glass-card {
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 120, 212, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 0;
}

.card-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.code-panel,
.dashboard-panel {
    background: rgba(10, 14, 23, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.panel-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mac-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.close {
    background: #ff5f56;
}

.dot.minimize {
    background: #ffbd2e;
}

.dot.expand {
    background: #27c93f;
}

.panel-title {
    margin: 0 auto;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: 'Fira Code', monospace;
}

.code-block {
    padding: 1.25rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    color: #e2e8f0;
    flex: 1;
}

.keyword {
    color: #ff7b72;
}

.class {
    color: #79c0ff;
}

.string {
    color: #a5d6ff;
}

.method {
    color: #d2a8ff;
}

.property {
    color: #79c0ff;
}

.boolean {
    color: #79c0ff;
}

.variable {
    color: #c9d1d9;
}

.dashboard-panel {
    padding: 1.25rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.dash-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.dash-icon {
    color: #F2C811;
}

.metric-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.metric-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.metric-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 0.2rem;
    color: #fff;
}

.main-chart {
    height: 90px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: auto;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 100%;
    width: 100%;
}

.bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px 2px 0 0;
    transition: height 1s ease, background 0.3s ease;
}

.bar.active {
    background: var(--microsoft-blue);
    box-shadow: 0 0 10px rgba(0, 120, 212, 0.4);
}

.bar:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge,
.headline,
.subheadline,
.hero-actions {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.headline {
    animation-delay: 0.1s;
}

.subheadline {
    animation-delay: 0.2s;
}

.hero-actions {
    animation-delay: 0.3s;
}

.hero-visual {
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.solutions-section {
    padding: 100px 2rem;
    position: relative;
    z-index: 1;
}

.solutions-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
    text-align: center;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    width: 100%;
}

.solution-card {
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 120, 212, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.solution-card>* {
    position: relative;
    z-index: 1;
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    border-color: rgba(38, 132, 255, 0.3);
}

.solution-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 120, 212, 0.1);
    border: 1px solid rgba(0, 120, 212, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--highlight);
    margin-bottom: 0.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, background 0.4s ease, color 0.4s ease;
}

.solution-card:hover .card-icon {
    transform: scale(1.08);
    background: rgba(0, 120, 212, 0.25);
    color: #fff;
    border-color: rgba(0, 120, 212, 0.4);
    box-shadow: 0 0 20px rgba(0, 120, 212, 0.6);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.card-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.microsoft-section {
    padding: 100px 2rem;
    position: relative;
    z-index: 1;
}

.bento-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    width: 100%;
    text-align: left;
    margin-bottom: 3.5rem;
}

.section-title-left {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
    width: 100%;
}

.bento-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    text-align: left;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    position: relative;
    overflow: hidden;
}

.bento-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.bento-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.bento-card:hover::after {
    opacity: 1;
}

.bento-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.azure-card {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
}

.azure-card .bento-content {
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    justify-content: flex-start;
}

.azure-card .tech-icon {
    width: 80px;
    height: 80px;
    margin: 0;
    flex-shrink: 0;
}

.azure-card h4 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.azure-card p {
    font-size: 1.1rem;
}

.powerbi-card {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.dotnet-card {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.tech-icon {
    width: 56px;
    height: 56px;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--highlight);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.bento-card:hover .tech-icon {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.bento-content h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.bento-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.factory-section {
    padding: 100px 2rem;
    position: relative;
    z-index: 1;
}

.banner-container {
    background: linear-gradient(135deg, rgba(16, 21, 35, 0.8) 0%, rgba(20, 30, 48, 0.8) 100%) padding-box,
        linear-gradient(135deg, rgba(0, 120, 212, 0.5) 0%, rgba(56, 189, 248, 0.2) 100%) border-box;
    border: 1px solid transparent;
    border-radius: 24px;
    padding: 120px 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.banner-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 120, 212, 0.2) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.banner-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.banner-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

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

.success-section {
    padding: 100px 2rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 120, 212, 0.02) 0%, rgba(10, 14, 23, 0) 100%);
    border-top: 1px solid rgba(0, 120, 212, 0.05);
}

.success-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.success-visual {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.abstract-graphic {
    position: relative;
    width: 250px;
    height: 250px;
}

.circle-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.layer-1 {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 120, 212, 0.1) 0%, transparent 70%);
}

.layer-2 {
    width: 70%;
    height: 70%;
    border-color: rgba(56, 189, 248, 0.3);
}

.layer-3 {
    width: 40%;
    height: 40%;
    background: var(--microsoft-blue);
    box-shadow: 0 0 30px rgba(0, 120, 212, 0.6);
}

.abstract-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.badge-alt {
    background: rgba(56, 189, 248, 0.1);
    color: var(--highlight);
    border-color: rgba(56, 189, 248, 0.3);
}

.success-text {
    margin-bottom: 2.5rem;
}

.metrics-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.metric-block {
    display: flex;
    flex-direction: column;
}

.metric-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--highlight) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--microsoft-blue);
    color: var(--highlight);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
    min-height: 48px;
}

.btn-outline:hover {
    background: rgba(0, 120, 212, 0.1);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(10, 14, 23, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 2px;
    color: #fff;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #fff;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
}

.contact-section {
    padding: 100px 2rem;
    position: relative;
    z-index: 1;
}

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-header {
    margin-bottom: 4rem;
}

.contact-form-wrapper {
    width: 100%;
    max-width: 800px;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.full-width {
    grid-column: 1 / -1;
}

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

.form-group input,
.form-group textarea {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--microsoft-blue);
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2);
}

.form-submit {
    margin-top: 1rem;
}

.site-footer {
    padding: 3rem 2rem;
    background: rgba(10, 14, 23, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1;
    position: relative;
}

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

.site-footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.social-link {
    color: var(--text-secondary);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.social-link:hover {
    color: #fff;
}

@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .headline {
        font-size: 2.8rem;
    }

    .subheadline {
        margin: 0 auto 2.5rem auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .geometric-bg::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .section-header {
        text-align: center;
        margin-bottom: 2.5rem;
    }

    .section-title-left {
        font-size: 2.8rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .azure-card,
    .powerbi-card,
    .dotnet-card {
        grid-column: 1;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(10, 14, 23, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    }

    .main-nav.active {
        display: flex;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-section,
    .solutions-section,
    .microsoft-section,
    .factory-section,
    .success-section,
    .contact-section,
    .site-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .header-container {
        padding: 0 24px;
    }

    .hero-section .container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 5rem 20px 40px 20px !important;
    }

    .hero-section .container .headline,
    .hero-section .container .subheadline {
        width: 100% !important;
        max-width: none !important;
    }

    .headline {
        font-size: 2.3rem;
        /* slightly scaled down to prevent orphans */
        line-height: 1.2;
    }

    .section-title-left {
        font-size: 2.3rem;
    }

    .subheadline {
        margin: 0 auto 3rem auto;
    }

    .hero-visual {
        display: none;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .hero-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {

    .card-content,
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .headline {
        font-size: 2.2rem;
    }

    .section-title-left {
        font-size: 2.2rem;
    }

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

    .azure-card,
    .powerbi-card,
    .dotnet-card {
        grid-column: 1;
    }

    .azure-card .bento-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .banner-container {
        padding: 3rem 1.5rem;
    }

    .banner-content h2 {
        font-size: 2.2rem;
    }

    .success-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .metrics-container {
        flex-direction: column;
        gap: 1.5rem;
    }

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

    .contact-form-wrapper {
        padding: 2rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}