:root {
    /* Color Palette */
    --bg-dark: #0a0a0c;
    --bg-card: #16161a;
    --primary: #ffffff;
    --primary-glow: rgba(255, 255, 255, 0.4);
    --secondary: #ffffff;
    --text-main: #ffffff;
    --text-dim: #888888;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-main: "JetBrains Mono", monospace;

    /* Spacing */
    --container-width: 1550px;
}

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

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

body::before,
body::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    width: 20%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
}

body::before {
    left: 0;
    background: radial-gradient(circle at 0% 50%,
            rgba(255, 255, 255, 0.2),
            transparent 70%);
}

body::after {
    right: 0;
    background: radial-gradient(circle at 100% 50%,
            rgba(255, 255, 255, 0.2),
            transparent 70%);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(12px);
}

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

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

.logo img {
    height: 40px;
    width: auto;
}

.brand-name {
    font-family: "Bebas Neue", sans-serif;
    font-size: 2rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Adaptive Search Box */
.search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

#site-search {
    background: #ffffff;
    border: 1px solid #ffffff;
    color: #000000;
    padding: 10px 15px 10px 40px;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    width: 200px;
    transition: all 0.3s ease;
    outline: none;
}

#site-search::placeholder {
    color: #888888;
    font-weight: 400;
}

#site-search:focus {
    width: 250px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.search-icon {
    position: absolute;
    left: 14px;
    color: #888888;
    pointer-events: none;
    transition: color 0.3s ease;
}

#site-search:focus + .search-icon {
    color: #000000;
}

.search-results {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    width: 100%;
    min-width: 250px;
    background: rgba(15, 15, 18, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1000;
}

.search-results.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-item {
    padding: 10px 20px;
    color: var(--text-dim);
    text-decoration: none;
    font-family: var(--font-main);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border-left: 2px solid transparent;
}

.search-item:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--text-main);
}

.search-empty {
    padding: 10px 20px;
    color: var(--text-dim);
    font-size: 0.85rem;
    font-style: italic;
}

/* Buttons */
.btn {
    padding: 14px 35px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    animation: float-letter 5s ease-in-out infinite;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 2rem;
    display: inline-block;
}

.about-hero-title {
    font-family: "Bebas Neue", sans-serif;
    font-size: 7rem;
    line-height: 0.9;
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    color: var(--text-main);
}

.hero-description {
    font-family: "JetBrains Mono", monospace;
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    max-width: 700px;
    line-height: 1.7;
    padding-left: 0;
    /* Убрали полоску здесь тоже */
}

#profile-photo {
    width: 180%;
    max-width: 850px;
    height: auto;
    object-fit: cover;
    transform: translate(5%, 0%);
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.2, 1);
}

/* Logo Ticker Style */
.logo-ticker {
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    overflow: hidden;
    padding: 25px 0;
    mask-image: linear-gradient(to right,
            transparent,
            black 15%,
            black 85%,
            transparent 100%);
    -webkit-mask-image: linear-gradient(to right,
            transparent,
            black 15%,
            black 85%,
            transparent 100%);
    z-index: 5;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.ticker-group {
    display: flex;
    align-items: center;
    gap: 120px;
    padding-right: 120px;
}

.ticker-track img {
    height: 45px;
    width: auto;
    filter: grayscale(1) opacity(0.2) brightness(2.5);
}

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

    100% {
        transform: translateX(-50%);
    }
}

/* Categories & Titles */
.category-title {
    font-family: "JetBrains Mono", monospace;
    font-size: 4.5rem;
    /* Сделали компактнее и аккуратнее */
    font-weight: 700;
    margin-top: 120px;
    margin-bottom: 60px;
    letter-spacing: -1px;
    color: #fff;
    line-height: 1.1;
    text-transform: uppercase;
    min-height: 1.1em;
    /* Резервируем место, чтобы страница не прыгала */
    display: block;

    /* Добавляем плавание - оптимизировано */
    animation: float-letter 6s ease-in-out infinite;
    will-change: transform;
}

.category-title.typing::after {
    content: "_";
    display: inline-block;
    animation: blink 0.6s infinite;
    margin-left: 5px;
    color: var(--primary);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.category-title.centered {
    text-align: center;
}

/* Projects Section */
.projects-section {
    padding: 120px 0;
    min-height: 100vh;
}

.games-grid {
    display: flex;
    gap: 30px;
    height: 850px;
    transition: all 0.8s cubic-bezier(0.2, 1, 0.2, 1);
    position: relative;
}

.game-card {
    flex: 1;
    height: 100%;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Уменьшаем время, чтобы параллакс был отзывчивым */
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.1s ease-out;
    transform-style: preserve-3d;
}

.game-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.08);
}

.card-inner {
    width: 100%;
    height: 100%;
}

