:root {
    --bg-color: #050a14;
    --bg-secondary: #0f172a;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;

    /* Tech Colors */
    --color-ai: #00f0ff;
    /* Cyan */
    --color-blockchain: #8a2be2;
    /* BlueViolet */

    --accent-primary: var(--color-ai);
    --accent-secondary: var(--color-blockchain);

    --gradient-main: linear-gradient(135deg, var(--color-blockchain), var(--color-ai));

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: pointer;
    /* Fix iOS tap bubbling */
}

html {
    scroll-padding-top: 6rem;
    /* Ensure anchors land below header */
}

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    font-weight: 700;
}

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

ul {
    list-style: none;
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
    position: relative;
    /* Ensure it appears */
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.4);
}

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

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

/* Header */
.header {
    background-color: #050a14;
    /* Solid for visibility */
    /* -webkit-backdrop-filter: blur(10px); */
    /* backdrop-filter: blur(10px); */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 2147483647;
    /* Max Int */
    padding: 0;
    /* No padding for absolute centering */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: auto;
    min-height: 5.5rem;
    /* Flexible height */
    overflow: visible;
    /* Prevent clipping */
    backface-visibility: hidden;
    /* Better than translateZ for fixed */
    backface-visibility: hidden;
    /* Better than translateZ for fixed */
}

#network-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Ensure its behind everything */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
    height: 5.5rem;
    /* Matches footer height */
    overflow: visible;
    /* Allow logo to overflow */
}

.logo-link {
    display: flex;
    align-items: center;
    z-index: 2000;
    /* Highest priority */
    margin: 0;
    margin-top: 25px;
    /* Nudge down (total 25px) */
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    cursor: pointer;
    will-change: transform;
    /* Hint to browser to stabilize */
}

/* Ensure no visual size change on click/touch */


/* Global Hitbox Expander for Logo */
.logo-link {
    position: relative;
    /* Ensure ::after is relative to this */
}

.logo-link::after {
    content: '';
    position: absolute;
    top: -30px;
    /* Cover the margin-top gap (was 25px) */
    bottom: -20px;
    left: -20px;
    right: -20px;
    z-index: 2005;
    cursor: pointer;
}

.logo-img {
    display: block;
    /* Eliminate inline spacing */
    height: 70px;
    /* Optimal size */
    width: auto;
    object-fit: contain;
    /* pointer-events: none; REMOVED to fix clickability */
    /* Pass clicks to link */
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;

    /* Ensure no shrinking or clipping */
    flex-shrink: 0;
    min-height: 70px;
    max-height: none;

    /* Reset transforms and borders */
    transform: translateZ(0);
    /* Hardware acceleration */
    border: none;
    outline: none;
}

/* Scroll Animation Classes */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-list a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

/* Hero */
.hero {
    padding: var(--spacing-md) 0 var(--spacing-md);
    /* Further reduced for mobile lift */
    min-height: 80vh;

    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, rgba(5, 10, 20, 0) 70%);
    z-index: -1;
    filter: blur(60px);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
}

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: var(--spacing-md);
}

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

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

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* About & Services Grid */
.about-grid,
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
    text-align: center;
}

.about-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
}

#network-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.2;
    /* Subtle background */
}

/* Service Images */
.service-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.service-card:hover .service-img {
    opacity: 1;
    transform: scale(1.02);
}

.service-icon {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.about-card h3,
.service-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

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

/* Industries */
.industries {
    background: none;
    /* Force removal of background */
    padding-top: 8rem;
    /* Maintain increased height */
    padding-bottom: 8rem;
}

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

.industry-card {
    flex: 1 1 300px;
    /* Grow, shrink, base width */
    max-width: 350px;
    min-height: 500px;
    /* Increased to 500px to stabilize layout */
    background: rgba(10, 15, 30, 0.9);
    /* Dark background for readability */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.industry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(138, 43, 226, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.industry-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-ai);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.industry-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.industry-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    color: #fff;
    transition: color 0.3s ease;
}

.industry-card:hover .industry-content h3 {
    color: var(--color-ai);
}

.industry-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.industry-details {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    text-align: left;
}

.industry-card:hover .industry-details {
    max-height: 150px;
    opacity: 1;
}

.industry-details li {
    font-size: 0.9rem;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
}

.industry-details li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--color-blockchain);
}

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 180px;
    /* Was 50px * 3.5 = 175px, adjusted to 180 for crispness */
    width: auto;
    object-fit: contain;
    /* transform: scale(3.5); REMOVED to fix blurriness */
    transform-origin: left center;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1001;
}

/* .logo-link:hover .logo-img { // REMOVED for stability } */

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-list a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

/* Language Selector */
/* Language Selector */
.language-selector {
    position: relative;
    /* Changed from absolute to flow in flex container */
    z-index: 1100;
    margin-right: 5rem;
    /* Balanced position */
}

