/* ========================================
   Secocha Ventures - Global Styles
   Dark minimalist design with blue & gray brand colors
   ======================================== */

:root {
    --blue: #3B4D8C;
    --blue-light: #5A6FB5;
    --blue-dim: rgba(59, 77, 140, 0.55);
    --blue-subtle: rgba(59, 77, 140, 0.12);
    --gray-light: #9ca3af;
    --gray-mid: #6b7280;
    --gray-dark: #141a2e;
    --bg: #0c1020;
}

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

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ========================================
   Background Floating Text
   ======================================== */

.bg-number {
    position: fixed;
    font-size: 22vw;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    font-family: 'Inter', sans-serif;
    opacity: 0.04;
    color: var(--blue);
}

.bg-number.left {
    left: -10%;
    top: 10%;
    animation: floatLeft 20s ease-in-out infinite;
}

.bg-number.right {
    right: -10%;
    bottom: 10%;
    animation: floatRight 20s ease-in-out infinite;
}

@keyframes floatLeft {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(30px); }
}

@keyframes floatRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-30px); }
}

/* ========================================
   Navigation
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 48px;
    background: linear-gradient(to bottom, rgba(12,16,32,0.95), transparent);
    animation: fadeIn 1s ease-out;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s;
}

.nav-logo:hover {
    opacity: 0.7;
}

.nav-logo-icon {
    width: 26px;
    height: 22px;
}

.nav-logo-text {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.nav-logo-text .gray {
    color: var(--gray-light);
}

.nav-logo-text .blue {
    color: var(--blue-light);
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.6);
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--blue-light);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: rgba(255,255,255,0.8);
    transition: all 0.3s;
}

.nav-toggle.active span:first-child {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.active span:last-child {
    transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12,16,32,0.98);
    z-index: 99;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}

.mobile-link:hover {
    color: #fff;
}

/* ========================================
   Container
   ======================================== */

.container {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
    animation: fadeInUp 1.2s ease-out;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 32px;
}

.hero-title .line {
    display: block;
}

.hero-title .italic {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--blue);
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--gray-light);
    line-height: 1.6;
    max-width: 480px;
    margin-bottom: 48px;
    letter-spacing: 0.01em;
}

.hero-cta {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
    border: 1px solid var(--blue-dim);
    padding: 14px 32px;
    border-radius: 0;
    transition: all 0.3s;
    width: fit-content;
}

.hero-cta:hover {
    color: #fff;
    border-color: var(--blue);
    background: var(--blue-subtle);
}

/* ========================================
   Stats Section
   ======================================== */

.stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 80px 0 120px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.stats.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--blue);
}

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

.stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(74, 144, 217, 0.2);
}

/* ========================================
   Mission Section
   ======================================== */

.mission {
    padding: 80px 0 120px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.mission.visible {
    opacity: 1;
    transform: translateY(0);
}

.mission-label {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue-dim);
    margin-bottom: 32px;
}

.mission-text {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: rgba(255,255,255,0.9);
}

.mission-text em {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--blue);
}

/* ========================================
   Focus / Inline Pills
   ======================================== */

.focus-inline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    padding: 0 0 120px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
    flex-wrap: wrap;
}

.focus-inline.visible {
    opacity: 1;
    transform: translateY(0);
}

.focus-item {
    text-align: center;
    flex: 1;
    min-width: 140px;
}

.focus-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 8px;
}

.focus-value {
    display: block;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--gray-light);
}

.focus-divider {
    width: 1px;
    height: 40px;
    background: rgba(74, 144, 217, 0.2);
    flex-shrink: 0;
    margin-top: 4px;
}

/* ========================================
   Team Section (inline)
   ======================================== */

.team-section {
    padding: 80px 0 120px;
}

/* ========================================
   Portfolio Section (inline, full)
   ======================================== */

.portfolio-full {
    padding: 80px 0 120px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.portfolio-full.visible {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-stat {
    text-align: center;
    margin-bottom: 56px;
}

.portfolio-count {
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--blue-light);
}

.portfolio-plus {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 300;
    color: var(--blue-dim);
}

.portfolio-stat-label {
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: var(--gray-mid);
    margin-top: 12px;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue-dim);
    margin-bottom: 48px;
    text-align: center;
}

