/* Global styles */
:root {
    --bg: #0f172a;
    --surface: #111827;
    --surface-alt: #1e293b;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --primary: #38bdf8;
    --accent: #7c3aed;
    --radius: 24px;
    --shadow: 0 30px 60px rgba(15, 23, 42, 0.25);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.85s ease, transform 0.85s ease;
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-overlay {
    opacity: 0;
    transform: translateY(16px);
}

.slider-slide.active .slide-overlay {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.9s ease 0.2s, transform 0.9s ease 0.2s;
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.12), transparent 32%), var(--bg);
    color: var(--text);
    line-height: 1.7;
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    display: block;
}

button, input, textarea {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.brand a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    font-size: 0;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(124, 58, 237, 0.15));
    padding: 0.35rem;
}

.main-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.main-nav a {
    position: relative;
    color: var(--muted);
    transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.4rem;
    width: 100%;
    height: 2px;
    background: var(--primary);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.main-nav a:hover,
.main-nav a.nav-active {
    color: var(--primary);
    transform: translateY(-1px);
}

.main-nav a:hover::after,
.main-nav a.nav-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.hero {
    min-height: 90vh;
    display: grid;
    place-items: center;
    padding: 0;
    text-align: center;
}

.hero-slider-wrap {
    position: relative;
    width: 100%;
    min-height: 90vh;
    overflow: hidden;
}

.slider {
    position: absolute;
    inset: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    min-height: 100%;
    background: rgba(15, 23, 42, 0.12);
}

.slider-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(20px) scale(1.02);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.slider-slide.active {
    opacity: 1;
    z-index: 1;
    transform: translateY(0) scale(1);
}

.slider-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.94;
}

.slide-overlay {
    position: absolute;
    left: 3rem;
    bottom: 3.5rem;
    max-width: 36%;
    background: rgba(7, 11, 26, 0.86);
    border: 1px solid rgba(56, 189, 248, 0.14);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 40px 90px rgba(15, 23, 42, 0.35);
}

.slide-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    color: #a5f3fc;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.slide-overlay h2 {
    font-size: clamp(2rem, 2.5vw, 3rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: #f8fafc;
}

.code-block {
    background: rgba(15, 23, 42, 0.92);
    border-radius: 1.3rem;
    padding: 1.4rem 1.5rem;
    overflow-x: auto;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.code-block code {
    display: block;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #cbd5e1;
}

.code-line {
    display: block;
    opacity: 0;
    transform: translateX(-18px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.slider-nav {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    pointer-events: none;
    z-index: 50;
}

.slider-nav button {
    pointer-events: auto;
    width: 3.4rem;
    height: 3.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    font-size: 1.35rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.slider-nav button:hover {
    transform: translateY(-2px);
    background: rgba(56, 189, 248, 0.95);
}

.card-icon {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    display: grid;
    place-items: center;
    border-radius: 1.25rem;
    background: rgba(56, 189, 248, 0.08);
}

.card-icon img {
    width: 2.4rem;
    height: 2.4rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.8rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.button:hover {
    transform: translateY(-2px);
}

.primary {
    background: linear-gradient(135deg, var(--primary), #0ea5e9);
    color: #0f172a;
}

.secondary {
    background: transparent;
    color: var(--text);
    border-color: rgba(148, 163, 184, 0.4);
}

.section-light,
.section-padded,
.section-dark {
    padding: 5rem 0;
}

.section-light {
    background: rgba(255, 255, 255, 0.04);
}

.section-dark {
    background: #070b1a;
}

.section-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-heading span {
    display: inline-block;
    color: var(--primary);
    font-size: 0.95rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.section-heading h2 {
    font-size: clamp(2rem, 3vw, 2.65rem);
    line-height: 1.1;
}

.cards,
.team-grid,
.works-grid,
.contact-grid {
    display: grid;
    gap: 1.5rem;
}

.cards {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card,
.team-card,
.work-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: var(--shadow);
}

.card h3,
.team-card h3,
.work-card h3 {
    margin-bottom: 1rem;
}

.card p,
.team-card p,
.work-card p {
    color: var(--muted);
}

.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.works-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
}

.contact-list {
    list-style: none;
    padding-left: 0;
    color: var(--muted);
    margin-top: 1rem;
}

.contact-list li {
    margin-bottom: 0.75rem;
}

.contact-form {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #111827;
    color: var(--text);
    padding: 0.95rem 1rem;
    margin-bottom: 1.1rem;
}

.contact-form textarea {
    resize: vertical;
}

.form-message {
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    background: rgba(56, 189, 248, 0.12);
    color: #bfdbfe;
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: #020617;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2.5rem;
    align-items: start;
    padding-bottom: 1.5rem;
}

.footer-brand-link {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--text);
}

.footer-logo {
    width: 10rem;
    height: 10rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(124, 58, 237, 0.2));
    padding: 0.45rem;
}

.footer-brand-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    max-width: 420px;
    color: var(--muted);
    line-height: 1.75;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.footer-links h4 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.footer-links a {
    display: block;
    color: var(--muted);
    margin-bottom: 0.85rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    padding-top: 1.25rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

@media (max-width: 980px) {
    .slide-overlay {
        left: 2rem;
        right: 2rem;
        bottom: 2rem;
        max-width: 48%;
        padding: 1.8rem;
    }

    .slide-overlay h2 {
        font-size: clamp(2rem, 3vw, 2.5rem);
    }

    .slider-nav button {
        width: 3rem;
        height: 3rem;
    }
}

@media (max-width: 860px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav {
        justify-content: center;
        gap: 0.75rem;
    }

    .hero {
        min-height: 70vh;
    }

    .hero-slider-wrap {
        min-height: 70vh;
    }

    .slide-overlay {
        left: 1.5rem;
        right: 1.5rem;
        bottom: 1.5rem;
        max-width: 70%;
        padding: 1.5rem;
    }

    .slide-overlay h2 {
        font-size: clamp(1.9rem, 4vw, 2.3rem);
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100%, calc(100% - 1.5rem));
    }

    .slide-overlay {
        max-width: 100%;
        left: 1rem;
        right: 1rem;
        bottom: 1.25rem;
        padding: 1.25rem;
    }

    .slide-tag {
        font-size: 0.8rem;
        padding: 0.45rem 0.9rem;
    }

    .code-block {
        padding: 1rem 1rem;
    }

    .footer-brand-link {
        align-items: flex-start;
        gap: 0.85rem;
    }

    .footer-logo {
        width: 3.6rem;
        height: 3.6rem;
    }
}

@media (max-width: 520px) {
    .button {
        width: 100%;
    }

    .main-nav {
        gap: 0.5rem;
        font-size: 0.94rem;
    }

    .slide-overlay {
        bottom: 1rem;
        left: 0.75rem;
        right: 0.75rem;
    }

    .slide-overlay h2 {
        font-size: clamp(1.75rem, 5vw, 2rem);
    }

    .card,
    .team-card,
    .work-card,
    .contact-form,
    .footer-content {
        padding: 1.5rem;
    }

    .footer-bottom p {
        font-size: 0.9rem;
    }
}