.card-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.game-card:hover .card-inner img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.card-overlay h3 {
    font-family: "Bebas Neue", sans-serif;
    font-size: 3rem;
    color: #fff;
    letter-spacing: 2px;
}

/* State: Details Active */
.games-grid.show-details .game-card:not(.active) {
    flex: 0;
    width: 0;
    opacity: 0;
    margin: 0;
    pointer-events: none;
}

.games-grid.show-details .game-card.active {
    flex: 0 0 490px;
    z-index: 10;
}

.games-grid.show-details .game-card.active .card-overlay {
    opacity: 0;
}

.game-details {
    flex: 1;
    display: none;
    opacity: 0;
    padding: 0 20px 0 60px;
    transform: translateX(30px);
    transition: all 0.6s cubic-bezier(0.2, 1, 0.2, 1);
}

.games-grid.show-details .game-details {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateX(0);
}

/* Details Panel Styles */
.details-header {
    text-align: center;
    margin-bottom: 2rem;
}

#detail-logo {
    max-height: 120px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.game-specs-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.spec-item {
    font-family: var(--font-main);
    font-size: 1rem;
}

.spec-item .val {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 6px;
    color: #fff;
}

.details-body {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
}

.desc-wrapper p {
    font-size: 1.15rem;
    color: var(--text-dim);
    line-height: 1.6;
    white-space: pre-line;
}

.desc-wrapper {
    max-height: 150px;
    overflow: hidden;
    transition: max-height 0.6s ease;
    position: relative;
}

.desc-wrapper:not(.expanded)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
    pointer-events: none;
}

.desc-wrapper.expanded {
    max-height: 1500px;
}

.read-more {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.8rem;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 20px;
}

/* Slider */
.details-slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 50px auto 0;
    aspect-ratio: 16/9;
    overflow: hidden;
    display: flex;
    border-radius: 40px;
}

.slider-track {
    display: flex;
    position: absolute;
    left: 0;
    height: 100%;
    width: 100%;
    transition: transform 0.6s ease;
}

.slide {
    flex: 0 0 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    opacity: 0;
    transition: all 0.6s ease;
    background: #000;
}

.slide.active {
    opacity: 1;
    z-index: 20;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 100;
    pointer-events: none;
}

.slider-nav {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.slide img,
.slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stats Sections */
.stats-section {
    padding: 30px 0;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    /* Навыки слева компактнее, текст справа шире */
    gap: 80px;
    align-items: flex-start;
}

.split-section.reverse {
    grid-template-columns: 1fr 1.2fr;
}

.split-content-text p {
    font-size: 1.3rem;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 25px;
    padding-left: 0;
}

/* Small Text Fade-in (Illumination) */
.type-me {
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.type-me.visible {
    opacity: 1;
}

.highlight {
    background-color: #fff !important;
    color: #000 !important;
    padding: 2px 4px;
    font-weight: 700;
    border-radius: 2px;
}

/* Skills Reveal */
.skill-item {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.2, 1, 0.2, 1);
}

.skill-item.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Skills */
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    margin-bottom: 12px;
    color: #fff;
    white-space: nowrap;
}

.skill-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.skill-progress {
    height: 100%;
    background: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    border-radius: 20px;
}

