:root {
    --bg-black: #000000;
    --text-white: #ffffff;
    --text-gray: #d6d6d6;
    --accent-blue: #89ABFF;
    --accent-yellow: #FFC489;
    --accent-pink: #FF899C;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-black);
    color: var(--text-white);
    line-height: 1.35;
    overflow-x: hidden;
    font-size: 42px;
    font-weight: 100;
}

.container {
    max-width: 1340px;
    margin: 0 auto;
}

/* Navbar */
.navbar {
    padding: 14px 0;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img{
    width: 52px;
}

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

.nav-links li{
    display: flex;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1px;
    opacity: 0.75;
}

.nav-links a:hover {
    opacity: 1;
}

.btn-contact {
    border: 1px solid white;
    padding: 5px 14px;
    border-radius: 20px;
}

.btn-contact:hover {
    background: white;
    color: var(--bg-black);
    transition: 0.3s;
}

/* mobile elements */
.menu-checkbox, .hamburger {
    display: none;
}

/* Hero */
.hero {
    height: calc(100vh - 78px);
    background: #000;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
}

#mosaic-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.hero-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 82px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 72px;
    font-weight: 100;
}

.hero-content {
    opacity: 0;
    animation: fadeInContent 1.35s ease-out forwards;
    animation-delay: 1.5s;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(25px); /* Начинает чуть ниже */
    }
    to {
        opacity: 1;
        transform: translateY(0);    /* Всплывает в итоговую позицию */
    }
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 40px;
}

.divider {
    border: 0;
    border-top: 1px solid #555;
    width: 105%;
    margin-left: -2.5%;
    margin-right: -2.5%;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
    align-items: center;
}

.highlight-text {
    margin-bottom: 32px;
}

.blue-text { color: var(--accent-blue); font-weight: bold; }

.about-features ul {
    list-style: none;
}

.about-features li {
    display: flex;
    font-weight: bold;
    padding: 15px 0;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
}

.arrow{
    display: inline-block;
    width: 42px;
    height: 20px;
    background: url('img/arrow.png') center/contain no-repeat;
    margin-right: 16px;
}

/* Map Section */
.world-map-box {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),url('img/map.jpg') center/contain no-repeat;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.world-tag {
    background: white;
    color: black;
    padding: 5px 15px;
    display: inline-block;
    font-weight: bold;
    margin-top: 10px;
}

.video{
    margin-top: 32px;
    text-align: center;
}

/* Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 54px;
    margin-top: 40px;
}
                    
.gallery-item {
    position: relative;
    overflow: visible;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 24px;
    width: 100%;
    height: 100%;
    background: url('img/bg-gallery.png') center/contain no-repeat;
    pointer-events: none;
    z-index: 0;
}

.gallery-item img {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 26px;
    filter: grayscale(30%);
    transition: 0.3s;
}

.underline {
    text-decoration: underline;
    font-weight: 700;
}   
.yellow { 
    color:   var(--accent-yellow);
} 
.pink   { 
    color:   var(--accent-pink);
} 
.blue { 
    color:   var(--accent-blue);
}


/* Contact & Roles */
.team-name {
    line-height: 1;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 10px;
}

.job-title {
    font-size: 36px;
    font-weight: 700;
    margin: 10px 0 0 0;
}

.location {
    font-size: 28px;
    color: var(--text-gray);
}
.roles-list{
    display: flex;
    gap: 7vw;
}
.role-card {
    display: flex;
    text-decoration: none;
    color: inherit;
    margin-bottom: 30px;
    position: relative;
}

.contact-item {
    display: flex;
    text-decoration: none;
    color: inherit;
    margin-bottom: 30px;
}

.role-details {
    position: relative;
    padding-left: 56px; /* reserve space for arrow so all lines align */
}

.role-details .arrow {
    /* kept for older fallbacks, but arrow will be positioned relative to .job-title */
    position: absolute;
    left: 0;
    top: 8px;
}

/* Position arrow relative to the job-title so it sits directly opposite the job text */
.job-title {
    position: relative;
}
.job-title .arrow {
    position: absolute;
    left: -56px; /* matches .role-details padding-left */
    top: 50%;
    transform: translateY(-50%);
}

.contact-item{
    text-decoration: underline;
    font-size: 24px;
    display: flex;
    align-items: center;
}

.contact-item img{
    width: 28px;
    margin-right: 18px;
}

.icon-email img{
    width: 32px;
    margin-bottom: -3px;
}

.icon-linkedin img{
    margin-bottom:4px;
}

