/* --- RESET & VARIABLES --- */
:root {
    --color-bg: #030508;
    --color-bg-deep: #0B0F19;
    --color-bg-card: rgba(20, 25, 40, 0.7);

    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.25);

    --color-accent: #00D4FF;
    /* Cyan */
    --color-accent-secondary: #7C3AED;
    --color-accent-glow: rgba(0, 212, 255, 0.3);

    --color-text: #ffffff;
    --color-text-muted: #94a3b8;

    --font-main: 'Montserrat', sans-serif;
    --font-display: 'Unbounded', sans-serif;

    --container-width: 1240px;
    --gap-section: 120px;
    --border-radius: 20px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* --- LENIS RECOMMENDED CSS --- */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* --- FSLIGHTBOX SCROLL FIX ---
   Блокируем прокрутку страницы при открытом лайтбоксе.
   Класс вешается через JS при открытии fslightbox. */
body.fslightbox-open {
    overflow: hidden !important;
    touch-action: none;
    /* блокируем тач-скролл на мобильных */
}

/* Разрешаем скролл внутри самого контейнера лайтбокса */
.fslightbox-container {
    overscroll-behavior: contain;
    touch-action: pan-y;
}

/* --- VISUAL FX --- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

#bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -3;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    opacity: 0.5;
    filter: grayscale(0) contrast(1.2) brightness(0.8);
    pointer-events: none;
}

.video-overlay-dark {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 5, 8, 0.5);
    z-index: -2;
    pointer-events: none;
}

.ambient-glow {
    position: fixed;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: 20%;
    right: -20%;
    z-index: -1;
    pointer-events: none;
}

.ambient-glow-2 {
    position: fixed;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -20%;
    left: -20%;
    z-index: -1;
    pointer-events: none;
}

/* PARALLAX EFFECT CLASS */
.parallax-element {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.price,
.achievement-item span,
.footer-heading {
    font-family: var(--font-display);
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-family: var(--font-display);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: #000;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: var(--color-accent);
    border: 1px solid var(--color-accent);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 0 20px var(--color-accent-glow);
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px var(--color-accent-glow);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-compact {
    padding: 10px 24px;
    font-size: 12px;
    height: 44px;
}

/* New Phone Icon Button */
.btn-icon {
    padding: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: none;
}

.btn-icon svg {
    width: 20px;
    height: 20px;
    fill: #000;
}

.btn-white {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    color: #fff;
}

.btn-white:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: clamp(32px, 5vw, 56px);
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(180deg, #fff 20%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 80px;
    font-size: 18px;
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s, transform 0.8s;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.header.scrolled {
    padding: 15px 0;
    background: rgba(3, 5, 8, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-accent);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-accent);
    box-shadow: 0 0 10px var(--color-accent-glow);
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.phone {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
}

/* Burger Menu Icon */
.burger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: 0.4s;
}

.burger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(3, 5, 8, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transform: translateY(-100%);
    transition: 0.5s ease-in-out;
}

.mobile-nav.open {
    transform: translateY(0);
}

.mobile-nav a {
    font-family: var(--font-display);
    font-size: 24px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.mobile-nav a.active {
    color: var(--color-accent);
}

.mobile-nav .mobile-phone {
    color: var(--color-accent);
    font-size: 20px;
    margin-top: 20px;
}

/* Mobile Messengers Row */
.mobile-messengers {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.mobile-messengers .messenger-btn {
    width: 50px;
    height: 50px;
}

/* Keep large for touch inside menu */
.mobile-messengers .messenger-btn svg {
    width: 24px;
    height: 24px;
}

/* --- HERO --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-short {
    height: 70vh;
    min-height: 600px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(28px, 4.5vw, 58px);
    margin-bottom: 30px;
    line-height: 1.1;
}

.hero-content h1 span {
    color: #fff;
    opacity: 0.8;
    font-weight: 300;
    display: block;
    font-size: 0.7em;
    margin-bottom: 15px;
}

.hero-content h1 b {
    color: var(--color-accent);
    font-weight: 700;
    text-shadow: 0 0 60px rgba(0, 212, 255, 0.4);
}

.hero-sub {
    font-size: 18px;
    color: var(--color-text-muted);
    margin: 0 auto 50px;
    max-width: 700px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 80px;
}

.stats-bar {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 5px;
}

.stats-item {
    padding: 15px 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.stats-item:last-child {
    border-right: none;
}

/* Counter specific styles */
.stats-item h3 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 0;
    display: inline-block;
    margin-right: 10px;
    min-width: 60px;
}

.stats-item p {
    display: inline-block;
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- SOLUTIONS (BENTO) --- */
.section-solutions {
    padding: var(--gap-section) 0;
}

/* Updated Bento Grid for "Two Whales" strategy */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.bento-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 40px;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Spotlight Effect */
.bento-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

.bento-card:hover::after {
    opacity: 1;
}

.bento-card>* {
    position: relative;
    z-index: 2;
}

/* Ensure content is above glow */

.bento-card.large {
    min-height: 500px;
    background: linear-gradient(145deg, rgba(20, 25, 40, 0.6) 0%, rgba(10, 12, 20, 0.8) 100%);
}

.bento-card.full-width {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-height: auto;
}

.bento-card h3 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #fff;
}

.bento-card p {
    color: var(--color-text-muted);
    margin-bottom: 30px;
    font-size: 16px;
}

.bento-card ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    color: #e2e8f0;
    font-size: 14px;
}

.bento-card ul li::before {
    content: "•";
    color: var(--color-accent);
    position: absolute;
    left: 0;
}

.card-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.bento-video-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bento-price-tag {
    display: table;
    /* Changed from inline-block to table to ensure line break and proper spacing behavior */
    background: rgba(0, 212, 255, 0.1);
    color: var(--color-accent);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    margin-top: 15px;
    margin-bottom: 20px;
    /* Added margin-bottom */
}

/* --- LEAD MAGNET (RESTORED) --- */
.section-lead {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 212, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.lead-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.lead-content {
    flex: 1;
}

.lead-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 140px;
    height: 180px;
    border-radius: 12px;
    margin-right: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: rotate(-5deg);
    float: left;
    /* Float for desktop layout */
}

.lead-visual svg {
    width: 60px;
    height: 60px;
    fill: var(--color-accent);
}

.lead-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.lead-icon {
    font-size: 48px;
    color: var(--color-accent);
    margin-bottom: 20px;
    display: none;
}

/* --- PROCESS --- */
.section-process {
    padding: var(--gap-section) 0;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    position: relative;
}

.step-item {
    position: relative;
    padding-top: 20px;
}

.step-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-accent);
}

