/* ===================================
   CSS VARIABLES & RESET
   =================================== */
:root {
    --bg:          #0a0f1a;
    --bg2:         #0f1624;
    --surface:     rgba(255,255,255,0.04);
    --border:      rgba(255,255,255,0.09);
    --border-em:   rgba(16,185,129,0.30);
    --border-yw:   rgba(245,158,11,0.30);

    --emerald:     #10b981;
    --emerald-dim: rgba(16,185,129,0.15);
    --yellow:      #f59e0b;
    --yellow-dim:  rgba(245,158,11,0.15);

    --text:        #ffffff;
    --text-muted:  rgba(255,255,255,0.60);
    --text-dim:    rgba(255,255,255,0.40);

    --radius-sm:   10px;
    --radius:      16px;
    --radius-lg:   24px;
    --radius-full: 9999px;

    --shadow-em:   0 0 40px rgba(16,185,129,0.18);
    --shadow-yw:   0 0 40px rgba(245,158,11,0.18);

    --transition:  0.25s ease;
    --font-head:   'Syne', sans-serif;
    --font-body:   'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea { font-family: inherit; }

/* ===================================
   AMBIENT BACKGROUND
   =================================== */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(128px);
    pointer-events: none;
    z-index: 0;
}
body::before {
    width: 500px; height: 500px;
    background: rgba(16,185,129,0.07);
    top: 0; left: 20%;
}
body::after {
    width: 500px; height: 500px;
    background: rgba(245,158,11,0.07);
    bottom: 0; right: 15%;
}

/* ===================================
   UTILITIES
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
    position: relative;
    z-index: 1;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; }

h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #fff 30%, #6ee7b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 20px;
}

h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }

.accent       { color: var(--emerald); }
.accent-yellow{ color: var(--yellow); }

/* ===================================
   BADGES
   =================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 20px;
}
.badge--emerald {
    background: var(--emerald-dim);
    border: 1px solid var(--border-em);
    color: var(--emerald);
}
.badge--yellow {
    background: var(--yellow-dim);
    border: 1px solid var(--border-yw);
    color: var(--yellow);
}
.badge--yellow-solid {
    background: rgba(245,158,11,0.20);
    border: 1px solid var(--border-yw);
    color: var(--yellow);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: var(--radius-full);
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    cursor: pointer;
}
.btn:hover  { transform: scale(1.04); }
.btn:active { transform: scale(0.97); }

.btn--primary {
    background: linear-gradient(135deg, var(--emerald), #059669);
    color: #fff;
    box-shadow: 0 4px 24px rgba(16,185,129,0.28);
}
.btn--primary:hover { box-shadow: 0 6px 32px rgba(16,185,129,0.45); }

.btn--ghost {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text);
}
.btn--ghost:hover { background: rgba(255,255,255,0.10); }

.btn--yellow {
    background: linear-gradient(135deg, var(--yellow), #d97706);
    color: #0a0f1a;
    font-weight: 700;
    box-shadow: 0 4px 24px rgba(245,158,11,0.28);
}
.btn--yellow:hover { box-shadow: 0 6px 32px rgba(245,158,11,0.45); }

.btn--full { width: 100%; justify-content: center; }

/* ===================================
   HEADER
   =================================== */
#header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
}
#header.scrolled {
    background: rgba(10,15,26,0.80);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.logo__icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--emerald), #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 0 20px rgba(16,185,129,0.30);
    flex-shrink: 0;
}

.logo__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    display: block;
}

.logo__name {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
}
.logo__sub {
    display: block;
    font-size: 0.7rem;
    color: var(--emerald);
}

/* Desktop nav links */
.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav__links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition);
    position: relative;
}
.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0; right: 0;
    height: 2px;
    background: var(--emerald);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: left;
}
.nav__links a:hover,
.nav__links a.active { color: var(--emerald); }
.nav__links a.active::after,
.nav__links a:hover::after { transform: scaleX(1); }

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 36px; height: 36px;
    align-items: center;
    justify-content: center;
    padding: 4px;
}
.burger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    display: none;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
    background: rgba(10,15,26,0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
}
.mobile-menu.open { max-height: 400px; }
.mobile-menu ul { padding: 16px 24px 20px; }
.mobile-menu li { border-bottom: 1px solid var(--border); }
.mobile-menu li:last-child { border-bottom: none; }
.mobile-menu a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--emerald); }

