/* ============================================================
   BizFunctional — Gold + Dark Navy Design System
   Bootstrap 5.3.3 | Sora (headings) + Inter (body)
   ============================================================ */

:root {
    --gold:      #F5B800;
    --gold-dark: #D49A00;
    --dark:      #0C1220;
    --dark-2:    #131D2E;
    --dark-3:    #1A2740;
    --text:      #334155;
    --muted:     #64748B;
    --border:    #E2E8F0;
    --light:     #F8FAFC;
    --white:     #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.08);
    --radius:    0.75rem;
    --t:         0.25s ease;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Sora', sans-serif;
    line-height: 1.15;
}

/* ---------- Navbar ---------- */
#mainNav {
    padding: 1.25rem 0;
    transition: background-color 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
    background-color: transparent;
}

#mainNav.scrolled {
    background-color: var(--white);
    box-shadow: 0 1px 20px rgba(0,0,0,0.10);
    padding: 0.6rem 0;
}

/* Brand: show text when transparent, logo when scrolled */
#mainNav .brand-text { display: inline; }
#mainNav .brand-img  { display: none; height: 36px; }

#mainNav.scrolled .brand-text { display: none; }
#mainNav.scrolled .brand-img  { display: inline; }

#mainNav .navbar-brand {
    font-family: 'Sora', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
    text-decoration: none;
}

#mainNav .navbar-brand em { color: var(--gold); font-style: normal; }

#mainNav .nav-link {
    color: rgba(255,255,255,0.80);
    font-weight: 500;
    font-size: 0.82rem;
    padding: 0.5rem 1rem !important;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    transition: color var(--t);
}

#mainNav .nav-link:hover { color: var(--gold); }

#mainNav.scrolled .nav-link       { color: var(--text); }
#mainNav.scrolled .nav-link:hover { color: var(--gold-dark); }

#mainNav .navbar-toggler {
    border-color: rgba(255,255,255,0.35);
    padding: 0.4rem 0.6rem;
}

#mainNav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.82%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#mainNav.scrolled .navbar-toggler { border-color: rgba(0,0,0,0.2); }
#mainNav.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280,0,0,0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

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

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 80% at 10% 50%, rgba(245,184,0,0.07) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 90% 15%, rgba(245,184,0,0.04) 0%, transparent 55%);
    pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 420px;
    align-items: center;
    gap: 4rem;
    padding: 8rem 0 5rem;
}

.hero-eyebrow {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.25rem;
}

.hero-heading {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-heading span { color: var(--gold); }

.hero-sub {
    color: rgba(255,255,255,0.62);
    font-size: 1.0625rem;
    line-height: 1.8;
    max-width: 540px;
    margin-bottom: 2.5rem;
}

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

/* Floating card */
.hero-card {
    background: var(--white);
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-card-logo {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
}

.hero-card-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
    justify-content: center;
}

.hero-stat { text-align: center; }

.hero-stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
}

.hero-stat span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-stat-div {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ---------- Buttons ---------- */
.btn-gold {
    display: inline-block;
    background: var(--gold);
    color: var(--dark);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.9rem 2.25rem;
    border-radius: 3rem;
    border: none;
    text-decoration: none;
    transition: background-color var(--t), transform var(--t), box-shadow var(--t);
    box-shadow: 0 4px 18px rgba(245,184,0,0.35);
    cursor: pointer;
}

.btn-gold:hover {
    background: var(--gold-dark);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(245,184,0,0.45);
}

.btn-ghost {
    display: inline-block;
    background: transparent;
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.85rem 2.25rem;
    border-radius: 3rem;
    border: 1.5px solid rgba(255,255,255,0.38);
    text-decoration: none;
    transition: border-color var(--t), color var(--t);
}

.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-gold-sm {
    display: inline-block;
    background: var(--gold);
    color: var(--dark);
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.6rem 1.5rem;
    border-radius: 2rem;
    border: none;
    text-decoration: none;
    transition: background-color var(--t), transform var(--t);
    cursor: pointer;
}

.btn-gold-sm:hover {
    background: var(--gold-dark);
    color: var(--dark);
    transform: translateY(-1px);
}

/* ---------- Sections ---------- */
.py-section      { padding: 6rem 0; }
.bg-dark-section { background: var(--dark-2); }
.bg-light-section{ background: var(--light); }

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

.section-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 0.75rem;
}

