@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.4);
    --secondary: #fbbf24;
    --bg-deep: #020617;
    --bg-surface: #0f172a;
    --text-white: #ffffff;
    --text-slate: #94a3b8;
    --card-border: rgba(255, 255, 255, 0.08);
    --glass: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
    background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
}

/* --- Typo --- */
h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

/* --- Nav --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
}

nav.scrolled, body:not(.home) nav {
    padding: 1rem 0;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
}

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

.logo img {
    height: 60px;
    object-fit: contain;
    filter: grayscale(1) invert(1) brightness(2);
    mix-blend-mode: screen;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 3rem;
    list-style: none;
}

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

.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary);
}

.lang-switch {
    display: flex;
    gap: 1rem;
    padding-left: 2rem;
    border-left: 1px solid var(--card-border);
}

.lang-switch a {
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-slate);
    transition: color 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.lang-switch a.active {
    color: var(--bg-deep);
    background: var(--primary);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('/assets/hero-bg.png') center/cover no-repeat;
    opacity: 0.4;
    filter: saturate(1.2);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--bg-deep) 0%, transparent 50%, var(--bg-deep) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid var(--primary);
    border-radius: 99px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    line-height: 0.95;
    font-weight: 900;
    margin-bottom: 2rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero h1 span {
    display: block;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-slate);
    max-width: 600px;
    margin-bottom: 3.5rem;
}

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

.btn {
    padding: 1.25rem 3rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-deep);
    box-shadow: 0 0 30px var(--primary-glow);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--primary-glow);
}

.btn-outline {
    border: 1px solid var(--card-border);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: white;
}

/* --- Sections --- */
section {
    padding: 10rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--text-slate));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-slate);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Service Cards --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    padding: 3.5rem;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, var(--primary-glow), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-15px);
    border-color: var(--primary);
}

.card:hover::before {
    opacity: 0.1;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 2.5rem;
    display: block;
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 2.5rem;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

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

.card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

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

/* --- Form Improvements --- */
input, textarea {
    font-family: inherit;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 15px var(--primary-glow);
}

.form-input {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
}

textarea.form-input {
    height: 120px;
    resize: vertical;
}

/* --- Partners --- */
.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6rem;
    padding: 6rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 40px;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.partners-grid img {
    height: 45px;
    object-fit: contain;
    filter: grayscale(1) invert(1) brightness(1.5);
    mix-blend-mode: screen;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.partners-grid img:hover {
    filter: brightness(0) invert(1) opacity(1);
    transform: scale(1.15);
}

/* --- Footer --- */
footer {
    padding: 8rem 2rem 4rem;
    background: #010409;
    border-top: 1px solid var(--card-border);
}

.footer-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand img {
    height: 60px;
    object-fit: contain;
    filter: grayscale(1) invert(1) brightness(2);
    mix-blend-mode: screen;
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: var(--primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 1rem;
}

.footer-col a {
    color: var(--text-slate);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1300px;
    margin: 4rem auto 0;
    padding-top: 3rem;
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    color: var(--text-slate);
    font-size: 0.9rem;
}

/* --- Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

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

/* --- Responsive --- */
@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 4rem; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hero h1 { font-size: 3rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-btns { flex-direction: column; }
}