/* ===================================
   HERO
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
    z-index: 1;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero__bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.18;
}
.hero__bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, var(--bg) 100%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    animation: float 7s ease-in-out infinite;
}
.blob--left  {
    width: 300px; height: 300px;
    background: rgba(16,185,129,0.12);
    top: 20%; left: 3%;
}
.blob--right {
    width: 380px; height: 380px;
    background: rgba(245,158,11,0.10);
    bottom: 20%; right: 4%;
    animation-delay: -3s;
    animation-duration: 9s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-28px); }
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 0 80px;
}

.hero__desc {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 36px;
}

.hero__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-bottom: 56px;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
}
.stats__item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 16px;
    backdrop-filter: blur(10px);
}
.stats__value {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--emerald);
    margin-bottom: 6px;
}
.stats__label {
    font-size: 0.78rem;
    color: var(--text-dim);
    display: block;
}

/* ===================================
   SECTION HEADERS
   =================================== */
.section__header {
    text-align: center;
    margin-bottom: 56px;
}
.section__header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
}

/* ===================================
   CARDS (About)
   =================================== */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.card--service {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.card--service:hover {
    transform: translateY(-6px);
    border-color: var(--border-em);
    box-shadow: var(--shadow-em);
}
.card--service p { color: var(--text-muted); font-size: 0.92rem; }

.card__icon {
    width: 60px; height: 60px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    transition: transform var(--transition);
}
.card--service:hover .card__icon { transform: scale(1.10); }
.card__icon--emerald {
    background: var(--emerald-dim);
    color: var(--emerald);
}

.about__img-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}
.about__img-wrap img { width: 100%; height: auto; }

/* ===================================
   SLIDER (Projects)
   =================================== */
.slider {
    position: relative;
    overflow: hidden;
}

.slider__track {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    padding: 0 56px;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.project-card__img {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.project-card__img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.project-card:hover .project-card__img img { transform: scale(1.04); }
.project-card__img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg) 0%, transparent 60%);
}
.project-card__body {
    padding: 28px 32px 32px;
}
.project-card__body h3 { font-size: 1.5rem; margin-bottom: 10px; }
.project-card__body p  { color: var(--text-muted); margin-bottom: 20px; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
    padding: 7px 16px;
    border-radius: var(--radius-full);
    background: var(--emerald-dim);
    border: 1px solid var(--border-em);
    color: var(--emerald);
    font-size: 0.8rem;
    font-weight: 500;
}

.slider__arrow {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background var(--transition), transform var(--transition);
}
.slider__arrow:hover {
    background: rgba(255,255,255,0.16);
    transform: translateY(-50%) scale(1.08);
}
.slider__arrow--prev { left: 4px; }
.slider__arrow--next { right: 4px; }

.slider__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}
.slider__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: background var(--transition), width var(--transition);
    border: none;
}
.slider__dot.active {
    background: var(--emerald);
    width: 24px;
    border-radius: 4px;
}

/* ===================================
   OPPORTUNITIES
   =================================== */
.opp-card {
    position: relative;
    border: 1px solid var(--border-yw);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(245,158,11,0.08) 0%, rgba(245,158,11,0.03) 60%, transparent 100%);
}
.opp-card__glow {
    position: absolute;
    top: -100px; left: 50%;
    transform: translateX(-50%);
    width: 500px; height: 400px;
    background: rgba(245,158,11,0.12);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}
.opp-card__content {
    position: relative;
    z-index: 1;
    padding: 60px 48px;
    text-align: center;
}

.opp-card__badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
}

.opp-card__content h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 20px; }
.opp-card__desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.80);
    max-width: 600px;
    margin: 0 auto 36px;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 36px;
    text-align: left;
}
.benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.80);
    font-size: 0.92rem;
}

.opp-card__cta { display: flex; flex-direction: column; align-items: center; gap: 20px; }