/* Footer */
.footer {
    padding: 60px 0;
    border-top: 1px solid #222;
    font-size: 14px;
    background: linear-gradient(to top, #000000, #2a2a2a);
}

.footer-grid {
    display: flex;
    gap: 2vw;
    align-items: center;
}

.footer-logo{
    margin-right: 10vw;
}

.footer-logo img{
    width: 74px;
}

.footer-nav{
    display: flex;
    gap: 50px;
    justify-content: center;
}

.footer-nav a, .footer-legal a {
    display: block;
    color: var(--text-gray);
    text-decoration: none;
    margin-bottom: 10px;
}

.vertical-divider{
    border-left: 1px solid #555;
    width: 1px;
    margin: 0 20px;
}

.footer-copy{
    display: flex;
    align-items: center;
}

.footer-social{
    display: flex;
    align-items: center;
}

/* Section Animations */
@keyframes slideUp {
    from {
        opacity: 0.1;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    opacity: 0.1;
    transform: translateY(60px);
}

.section.visible {
    animation: slideUp 0.8s ease-out forwards;
}

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

/* MOBILE: 320px - 768px */
@media (max-width: 768px) {
    body {
        font-size: 24px;
    }

    .container {
        padding: 0 16px;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
        z-index: 3000;
    }

    .hamburger span {
        width: 100%;
        height: 2px;
        background: white;
        transition: 0.3s;
    }

    .nav-container {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: #111;
        padding: 100px 40px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77,0.2,0.05,1.0);
        z-index: 2500;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .nav-links a {
        font-size: 18px;
        font-weight: 700;
    }

    .menu-checkbox:checked ~ .nav-container {
        transform: translateX(0);
    }

    /* menu icon animation */
    .menu-checkbox:checked ~ .hamburger span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
    .menu-checkbox:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
    .menu-checkbox:checked ~ .hamburger span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

  .nav-flex {
        display: flex;
        justify-content: center; 
        align-items: center;
        position: relative;      
    }

    .logo {
        margin: 0 auto;  
    }

    .hamburger {
        display: flex;
        position: absolute;     
        right: 16px;            
    }
    .logo img {
        width: 40px;
    }

    .btn-contact {
        padding: 8px 20px;
        font-size: 18px;
        border-radius: 30px;
    }

    .hero {
        //height: 100vh;
    }

    #mosaic-canvas {
        object-fit: cover;
        object-position: center;
    }

    .hero h1 {
        font-size: 12vw;
        font-weight: 700;
    }

    .hero-subtitle {
        font-size: 10vw;
        font-weight: 100;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 24px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }

    .about-features li {
        padding: 12px 0;
        font-size: 28px;
    }

    .arrow {
        width: 32px;
        height: 16px;
    }

    .roles-list{
        margin-left: 2vw;
        flex-direction: column;
    }

    .role-details { padding-left: 44px; }

    /* mobile: position arrow relative to job-title */
    .job-title .arrow { left: -44px; top: 50%; transform: translateY(-50%); }

    .world-map-box {
        height: 250px;
    }

    h3{
        font-size: 9vw;
    }

    .world-tag {
        padding: 4px 12px;
        font-size: 24px;
    }

    .image-gallery {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 24px;
    }

    .gallery-item::before {
        top: 16px;
        left: 14px;
    }

    .gallery-item img {
        border-radius: 24px;
        width: 88vw;
    }

    .team-name {
        font-size: 16px;
    }

    .job-title {
        font-size: 24px;
    }

    .location {
        font-size: 18px;
    }

    .contact-item {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .contact-item img {
        width: 22px;
        margin-right: 12px;
    }

    .icon-email img {
        width: 24px;
    }

    .footer {
        padding: 40px 0;
        font-size: 12px;
    }

    .footer-grid {
        gap: 24px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-nav{
        width: 100%;
        gap: 8vw; 
    }
/* 
    .footer-nav > div:last-of-type {
        display: none;
    } */

    .footer-logo {
        margin-right: 0;
        width: 36%;
        padding-left: 12vw;
    }

    .footer-logo img {
        width: 50px;
    }

    .vertical-divider {
        margin: 0;  
    }

    .divider {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .footer-copy {
    }
    .footer-social img{
        width: 24px;
    }
}

/* TABLET: 768px - 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    body {
        font-size: 28px;
    }

    .container {
        padding: 0 24px;
    }

    .logo img {
        width: 45px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .btn-contact {
        padding: 5px 12px;
        font-size: 12px;
    }

    .hero h1 {
        font-size: 56px;
    }

    .hero-subtitle {
        font-size: 48px;
    }

    .section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 2.8rem;
        margin-bottom: 32px;
    }

    .about-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 40px;
    }

    .about-features li {
        padding: 12px 0;
        font-size: 16px;
    }

    .world-map-box {
        height: 350px;
    }

    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .team-name {
        font-size: 18px;
    }

    .job-title {
        font-size: 32px;
    }

    .location {
        font-size: 24px;
    }

    .contact-item {
        font-size: 20px;
    }

    .footer {
        padding: 50px 0;
        font-size: 13px;
    }

    .footer-logo img {
        width: 65px;
    }
}