/* Heatmap Reveal */
.activity-heatmap {
    display: grid;
    grid-template-columns: repeat(25, 1fr);
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.activity-heatmap.visible {
    opacity: 1;
    transform: translateY(0);
}

.cube {
    aspect-ratio: 1;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.2s ease;
}

.cube:hover {
    transform: scale(1.3);
    background: rgba(255, 255, 255, 0.15);
    z-index: 10;
}

.level-1 {
    background: rgba(255, 255, 255, 0.1);
}

.level-2 {
    background: rgba(255, 255, 255, 0.3);
}

.level-3 {
    background: rgba(255, 255, 255, 0.6);
}

.level-4 {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.heatmap-legend {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 20px;
}

.legend-cubes {
    display: flex;
    gap: 6px;
}

.legend-cubes .cube {
    width: 14px;
    height: 14px;
}

.float-wrap {
    display: inline-block;
    /* Paused by default to avoid huge layout/rendering overhead for off-screen elements */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.type-me.animating .float-wrap {
    animation: float-letter 4s ease-in-out infinite;
}

.inter-char {
    display: inline-block;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.2, 1);
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

@keyframes float-letter {

    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    33% {
        transform: translate3d(0, -0.5px, 0) rotate(1deg);
    }

    66% {
        transform: translate3d(0, 0.5px, 0) rotate(-1deg);
    }
}

/* Symmetrical Team Layout */
.team-grid-symmetrical {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 50px;
}

.center-team-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-logo-wrapper {
    margin-bottom: 40px;
}

.team-main-logo.centered {
    max-width: 500px;
}

.team-center-text {
    max-width: 800px;
}

.side-images {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.left-side {
    align-items: flex-start;
}

.right-side {
    align-items: flex-end;
}

.team-subtitle {
    font-family: "JetBrains Mono", monospace;
    font-size: 2rem;
    /* СУЩЕСТВЕННО УВЕЛИЧИЛИ */
    margin-bottom: 1.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.team-center-text p {
    font-size: 1.1rem;
    /* Сделали текст крупнее */
    line-height: 1.3;
    color: rgba(187, 184, 184, 0.8);
    max-width: 900px;
}

.chaotic-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 50px;
    position: relative;
}

.chaotic-item {
    background: none;
    /* УБРАЛИ РАМКИ */
    border: none;
    /* УБРАЛИ ГРАНИЦЫ */
    padding: 0;
    max-width: 380px;
    /* УВЕЛИЧИЛИ РАЗМЕР ФОТО */
    transition: transform 0.3s ease;
}

.item-1 {
    transform: rotate(3deg) translateY(20px);
    margin-left: 1px;
}

.item-2 {
    transform: rotate(-4deg) translateY(-15px);
    margin-left: 1px;
}

.item-3 {
    transform: rotate(-2deg) translateY(30px);
    margin-left: 1px;
}

.item-4 {
    transform: rotate(3deg) translateY(-10px);
    margin-left: 0.5px;
}

.chaotic-item:hover {
    transform: scale(1.05) rotate(0deg);
    background: rgba(255, 255, 255, 0.05);
    z-index: 10;
}

.team-img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
    filter: grayscale(1) contrast(1.1);
    /* Поддерживаем Monochrome стиль */
    transition: filter 0.5s ease;
}

.chaotic-item:hover .team-img {
    filter: grayscale(0) contrast(1);
    /* Проявление цвета при наведении, если хочешь, или оставить чб */
}

@media (max-width: 1200px) {
    .category-title {
        font-size: 6rem;
    }

    .split-section,
    .split-section.reverse {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

/* ===================== ROADMAP SECTION ===================== */
.roadmap-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.investor-checkbox {
    display: none;
}

.investor-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.investor-label {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    cursor: pointer;
}

.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 22px;
    cursor: pointer;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.investor-checkbox:checked+.investor-panel .slider {
    background-color: #ffffff;
}

.investor-checkbox:checked+.investor-panel .slider:before {
    background-color: #000;
    transform: translateX(24px);
}

.roadmap-arrows-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0px;
    margin-top: 40px;
    padding-bottom: 50px;
}

/* Wrapper: handles opacity animation & glow — NO clip-path so shadow escapes */
.arrow-wrap {
    flex: 1;
    min-width: 350px;
    opacity: 0;
    position: relative;
    margin-left: -5%;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: opacity;
    transform: translateZ(0);
    /* GPU layer */
}

.arrow-wrap:first-child {
    margin-left: 0;
}

/* Inner arrow: clip-path only, no animation */
.roadmap-arrow {
    width: 100%;
    height: 180px;
    background: #ffffff;
    position: relative;
    clip-path: polygon(85% 0%, 100% 50%, 85% 100%, 0% 100%, 15% 50%, 0% 0%);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(0);
}

.arrow-wrap:first-child .roadmap-arrow {
    clip-path: polygon(85% 0%, 100% 50%, 85% 100%, 0% 100%, 0% 50%, 0% 0%);
}

.arrow-wrap:last-child .roadmap-arrow {
    clip-path: polygon(100% 0%, 100% 50%, 100% 100%, 0% 100%, 15% 50%, 0% 0%);
}

.arrow-content {
    text-align: center;
    padding: 0 60px;
    color: #000000;
    transition: color 0.3s ease;
}

.arrow-num {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    font-size: 2.8rem;
    line-height: 1;
    margin-bottom: 5px;
}

.arrow-title {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.arrow-desc {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    line-height: 1.4;
    font-weight: 600;
}

/* Base Animations on wrapper (glow-safe layer) */
.arrow-1 {
    animation: arrowIn1 18s infinite;
}

.arrow-2 {
    animation: arrowIn2 18s infinite;
}

.arrow-3 {
    animation: arrowIn3 18s infinite;
}

.arrow-4 {
    animation: arrowIn4 18s infinite;
}

/* INVESTOR MODE: Gold Glow — triple layer for full intensity */
.investor-checkbox:checked~.roadmap-arrows-container .arrow-wrap {
    filter:
        drop-shadow(0 0 10px rgb(255, 255, 255)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.671)) drop-shadow(0 0 60px rgba(255, 255, 255, 0.63));
}

.investor-checkbox:checked~.roadmap-arrows-container .arrow-wrap .roadmap-arrow {
    background: linear-gradient(135deg, #ffffff 0%, #fffde0 100%);
}

.investor-note {
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Sequential Keyframes with Reverse Out */
@keyframes arrowIn1 {

    0%,
    10% {
        opacity: 0;
        transform: translateX(-20px);
    }

    20%,
    90% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(20px);
    }
}

@keyframes arrowIn2 {

    0%,
    25% {
        opacity: 0;
        transform: translateX(-20px);
    }

    35%,
    80% {
        opacity: 1;
        transform: translateX(0);
    }

    90%,
    100% {
        opacity: 0;
        transform: translateX(20px);
    }
}

@keyframes arrowIn3 {

    0%,
    40% {
        opacity: 0;
        transform: translateX(-20px);
    }

    50%,
    70% {
        opacity: 1;
        transform: translateX(0);
    }

    80%,
    100% {
        opacity: 0;
        transform: translateX(20px);
    }
}

@keyframes arrowIn4 {

    0%,
    55% {
        opacity: 0;
        transform: translateX(-20px);
    }

    60%,
    65% {
        opacity: 1;
        transform: translateX(0);
    }

    70%,
    100% {
        opacity: 0;
        transform: translateX(20px);
    }
}

@media (max-width: 900px) {
    .roadmap-arrows-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding-left: 0;
    }

    .roadmap-arrow {
        width: 100%;
        max-width: 350px;
        margin-left: 0;
        clip-path: none !important;
        border-radius: 12px;
        height: auto;
        padding: 40px 20px;
        opacity: 1 !important;
        animation: none !important;
        transform: none !important;
    }
}

.join-team-section {
    padding: 80px 0 80px;
    margin-top: 80px;
}

/* ===================== MINIMALIST JOIN SECTION ===================== */
.join-team-section {
    padding: 100px 0;
    margin-top: 100px;
}

.join-title {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(2rem, 5vw, 4.5rem);
    letter-spacing: 0.15em;
    color: #fff;
    margin-bottom: 60px;
}

.req-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    /* Clean spacing between modules */
}

.req-card {
    background: #000000;
    padding: 50px 35px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    transition:
        background-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    min-height: 400px;
    will-change: transform, background-color;
}

/* Staggered layout: even cards are pushed down */
.req-card:nth-child(even) {
    margin-top: 60px;
}

/* THE MINIMALIST INVERT EFFECT */
.req-card.active {
    background: #fff;
}

.req-card.active .req-num,
.req-card.active .req-heading,
.req-card.active .req-text,
.req-card.active .toggle-label {
    color: #000;
}

.req-num {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.2rem;
}

.req-heading {
    font-family: "Bebas Neue", sans-serif;
    font-size: 2.2rem;
    letter-spacing: 0.05em;
    color: #fff;
    text-transform: uppercase;
}

.req-text {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.8;
    margin: 0;
}

.toggle-wrap {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.req-checkbox {
    display: none;
}

/* Minimalist rounded toggle */
.toggle-track {
    width: 58px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.req-card.active .toggle-track {
    background: rgba(0, 0, 0, 0.1);
}

.toggle-thumb {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.req-card.active .toggle-thumb {
    background: #000;
    left: calc(100% - 27px);
}

.toggle-label {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.3);
}

/* CTA Section */
.join-cta {
    margin-top: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.join-cta.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.join-cta .solo-text {
    font-family: "JetBrains Mono", monospace;
    font-size: 1rem;
    color: #fff;
}

@media (max-width: 1200px) {
    .req-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1px;
    }
}

@media (max-width: 600px) {
    .req-cards {
        grid-template-columns: 1fr;
    }

    .req-card {
        min-height: auto;
        padding: 40px 30px;
    }

    .join-cta {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

/* ===================== MY SETUP — ARCH ===================== */
.arch-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    /* Reduced gap to bring columns closer */
    align-items: center;
    /* Vertically center text relative to photos */
    padding: 0 0 80px;
}

.arch-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    z-index: 1;
    /* Keep text above watermark */
    padding-right: 20px;
    /* Give a tiny buffer from the photos */
}

/* Beautiful faint watermark placement */
.arch-watermark {
    position: absolute;
    top: -40px;
    left: -40px;
    width: 250px;
    height: auto;
    opacity: 0.05;
    pointer-events: none;
    z-index: -1;
    transform: rotate(-15deg);
}

.arch-title {
    font-size: clamp(2rem, 4vw, 4.5rem);
    margin: 0 0 28px;
    line-height: 1;
}

.arch-desc {
    font-size: 1.05rem;
    color: var(--text-dim);
    line-height: 1.8;
    /* Restore normal vertical rhythm */
    max-width: 100%;
    /* Stretch horizontally to fill the gap */
}

.arch-btw {
    font-family: "JetBrains Mono", monospace;
    font-style: italic;
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 40px;
    letter-spacing: 0.05em;
}

/* Right: 16:9 photo grid */
.arch-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    position: relative;
}

.arch-photo {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    aspect-ratio: 16 / 9;
    transition:
        transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.4s ease;
}

.arch-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(20%);
    transition: filter 0.4s ease;
}

.arch-photo:hover {
    transform: scale(1.04) translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.arch-photo:hover img {
    filter: grayscale(0%);
}

/* First photo spans full width */
.arch-photo-1 {
    grid-column: 1 / 3;
    transform: rotate(-0.5deg);
}

.arch-photo-2 {
    grid-column: 1;
    transform: rotate(1deg);
}

.arch-photo-3 {
    grid-column: 2;
    transform: rotate(-0.5deg);
}

/* ===================== WHAT I DO — LAYOUT ===================== */
.what-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 0 0 80px;
}

.what-content {
    display: flex;
    flex-direction: column;
}

/* Left: Scattered Photo Gallery */
.what-gallery {
    display: flex;
    flex-direction: column;
    position: relative;
}

.what-photo {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        z-index 0s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 85%;
    aspect-ratio: 16 / 9;
    position: relative;
    margin-top: -60px;
    /* Overlap photos */
}

.what-photo:first-child {
    margin-top: 0;
}

.what-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: filter 0.4s ease;
}

.what-photo:hover {
    z-index: 10 !important;
    transform: scale(1.05) translateY(-10px) !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7);
}

.what-photo:hover img {
    filter: grayscale(0%);
}

.what-photo-1 {
    transform: rotate(-3deg) translateX(0%);
    z-index: 1;
}

.what-photo-2 {
    transform: rotate(4deg) translateX(15%);
    z-index: 2;
}

.what-photo-3 {
    transform: rotate(-2deg) translateX(5%);
    z-index: 3;
}

/* ===================== WHAT I DO — TECH CIRCLES ===================== */

.spheres-stack {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 80px auto;
    /* Allow overlap overflow to be visible */
    overflow: visible;
    position: relative;
}

.tech-sphere {
    width: 220px;
    height: 220px;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition:
        transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s ease,
        z-index 0s;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    position: relative;
    flex-shrink: 0;
}

/* Side spheres peek behind the center */
.left-sphere {
    margin-right: -75px;
    /* Overlap into center */
    z-index: 1;
}

.center-sphere {
    width: 260px;
    height: 260px;
    z-index: 3;
    /* Always on top */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
}

.right-sphere {
    margin-left: -75px;
    /* Overlap into center */
    z-index: 1;
}

/* On hover, side spheres slide OUT and rise above center */
.left-sphere:hover {
    transform: translateX(-50px) scale(1.08);
    z-index: 10;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.8);
}