.spots-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    background: rgba(245,158,11,0.15);
    border: 1px solid var(--border-yw);
    color: var(--yellow);
    font-weight: 600;
    font-size: 0.9rem;
}
.pulse-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--yellow);
    animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.75); }
}

/* ===================================
   TEAM
   =================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition);
}
.team-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-em);
}

.team-card__img {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
}
.team-card__img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.team-card:hover .team-card__img img { transform: scale(1.05); }
.team-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg) 0%, transparent 50%);
}

.team-card__body { padding: 20px 22px 24px; }
.team-card__body h3 { margin-bottom: 4px; }
.team-card__role {
    display: block;
    font-size: 0.82rem;
    color: var(--emerald);
    font-weight: 500;
    margin-bottom: 10px;
}
.team-card__body p { font-size: 0.85rem; color: var(--text-muted); }

/* ===================================
   CONTACTS
   =================================== */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-em);
    box-shadow: var(--shadow-em);
}
.contact-card .card__icon { margin: 0 auto 16px; }
.contact-card__label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; }
.contact-card__value {
    font-size: 0.95rem;
    font-weight: 600;
    transition: color var(--transition);
}
.contact-card:hover .contact-card__value { color: var(--emerald); }

/* Form */
.form-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 44px;
}
.form-wrap h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 32px;
}

.form-notification {
    display: none;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-align: center;
}
.form-notification.success {
    display: block;
    background: rgba(16,185,129,0.12);
    border: 1px solid var(--border-em);
    color: var(--emerald);
}
.form-notification.error {
    display: block;
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.30);
    color: #f87171;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}
.form-group:last-of-type { margin-bottom: 24px; }

input, textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
input:focus, textarea:focus {
    border-color: rgba(16,185,129,0.50);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.08);
}
input.invalid, textarea.invalid {
    border-color: rgba(239,68,68,0.50);
}
textarea { resize: vertical; min-height: 120px; }

.form-error {
    font-size: 0.78rem;
    color: #f87171;
    margin-top: 5px;
    min-height: 18px;
    display: block;
}

/* Submit btn loading state */
#submitBtn.loading {
    opacity: 0.75;
    pointer-events: none;
}
#submitBtn.loading::after {
    content: '';
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-left: 4px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================================
   FOOTER
   =================================== */
.footer {
    border-top: 1px solid var(--border);
    padding: 44px 0;
    position: relative;
    z-index: 1;
}
.footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.footer .logo__icon { width: 36px; height: 36px; }
.footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
    justify-content: center;
}
.footer__nav a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color var(--transition);
}
.footer__nav a:hover { color: var(--emerald); }
.footer__copy {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* ===================================
   SCROLL ANIMATIONS
   =================================== */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    animation: fadeUp 0.8s ease forwards;
}
@keyframes fadeUp {
    to { opacity: 1; transform: none; }
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* stagger children reveal */
.reveal > *:nth-child(1) { transition-delay: 0.05s; }
.reveal > *:nth-child(2) { transition-delay: 0.15s; }
.reveal > *:nth-child(3) { transition-delay: 0.25s; }

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    .cards        { grid-template-columns: 1fr 1fr; }
    .team-grid    { grid-template-columns: 1fr 1fr; }
    .benefits     { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav__links   { display: none; }
    .burger       { display: flex; }
    .mobile-menu  { display: block; }

    .cards        { grid-template-columns: 1fr; }
    .stats        { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stats__item:last-child { grid-column: span 2; }

    .team-grid    { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
    .contact-cards{ grid-template-columns: 1fr; }
    .form-row     { grid-template-columns: 1fr; }
    .benefits     { grid-template-columns: 1fr; }

    .opp-card__content { padding: 36px 24px; }
    .opp-card__badges  { flex-wrap: wrap; }
    .form-wrap         { padding: 28px 20px; }

    .slide { padding: 0 44px; }
}

@media (max-width: 480px) {
    .hero__btns { flex-direction: column; align-items: center; }
    .btn        { width: 100%; justify-content: center; }
    .stats      { grid-template-columns: 1fr; }
    .stats__item:last-child { grid-column: span 1; }
    .section    { padding: 64px 0; }
}
