:root {
    --bg-color: #0B1021;
    --text-main: #F0F2F5;
    --text-muted: #A0AEC0;
    --accent: #38bdf8;
    --glass-bg: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-blur: 16px;
    --section-gap: 120px;
}

html { scroll-behavior: smooth; }

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .brand {
    font-family: 'Space Grotesk', sans-serif;
}

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

/* --- GLOBAL BACKGROUND --- */
#hero-canvas {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* --- UTILITIES --- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

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

/* RESTORED: Massive Desktop Title */
.section-title {
    /* Mobile: 2.5rem | Desktop: Scales up to 3.5rem */
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    height: 60px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 1000;
}

.brand { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.05em; color: #fff; }
.menu { display: flex; gap: 20px; }
.menu-link { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
.menu-link:hover { color: var(--accent); }

/* Mobile Nav Optimization */
@media (max-width: 650px) {
    nav { width: 95%; padding: 0 20px; }
    .brand { display: none; }
    .menu { width: 100%; justify-content: space-between; gap: 0; }
    .menu-link { font-size: 0.85rem; }
}

/* --- HERO BUTTONS --- */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 24px; /* Good spacing between them */
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Base Shape */
.btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    border-radius: 12px; /* Slightly squarer radius like the reference image */
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.6); /* Glows stronger on hover */
    filter: brightness(1.1); /* Gets slightly brighter */
}

/* 2. SECONDARY BUTTON ("Let's go!") - The Quiet One */
.btn-secondary {
    /* Dark Glassy Background */
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted); /* Muted text so it doesn't fight for attention */

    /* Thin Border */
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

/* --- HERO --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    pointer-events: none;
    padding: 0 20px;
}

/* RESTORED: Massive Company Name */
.company-name {
    /* Mobile: 4rem | Desktop: Scales up to 12rem (Huge) */
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em; /* Scales proportionally */
    margin-bottom: 10px;
    background: linear-gradient(to bottom, #FFFFFF 0%, #718096 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 40px rgba(255,255,255,0.1));
}

.typewriter-line {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 400;
}

.cursor {
    display: inline-block; width: 3px; height: 1em;
    background-color: var(--text-main);
    animation: blink 1s infinite; vertical-align: middle;
}

.hero-sub {
    color: var(--text-muted); font-size: 1.1rem;
    margin-bottom: 40px; max-width: 600px;
    margin-left: auto; margin-right: auto;
}

/* --- SECTIONS GLOBAL --- */
section {
    padding: var(--section-gap) 0;
}

/* --- SERVICES & SOLUTIONS LAYOUT --- */
#solutions, #services {
    padding-top: 40px;
    padding-bottom: 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

@media (min-width: 768px) {
    #solutions, #services { justify-content: center; }
}

.section-header { margin-bottom: 40px; text-align: left; }

.subtitle {
    font-family: 'Space Grotesk', monospace; font-size: 0.9rem;
    color: var(--accent); letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 10px; display: inline-block;
    border-bottom: 1px solid rgba(56, 189, 248, 0.3); padding-bottom: 5px;
}

/* --- BENTO GRID --- */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, minmax(200px, 230px));
    }
    .bento-card:nth-child(1) { grid-column: span 2; }
    .bento-card:nth-child(2) { grid-column: span 1; }
    .bento-card:nth-child(3) { grid-column: span 1; }
    .bento-card:nth-child(4) { grid-column: span 1; }
    .bento-card:nth-child(5) { grid-column: span 1; }
    .bento-card:nth-child(6) { grid-column: span 1; }
    .bento-card:nth-child(7) { grid-column: span 2; }
}

.bento-card {
    position: relative; z-index: 1;
    border-radius: 20px; padding: 24px;
    display: flex; flex-direction: column; justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
}

.bento-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.5); z-index: 2;
}

