/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { line-height: 1.6; min-height: 100vh; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

/* ===== Variables ===== */
:root {
    --bg: #004054;
    --bg-deep: #002b3a;
    --accent: #2f6070;
    --accent-light: #346d80;
    --accent-glow: rgba(52, 109, 128, 0.5);
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --glass: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-hover: rgba(255, 255, 255, 0.1);
    --radius: 1.25rem;
    --radius-sm: 0.625rem;
    --max-width: 72rem;
    --font: 'Quicksand', sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Base ===== */
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    font-weight: 400;
    position: relative;
}

/* ===== Animated background ===== */
.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(ellipse at top, var(--bg) 0%, var(--bg-deep) 100%);
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.bg-blob-1 {
    width: 40rem; height: 40rem;
    background: radial-gradient(circle, #2f6070, transparent 70%);
    top: -10rem; left: -10rem;
}

.bg-blob-2 {
    width: 35rem; height: 35rem;
    background: radial-gradient(circle, #1a5566, transparent 70%);
    bottom: -8rem; right: -8rem;
    animation-delay: -7s;
}

.bg-blob-3 {
    width: 30rem; height: 30rem;
    background: radial-gradient(circle, #346d80, transparent 70%);
    top: 40%; left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(2rem, -2rem) scale(1.05); }
    66% { transform: translate(-2rem, 2rem) scale(0.95); }
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 4rem 4rem;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* ===== Layout ===== */
.site-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-inner {
    max-width: 40rem;
}

.hero-logo .frame {
    display: inline-block;
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--glass-border);
    box-shadow: 0 0 3rem var(--accent-glow);
    margin-bottom: 1.5rem;
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 3rem var(--accent-glow); }
    50% { box-shadow: 0 0 5rem var(--accent-glow); }
}

.hero-logo img { width: 100%; height: 100%; object-fit: cover; }

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 600;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #fff 0%, #a8d4e0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-tagline {
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 300;
    margin-bottom: 3rem;
}

.hero-scroll {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    transition: all 0.3s var(--ease);
    animation: bounce 2s ease-in-out infinite;
}

.hero-scroll:hover { background: var(--glass-hover); transform: scale(1.1); }
.hero-scroll svg { width: 1.5rem; height: 1.5rem; fill: var(--text); }

/* Hero CTA buttons */
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, border-color 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--text);
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.5rem var(--accent-glow);
}

.btn-ghost {
    background: var(--glass);
    color: var(--text);
    border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
    background: var(--glass-hover);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(0.5rem); }
}

/* ===== Sections ===== */
.site-main { flex: 1; }

.section {
    padding: 5rem 2rem;
    display: flex;
    justify-content: center;
}

.section-inner {
    max-width: var(--max-width);
    width: 100%;
}

.section-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 500;
    position: relative;
    padding-left: 2.5rem;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1.5rem;
    height: 1px;
    background: var(--accent-light);
}

/* ===== About card ===== */
.about-card {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.about-image { flex-shrink: 0; }

.about-image .frame {
    display: block;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--glass-border);
    box-shadow: 0 0.5rem 2rem rgba(0,0,0,0.3);
}

.about-image img { width: 100%; height: 100%; object-fit: cover; }

.about-text p {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text);
    font-weight: 300;
}

.about-text p + p {
    margin-top: 1rem;
}

/* ===== Stats bar ===== */
.stats-bar {
    padding: 0 2rem;
    display: flex;
    justify-content: center;
}

.stats-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: var(--max-width);
    width: 100%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: center;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.stat-number {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #a8d4e0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    font-weight: 400;
}

/* ===== Clients strip ===== */
.clients-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    padding: 2rem 1rem;
}

.client-name {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    transition: color 0.3s;
    opacity: 0.7;
}

.client-name:hover {
    color: var(--text);
    opacity: 1;
}

/* ===== Expertise cards ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 1.5rem;
}

.cards-grid.two-col {
    grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
}

.expertise-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--accent-light), transparent);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.expertise-card:hover {
    transform: translateY(-0.5rem);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.25);
}

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

.card-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.5rem 1.5rem var(--accent-glow);
}

.card-icon svg { width: 1.75rem; height: 1.75rem; fill: #fff; }

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.card-body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    font-weight: 300;
}

/* ===== Contact ===== */
.contact-intro {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 1.7;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text);
    font-weight: 500;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.1rem;
    transition: color 0.3s, border-color 0.3s;
}

.linkedin-link:hover { color: #7fc4dc; border-color: #7fc4dc; }
.linkedin-icon { width: 1.1rem; height: 1.1rem; fill: currentColor; }

/* ===== Form ===== */
.form-component {
    display: flex;
    justify-content: center;
}

.form-component > .inner {
    display: flex;
    flex-flow: column wrap;
    max-width: 100%;
    width: 30rem;
}

.form-component .field { margin-top: 1rem; }
.form-component > .inner > :first-child { margin-top: 0; }

.form-component input[type="text"],
.form-component input[type="email"],
.form-component input[type="tel"],
.form-component textarea {
    width: 100%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 0.85rem 1rem;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 400;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
}

.form-component input[type="text"]:focus,
.form-component input[type="email"]:focus,
.form-component input[type="tel"]:focus,
.form-component textarea:focus {
    border-color: var(--accent-light);
    background: var(--glass-hover);
}

.form-component input::placeholder,
.form-component textarea::placeholder {
    color: rgba(255,255,255,0.45);
}

.form-component textarea {
    height: 8rem;
    resize: vertical;
    line-height: 1.6;
}

.form-component input[name="url"] { display: none; }

/* hCaptcha */
.form-component .h-captcha {
    margin-top: 1rem;
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.form-component .h-captcha iframe {
    border: 0;
    border-radius: var(--radius-sm);
    max-width: 100%;
}

/* Submit button */
.form-component .actions { margin-top: 1.5rem; }

.form-component .actions button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--text);
    border: 0;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    position: relative;
}

.form-component .actions button svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: var(--text);
}

.form-component .actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.5rem var(--accent-glow);
}

.form-component .actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.form-component .actions button.waiting { color: transparent; }
.form-component .actions button.waiting svg { fill: transparent; }

.form-component .actions button.waiting::after {
    content: '';
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Footer ===== */
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    border-top: 1px solid var(--glass-border);
}

.site-footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 300;
}

.footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    transition: all 0.3s var(--ease);
}

.footer-link svg { width: 1.2rem; height: 1.2rem; fill: var(--text); }

.footer-link:hover {
    background: var(--accent);
    border-color: var(--accent-light);
    transform: translateY(-2px);
}

/* ===== Reveal animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* ===== Responsive ===== */
@media (max-width: 736px) {
    .section { padding: 3.5rem 1.25rem; }
    .about-card { flex-direction: column; text-align: center; gap: 1.5rem; padding: 2rem 1.5rem; }
    .about-image .frame { width: 9rem; height: 9rem; margin: 0 auto; }
    .form-component > .inner { width: 100%; }
    .site-footer { flex-direction: column; gap: 1rem; text-align: center; }
    .section-label { padding-left: 2rem; }
    .stats-inner { grid-template-columns: repeat(3, 1fr); gap: 2rem 1rem; padding: 2rem 1.5rem; }
    .clients-strip { gap: 1.5rem; }
    .client-name { font-size: 1.1rem; }
}

@media (max-width: 480px) {
    .hero { padding: 1.5rem; }
    .hero-logo .frame { width: 6rem; height: 6rem; }
    .cards-grid { grid-template-columns: 1fr; }
    .expertise-card { padding: 2rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
