
:root {
    --bg: #081629;
    --bg-secondary: #0d1d33;
    --card: #112640;
    --card-hover: #172f4e;

    --blue: #287fe5;
    --blue-light: #55a5ff;
    --blue-soft: #8cc4ff;

    --white: #f4f8ff;
    --muted: #a8bad1;

    --border: rgba(255,255,255,.09);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Rubik', sans-serif;
    background: var(--bg);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

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

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

button {
    font-family: inherit;
}

.container {
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
}

.section {
    padding: 110px 0;
}

.section-label {
    color: var(--blue-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 35px;
}

.section-label span {
    color: #7894b7;
    margin-right: 10px;
}

.section-title {
    font-size: clamp(38px, 5vw, 65px);
    line-height: 1.08;
    letter-spacing: -2px;
    font-weight: 700;
}

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

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 45px;
}

.section-heading p {
    color: var(--muted);
    max-width: 520px;
    margin-top: 15px;
    font-size: 14px;
}

.section-count {
    color: #7894b7;
    font-size: 10px;
    letter-spacing: 2px;
}

/* HEADER */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8,22,41,.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: #b5c5db;
    font-size: 13px;
    font-weight: 500;
    transition: .2s;
}

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

.nav-links .nav-button {
    background: var(--blue);
    color: white;
    padding: 11px 20px;
    border-radius: 6px;
}

.nav-links .nav-button:hover {
    background: var(--blue-light);
    color: var(--bg);
}

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 25px;
    margin: 6px;
    background: white;
}

/* HERO */

.hero {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 80% 35%, rgba(40,127,229,.2), transparent 40%),
        var(--bg);
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: .14;
    background-image:
        linear-gradient(rgba(120,170,230,.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120,170,230,.2) 1px, transparent 1px);
    background-size: 55px 55px;
    mask-image: linear-gradient(to right, black, transparent);
}

.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    right: 5%;
    top: 15%;
    border-radius: 50%;
    background: rgba(40,127,229,.15);
    filter: blur(100px);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
    padding-bottom: 100px;
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.online-dot {
    height: 8px;
    width: 8px;
    background: var(--blue-light);
    border-radius: 50%;
    box-shadow: 0 0 14px var(--blue-light);
}

.hero h1 {
    font-size: clamp(65px, 9vw, 110px);
    line-height: .96;
    letter-spacing: -5px;
    font-weight: 800;
}

.hero h1 span {
    color: var(--blue-light);
}

.hero-description {
    max-width: 480px;
    margin-top: 28px;
    color: var(--muted);
    font-size: 15px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 35px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 15px 22px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: .25s;
}

.button-primary {
    background: var(--blue);
    color: white;
}

.button-primary:hover {
    background: var(--blue-light);
    color: #081629;
    transform: translateY(-3px);
}

.button-outline {
    border: 1px solid rgba(255,255,255,.18);
    color: white;
}

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

.hero-meta {
    display: flex;
    gap: 35px;
    margin-top: 75px;
    color: #7894b7;
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 700;
}

.hero-visual {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 440px;
}

.robot-frame {
    position: absolute;
    inset: 45px 20px;
    overflow: hidden;
    border: 1px solid rgba(100,170,255,.25);
    border-radius: 20px;
    background: var(--card);
    transform: rotate(3deg);
}

.robot-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .8;
}

.robot-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(transparent, rgba(5,15,30,.95));
}

.robot-overlay span {
    display: block;
    color: var(--blue-light);
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 700;
}

.robot-overlay strong {
    font-size: 15px;
}

.visual-circle {
    position: absolute;
    border: 1px solid rgba(85,165,255,.2);
    border-radius: 50%;
}

.circle-one {
    width: 420px;
    height: 420px;
    inset: 10px;
}

.circle-two {
    width: 500px;
    height: 500px;
    inset: -30px;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(17,38,64,.92);
    border: 1px solid var(--border);
    border-radius: 10px;
    backdrop-filter: blur(15px);
    z-index: 3;
}

.floating-card strong,
.floating-card small {
    display: block;
}

.floating-card strong {
    font-size: 12px;
}

.floating-card small {
    color: var(--muted);
    font-size: 10px;
}

.floating-icon {
    color: var(--blue-light);
    font-size: 25px;
}

.floating-card-top {
    top: 25px;
    right: -25px;
}

.floating-card-bottom {
    bottom: 25px;
    left: -45px;
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #7894b7;
    font-size: 9px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.scroll-indicator span {
    width: 25px;
    height: 1px;
    background: var(--blue-light);
}

/* ABOUT */

.about {
    background: #0b1a2d;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}

.about-content p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.text-link {
    display: inline-flex;
    gap: 15px;
    margin-top: 10px;
    color: var(--blue-light);
    font-size: 13px;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 75px;
    border: 1px solid var(--border);
}

.stat-card {
    padding: 25px;
    border-right: 1px solid var(--border);
}

.stat-card:last-child {
    border-right: none;
}

.stat-card strong {
    display: block;
    font-size: 30px;
    color: var(--blue-light);
}

.stat-card span {
    color: var(--muted);
    font-size: 12px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 25px;
}

.value-card {
    position: relative;
    padding: 28px;
    background: var(--card);
    border: 1px solid var(--border);
    transition: .25s;
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: var(--blue-light);
}

.value-card > span {
    color: #6684a9;
    font-size: 11px;
}

.value-icon {
    font-size: 32px;
    color: var(--blue-light);
    margin: 25px 0 12px;
}

.value-card h3 {
    font-size: 17px;
}

.value-card p {
    color: var(--muted);
    font-size: 12px;
    margin-top: 8px;
}

/* PROJECTS */

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    transition: .25s;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(85,165,255,.5);
}

.project-image {
    height: 280px;
    position: relative;
    overflow: hidden;
    background: #142b47;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-number {
    position: absolute;
    top: 18px;
    left: 18px;
    background: rgba(8,22,41,.85);
    color: var(--blue-light);
    padding: 8px 12px;
    font-size: 10px;
    letter-spacing: 1px;
}

.project-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px;
}

