/* ============================================
   INVENTUS — Portfolio Website
   Design System & Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Brand Colors — extracted from logo */
    --navy: #1B1D4D;
    --navy-deep: #0D0E2B;
    --navy-light: #2A2D6A;
    --red: #C5283D;
    --red-light: #E03E54;
    --red-dark: #9E2033;

    /* Neutrals */
    --white: #FFFFFF;
    --off-white: #F0F0F5;
    --gray-100: #E8E8EF;
    --gray-200: #C8C8D4;
    --gray-300: #9898A8;
    --gray-400: #68687A;
    --gray-500: #48485A;

    /* Backgrounds */
    --bg-dark: #080919;
    --bg-section: #0B0C22;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --gap: clamp(1rem, 3vw, 2rem);
    --section-padding: clamp(4rem, 10vh, 8rem);
    --container-width: 1280px;
    --container-padding: clamp(1.5rem, 4vw, 3rem);

    /* Animation */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-premium: cubic-bezier(0.65, 0.05, 0, 1);
    --duration: 0.8s;
    --duration-fast: 0.4s;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Container --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
}

em {
    font-style: normal;
    color: var(--red);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 0;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all var(--duration-fast) var(--ease-premium);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.btn--primary:hover {
    background: var(--red-light);
    border-color: var(--red-light);
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn--large {
    padding: 1.25rem 3.5rem;
    font-size: 1rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all var(--duration-fast) var(--ease-out);
}

.nav--scrolled {
    background: rgba(8, 9, 25, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav__inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo img {
    height: 32px;
    width: auto;
    transition: opacity var(--duration-fast) ease;
}

.nav__logo:hover img {
    opacity: 0.8;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__link {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--gray-200);
    transition: color var(--duration-fast) ease;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--red);
    transition: width var(--duration-fast) var(--ease-premium);
}

.nav__link:hover {
    color: var(--white);
}

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

.nav__link--cta {
    color: var(--red);
    font-weight: 600;
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    color: var(--red-light);
}

/* Nav Toggle (Mobile) */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--duration-fast) var(--ease-out);
}

.nav__toggle.active span:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

.nav__toggle.active span:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.hero__grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(27, 29, 77, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(27, 29, 77, 0.3) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--section-padding) var(--container-padding);
}

.hero__logo-mark {
    margin-bottom: 3rem;
}

.hero__logo-img {
    height: 60px;
    width: auto;
    margin: 0 auto;
}

.hero__title {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero__title-line {
    display: block;
}

.hero__title-line--accent {
    color: var(--red);
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.375rem);
    color: var(--gray-200);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    line-height: 1.5;
}

.hero__cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.hero__scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.hero__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--red), transparent);
    animation: scrollPulse 2s var(--ease-out) infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section--dark {
    background: var(--bg-section);
}

.section__header {
    margin-bottom: clamp(3rem, 6vw, 5rem);
    max-width: 800px;
}

.section__tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--red);
}

.section__title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.section__subtitle {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--gray-300);
    line-height: 1.7;
    max-width: 700px;
}

.section__subtitle--large {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--gray-200);
    font-style: italic;
    font-weight: 300;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 5rem);
    align-items: start;
}

.about__lead {
    font-size: clamp(1.125rem, 1.8vw, 1.375rem);
    color: var(--gray-100);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.about__text p {
    color: var(--gray-300);
    line-height: 1.8;
}

.about__stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-left: 3rem;
    border-left: 1px solid rgba(197, 40, 61, 0.3);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat__number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 800;
    color: var(--red);
    line-height: 1;
}

.stat__label {
    font-size: 0.875rem;
    color: var(--gray-300);
    letter-spacing: 0.04em;
    font-weight: 500;
}

/* ============================================
   SERVICE CARDS (Industry Relations)
   ============================================ */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: clamp(2rem, 3vw, 2.5rem);
    transition: all var(--duration) var(--ease-premium);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration) var(--ease-premium);
}

.service-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--red);
}

.service-card__icon svg {
    width: 100%;
    height: 100%;
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card__text {
    font-size: 0.9375rem;
    color: var(--gray-300);
    line-height: 1.7;
}

/* ============================================
   MEDIA MANAGEMENT SECTION
   ============================================ */
.media__layout {
    display: grid;
    gap: clamp(3rem, 5vw, 4rem);
}

.media__feature {
    position: relative;
    padding: clamp(2.5rem, 4vw, 4rem);
    background: linear-gradient(135deg, rgba(197, 40, 61, 0.08), rgba(27, 29, 77, 0.15));
    border: 1px solid rgba(197, 40, 61, 0.15);
}

.media__feature-tag {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 1.5rem;
}

.media__feature h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 500;
    line-height: 1.5;
    color: var(--gray-100);
}

.media__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.media-card {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color var(--duration-fast) ease;
}

.media-card:hover {
    border-color: var(--red);
}

.media-card__number {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 1.25rem;
    letter-spacing: 0.1em;
}

.media-card__title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.media-card__text {
    font-size: 0.9375rem;
    color: var(--gray-300);
    line-height: 1.7;
}

/* ============================================
   COMPLIANCE SECTION
   ============================================ */
.compliance__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
}

.compliance-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: clamp(2rem, 3vw, 2.5rem);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: all var(--duration) var(--ease-premium);
}

.compliance-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(197, 40, 61, 0.2);
    transform: translateY(-2px);
}

.compliance-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--red);
    color: var(--red);
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
}

.compliance-card__title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.compliance-card__text {
    font-size: 0.9375rem;
    color: var(--gray-300);
    line-height: 1.7;
}