.right-sphere:hover {
    transform: translateX(50px) scale(1.08);
    z-index: 10;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.8);
}

.center-sphere:hover {
    transform: scale(1.08);
    z-index: 10;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.8);
}

.sphere-img {
    width: 76px;
    height: 76px;
    object-fit: contain;
}

.center-sphere .sphere-img {
    width: 96px;
    height: 96px;
}

.sphere-label {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #000;
    text-transform: uppercase;
}

/* In the 2-column layout, center text as requested */
#what-i-do .solo-dev-statement {
    margin: 0 auto;
    text-align: center;
}

.solo-text {
    font-size: 1.15rem;
    color: var(--text-dim);
    line-height: 1.9;
}

/* ===================== YOUTUBE CHANNEL ===================== */
.youtube-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 5;
    padding: 0 20px;
}

.yt-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 400px;
    margin-top: 40px;
    margin-bottom: 80px;
}

.yt-photo {
    width: 480px;
    height: 270px;
    /* 16:9 ratio */
    position: absolute;
    border-radius: 14px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
    transition:
        transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
        z-index 0s,
        filter 0.4s ease;
    overflow: hidden;
    filter: grayscale(40%);
    border: 1px solid var(--glass-border);
}

.yt-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yt-photo:hover {
    z-index: 10 !important;
    filter: grayscale(0%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.yt-photo-1 {
    transform: translateX(-300px) rotate(-6deg) scale(0.9);
    z-index: 1;
}

.yt-photo-1:hover {
    transform: translateX(-300px) rotate(-6deg) scale(0.95);
    /* Gentle scale */
}

.yt-photo-2 {
    transform: translateX(0) scale(1);
    z-index: 3;
}

.yt-photo-2:hover {
    transform: translateX(0) scale(1.04);
    /* Gentle scale */
}

.yt-photo-3 {
    transform: translateX(300px) rotate(6deg) scale(0.9);
    z-index: 2;
}

.yt-photo-3:hover {
    transform: translateX(300px) rotate(6deg) scale(0.95);
    /* Gentle scale */
}

/* YouTube Play Overlay inside center thumbnail */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 48px;
    background: rgba(255, 0, 0, 0.85);
    /* Red glass */
    backdrop-filter: blur(4px);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    z-index: 5;
    transition:
        transform 0.3s ease,
        background 0.3s ease;
    pointer-events: none;
    /* Let the <a> take the click */
}

.play-overlay svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.yt-photo-2:hover .play-overlay {
    transform: translate(-50%, -50%) scale(1.15);
    /* Pop play button on hover */
    background: rgba(255, 0, 0, 1);
}

/* Make it responsive for smaller screens */
@media screen and (max-width: 1024px) {
    .yt-photo {
        width: 320px;
        height: 180px;
    }

    .yt-photo-1 {
        transform: translateX(-150px) rotate(-6deg) scale(0.9);
    }

    .yt-photo-3 {
        transform: translateX(150px) rotate(6deg) scale(0.9);
    }

    .yt-gallery {
        height: 260px;
    }
}

/* ===================== CRATOS VOLUNTEER TEAM (FINAL MINIMALIST) ===================== */
.cratos-section {
    padding: 100px 0;
    margin-top: 50px;
}

.cratos-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 15px;
    margin-bottom: 80px;
}