.card-icon { font-size: 1.8rem; margin-bottom: 15px; text-shadow: 0 0 20px rgba(255,255,255,0.2); }
.card-content h3 { font-size: 1.25rem; margin-bottom: 8px; color: #fff; font-weight: 600; }
.card-content p {
    color: var(--text-muted); font-size: 0.9rem; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bento-card.featured .card-content p, .bento-card.wide .card-content p { -webkit-line-clamp: 4; }

/* --- SOLUTIONS (PROJECTS) GRID --- */
.solutions-grid {
    display: grid; grid-template-columns: 1fr; gap: 30px; margin-top: 40px;
}
@media (min-width: 900px) {
    .solutions-grid { grid-template-columns: repeat(3, 1fr); }
}

.solution-card {
    display: flex; flex-direction: column; border-radius: 24px;
    overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}
.solution-card:hover {
    transform: translateY(-8px); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6);
    border-color: var(--accent);
}

.solution-image {
    width: 100%; height: 200px; background-color: #000;
    overflow: hidden; position: relative; border-bottom: 1px solid var(--glass-border);
}
.solution-image img {
    width: 100%; height: 100%; object-fit: cover; opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.5s ease;
}
.solution-card:hover .solution-image img { opacity: 1; transform: scale(1.05); }

.solution-content { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; }
.solution-content h3 { font-size: 1.3rem; color: #fff; margin-bottom: 12px; font-weight: 700; }
.solution-content p {
    font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 24px;
}

.tags-row { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.tags-row span {
    font-size: 0.75rem; font-family: 'Space Grotesk', sans-serif; color: var(--accent);
    background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 4px 10px; border-radius: 6px; text-transform: uppercase;
}

/* --- CLIENTS MARQUEE --- */
.marquee-wrapper {
    width: 100%; overflow: hidden; position: relative; padding: 60px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    /*noinspection CssInvalidPropertyValue*/
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
    display: flex; width: max-content; gap: 40px; animation: scroll 40s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.logo-group { display: flex; gap: 40px; align-items: center; }

.logo-group img {
    width: 160px; height: 70px; object-fit: contain; display: block;
    filter: brightness(0) invert(0.8) opacity(0.6);
    transition: filter 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.logo-group img:hover { filter: brightness(1) invert(0) opacity(1); cursor: pointer; transform: scale(1.1); }

@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- FOOTER --- */
footer {
    margin-top: 80px; padding: 60px 0;
    border-top: 1px solid var(--glass-border);
    background: linear-gradient(to bottom, rgba(11, 16, 33, 0.8), #050810);
    backdrop-filter: blur(20px);
}
.footer-layout { display: flex; flex-direction: column; gap: 50px; }
@media (min-width: 900px) {
    .footer-layout { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

.footer-identity { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.footer-brand {
    font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 2rem;
    color: #fff; letter-spacing: -1px;
}
.company-details { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.company-details strong { color: #fff; }

.social-links { display: flex; align-items: center; gap: 20px; margin-top: 10px; }
.social-icon { color: var(--text-muted); transition: color 0.3s ease, transform 0.3s ease; }
.social-icon:hover { color: var(--accent); transform: translateY(-3px); }
.copyright { font-size: 0.8rem; color: #555; border-left: 1px solid #333; padding-left: 20px; }

.footer-actions { flex: 1.5; }
.call-to-action {
    font-size: 1.5rem; color: #fff; margin-bottom: 25px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.action-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
@media (min-width: 600px) { .action-grid { grid-template-columns: repeat(3, 1fr); } }

.action-card {
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--glass-border);
    padding: 15px; border-radius: 12px; display: flex; flex-direction: column; gap: 12px;
    transition: all 0.3s ease;
}
.action-card:hover {
    background: rgba(255, 255, 255, 0.08); border-color: var(--accent); transform: translateY(-3px);
}
.action-card.highlight { background: rgba(56, 189, 248, 0.1); border-color: rgba(56, 189, 248, 0.2); }
.action-card.highlight:hover { background: rgba(56, 189, 248, 0.2); box-shadow: 0 0 20px rgba(56, 189, 248, 0.2); }

.icon-box { color: var(--accent); }
.action-text { display: flex; flex-direction: column; }
.label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.value { font-size: 0.9rem; color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }