@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

:root {
    --green: #00C853;
    --green-dark: #00A844;
    --green-dim: rgba(0, 200, 83, 0.12);
    --red: #E53935;
    --red-dim: rgba(229, 57, 53, 0.08);
    --dark: #0E0E0E;
    --dark-2: #161616;
    --dark-3: #1E1E1E;
    --dark-4: #262626;
    --mid: #888;
    --light: #C8C8C8;
    --white: #FFFFFF;
    --shadow-green: 0 8px 32px rgba(0,200,83,0.2);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.35);
    --radius: 16px;
    --radius-sm: 10px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--dark);
    color: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-2); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 3px; }

/* ─── NAV ─── */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    background: rgba(14,14,14,0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.3s;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1360px;
    margin: 0 auto;
    padding: 1.1rem 5%;
    gap: 2rem;
}

.logo {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: 1.7rem;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo span { color: var(--green); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.07);
}

.nav-links a.active {
    color: var(--green);
}

/* ─── HAMBURGER ─── */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 4px;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    display: block;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ─── HERO ─── */
.hero {
    margin-top: 70px;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Dot grid */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* Gradient overlays */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 50%, rgba(0,200,83,0.13) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 85% 20%, rgba(229,57,53,0.08) 0%, transparent 70%);
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,200,83,0.07) 0%, transparent 65%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: glowPulse 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem 5%;
    max-width: 900px;
    animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.2rem;
    color: var(--white);
}

.hero h1 .hl { color: var(--green); }

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--mid);
    max-width: 600px;
    margin: 0 auto 2.2rem;
}

.hero.short {
    min-height: 340px;
}

/* ─── CTA BUTTON ─── */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2.2rem;
    background: var(--green);
    color: var(--dark);
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 50px;
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
    box-shadow: var(--shadow-green);
}

.cta-btn:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0,200,83,0.35);
}

/* ─── SECTIONS ─── */
section {
    padding: 5rem 0;
}

.wrap {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green);
    background: var(--green-dim);
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    letter-spacing: -0.025em;
    color: var(--white);
    margin-bottom: 0.75rem;
    text-align: center;
}

.section-title span { color: var(--green); }

.section-sub {
    text-align: center;
    color: var(--mid);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

/* ─── SECTION BACKGROUNDS ─── */
.sec-dark  { background: var(--dark); }
.sec-dark2 { background: var(--dark-2); }
.sec-dark3 { background: var(--dark-3); }

/* ─── CARDS ─── */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--dark-3);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 2rem;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--green) 0%, transparent 60%, var(--red) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover {
    border-color: rgba(0,200,83,0.25);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
}

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

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 1.1rem;
    display: block;
    transition: transform 0.3s;
}

.card:hover .card-icon {
    transform: scale(1.15) rotate(5deg);
}

.card h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
    color: var(--white);
}

.card p {
    color: var(--mid);
    font-size: 0.95rem;
}

.card ul {
    list-style: none;
    margin-top: 1rem;
}

.card ul li {
    color: var(--light);
    font-size: 0.88rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card ul li::before {
    content: '→';
    color: var(--green);
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* ─── TECH GRID ─── */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.tech-item {
    background: var(--dark-3);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s;
    cursor: default;
}

.tech-item:hover {
    background: var(--green-dim);
    border-color: var(--green);
    transform: translateY(-4px);
}

.tech-item .ti-icon {
    font-size: 2.2rem;
    margin-bottom: 0.6rem;
    display: block;
}

.tech-item h4 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--light);
}

/* ─── CONTENT IMAGE ─── */
.content-image {
    width: 100%;
    height: 420px;
    border-radius: var(--radius);
    overflow: hidden;
    margin: 3rem 0 0;
    border: 1px solid rgba(255,255,255,0.06);
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.content-image:hover img {
    transform: scale(1.03);
}

/* ─── TIMELINE ─── */
.timeline {
    position: relative;
    max-width: 840px;
    margin: 3rem auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--green), rgba(0,200,83,0.1));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 2rem 0;
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 2.5rem);
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 2.5rem);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 1.2rem;
    width: 14px;
    height: 14px;
    background: var(--green);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px rgba(0,200,83,0.15);
}

.timeline-content {
    background: var(--dark-3);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
    padding: 1.4rem 1.6rem;
    max-width: 100%;
}

.timeline-content h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.timeline-content p {
    color: var(--mid);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.timeline-content p strong {
    color: var(--light);
}

/* ─── CONTACT ─── */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.contact-item {
    background: var(--dark-3);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 2.2rem 2rem;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}

.contact-item:hover {
    border-color: rgba(0,200,83,0.3);
    transform: translateY(-4px);
}

.contact-item .ci-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    display: block;
}

.contact-item h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 0.7rem;
}

.contact-item p {
    color: var(--light);
    font-size: 0.95rem;
}

.contact-item a {
    color: var(--green);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* ─── LEGAL ─── */
.legal-content {
    max-width: 860px;
    margin: 0 auto;
    line-height: 1.85;
}

.legal-content h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    color: var(--green);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--light);
    font-size: 0.95rem;
    text-align: justify;
}

.legal-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: var(--light);
    font-size: 0.95rem;
}

.last-updated {
    background: var(--dark-3);
    border: 1px solid rgba(0,200,83,0.2);
    border-radius: var(--radius-sm);
    padding: 1rem 1.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--mid);
    font-size: 0.9rem;
}

.legal-note {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: var(--mid);
    font-size: 0.85rem;
}

/* ─── FOOTER ─── */
footer {
    background: var(--dark-2);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
}

.footer-grid {
    max-width: 1360px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
}

.footer-brand .logo {
    display: inline-flex;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-brand .logo-img {
    width: 30px;
    height: 30px;
}

.footer-brand p {
    color: var(--mid);
    font-size: 0.9rem;
    max-width: 240px;
    line-height: 1.6;
}

.footer-col h4 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1.1rem;
    font-size: 0.9rem;
}

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

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

.footer-col a {
    color: var(--mid);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--green);
}

.footer-col p {
    color: var(--mid);
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
}

.footer-bottom {
    max-width: 1360px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom p {
    color: var(--mid);
    font-size: 0.82rem;
}

.footer-flag {
    display: flex;
    gap: 3px;
    align-items: center;
}

.footer-flag span {
    width: 18px;
    height: 12px;
    border-radius: 2px;
}

.flag-g { background: #009246; }
.flag-w { background: #FFFFFF; }
.flag-r { background: #CE2B37; }

/* ─── DIVIDER ─── */
.divider {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--red));
    border-radius: 2px;
    margin: 0.75rem auto 0;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline::before { left: 20px; }

    .timeline-item {
        justify-content: flex-start !important;
        padding-left: 3.5rem !important;
        padding-right: 0 !important;
    }

    .timeline-dot {
        left: 20px;
    }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(14,14,14,0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.25rem;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s ease, opacity 0.35s ease;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        display: block;
        padding: 0.7rem 1rem;
        font-size: 1rem;
    }

    .hero { min-height: 520px; }
    .hero.short { min-height: 280px; }

    .content-image { height: 260px; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
    section { padding: 3.5rem 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-brand p { max-width: 100%; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