.cratos-logo-new {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.cratos-heading {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(3rem, 5vw, 5rem);
    letter-spacing: 0.1em;
    color: #fff;
    margin: 0;
    line-height: 1;
}

.cratos-tag {
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.6em;
    margin-top: 8px;
    text-transform: uppercase;
}

.cratos-classic-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 10px;
    align-items: start;
    position: relative;
}

.cratos-center-logo-wrap {
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(calc(-50% - 15px));
    /* shifted slightly left */
    width: 400px;
    height: 400px;
    z-index: 10;
    pointer-events: none;
}

.cratos-logo-center {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    filter: brightness(1.4) contrast(1.2);
}

.shape-wrap-right {
    float: right;
    width: 220px;
    height: 420px;
    shape-outside: circle(220px at 220px 200px);
    margin-top: 0px;
}

.shape-wrap-left {
    float: left;
    width: 220px;
    height: 420px;
    shape-outside: circle(220px at 0px 200px);
    margin-top: 0px;
}

/* CHECKMARK QUIZ */
.cratos-quiz-box {
    background: transparent;
    padding: 0 10px;
    border: none;
    text-align: center;
}

.quiz-title {
    font-family: "JetBrains Mono", monospace;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 20px;
}

.quiz-question {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
}

.quiz-check-list {
    display: block;
}