.ticker-wall {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.portfolio-marquee {
    overflow: hidden;
    margin-bottom: 12px;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: scroll 35s linear infinite;
    width: fit-content;
}

.marquee-reverse {
    animation: scrollReverse 30s linear infinite;
}

.portfolio-name {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.25);
    margin: 0 20px;
    flex-shrink: 0;
    transition: color 0.3s;
}

.portfolio-name:hover {
    color: var(--blue-light);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollReverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* ========================================
   Testimonials - Rotating Carousel
   ======================================== */

.testimonials {
    padding: 80px 0 120px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.testimonials.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-carousel {
    position: relative;
    min-height: 180px;
    max-width: 640px;
    margin: 0 auto 32px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.6s ease;
    pointer-events: none;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    position: relative;
}

.testimonial-quote {
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255,255,255,0.75);
    margin-bottom: 28px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

.testimonial-author strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    margin-bottom: 4px;
}

.testimonial-author span {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--gray-mid);
    letter-spacing: 0.03em;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}

.dot.active {
    background: var(--blue);
    border-color: var(--blue);
}

.dot:hover {
    border-color: var(--blue-light);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    padding: 80px 0 60px;
    text-align: center;
    animation: fadeIn 1.6s ease-out;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}

.link {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.5);
    transition: color 0.3s;
    position: relative;
}

.link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue);
    transition: width 0.3s ease;
}

.link:hover {
    color: var(--blue-light);
}

.link:hover::after {
    width: 100%;
}

.footer-logo-svg {
    width: 32px;
    height: 27px;
    margin-bottom: 24px;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.footer-logo-svg:hover {
    opacity: 0.7;
}

.copyright {
    font-size: 0.7rem;
    color: var(--gray-mid);
    letter-spacing: 0.05em;
}

/* ========================================
   Page Headers (Team / Portfolio pages)
   ======================================== */

.page-header {
    padding-top: 160px;
    padding-bottom: 60px;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: var(--gray-light);
    letter-spacing: 0.02em;
}

/* ========================================
   Team Grid
   ======================================== */

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    padding-bottom: 120px;
}

.team-card {
    padding: 48px 40px;
    border: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
}

.team-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.team-card:hover {
    background: var(--blue-subtle);
    border-color: rgba(74, 144, 217, 0.25);
}

.team-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 24px;
    filter: grayscale(100%);
    transition: filter 0.4s;
    opacity: 0.85;
}

.team-card:hover .team-photo {
    filter: grayscale(0%);
    opacity: 1;
}

.team-name {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
    color: rgba(255,255,255,0.9);
}

.team-name a {
    color: inherit;
    transition: opacity 0.3s;
}

.team-name a:hover {
    color: var(--blue-light);
}

.team-role {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-mid);
}

/* ========================================
   Portfolio Grid
   ======================================== */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    padding-bottom: 120px;
}

.portfolio-card {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
}

.portfolio-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-card:hover {
    background: var(--blue-subtle);
    border-color: rgba(74, 144, 217, 0.25);
    transform: translateY(-2px);
}

.portfolio-card img {
    max-width: 80%;
    max-height: 60%;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.5);
    opacity: 0.6;
    transition: all 0.4s;
}

.portfolio-card:hover img {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

.portfolio-card-name {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.5);
    text-align: center;
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    .nav {
        padding: 20px 24px;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .container {
        padding: 0 24px;
    }

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

    .stats {
        flex-direction: column;
        gap: 32px;
    }

    .stat-divider {
        width: 48px;
        height: 1px;
    }

    .focus-inline {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .focus-divider {
        width: 48px;
        height: 1px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bg-number {
        display: none;
    }

    .page-header {
        padding-top: 120px;
    }
}

@media (max-width: 480px) {
    .hero-subtitle {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .portfolio-link {
        font-size: 0.85rem;
        margin: 0 16px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