.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.lang-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--color-ai);
    color: var(--color-ai);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.language-selector:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    text-align: center;
    /* Centered for better alignment of short codes */
    display: block;
    /* Ensure full width clickable/centered */
}


.lang-dropdown a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-ai);
}

/* Desktop Nav Centering */
@media (min-width: 769px) {
    .nav {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Hero */
.hero {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    min-height: 100vh;
    /* Full screen height to push 'Who We Are' down */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, rgba(5, 10, 20, 0) 70%);
    z-index: -1;
    filter: blur(60px);
    /* Ensure standard property is present */
    background-clip: padding-box;
}

/* Fix text-gradient background-clip */
.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
}

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: var(--spacing-md);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
    /* Adjusted spacing */
}

/* Sections */
.section {
    padding: 10rem 0;
    /* Increased to 10rem as requested */
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* About & Services Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
}

#network-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.2;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* FLIP CARD STRUCTURE */
.service-card {
    background-color: transparent;
    perspective: 1000px;
    min-height: 480px;
    /* Reduced height further */
    cursor: pointer;
    border: none;
    /* Ensure no frame on frame */
    padding: 0;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

/* Default behavior for devices with hover/mouse capability */
@media (hover: hover) and (pointer: fine) {
    .service-card:hover .service-card-inner {
        transform: rotateY(180deg);
    }

    .service-card:hover .service-card-front,
    .service-card:hover .service-card-back {
        border-color: var(--accent-primary);
    }
}

/* Class-based flip for touch devices or JS interaction */
.service-card.flipped .service-card-inner {
    transform: rotateY(180deg);
}

.service-card.flipped .service-card-front,
.service-card.flipped .service-card-back {
    border-color: var(--accent-primary);
}

.service-card:hover .service-card-front,
.service-card:hover .service-card-back {
    border-color: var(--accent-primary);
    /* Color edges on hover */
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card-front {
    background: rgba(10, 15, 30, 0.6);
    backdrop-filter: blur(10px);
    z-index: 2;
}

.service-card-back {
    background: linear-gradient(135deg, rgba(10, 20, 40, 0.95), rgba(20, 10, 40, 0.95));
    color: #e0e0e0;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.service-card-back h3 {
    color: var(--color-ai);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    width: 100%;
}

.service-card-back ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-card-back li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.2rem;
    color: #cbd5e1;
}

.service-card-back li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--color-blockchain);
}

.service-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.service-icon {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
    opacity: 0.8;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    /* Reduced to ~80px (User requested reduction) */
    /* Increased from 7rem for better Desktop offset */
}

.about-card h3,
.service-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    color: #fff;
}

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

/* Industries */
.industries {
    background-color: var(--bg-secondary);
}

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

.industry-card {
    flex: 1 1 300px;
    max-width: 350px;
    min-height: 220px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.industry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(138, 43, 226, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.industry-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-ai);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.industry-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.industry-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    color: #fff;
    transition: color 0.3s ease;
}

.industry-card:hover .industry-content h3 {
    color: var(--color-ai);
}

.industry-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.industry-details {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    text-align: left;
}

.industry-card:hover .industry-details {
    max-height: 150px;
    opacity: 1;
}

.industry-details li {
    font-size: 0.9rem;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
}

.industry-details li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--color-blockchain);
}

/* Partners */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.partner-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.partner-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.partner-icon {
    margin-bottom: 1.5rem;
    color: var(--color-ai);
    background: rgba(0, 240, 255, 0.05);
    padding: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.partner-card:hover .partner-icon {
    background: rgba(0, 240, 255, 0.15);
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.partner-icon svg {
    width: 48px;
    height: 48px;
}

.partner-info h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.partner-badge {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--color-blockchain);
    background: rgba(138, 43, 226, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    font-weight: 600;
    border: 1px solid rgba(138, 43, 226, 0.2);
}

.partner-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Contact */
.contact {
    padding-top: 10rem;
    /* Maximized space from Partners */
    padding-bottom: 12rem;
    /* Maximized space from Footer */
}

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

.contact-details {
    margin-top: 3rem;
    /* Spacing for email */
}

.contact-form {
    background: rgb(5, 10, 20);
    /* Solid background to remove transparency */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 4px;
    font-family: inherit;
}

.form-group textarea {
    resize: none;
}

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

/* Footer */
/* Footer */
.footer {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    background-color: rgba(5, 10, 20, 0.9);
    /* Dimmed background like header */
    backdrop-filter: blur(10px);
    /* Glassmorphism blur */
}

/* Responsive */
/* Responsive Design */

/* Tablet (Portrait & Landscape: 769px - 1024px) */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 2rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .services-grid,
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns for tablet */
    }

    .contact-wrapper {
        gap: 2rem;
    }
}