.gold-label  { color: var(--gold); }
.muted-light { color: rgba(255,255,255,0.5) !important; }

.section-title {
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.section-title.text-white { color: var(--white); }

.section-sub {
    color: var(--muted);
    font-size: 1.0625rem;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ---------- Services ---------- */
.services-list {
    display: flex;
    flex-direction: column;
}

.service-row {
    display: grid;
    grid-template-columns: 80px 72px 1fr;
    align-items: center;
    gap: 2.25rem;
    padding: 2.75rem 0;
    border-bottom: 1px solid var(--border);
}

.service-row:first-child { border-top: 1px solid var(--border); }

.service-num {
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(0,0,0,0.06);
    line-height: 1;
    letter-spacing: -0.03em;
    user-select: none;
}

.service-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff8dc 0%, #ffe57f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-icon-wrap i {
    font-size: 1.5rem;
    color: var(--dark);
}

.service-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.6rem;
}

.service-body p {
    color: var(--muted);
    font-size: 0.9375rem;
    margin: 0;
    line-height: 1.75;
}

/* ---------- Portfolio ---------- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

.pf-item {
    cursor: pointer;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--dark-3);
    transition: transform var(--t), box-shadow var(--t);
}

.pf-item:nth-child(1) { grid-column: span 4; }
.pf-item:nth-child(2) { grid-column: span 2; }
.pf-item:nth-child(3) { grid-column: span 2; }
.pf-item:nth-child(4) { grid-column: span 4; }
.pf-item:nth-child(5) { grid-column: span 3; }
.pf-item:nth-child(6) { grid-column: span 3; }

.pf-item:hover,
.pf-item:focus {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
    outline: none;
}

.pf-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.pf-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.pf-item:hover .pf-img-wrap img { transform: scale(1.05); }

.pf-overlay {
    position: absolute;
    inset: 0;
    background: rgba(12,18,32,0.70);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--t);
}

.pf-overlay span {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    border: 2px solid var(--gold);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
}

.pf-item:hover .pf-overlay,
.pf-item:focus .pf-overlay { opacity: 1; }

.pf-caption { padding: 1rem 1.25rem; }

.pf-caption h5 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 0.2rem;
}

.pf-caption span {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.42);
}

/* ---------- Portfolio Modals ---------- */
.portfolio-modal .modal-header { border-bottom: none; padding-bottom: 0; }

.portfolio-modal .modal-content {
    border-radius: var(--radius);
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.portfolio-modal .modal-body { padding: 1.5rem 2.5rem 2.5rem; }

.portfolio-modal h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.portfolio-modal .item-intro {
    color: var(--muted);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

.portfolio-modal p {
    color: var(--text);
    font-size: 0.9375rem;
}

.project-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--muted);
    margin-top: 1rem;
}

.btn-close-project {
    background: var(--gold);
    color: var(--dark);
    border: none;
    padding: 0.6rem 1.75rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.03em;
    transition: background-color var(--t), transform var(--t);
}

.btn-close-project:hover {
    background: var(--gold-dark);
    color: var(--dark);
    transform: translateY(-1px);
}

/* ---------- Timeline ---------- */
.timeline {
    position: relative;
    padding-left: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    bottom: 0.75rem;
    width: 2px;
    background: linear-gradient(180deg, var(--gold) 0%, rgba(245,184,0,0.12) 100%);
}

.tl-entry {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

/* Dot on the timeline line */
.tl-entry::before {
    content: '';
    position: absolute;
    left: calc(-2.5rem - 4px);
    top: 0.8rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px rgba(245,184,0,0.35);
    z-index: 1;
}

.tl-year {
    text-align: right;
    padding-top: 0.2rem;
}

.tl-year span {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold-dark);
    display: block;
    line-height: 1.1;
}

.tl-year small {
    font-size: 0.875rem;
    color: var(--muted);
    font-weight: 500;
}

.tl-content { padding-bottom: 0.75rem; }

.tl-img {
    width: 100%;
    border-radius: calc(var(--radius) - 2px);
    height: 200px;
    object-fit: cover;
    margin-bottom: 1.25rem;
    display: block;
}

.tl-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.6rem;
}

.tl-content p {
    color: var(--muted);
    font-size: 0.9375rem;
    margin: 0 0 1rem;
    line-height: 1.75;
}