.step-num {
    font-family: var(--font-display);
    font-size: 36px;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

.step-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
}

.step-item p {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* --- CASES --- */
.section-cases {
    padding: var(--gap-section) 0;
}

.case-block {
    display: flex;
    gap: 50px;
    margin-bottom: 100px;
    align-items: center;
    padding: 30px;
    border-radius: 30px;
    transition: 0.4s;
    border: 1px solid transparent;
}

.case-block:hover {
    border-color: rgba(0, 212, 255, 0.15);
    background: rgba(255, 255, 255, 0.01);
}

.case-block.reverse {
    flex-direction: row-reverse;
}

.case-img-wrap {
    flex: 1.2;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    aspect-ratio: 16/10;
    position: relative;
    width: 100%;
}

.case-block.reverse .case-content {
    direction: ltr;
}

/* Keep just in case, though flex handles order */
.case-content {
    flex: 1;
    min-width: 0;
}

.case-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.case-img-wrap:hover .case-img {
    transform: scale(1.03);
}

.case-content h3 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #fff;
    word-break: break-word;
}

/* fix long words */
.case-tag {
    color: var(--color-accent);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

.case-metrics {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.metric div {
    font-size: 24px;
    font-family: var(--font-display);
    color: #fff;
    line-height: 1;
    margin-bottom: 5px;
}

.metric small {
    font-size: 12px;
    color: #94a3b8;
}

/* --- DESIGN GALLERY --- */
.section-design {
    padding: var(--gap-section) 0;
}

.design-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 40px;
}

.design-info {
    padding-right: 20px;
}

.design-info h2 {
    font-size: 42px;
    margin: 20px 0;
    color: #fff;
}

.design-info .section-title {
    text-align: left;
}

/* Left align on desktop by default */
.design-info p {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
    font-size: 16px;
}

.design-display {
    min-width: 0;
    position: relative;
}

.gallery-top {
    width: 100%;
    border-radius: 24px;
    border: none;
    overflow: hidden;
    background: transparent;
    margin-bottom: 20px;
}

.gallery-top .swiper-slide {
    aspect-ratio: 16/9;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 24px;
}

.gallery-thumbs {
    box-sizing: border-box;
    padding: 10px 0;
    min-width: 0;
}

.gallery-thumbs .swiper-slide {
    width: 20%;
    aspect-ratio: 16/9;
    opacity: 1;
    filter: brightness(0.6) grayscale(0.4);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid transparent;
    background-color: rgba(255, 255, 255, 0.02);
}

.gallery-thumbs .swiper-slide-thumb-active {
    filter: brightness(1) grayscale(0);
    border-color: var(--color-accent);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

/* Updated Design Gallery Navigation */
.design-thumbs-wrapper {
    position: relative;
    padding: 0 60px;
    /* Space for arrows */
}

.design-nav-prev,
.design-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    cursor: pointer;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.design-nav-prev:hover,
.design-nav-next:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.design-nav-prev {
    left: 0;
}

.design-nav-next {
    right: 0;
}

.design-pagination {
    position: relative;
    margin-top: 20px;
    text-align: center;
}

.design-pagination .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.2;
    width: 8px;
    height: 8px;
    margin: 0 6px;
}

.design-pagination .swiper-pagination-bullet-active {
    background: var(--color-accent);
    opacity: 1;
    transform: scale(1.2);
}

/* --- COMPARISON TABLE --- */
.section-comparison {
    padding: var(--gap-section) 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 212, 255, 0.04) 50%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(5px);
}