.quiz-check-item {
    display: block;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.quiz-check-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.quiz-check-item input[type="radio"] {
    display: none;
}

.custom-check {
    display: inline-block;
    vertical-align: baseline;
    margin-right: 10px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-family: "JetBrains Mono", monospace;
}

.quiz-label-txt {
    display: inline;
}

.custom-check::before {
    content: "[ ]";
}

.quiz-check-item input[type="radio"]:checked+.custom-check {
    color: #fff;
}

.quiz-check-item input[type="radio"]:checked+.custom-check::before {
    content: "[x]";
}

.quiz-check-item input[type="radio"]:checked~.quiz-label-txt {
    color: #fff;
    font-weight: bold;
}

.quiz-submit-btn {
    margin-top: 40px;
    background: #fff;
    border: none;
    color: #000;
    padding: 12px 30px;
    font-family: "JetBrains Mono", monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: bold;
}

.quiz-submit-btn:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* SQUAD TEXT BOX */
.cratos-text-box {
    padding: 0 10px;
    text-align: center;
}

.text-box-title {
    font-family: "JetBrains Mono", monospace;
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cratos-classic-text {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 25px;
}

.squad-title {
    font-family: "JetBrains Mono", monospace;
    font-size: 1.5rem;
    color: #fff;
    margin: 40px 0 20px;
    letter-spacing: 0.05em;
}

.classic-squad-list {
    display: flex;
    align-items: center;
    justify-content: center;
    /* center align flex items */
    gap: 15px;
    flex-wrap: wrap;
    font-family: "JetBrains Mono", monospace;
    font-size: 1.2rem;
    color: #fff;
}

.squad-name {
    display: flex;
    align-items: center;
    gap: 5px;
}

.squad-separator {
    color: rgba(255, 255, 255, 0.2);
}

.highlight-founder {
    font-weight: 700;
    color: #fff;
}

.highlight-founder .label {
    font-size: 0.7rem;
    background: #fff;
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    vertical-align: middle;
}

/* 3D SHOEZ SHOWCASE (16:9 FORMAT) */
.cratos-showcase {
    clear: both;
    /* Clear the big CSS shape float */
    margin-top: 20px;
}

.showcase-title {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 60px;
    text-align: center;
    letter-spacing: 0.3em;
}

.classic-shoez-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    perspective: 2000px;
    height: 350px;
    /* Reduced container height for horizontal images */
}

.shoez-item {
    width: 448px;
    /* Approx 16:9 proportions */
    height: 252px;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: grayscale(1) opacity(0.5);
    cursor: crosshair;
}

.shoez-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.shoez-item:nth-child(1) {
    transform: rotateY(25deg) translateZ(-50px);
}

.shoez-item:nth-child(2) {
    transform: translateZ(50px) translateY(-10px);
    filter: grayscale(0) opacity(1);
    z-index: 5;
}

.shoez-item:nth-child(3) {
    transform: rotateY(-25deg) translateZ(-50px);
}

.shoez-item:hover {
    filter: grayscale(0) opacity(1);
    transform: translateZ(150px) translateY(-20px) !important;
    z-index: 100;
}

@media (max-width: 1024px) {
    .cratos-classic-split {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .classic-shoez-grid {
        flex-direction: column;
        height: auto;
        gap: 40px;
        perspective: none;
    }

    .shoez-item {
        width: 100%;
        height: 300px;
        transform: none !important;
    }
}

/* ===================== CONTACT CARDS DECK ===================== */
#contact {
    min-height: 100vh;
    padding-top: 150px;
    padding-bottom: 50px;
    display: flex;
    align-items: center;
    /* Center the whole block vertically */
}

.cards-deck-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 400px;
    margin-top: 60px;
    perspective: 1000px;
}