.project-category {
    color: var(--blue-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.project-info h3 {
    font-size: 19px;
    margin-top: 6px;
}

.project-info p {
    color: var(--muted);
    font-size: 12px;
    margin-top: 5px;
}

.project-arrow {
    color: var(--blue-light);
    font-size: 25px;
}

/* MEDIA */

.media {
    background: #0b1a2d;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.video-empty {
    grid-column: 1 / -1;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    background:
        radial-gradient(circle at center, rgba(40,127,229,.18), transparent 65%),
        var(--card);
    border: 1px dashed rgba(85,165,255,.3);
    padding: 30px;
}

.video-empty-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border: 1px solid var(--blue-light);
    color: var(--blue-light);
    border-radius: 50%;
    margin-bottom: 20px;
}

.video-empty h3 {
    font-size: 21px;
}

.video-empty p {
    color: var(--muted);
    font-size: 13px;
    margin-top: 8px;
}

.video-empty > span {
    color: var(--blue-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-top: 20px;
}

.video-card {
    background: var(--card);
    border: 1px solid var(--border);
}

.video-card video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #030b16;
}

.video-info {
    padding: 18px;
}

.video-info span {
    color: var(--blue-light);
    font-size: 10px;
    letter-spacing: 1px;
}

.video-info h3 {
    margin-top: 6px;
    font-size: 17px;
}

.funny-section {
    margin-top: 80px;
}

.funny-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.funny-heading h3 {
    font-size: clamp(22px, 3vw, 32px);
    margin-top: 10px;
}

.funny-symbol {
    color: var(--blue-light);
    font-size: 55px;
}

.funny-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.funny-card {
    height: 230px;
    position: relative;
    overflow: hidden;
    background: var(--card);
}

.funny-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s;
}

.funny-card:hover img {
    transform: scale(1.07);
}

.funny-card span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,.85));
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* TEAM */

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.team-card {
    min-width: 0;
}

.team-photo {
    height: 280px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s;
}

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

.team-card h3 {
    font-size: 16px;
    margin-top: 15px;
}

.team-card p {
    color: var(--blue-light);
    font-size: 12px;
    margin-top: 5px;
}

/* INSTAGRAM */

.instagram-section {
    padding: 100px 0;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(40,127,229,.15), transparent 45%),
        #0b1a2d;
}

.instagram-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.instagram-content > div:first-child > p {
    color: var(--muted);
    max-width: 450px;
    margin: 20px 0 30px;
    font-size: 14px;
}

.instagram-box {
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--card);
    border: 1px solid var(--border);
    text-align: center;
    padding: 30px;
}

.instagram-icon {
    font-size: 65px;
    color: var(--blue-light);
}

.instagram-box h3 {
    letter-spacing: 3px;
    margin-top: 12px;
}

.instagram-box p {
    color: var(--muted);
    font-size: 13px;
    margin-top: 5px;
}

.instagram-box > span {
    color: var(--blue-light);
    font-size: 10px;
    letter-spacing: 2px;
    margin-top: 30px;
}

/* CONTACT */

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}

.contact-content > div:first-child > p {
    color: var(--muted);
    font-size: 14px;
    max-width: 440px;
    margin-top: 20px;
}

.contact-links {
    border-top: 1px solid var(--border);
}

.contact-links > a,
.contact-location {
    position: relative;
    display: block;
    padding: 22px 35px 22px 0;
    border-bottom: 1px solid var(--border);
}

.contact-links > a > span,
.contact-location > span {
    display: block;
    color: var(--blue-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.contact-links strong,
.contact-location strong {
    font-size: 15px;
    font-weight: 500;
}

.contact-links b {
    position: absolute;
    right: 0;
    top: 35px;
    color: var(--blue-light);
    font-size: 20px;
}

/* FOOTER */

.footer {
    background: #050d19;
    border-top: 1px solid var(--border);
    padding: 35px 0 25px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
}

.footer-logo img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.footer-main > p {
    color: var(--muted);
    font-size: 13px;
}

.back-top {
    color: var(--blue-light);
    font-size: 12px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 11px;
}

.footer-bottom strong {
    color: var(--white);
}

/* RESPONSIVE */

@media (max-width: 950px) {
    .hero-visual {
        opacity: .3;
        right: -100px;
    }

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

    .about-grid,
    .instagram-content,
    .contact-content {
        gap: 40px;
    }
}

@media (max-width: 760px) {
    .menu-toggle {
        display: block;
        z-index: 102;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 82px;
        left: 0;
        right: 0;
        padding: 25px;
        background: #0b1a2d;
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links .nav-button {
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .about-grid,
    .instagram-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

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

    .stat-card:nth-child(2) {
        border-right: 0;
    }

    .stat-card:nth-child(-n+2) {
        border-bottom: 1px solid var(--border);
    }

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

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .container {
        width: calc(100% - 36px);
    }

    .section {
        padding: 75px 0;
    }

    .hero {
        min-height: 650px;
    }

    .hero h1 {
        font-size: clamp(58px, 15vw, 80px);
        letter-spacing: -3px;
    }

    .hero-meta {
        gap: 15px;
        flex-wrap: wrap;
        font-size: 9px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .projects-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 230px;
    }

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

    .funny-card {
        height: 250px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 13px;
    }

    .team-photo {
        height: 200px;
    }

    .team-card h3 {
        font-size: 14px;
    }

    .footer-main,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Accesibilitate */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}


.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s ease, transform .65s ease;
}

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