.pricing-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 40px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.pricing-table th,
.pricing-table td {
    text-align: left;
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.pricing-table th {
    font-family: var(--font-display);
    font-size: 14px;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.pricing-table td {
    color: #fff;
    font-size: 15px;
}

/* Highlight Prosite Column */
.pricing-table th:nth-child(2),
.pricing-table td:nth-child(2) {
    background: rgba(0, 212, 255, 0.05);
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
}

.pricing-table th:nth-child(2) {
    color: var(--color-accent);
    font-size: 18px;
    border-top: 2px solid var(--color-accent);
    border-radius: 20px 20px 0 0;
}

.pricing-table tr:last-child td:nth-child(2) {
    border-bottom: 2px solid var(--color-accent);
    border-radius: 0 0 20px 20px;
}

.text-success {
    color: #4ade80 !important;
    font-weight: 600;
}

.text-danger {
    color: #f87171 !important;
}

.text-warning {
    color: #fbbf24 !important;
}

/* REVIEWS STYLES */
.section-reviews {
    padding: 120px 0;
}

/* FIX FOR EQUAL HEIGHT REVIEWS */
.swiper-reviews .swiper-slide {
    height: auto;
    display: flex;
}

.review-card {
    width: 100%;
    background: var(--color-bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    padding: 30px;
    border-radius: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #333;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--color-accent);
}

.review-name {
    font-weight: 700;
    color: #fff;
    font-size: 16px;
}

.review-role {
    font-size: 12px;
    color: var(--color-text-muted);
}

.review-stars {
    margin-left: auto;
    color: #fbbf24;
    letter-spacing: 2px;
}

.review-text {
    font-size: 15px;
    color: #e2e8f0;
    line-height: 1.6;
    font-style: italic;
}

.swiper-reviews {
    padding-bottom: 40px;
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.2;
}

.swiper-pagination-bullet-active {
    background: var(--color-accent);
    opacity: 1;
}

/* FLOATING MESSENGERS */
.floating-messengers {
    position: fixed;
    bottom: 70px;
    /* Над кнопкой "Наверх" */
    right: 30px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.messenger-btn {
    width: 30px;
    /* Resized smaller (was 50px) */
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.messenger-btn svg {
    width: 16px;
    height: 16px;
}

/* Smaller icons */

.messenger-btn:hover {
    transform: scale(1.1);
}

.messenger-btn.telegram {
    background: #0088cc;
}

.messenger-btn.whatsapp {
    background: #25D366;
}

.messenger-btn.viber {
    background: #7360f2;
}

/* --- PRICING --- */
.section-pricing {
    padding: var(--gap-section) 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 212, 255, 0.04) 50%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(5px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
}

.price-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--color-border);
    transition: 0.4s;
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.price-card.featured {
    transform: scale(1.05);
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.05) 0%, rgba(20, 25, 40, 0.6) 100%);
    border-color: var(--color-accent);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
    z-index: 2;
}

.price-card h3 {
    font-size: 24px;
    margin-bottom: 5px;
    color: #fff;
}

/* UPDATED: Decreased price font size */
.price-card .price {
    font-size: 32px;
    color: var(--color-accent);
    margin-bottom: 20px;
}

/* New styling for descriptions in price cards */
.price-card p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.price-card ul {
    margin-bottom: 30px;
    flex-grow: 1;
}

.price-card li {
    margin-bottom: 12px;
    color: #cbd5e1;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.price-card li::before {
    content: "✓";
    color: #000;
    margin-right: 10px;
    font-weight: bold;
    background: var(--color-accent);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- CLIENTS --- */
.section-clients {
    padding: 80px 0;
    border-bottom: 1px solid var(--color-border);
}

.swiper-clients {
    height: 180px;
}

.client-logo {
    width: 100%;
    max-width: 380px;
    max-height: 140px;
    object-fit: contain;
    filter: grayscale(1) brightness(1.5);
    opacity: 0.6;
    transition: 0.4s;
}

.client-logo:hover {
    filter: grayscale(0) brightness(1);
    opacity: 1;
}

/* --- TEAM --- */
.section-team {
    padding: var(--gap-section) 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--color-bg-card);
    padding: 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    position: relative;
    height: 380px;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.5);
    transition: 0.5s;
}

.team-card:hover .team-img {
    filter: grayscale(0) brightness(0.6);
}

/* Updated team-info background for better readability on hover */
.team-info {
    padding: 25px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
    z-index: 2;
    transition: 0.4s;
}

.team-card h4 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 5px;
}