.deck-card {
    position: relative;
    width: 260px;
    height: 380px;
    background: #ffffff;
    border: 2px solid #000000;
    color: #000000;
    border-radius: 12px;
    margin: 0 -45px;
    /* Negative margin makes them overlap like a fan of cards */
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: bottom center;
    /* Pivot from the bottom */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1;
    overflow: hidden;
    cursor: pointer;
}

/* Fan them out slightly by default */
.deck-card:nth-child(1) {
    transform: rotate(-18deg) translateY(45px);
}

.deck-card:nth-child(2) {
    transform: rotate(-12deg) translateY(25px);
}

.deck-card:nth-child(3) {
    transform: rotate(-6deg) translateY(8px);
}

.deck-card:nth-child(4) {
    transform: rotate(0deg) translateY(0);
    z-index: 2;
}

.deck-card:nth-child(5) {
    transform: rotate(6deg) translateY(8px);
}

.deck-card:nth-child(6) {
    transform: rotate(12deg) translateY(25px);
}

.deck-card:nth-child(7) {
    transform: rotate(18deg) translateY(45px);
}

/* Inner elements logic */
.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    /* Higher opacity since it's black on white */
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateY(40px);
}

.card-info {
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateY(40px);
    text-align: center;
    position: absolute;
    bottom: 40px;
    width: 100%;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: #000000;
}

.card-desc {
    font-size: 0.9rem;
    color: #333333;
    margin: 0 auto 20px;
    width: 80%;
    line-height: 1.4;
}

.card-handle {
    font-size: 0.85rem;
    font-weight: bold;
    padding: 6px 12px;
}

/* INTERACTION: When the container is hovered, if a card is hovered */
.cards-deck-container:hover .deck-card {
    /* Push others out and blur them */
    filter: blur(8px) brightness(0.4);
    transform: rotate(0) translateY(15px) scale(0.9);
    z-index: 1;
}

/* The specific hovered card */
.cards-deck-container .deck-card:hover {
    filter: blur(0) brightness(1);
    transform: rotate(0) translateY(-30px) scale(1.1);
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    background: #ffffff;
    border: 2px solid #000000;
}

/* Animate inner contents of hovered card */
.deck-card:hover .card-icon {
    opacity: 1;
    transform: translateY(-80px) scale(0.8);
    /* Dark drop shadow instead of white glow */
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.2));
}

.deck-card:hover .card-info {
    opacity: 1;
    transform: translateY(0);
}

/* Push siblings apart to make room */
/* Push cards on the right */
.deck-card:hover~.deck-card {
    transform: translateX(110px) rotate(8deg) scale(0.9);
}

/* Push cards on the left using :has() universal selector */
.deck-card:has(~ .deck-card:hover) {
    transform: translateX(-110px) rotate(-8deg) scale(0.9);
}