/* Mobile (Up to 768px) */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
        /* Slightly less padding to give more room */
        flex-wrap: nowrap;
        justify-content: flex-start;
        /* Items flow from start, spacing handled by margins */
        align-items: center;
    }

    .language-selector {
        order: -1;
        /* Move to start */
        margin-right: 0.5rem;
        margin-left: 0;
        display: flex;
        align-items: center;
        height: auto;
        /* Fix: Shrink to fit content */
        align-self: center;
        /* Fix: Vertically center in tall header */
        margin-top: 0;
        z-index: 2010;
        /* FIX: Ensure it is clickable above logo hitbox */
        position: relative;
    }

    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        margin-left: 1rem;
        z-index: 3000;
        /* Fix: Above logo hitbox */
        margin-top: -5px;
        align-self: center;
        /* Explicitly center */
    }

    .logo-img {
        height: 180px;
        min-height: 180px;
        max-height: 180px;
        width: auto;
        transition: none;
        flex-shrink: 0;
        pointer-events: none;
    }

    /* Lift Hero on Mobile */
    /* Lift Hero on Mobile */
    .hero {
        min-height: 100vh;
        /* FULL SCREEN: Push next section below fold */
        padding-top: calc(35vh - 10px);
        /* Lifted by 10px */
        /* Pushed significantly down (approx 1/3 viewport) */
        padding-bottom: 2rem;
        align-items: flex-start;
        /* Start from the padding offset */
        justify-content: center;
    }

    /* Reduce generic section padding on mobile to bring content higher */
    .section {
        padding: 55px 0;
        /* User specific request: "make it 55" */
    }


    .logo-link {
        margin-right: auto;
        display: flex;
        align-items: center;
        position: relative;
        /* Standard positioning */
        transform: none;
        margin-left: -5px;
        margin-top: 20px;
        padding-left: 0;
        z-index: 2002;
        /* CLICK FIX: Above everything */
        pointer-events: auto;
    }

    /* INVISIBLE HITBOX EXPANDER */
    .logo-link::after {
        content: '';
        position: absolute;
        top: -40px;
        bottom: -40px;
        left: 45px;
        /* INCREASED left gap (starts deep inside box) */
        right: -180px;
        /* Right expansion to cover gap to menu */
        z-index: 2005;
        cursor: pointer;
    }

    .logo-link:active {
        transform: none;
    }

    .nav {
        display: none;
        position: fixed;
        /* Fixed to cover screen regardless of scroll */
        top: 14rem;
        /* Adjusted for 180px logo */
        left: 0;
        width: 100%;
        height: calc(100vh - 14rem);
        /* Full height minus header */
        background-color: rgba(5, 10, 20, 0.95);
        /* Slightly clearer transparency */
        backdrop-filter: blur(15px);
        padding: 2rem 0;
        border-bottom: none;
        flex-direction: column;
        align-items: center;
        text-align: center;
        overflow-y: auto;
        /* Allow scrolling if menu is tall */
        z-index: 2100;
        /* FIX: Ensure menu layer is ABOVE the logo hitbox (2005) */
        /* Ensure it overlays page content but stays under button (2000... wait button should be higher) */
    }

    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        margin-left: 1rem;
        margin-right: 25px;
        /* Move further left */
        z-index: 3000;
        /* Ensure button stays on top of menu */
        margin-top: -5px;
        align-self: center;
        /* Explicitly center */
    }

    .nav.active {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        gap: 2rem;
        /* More space between items */
        padding: 0;
        margin: 0;
        width: 100%;
        align-items: center;
    }

    .nav-list a {
        font-size: 1.25rem;
        /* Larger text for mobile touch */
        display: block;
        padding: 0.5rem;
        text-align: center;
    }

    .mobile-menu-btn span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #fff;
        margin: 5px 0;
        transition: 0.3s;
        border-radius: 2px;
    }

    /* Hamburger Animation */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .lang-dropdown {
        position: absolute;
        top: 100%;
        /* Reset to standard flow */
        margin-top: 5px;
        /* Small gap */
        /* Adjusted to sit closer to button */
        /* Push below button */
        left: 0;
        min-width: 150px;
        /* Ensure width */
        max-height: 60vh;
        /* Allow scrolling if too long */
        overflow-y: auto;
        background: rgba(15, 23, 42, 0.98);
        z-index: 2001;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        padding: 0.5rem 0;
        display: none;
        /* Hidden by default */
    }

    .lang-dropdown.show {
        display: block;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .services-grid,
    .industries-grid,
    .partners-grid {
        grid-template-columns: 1fr;
        /* Single column for mobile */
    }

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

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* Scroll Reveal Utilities */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    filter: blur(5px);
}

.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}