.team-role {
    color: var(--color-accent);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Skills Animation */
.team-skills {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateY(20px);
}

.team-card:hover .team-skills {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 10px;
}

.team-skills span {
    display: inline-block;
    font-size: 11px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* --- FAQ --- */
.section-faq {
    padding: 120px 0;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: #fff;
    padding: 30px 0;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 500;
    transition: 0.3s;
}

.faq-question:hover {
    color: var(--color-accent);
    padding-left: 10px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: 0.3s;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* --- LEAD MAGNET --- */
.section-lead {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 212, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.lead-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.lead-content {
    flex: 1;
}

.lead-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 140px;
    height: 180px;
    border-radius: 12px;
    margin-right: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: rotate(-5deg);
    float: left;
}

.lead-visual svg {
    width: 60px;
    height: 60px;
    fill: var(--color-accent);
}

.lead-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.lead-icon {
    font-size: 48px;
    color: var(--color-accent);
    margin-bottom: 20px;
    display: none;
}

/* --- FOOTER --- */
.footer {
    padding: 80px 0;
    border-top: 1px solid var(--color-border);
    background: #020617;
}

.footer-grid-extended {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 50px;
}

.footer-heading {
    font-size: 32px;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.footer-desc {
    color: var(--color-text-muted);
    margin-bottom: 30px;
    font-size: 14px;
    max-width: 300px;
}

.footer-link-accent {
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 20px;
}

.footer-subheading {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-contacts a {
    display: block;
    color: #fff;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 500;
}

.footer-contacts p {
    color: var(--color-text-muted);
    margin-top: 10px;
    font-size: 14px;
}

.footer-text {
    color: var(--color-text-muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.qr-block {
    border: 2px solid var(--color-accent);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0, 212, 255, 0.05);
    margin-bottom: 20px;
}

.qr-img {
    width: 150px;
    height: 150px;
}

.qr-text {
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    max-width: 100px;
}

.footer-note {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.copyright-bar {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 12px;
    color: #64748b;
}

.copyright-links {
    display: flex;
    gap: 20px;
}

.copyright-links a {
    color: #64748b;
    text-decoration: none;
    transition: 0.3s;
}

.copyright-links a:hover {
    color: var(--color-accent);
}

#back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 30px;
    height: 30px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: 0.4s;
    box-shadow: 0 0 20px var(--color-accent-glow);
}

#back-top.show {
    opacity: 1;
}

#back-top svg {
    width: 16px;
    height: 16px;
    fill: #000;
}

@media (max-width: 992px) {

    .bento-grid,
    .pricing-grid,
    .case-block {
        grid-template-columns: 1fr;
    }

    .lead-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .design-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .design-info {
        padding-right: 0;
        text-align: center;
    }

    .case-block.reverse {
        direction: ltr;
    }

    .footer-grid-extended {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .copyright-bar {
        flex-direction: column;
        text-align: center;
    }

    .floating-messengers {
        display: none;
    }

    #back-top {
        bottom: 30px;
        right: 20px;
    }

    .phone {
        display: none;
    }

    .btn-icon.phone-icon-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--color-accent);
    }

    .lead-visual {
        float: none;
        margin: 0 auto 20px;
        transform: rotate(0);
    }

    .lead-content {
        text-align: center;
    }

    .stats-bar {
        display: none;
    }

    .nav-menu {
        display: none;
    }

    .header-actions .btn:not(.btn-icon) {
        display: none;
    }

    .hero-actions .btn-white {
        display: none;
    }

    .bento-card.full-width {
        grid-column: span 1;
        flex-direction: column;
    }

    .burger {
        display: block;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .section-title {
        font-size: 32px;
    }

    .bento-card h3 {
        font-size: 26px;
    }

    .design-info .section-title {
        text-align: left !important;
        font-size: 28px;
    }

    .price-card.featured {
        transform: scale(1);
    }

    .lead-form {
        flex-direction: column;
        width: 100%;
    }

    .case-metrics {
        flex-wrap: wrap;
        justify-content: center;
    }

    .client-logo {
        max-width: 260px;
    }

    .case-content h3 {
        font-size: 24px;
    }

    .case-content {
        text-align: center;
    }

    .case-content .btn {
        display: flex;
        margin: 0 auto;
        width: 100%;
    }

    .case-block {
        padding: 20px;
    }
}







/* --- DESIGN GALLERY --- */
.section-design {
    padding: var(--gap-section) 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.design-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 40px;
}

.design-info {
    padding-right: 20px;
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.design-info-content {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.text-fade-out {
    opacity: 0;
    transform: translateY(15px);
}

.case-tag {
    color: var(--color-accent);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 15px;
    display: inline-block;
}

.design-info h2 {
    font-size: 42px;
    margin: 20px 0;
    color: #fff;
    text-align: left;
}

.design-info p {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
    font-size: 16px;
}

.design-display {
    min-width: 0;
    position: relative;
}

.gallery-top {
    width: 100%;
    border-radius: 24px;
    border: none;
    overflow: hidden;
    background: transparent;
    margin-bottom: 20px;
}

.gallery-top .swiper-slide {
    aspect-ratio: 16/9;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 24px;
}

.gallery-thumbs {
    box-sizing: border-box;
    padding: 10px 0;
    min-width: 0;
}

.gallery-thumbs .swiper-slide {
    width: 20%;
    aspect-ratio: 16/9;
    filter: brightness(0.6) grayscale(0.4);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid transparent;
    background-color: rgba(255, 255, 255, 0.02);
}

.gallery-thumbs .swiper-slide-thumb-active {
    filter: brightness(1) grayscale(0);
    border-color: var(--color-accent);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.design-thumbs-wrapper {
    position: relative;
    padding: 0 60px;
}

.design-nav-prev,
.design-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    cursor: pointer;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.design-nav-prev:hover,
.design-nav-next:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.design-nav-prev {
    left: 0;
}

.design-nav-next {
    right: 0;
}

.design-pagination {
    position: relative;
    margin-top: 20px;
    text-align: center;
}

.design-pagination .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.2;
    width: 8px;
    height: 8px;
    margin: 0 6px;
}

.design-pagination .swiper-pagination-bullet-active {
    background: var(--color-accent);
    opacity: 1;
    transform: scale(1.2);
}

/* --- ALL PROJECTS GRID --- */
.section-all-projects {
    padding: var(--gap-section) 0;
}

.filter-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 60px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 13px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.filter-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #000;
    font-weight: 700;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.project-item {
    background: var(--color-bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 1;
    transform: scale(1);
}

.project-item.hide {
    display: none;
    opacity: 0;
    transform: scale(0.9);
}

.project-item:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.project-card-preview {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: transparent;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
    opacity: 0.9;
}

.project-item:hover .project-card-preview img {
    transform: scale(1.05);
    opacity: 1;
}

.project-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 8, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-item:hover .project-card-overlay {
    opacity: 1;
}

.project-card-details {
    padding: 25px;
}

.project-card-details h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #fff;
    text-transform: none;
}

.project-card-details p {
    font-size: 13px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- SOCIALS SECTION (GLASS) --- */
.section-social {
    padding: var(--gap-section) 0;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}



/* --- RESULTS IMPLEMENTATION --- */
.section-cases {
    padding: var(--gap-section) 0;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-top: -10px;
    margin-bottom: 60px;
    font-size: 18px;
}

.case-block {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 100px;
    background: rgba(255, 255, 255, 0.02);
    padding: 50px;
    border-radius: 40px;
    border: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
}

.case-block.reverse {
    flex-direction: row-reverse;
}

.case-block:hover .case-img {
    transform: scale(1.05);
}

.case-content {
    flex: 1;
    min-width: 0;
}

.case-content h3 {
    font-size: 40px;
    margin-bottom: 20px;
    color: #fff;
}

.case-metrics {
    display: flex;
    gap: 40px;
    margin: 30px 0;
}

.metric {
    border-left: 2px solid var(--color-accent);
    padding-left: 20px;
}

.metric div {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.metric small {
    color: var(--color-text-muted);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    margin-top: 5px;
    display: block;
}


@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-block {
        flex-direction: column;
        gap: 40px;
        padding: 30px;
    }

    .case-block.reverse {
        flex-direction: column;
    }
}

@media (max-width: 992px) {
    .footer-grid-extended {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nav-menu {
        display: none;
    }

    .header-actions .btn:not(.btn-icon) {
        display: none;
    }

    .phone {
        display: none;
    }

    .burger {
        display: block;
    }

    .design-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .design-info {
        height: auto;
        min-height: auto;
        margin-bottom: 30px;
        text-align: left;
    }
}

@media (max-width: 640px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .case-content h3 {
        font-size: 28px;
    }

    .case-metrics {
        flex-direction: column;
        gap: 20px;
    }
}

/* MODALS */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(3, 5, 8, 0.95);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.modal.open {
    display: flex;
}

.modal-content {
    background: #1e293b;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
    transition: 0.3s;
}

.form-input {
    width: 100%;
    padding: 16px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    color: #fff;
    border-radius: 8px;
    font-family: var(--font-main);
}

.form-select {
    width: 100%;
    padding: 16px;
    margin-bottom: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    color: #fff;
    border-radius: 8px;
    font-family: var(--font-main);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    padding-right: 50px;
    cursor: pointer;
}

.form-select option {
    background: #1e293b;
    color: #fff;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--color-accent);
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
}

#successModal .modal-content {
    text-align: center;
}

#successModal h3 {
    color: var(--color-accent);
    font-size: 32px;
    margin-bottom: 20px;
}

#successModal p {
    font-size: 18px;
    color: #fff;
    margin-bottom: 30px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--color-accent);
}

.review-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- PORTFOLIO SPECIFIC STYLES (FROM STYLE-PORT) --- */

/* --- DESIGN GALLERY (PORTFOLIO) --- */
.section-design {
    padding: var(--gap-section) 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.design-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 40px;
}

.design-info {
    padding-right: 20px;
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.design-info-content {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.text-fade-out {
    opacity: 0;
    transform: translateY(15px);
}

.case-tag {
    color: var(--color-accent);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 15px;
    display: inline-block;
}

.design-info h2 {
    font-size: 42px;
    margin: 20px 0;
    color: #fff;
    text-align: left;
}

.design-info p {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
    font-size: 16px;
}

.design-display {
    min-width: 0;
    position: relative;
}

.gallery-top {
    width: 100%;
    border-radius: 24px;
    border: none;
    overflow: hidden;
    background: transparent;
    margin-bottom: 20px;
}

.gallery-top .swiper-slide {
    aspect-ratio: 16/9;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 24px;
}

.gallery-thumbs {
    box-sizing: border-box;
    padding: 10px 0;
    min-width: 0;
}

.gallery-thumbs .swiper-slide {
    width: 20%;
    aspect-ratio: 16/9;
    filter: brightness(0.6) grayscale(0.4);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid transparent;
    background-color: rgba(255, 255, 255, 0.02);
}

.gallery-thumbs .swiper-slide-thumb-active {
    filter: brightness(1) grayscale(0);
    border-color: var(--color-accent);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.design-thumbs-wrapper {
    position: relative;
    padding: 0 60px;
}

.design-nav-prev,
.design-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    cursor: pointer;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.design-nav-prev:hover,
.design-nav-next:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.design-nav-prev {
    left: 0;
}

.design-nav-next {
    right: 0;
}

.design-pagination {
    position: relative;
    margin-top: 20px;
    text-align: center;
}

.design-pagination .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.2;
    width: 8px;
    height: 8px;
    margin: 0 6px;
}

.design-pagination .swiper-pagination-bullet-active {
    background: var(--color-accent);
    opacity: 1;
    transform: scale(1.2);
}

/* --- ALL PROJECTS GRID (PORTFOLIO) --- */
.section-all-projects {
    padding: var(--gap-section) 0;
}

.filter-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 60px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 13px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.filter-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #000;
    font-weight: 700;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.project-item {
    background: var(--color-bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 1;
    transform: scale(1);
}

.project-item.hide {
    display: none;
    opacity: 0;
    transform: scale(0.9);
}

.project-item:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.project-card-preview {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: transparent;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
    opacity: 0.9;
}

.project-item:hover .project-card-preview img {
    transform: scale(1.05);
    opacity: 1;
}

.project-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 8, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-item:hover .project-card-overlay {
    opacity: 1;
}

.project-card-details {
    padding: 25px;
}

.project-card-details h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #fff;
    text-transform: none;
}

.project-card-details p {
    font-size: 13px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- SOCIALS SECTION (GLASS) --- */
.section-social {
    padding: var(--gap-section) 0;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.social-slider-wrapper {
    cursor: grab;
}

.social-slider-wrapper:active {
    cursor: grabbing;
}

.social-swiper {
    margin-top: 40px;
    padding: 20px 0;
}

.social-slide {
    height: 400px !important;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.3s;
    user-select: none;
}

.social-slide:hover {
    border-color: var(--color-accent);
}

.social-slide img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    opacity: 0.7;
    transition: 0.5s;
    pointer-events: none;
}

.social-slide:hover img {
    opacity: 1;
    transform: scale(1.05);
}

.social-slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(0deg, rgba(3, 5, 8, 0.9) 0%, transparent 100%);
    color: #fff;
}

.social-slide-info h5 {
    font-size: 16px;
    font-family: var(--font-main);
    text-transform: none;
    margin-bottom: 5px;
}

.social-slide-info span {
    font-size: 12px;
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
}

/* --- ADDITIONAL PORTFOLIO MEDIA --- */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .design-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .design-info {
        height: auto;
        min-height: auto;
        margin-bottom: 30px;
        text-align: left;
    }
}

@media (max-width: 640px) {
    .filter-nav {
        display: none;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}