/* ============================================
   VECTRA MEDIA SECTION
   ============================================ */
.section--vectra {
    background: linear-gradient(180deg, var(--bg-dark), var(--bg-section));
}

.vectra__intro {
    max-width: 700px;
    margin-bottom: clamp(3rem, 5vw, 4rem);
}

.vectra__intro p {
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    color: var(--gray-200);
    line-height: 1.7;
    font-weight: 300;
}

.vectra__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
}

.vectra-card {
    padding: clamp(2rem, 3vw, 2.5rem);
    position: relative;
    transition: all var(--duration) var(--ease-premium);
}

.vectra-card__line {
    width: 40px;
    height: 2px;
    background: var(--red);
    margin-bottom: 1.5rem;
    transition: width var(--duration) var(--ease-premium);
}

.vectra-card:hover .vectra-card__line {
    width: 80px;
}

.vectra-card:hover {
    background: var(--bg-card);
}

.vectra-card__title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.vectra-card__text {
    font-size: 0.9375rem;
    color: var(--gray-300);
    line-height: 1.7;
}

/* ============================================
   PR & DIGITAL SECTION
   ============================================ */
.pr__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
}

.pr-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: clamp(2rem, 3vw, 2.5rem);
    display: flex;
    flex-direction: column;
    transition: all var(--duration) var(--ease-premium);
    cursor: default;
}

.pr-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.pr-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.pr-card__text {
    font-size: 0.9375rem;
    color: var(--gray-300);
    line-height: 1.7;
    flex: 1;
}

.pr-card__arrow {
    width: 32px;
    height: 32px;
    color: var(--red);
    margin-top: 1.5rem;
    transition: transform var(--duration-fast) var(--ease-premium);
}

.pr-card__arrow svg {
    width: 100%;
    height: 100%;
}

.pr-card:hover .pr-card__arrow {
    transform: translate(4px, -4px);
}

/* ============================================
   CLOSING / CONTACT SECTION
   ============================================ */
.section--closing {
    background: linear-gradient(180deg, var(--bg-dark), var(--navy-deep));
    padding: clamp(6rem, 15vh, 12rem) 0;
    text-align: center;
}

.closing__content {
    max-width: 800px;
    margin: 0 auto;
}

.closing__title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.closing__text {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--gray-200);
    line-height: 1.6;
    margin-bottom: 3rem;
    font-weight: 300;
}

.closing__cta {
    display: flex;
    justify-content: center;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--navy-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3rem 0 2rem;
}

.footer__inner {
    display: grid;
    gap: 3rem;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__logo {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.footer__tagline {
    font-size: 0.875rem;
    color: var(--gray-400);
}

.footer__links {
    display: flex;
    gap: 4rem;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__col-title {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 0.5rem;
}

.footer__col a {
    font-size: 0.875rem;
    color: var(--gray-300);
    transition: color var(--duration-fast) ease;
}

.footer__col a:hover {
    color: var(--white);
}

.footer__bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__bottom p {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.footer__partners {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.footer__partners a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s;
}

.footer__partners a:hover {
    color: var(--accent);
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--duration) var(--ease-premium),
                transform var(--duration) var(--ease-premium);
}

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

/* Stagger children */
.services__grid .reveal:nth-child(2),
.media__cards .reveal:nth-child(2),
.compliance__grid .reveal:nth-child(2),
.vectra__grid .reveal:nth-child(2),
.pr__grid .reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.services__grid .reveal:nth-child(3),
.media__cards .reveal:nth-child(3),
.compliance__grid .reveal:nth-child(3),
.vectra__grid .reveal:nth-child(3),
.pr__grid .reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.compliance__grid .reveal:nth-child(4),
.vectra__grid .reveal:nth-child(4),
.pr__grid .reveal:nth-child(4) {
    transition-delay: 0.3s;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .services__grid,
    .media__cards {
        grid-template-columns: 1fr 1fr;
    }

    .services__grid .service-card:last-child {
        grid-column: 1 / -1;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about__stats {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(197, 40, 61, 0.3);
        padding-top: 2rem;
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(8, 9, 25, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--duration-fast) var(--ease-out);
    }

    .nav__menu.active {
        opacity: 1;
        pointer-events: all;
    }

    .nav__menu .nav__link {
        font-size: 1.25rem;
    }

    .hero__logo-img {
        height: 44px;
    }

    .services__grid,
    .media__cards,
    .compliance__grid,
    .vectra__grid,
    .pr__grid {
        grid-template-columns: 1fr;
    }

    .services__grid .service-card:last-child {
        grid-column: auto;
    }

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

    .footer__links {
        flex-direction: column;
        gap: 2rem;
    }

    .hero__cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    :root {
        --container-padding: 1.25rem;
    }

    .hero__title {
        font-size: 2rem;
    }
}

/* ============================================
   LANGUAGE TOGGLE
   ============================================ */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    transition: border-color var(--duration-fast) ease;
    margin-left: 0.5rem;
}

.lang-toggle:hover {
    border-color: rgba(255, 255, 255, 0.35);
}

.lang-toggle__option {
    color: var(--gray-400);
    transition: color var(--duration-fast) ease;
    cursor: pointer;
}

.lang-toggle__option:hover {
    color: var(--gray-200);
}

.lang-toggle__option--active {
    color: var(--red);
}

.lang-toggle__divider {
    color: rgba(255, 255, 255, 0.15);
    font-weight: 300;
    pointer-events: none;
}

@media (max-width: 768px) {
    .lang-toggle {
        margin-left: 0;
        margin-top: 1rem;
    }
}