/* ---------- Team ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: transform var(--t), box-shadow var(--t);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-photo-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

/* Gold accent bar at bottom of photo */
.team-photo-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold);
}

.team-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.team-card:hover .team-photo-wrap img { transform: scale(1.05); }

.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-info h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.team-info p {
    color: var(--muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.social-links a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--light);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: background-color var(--t), color var(--t);
}

.social-links a:hover {
    background: var(--gold);
    color: var(--dark);
}

.team-bio-row {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
}

/* ---------- Clients Bar ---------- */
.clients-bar {
    padding: 3rem 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.clients-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.clients-inner img {
    max-height: 48px;
    width: auto;
    max-width: 150px;
    filter: grayscale(100%) opacity(0.42);
    transition: filter 0.35s ease;
}

.clients-inner img:hover { filter: grayscale(0%) opacity(1); }

/* ---------- Contact ---------- */
.contact-input {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    color: var(--white);
    border-radius: 0.5rem;
    padding: 0.875rem 1.1rem;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color var(--t), background-color var(--t), box-shadow var(--t);
}

.contact-input:focus {
    background: rgba(255,255,255,0.11);
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(245,184,0,0.18);
    color: var(--white);
    outline: none;
}

.contact-input::placeholder { color: rgba(255,255,255,0.32); }

textarea.contact-input {
    resize: vertical;
    min-height: 140px;
}

.was-validated .contact-input:invalid {
    border-color: #f87171;
    box-shadow: none;
}

.was-validated .contact-input:valid {
    border-color: rgba(255,255,255,0.14);
    box-shadow: none;
}

.invalid-feedback {
    color: #fca5a5;
    font-size: 0.8125rem;
}

#formStatus .alert-success {
    background: rgba(34,197,94,0.15);
    border: 1px solid rgba(34,197,94,0.3);
    color: #86efac;
    border-radius: 0.5rem;
}

#formStatus .alert-danger {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5;
    border-radius: 0.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--dark);
    padding: 1.75rem 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-copy {
    color: rgba(255,255,255,0.4);
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background-color var(--t), color var(--t);
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--dark);
}

.footer-link {
    color: rgba(255,255,255,0.4);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color var(--t);
}

.footer-link:hover { color: rgba(255,255,255,0.85); }

.footer-sep { color: rgba(255,255,255,0.2); }

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

.service-row:nth-child(2).reveal { transition-delay: 0.1s; }
.service-row:nth-child(3).reveal { transition-delay: 0.2s; }
.tl-entry:nth-child(2).reveal    { transition-delay: 0.1s; }
.tl-entry:nth-child(3).reveal    { transition-delay: 0.2s; }
.tl-entry:nth-child(4).reveal    { transition-delay: 0.3s; }
.tl-entry:nth-child(5).reveal    { transition-delay: 0.4s; }
.team-card:nth-child(2).reveal   { transition-delay: 0.1s; }
.team-card:nth-child(3).reveal   { transition-delay: 0.2s; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .hero-inner {
        grid-template-columns: 1fr 380px;
        gap: 3rem;
    }
}

@media (max-width: 991.98px) {
    .hero-inner {
        grid-template-columns: 1fr;
        padding: 7rem 0 4rem;
        gap: 2.5rem;
    }

    .hero-card {
        max-width: 420px;
        margin: 0 auto;
    }

    .service-row {
        grid-template-columns: 60px 60px 1fr;
        gap: 1.5rem;
    }

    .service-num { font-size: 2.5rem; }

    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .pf-item:nth-child(n) { grid-column: span 1; }

    .tl-entry {
        grid-template-columns: 90px 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .py-section { padding: 4.5rem 0; }

    .hero-heading { font-size: clamp(2.2rem, 8vw, 3.5rem); }

    .service-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .service-num { font-size: 2rem; }
    .service-icon-wrap { margin: 0 auto; }

    .portfolio-grid { grid-template-columns: 1fr; }
    .pf-item:nth-child(n) { grid-column: span 1; }

    .timeline { padding-left: 2rem; }

    .tl-entry {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .tl-entry::before { left: calc(-2rem - 4px); }

    .tl-year { text-align: left; }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .clients-inner { gap: 2rem; }
}

@media (max-width: 575.98px) {
    .hero-inner { padding: 6rem 0 3.5rem; }
    .hero-card  { padding: 1.75rem; }
}