/* ===================== CUSTOM TOOLTIP ===================== */
.author-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    /* Must not block mouse */
    opacity: 0;
    background: #ffffff;
    color: #000000;
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.85rem;
    font-weight: 800;
    font-family: "JetBrains Mono", monospace;
    z-index: 9999;
    transform: translate(-50%, -150%);
    transition: opacity 0.3s cubic-bezier(0.2, 1, 0.2, 1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.author-tooltip.visible {
    opacity: 1;
}

.tooltip-logo-img {
    height: 26px;
    /* Increased from 18px */
    width: auto;
    object-fit: contain;
    /* Invert colors if the logo is white text/shapes, so it shows on the bright white tooltip */
    filter: invert(1);
}

/* =============================================================== */
/* CRATOS ACCENT — White highlight with underline (no float)       */
/* =============================================================== */
.cratos-accent {
    color: #fff;
    position: relative;
    display: inline;
}

.cratos-accent::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #fff;
    opacity: 0.45;
}

/* =============================================================== */
/* WHITE CARDS SECTION (INTERESTS)                                 */
/* =============================================================== */
.white-cards-section {
    padding: 120px 0;
    overflow: hidden;
    /* For tilted cards slightly overlapping out of bounds */
}

.white-card {
    background: #ffffff;
    color: #000000;
    border-radius: 4px;
    /* Чуууть скругленные края */
    padding: 60px;
    margin-bottom: 80px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.6);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    z-index: 1;
}

.card-left-tilt {
    transform: rotate(-1.5deg);
}

.card-right-tilt {
    transform: rotate(1.5deg);
    grid-template-columns: 0.9fr 1.1fr;
}

/* Reverse content order for right tilted cards */
.card-right-tilt .card-text-content {
    order: 2;
}

.card-right-tilt .card-images {
    order: 1;
}

.white-card:hover {
    transform: rotate(0deg) translateY(-10px) scale(1.02);
    z-index: 5;
    box-shadow: 0 45px 100px rgba(0, 0, 0, 0.8);
}

.card-title-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.white-card .card-title {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(3rem, 5vw, 4.5rem);
    letter-spacing: 0.05em;
    margin-bottom: 0;
    /* Убрал отступ, теперь отступ у обертки */
    line-height: 1;
    color: #000000;
}

.card-title-icon {
    height: clamp(60px,
            8vw,
            110px);
    /* Сделал иконки намного крупнее и адаптивнее */
    width: auto;
    object-fit: contain;
    filter: brightness(0);
    /* Если картинки не идеально черные, сделает их черными */
}

.card-text-content p {
    font-family: "JetBrains Mono", monospace;
    font-size: clamp(0.9rem, 1vw, 1rem);
    line-height: 1.8;
    color: #000000;
    font-weight: 500;
}

.highlight-black {
    background: #000000 !important;
    color: #ffffff !important;
    padding: 2px 6px;
    font-weight: 700;
    border-radius: 2px;
}

/* Красиво расположенные фотографии */
.card-images {
    position: relative;
    height: 360px;
    width: 100%;
}

.card-images img,
.placeholder-img {
    position: absolute;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition:
        transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
        z-index 0s;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.overlap-img-1 {
    width: 75%;
    height: 260px;
    object-fit: cover;
    top: 10px;
    left: 0;
    z-index: 2;
    transform: rotate(-3deg);
}

.overlap-img-2 {
    width: 70%;
    height: 240px;
    object-fit: cover;
    bottom: 10px;
    right: 0;
    z-index: 1;
    transform: rotate(4deg);
}

.card-images:hover .overlap-img-1 {
    transform: rotate(-1deg) scale(1.05) translate(-10px, -10px);
    z-index: 3;
}

.card-images:hover .overlap-img-2 {
    transform: rotate(1deg) scale(1.05) translate(10px, 10px);
    z-index: 3;
}

.placeholder-img {
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-img::after {
    content: "COMING SOON";
    font-family: "JetBrains Mono", monospace;
    font-weight: bold;
    color: #999;
}

/* ================== MOBILE BLOCKER ================== */
#mobile-blocker {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-dark);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    flex-direction: column;
}

#mobile-blocker h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: 3px;
}

#mobile-blocker p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.6;
    max-width: 400px;
}

@media (max-width: 900px) {
    #mobile-blocker {
        display: flex;
    }
    
    header, main, footer, .author-tooltip {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .white-card {
        grid-template-columns: 1fr;
        padding: 40px;
    }

    .card-right-tilt {
        grid-template-columns: 1fr;
    }

    .card-right-tilt .card-text-content {
        order: 1;
    }

    .card-right-tilt .card-images {
        order: 2;
    }

    .card-images {
        height: 320px;
        margin-top: 20px;
    }
}

@media (max-width: 640px) {
    .white-cards-section {
        padding: 80px 0;
    }

    .white-card {
        padding: 25px;
        margin-bottom: 50px;
        border-radius: 6px;
    }

    .card-images {
        height: 250px;
    }

    .overlap-img-1 {
        height: 180px;
    }

    .overlap-img-2 {
        height: 160px;
    }
}