/* ============================================
   DENIS.DEV - Premium Design System
   ============================================ */

:root {
    --c-dark: #06060a;
    --c-dark-2: #0c0c12;
    --c-dark-3: #12121a;
    --c-light: #ffffff;
    --c-light-2: #e5e5e5;
    --c-muted: #6b6b7a;
    --c-primary: #3b82f6;
    --c-accent: #8b5cf6;
    --c-pink: #ec4899;
    --c-green: #10b981;
    --c-border: rgba(255, 255, 255, 0.06);

    --font-body: 'Inter', -apple-system, sans-serif;
    --font-display: 'Manrope', sans-serif;

    --container: 1200px;
    --header-h: 80px;
    --radius: 16px;
    --radius-lg: 24px;

    --gradient: linear-gradient(135deg, var(--c-primary), var(--c-accent), var(--c-pink));
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--c-dark);
    color: var(--c-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

section {
    overflow: hidden;

}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Section Tags */
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--c-primary);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.btn--glow {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 30px rgba(59, 130, 246, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.btn--glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(59, 130, 246, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.03);
    color: var(--c-light);
    border: 1px solid var(--c-border);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn--primary {
    background: var(--gradient);
    color: white;
}

.btn--large {
    padding: 20px 44px;
    font-size: 1rem;
}

.btn--full {
    width: 100%;
}

.btn__icon {
    font-size: 0;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    z-index: 1000;
    background: rgba(6, 6, 10, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--c-border);
}

.header__container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
}

.header__logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.header__menu {
    display: flex;
    gap: 40px;
}

.header__link {
    font-size: 0.9rem;
    color: var(--c-muted);
    transition: 0.3s;
    position: relative;
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: 0.3s;
}

.header__link:hover {
    color: var(--c-light);
}

.header__link:hover::after {
    width: 100%;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header__burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.header__burger span {
    width: 22px;
    height: 2px;
    background: white;
}

/* ============================================
   HERO - Creative Impact
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: calc(var(--header-h) + 60px) 0 120px;
    overflow: hidden;
    background: var(--c-dark);
}

/* Grid Lines */
.hero__grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10%;
    pointer-events: none;
}

.hero__grid-line {
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.03) 20%, rgba(255, 255, 255, 0.03) 80%, transparent);
}

/* Glows */
.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.hero__glow--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.hero__glow--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
}

.hero__glow--3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
    top: 40%;
    left: 30%;
}

.hero__container {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero__status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--c-green);
    margin-bottom: 32px;
}

.hero__status-dot {
    width: 8px;
    height: 8px;
    background: var(--c-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
}

.hero__title {
    margin-bottom: 24px;
}

.hero__title-small {
    display: block;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--c-muted);
    margin-bottom: 12px;
}

.hero__title-main {
    display: block;
}

.hero__title-word {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -3px;
    position: relative;
}

.hero__title-word--accent {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__desc {
    font-size: 1.15rem;
    color: var(--c-muted);
    margin-bottom: 40px;
    max-width: 480px;
    line-height: 1.7;
}

.hero__cta {
    display: flex;
    gap: 16px;
}

/* Hero Right - Floating Cards */
.hero__right {
    position: relative;
    height: 500px;
}

.hero__card {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero__card:hover {
    transform: translateY(-10px) scale(1.02);
}

.hero__card--main {
    top: 50px;
    left: 0;
    width: 200px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.1));
    border-color: rgba(59, 130, 246, 0.2);
    z-index: 3;
}

.hero__card--secondary {
    top: 0;
    right: 40px;
    width: 180px;
    z-index: 2;
}

.hero__card--tertiary {
    bottom: 80px;
    right: 0;
    width: 160px;
    z-index: 1;
}

.hero__card-num {
    display: block;
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.hero__card-label {
    font-size: 0.9rem;
    color: var(--c-muted);
}

/* Orbit */
.hero__orbit {
    position: absolute;
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: spin 30s linear infinite;
}

.hero__orbit-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--c-primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--c-primary);
}

.hero__orbit-dot:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero__orbit-dot:nth-child(2) {
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
}

.hero__orbit-dot:nth-child(3) {
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
    background: var(--c-accent);
    box-shadow: 0 0 20px var(--c-accent);
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Hero Scroll */
.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--c-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero__scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: relative;
}

.hero__scroll-mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: var(--c-primary);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {

    0%,
    100% {
        opacity: 1;
        top: 8px;
    }

    50% {
        opacity: 0.3;
        top: 20px;
    }
}

/* Hero Marquee */
.hero__marquee {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: linear-gradient(to right, var(--c-dark), transparent 10%, transparent 90%, var(--c-dark));
    border-top: 1px solid var(--c-border);
    overflow: hidden;
}

.hero__marquee-track {
    display: flex;
    gap: 40px;
    animation: marquee 20s linear infinite;
    width: max-content;
}

.hero__marquee-track span {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.15);
    white-space: nowrap;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   ABOUT - Animated Creative
   ============================================ */
.about {
    padding: 120px 0;
    position: relative;
    background: linear-gradient(180deg, var(--c-dark) 0%, var(--c-dark-2) 50%, var(--c-dark) 100%);
}

.about__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 50% 30% at 20% 30%, rgba(59, 130, 246, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 80% 70%, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.about__header {
    text-align: center;
    margin-bottom: 80px;
}

.about__grid {
    display: grid;
    grid-template-columns: 300px 1fr 1fr;
    gap: 50px;
    align-items: start;
}

/* Photo Block */
.about__photo-block {
    position: relative;
}

.about__photo {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about__photo img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    filter: grayscale(20%);
    transition: 0.5s;
}

.about__photo:hover img {
    filter: grayscale(0);
    transform: scale(1.05);
}

.about__photo-frame {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid transparent;
    border-image: var(--gradient) 1;
    border-radius: var(--radius-lg);
    pointer-events: none;
}

.about__name-card {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--c-dark-3);
    border: 1px solid var(--c-border);
    padding: 16px 32px;
    border-radius: var(--radius);
    text-align: center;
    white-space: nowrap;
}

.about__name-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.about__name-card p {
    font-size: 0.8rem;
    color: var(--c-muted);
}

/* Content */
.about__text-block {
    margin-bottom: 40px;
}

.about__lead {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--c-light);
}

.about__text-block p {
    color: var(--c-muted);
    line-height: 1.8;
}

.about__text-block strong {
    color: var(--c-light);
}

/* Skills */
.about__skills {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about__skill {
    display: flex;
    align-items: center;
    gap: 16px;
}

.about__skill-name {
    width: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--c-muted);
}

.about__skill-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.about__skill-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 3px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about__skill[data-progress="95"] .about__skill-fill {
    width: 95%;
}

.about__skill[data-progress="90"] .about__skill-fill {
    width: 90%;
}

.about__skill[data-progress="85"] .about__skill-fill {
    width: 85%;
}

/* Stats Grid */
.about__stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about__stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: 0.4s;
}

.about__stat-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-5px);
}

.about__stat-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 10px;
}

.about__stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about__stat-label {
    font-size: 0.8rem;
    color: var(--c-muted);
}

/* ============================================
   APPROACH - Horizontal Steps
   ============================================ */
.approach {
    padding: 120px 0;
    background: var(--c-dark);
}

.approach__header {
    text-align: center;
    margin-bottom: 80px;
}

.approach__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.approach__step {
    position: relative;
}

.approach__step-num {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    margin-bottom: 16px;
}

.approach__step-line {
    position: absolute;
    top: 40px;
    right: -15px;
    width: calc(100% - 60px);
    height: 1px;
    background: linear-gradient(to right, var(--c-primary), transparent);
    opacity: 0.3;
}

.approach__step:last-child .approach__step-line {
    display: none;
}

.approach__step-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 30px;
    transition: 0.4s;
}

.approach__step:hover .approach__step-content {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), transparent);
    transform: translateY(-5px);
}

.approach__step-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.approach__step-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.approach__step-content p {
    font-size: 0.9rem;
    color: var(--c-muted);
    line-height: 1.6;
}

/* ============================================
   SERVICES - Enhanced Cards
   ============================================ */
.services {
    padding: 120px 0;
    position: relative;
    background: linear-gradient(180deg, var(--c-dark) 0%, var(--c-dark-2) 100%);
}

.services__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.services__header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.service {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: 0.5s;
}

.service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: 0.4s;
}

.service:hover::before {
    opacity: 1;
}

.service:hover {
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.service__icon-wrap {
    position: relative;
    width: 70px;
    height: 70px;
    margin-bottom: 24px;
}

.service__icon {
    position: relative;
    z-index: 1;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius);
}

.service__icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: var(--c-primary);
    filter: blur(30px);
    opacity: 0.3;
    transform: translate(-50%, -50%);
}

.service__num {
    position: absolute;
    top: 30px;
    right: 30px;
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    line-height: 1;
}

.service__title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service__desc {
    color: var(--c-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service__features {
    margin-bottom: 24px;
}

.service__features li {
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--c-muted);
    position: relative;
}

.service__features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--c-primary);
}

.service__link {
    font-weight: 600;
    color: var(--c-primary);
    transition: 0.3s;
}

.service__link:hover {
    color: var(--c-accent);
}

/* ============================================
   PORTFOLIO - Bento Grid
   ============================================ */
.portfolio {
    padding: 120px 0;
    background: var(--c-dark);
}

.portfolio__header {
    text-align: center;
    margin-bottom: 80px;
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 250px 250px;
    gap: 20px;
}

.portfolio__item {
    background: linear-gradient(135deg, var(--c-dark-3), var(--c-dark-2));
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: 0.5s;
}

.portfolio__item:hover {
    transform: scale(1.02);
}

.portfolio__item--large {
    grid-row: span 2;
}

.portfolio__item--wide {
    grid-column: span 2;
}

.portfolio__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 60%);
}

.portfolio__content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 30px;
    z-index: 1;
}

.portfolio__tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--gradient);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.portfolio__content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.portfolio__content p {
    font-size: 0.85rem;
    color: var(--c-muted);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    padding: 120px 0;
    position: relative;
    background: linear-gradient(180deg, var(--c-dark) 0%, var(--c-dark-2) 50%, var(--c-dark) 100%);
}

.testimonials__bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: var(--gradient);
    filter: blur(200px);
    opacity: 0.05;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.testimonials__slider {
    max-width: 700px;
    margin: 60px auto 0;
    overflow: hidden;
    position: relative;
}

.testimonials__track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial {
    min-width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 50px;
    text-align: center;
}

.testimonial__rating {
    color: #fbbf24;
    font-size: 1.3rem;
    letter-spacing: 4px;
    margin-bottom: 24px;
}

.testimonial__text {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--c-light-2);
    line-height: 1.7;
    margin-bottom: 30px;
}

.testimonial__author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.testimonial__avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.testimonial__author strong {
    display: block;
}

.testimonial__author span {
    font-size: 0.85rem;
    color: var(--c-muted);
}

.testimonials__nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.testimonials__btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--c-border);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.testimonials__btn:hover {
    background: var(--c-primary);
    border-color: var(--c-primary);
}

/* ============================================
   CTA
   ============================================ */
.cta {
    padding: 120px 0;
    text-align: center;
    position: relative;
    background: var(--c-dark);
}

.cta__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 400px;
    background: var(--gradient);
    filter: blur(150px);
    opacity: 0.08;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.cta__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.cta__text {
    color: var(--c-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--c-dark) 0%, var(--c-dark-2) 100%);
}

.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contact__info p {
    color: var(--c-muted);
    margin-bottom: 30px;
}

.contact__methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact__method {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    transition: 0.3s;
}

.contact__method:hover {
    border-color: var(--c-primary);
    background: rgba(59, 130, 246, 0.05);
}

.contact__form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form__group {
    margin-bottom: 16px;
}

.form__group input,
.form__group textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    transition: 0.3s;
}

.form__group input::placeholder,
.form__group textarea::placeholder {
    color: var(--c-muted);
}

.form__group input:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    background: rgba(59, 130, 246, 0.05);
}

.form__group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
    padding: 120px 0;
    background: var(--c-dark);
}

.faq__list {
    max-width: 700px;
    margin: 60px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq__item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq__question {
    width: 100%;
    padding: 22px 25px;
    background: none;
    border: none;
    text-align: left;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq__question span {
    width: 20px;
    height: 20px;
    position: relative;
}

.faq__question span::before,
.faq__question span::after {
    content: '';
    position: absolute;
    background: var(--c-primary);
    transition: 0.4s;
}

.faq__question span::before {
    width: 12px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq__question span::after {
    width: 2px;
    height: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq__item.active .faq__question span::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s;
    padding: 0 25px;
    color: var(--c-muted);
    line-height: 1.7;
}

.faq__item.active .faq__answer {
    padding-bottom: 22px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #030306;
}

.footer__top {
    padding: 60px 0;
    border-bottom: 1px solid var(--c-border);
}

.footer__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer__brand p {
    color: var(--c-muted);
    font-size: 0.9rem;
    margin-top: 10px;
}

.footer__nav {
    display: flex;
    gap: 40px;
}

.footer__nav a {
    color: var(--c-muted);
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer__nav a:hover {
    color: var(--c-light);
}

.footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--c-border);
    border-radius: 50%;
    color: var(--c-muted);
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
}

.footer__social a:hover {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: white;
}

.footer__bottom {
    padding: 25px 0;
}

.footer__bottom p {
    text-align: center;
    color: var(--c-muted);
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: 0.4s;
    z-index: 999;
    box-shadow: 0 5px 30px rgba(59, 130, 246, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
    }

    .hero__right {
        display: none;
    }

    .about__grid {
        grid-template-columns: 1fr 1fr;
    }

    .about__photo-block {
        grid-column: span 2;
        justify-self: center;
    }

    .approach__steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .approach__step-line {
        display: none;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .portfolio__grid {
        grid-template-columns: 1fr 1fr;
    }

    .portfolio__item--large,
    .portfolio__item--wide {
        grid-column: auto;
        grid-row: auto;
    }

    .contact__wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0 !important;
    }

    .header__menu,
    .header__btn {
        display: none;
    }

    .header__burger {
        display: flex;
    }

    .hero__cta {
        flex-direction: column;
    }

    .about__grid {
        grid-template-columns: 1fr;
    }

    .about__photo-block {
        grid-column: auto;
    }

    .approach__steps {
        grid-template-columns: 1fr;
    }

    .portfolio__grid {
        grid-template-columns: 1fr;
    }

    .footer__container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer__nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .form__row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   NEW HERO VISUAL STYLES
   ============================================ */
.hero__visual {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__visual-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--gradient);
    filter: blur(100px);
    opacity: 0.25;
    border-radius: 50%;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 0.35;
        transform: scale(1.1);
    }
}

.hero__stats-block {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 35px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 40px 50px;
}

.hero__stat-item {
    text-align: center;
}

.hero__stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero__stat-text {
    font-size: 0.85rem;
    color: var(--c-muted);
    margin-top: 4px;
}

.hero__stat-divider {
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--c-border), transparent);
}

.hero__tech-orbit {
    position: absolute;
    width: 380px;
    height: 380px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero__orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    animation: orbitSpin 30s linear infinite;
}

.hero__orbit-ring--1 {
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
}

.hero__orbit-ring--2 {
    width: 70%;
    height: 70%;
    transform: translate(-50%, -50%);
    animation-direction: reverse;
    animation-duration: 25s;
}

.hero__orbit-icon {
    position: absolute;
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    animation: orbitFloat 4s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.7s);
    backdrop-filter: blur(10px);
}

.hero__orbit-icon:nth-child(3) {
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
}

.hero__orbit-icon:nth-child(4) {
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
}

.hero__orbit-icon:nth-child(5) {
    top: 50%;
    right: -24px;
    transform: translateY(-50%);
}

.hero__orbit-icon:nth-child(6) {
    top: 50%;
    left: -24px;
    transform: translateY(-50%);
}

@keyframes orbitSpin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes orbitFloat {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.2);
    }

    50% {
        box-shadow: 0 5px 20px rgba(59, 130, 246, 0.3);
    }
}

/* ABOUT TECH STACK */
.about__tech {
    margin-top: 30px;
}

.about__tech-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--c-muted);
    margin-bottom: 16px;
}

.about__tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about__tech-item {
    padding: 10px 10px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--c-light-2);
    transition: all 0.3s ease;
}

.about__tech-item:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

/* PORTFOLIO ENHANCEMENTS */
.portfolio__image {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1a25 0%, #12121a 100%);
    z-index: 0;
}

.portfolio__link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-primary);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.portfolio__item:hover .portfolio__link {
    opacity: 1;
    transform: translateY(0);
}

/* TESTIMONIALS CENTERED */
.testimonials__header {
    text-align: center;
    margin-bottom: 60px;
}

.testimonials__decor {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
}

.testimonials__decor--1 {
    background: var(--c-primary);
    top: 20%;
    left: 10%;
}

.testimonials__decor--2 {
    background: var(--c-accent);
    bottom: 20%;
    right: 10%;
}

/* FAQ CENTERED */
.faq {
    position: relative;
}

.faq__header {
    text-align: center;
    margin-bottom: 60px;
}

.faq__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* ============================================
   PORTFOLIO IMPROVEMENTS
   ============================================ */
.portfolio__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--c-green);
    z-index: 3;
    backdrop-filter: blur(10px);
}

.portfolio__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio__tech {
    font-size: 0.75rem;
    color: var(--c-muted);
    letter-spacing: 0.5px;
}

.portfolio__item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
    z-index: 0;
    opacity: 0;
    transition: 0.5s;
}

.portfolio__item:hover::before {
    opacity: 1;
}

/* ============================================
   CONTACT REDESIGN
   ============================================ */
.contact__desc {
    color: var(--c-muted);
    margin-bottom: 30px;
    line-height: 1.7;
}

.contact__cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact__card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    transition: all 0.4s ease;
}

.contact__card:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(8px);
}

.contact__card-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact__card-info {
    flex: 1;
}

.contact__card-label {
    display: block;
    font-size: 0.8rem;
    color: var(--c-muted);
    margin-bottom: 2px;
}

.contact__card-value {
    font-weight: 600;
    color: var(--c-light);
}

.contact__card-arrow {
    font-size: 1.2rem;
    color: var(--c-muted);
    transition: 0.3s;
}

.contact__card:hover .contact__card-arrow {
    color: var(--c-primary);
    transform: translateX(5px);
}

.form__header {
    margin-bottom: 24px;
}

.form__header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.form__header p {
    color: var(--c-muted);
    font-size: 0.9rem;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
[data-anim] {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-anim="fade-up"] {
    transform: translateY(60px);
}

[data-anim="fade-down"] {
    transform: translateY(-60px);
}

[data-anim="fade-left"] {
    transform: translateX(60px);
}

[data-anim="fade-right"] {
    transform: translateX(-60px);
}

[data-anim="fade-in"] {
    transform: scale(0.95);
}

[data-anim].is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Stagger delays */
.portfolio__item:nth-child(1) {
    transition-delay: 0s;
}

.portfolio__item:nth-child(2) {
    transition-delay: 0.1s;
}

.portfolio__item:nth-child(3) {
    transition-delay: 0.2s;
}

.portfolio__item:nth-child(4) {
    transition-delay: 0.3s;
}

.portfolio__item:nth-child(5) {
    transition-delay: 0.4s;
}

.portfolio__item:nth-child(6) {
    transition-delay: 0.5s;
}

.approach__step:nth-child(1) {
    transition-delay: 0s;
}

.approach__step:nth-child(2) {
    transition-delay: 0.15s;
}

.approach__step:nth-child(3) {
    transition-delay: 0.3s;
}

.approach__step:nth-child(4) {
    transition-delay: 0.45s;
}

.service:nth-child(1) {
    transition-delay: 0s;
}

.service:nth-child(2) {
    transition-delay: 0.1s;
}

.service:nth-child(3) {
    transition-delay: 0.2s;
}

.service:nth-child(4) {
    transition-delay: 0.3s;
}

.about__stat-card:nth-child(1) {
    transition-delay: 0s;
}

.about__stat-card:nth-child(2) {
    transition-delay: 0.1s;
}

.about__stat-card:nth-child(3) {
    transition-delay: 0.2s;
}

.about__stat-card:nth-child(4) {
    transition-delay: 0.3s;
}

/* Section-level animations */
.about__photo-block,
.about__content,
.about__stats-grid,
.approach__step,
.service,
.testimonials__slider,
.faq__list,
.cta__title,
.cta__text {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about__photo-block {
    transform: translateX(-60px);
}

.about__content {
    transform: translateY(40px);
}

.about__stats-grid {
    transform: translateX(60px);
}

.approach__step {
    transform: translateY(40px);
}

.service {
    transform: translateY(50px);
}

.testimonials__slider {
    transform: translateY(40px);
}

.faq__list {
    transform: translateY(40px);
}

.cta__title,
.cta__text {
    transform: translateY(30px);
}

.is-visible .about__photo-block,
.is-visible .about__content,
.is-visible .about__stats-grid,
.is-visible .approach__step,
.is-visible .service,
.is-visible .testimonials__slider,
.is-visible .faq__list,
.is-visible .cta__title,
.is-visible .cta__text,
.about__photo-block.is-visible,
.about__content.is-visible,
.about__stats-grid.is-visible,
.approach__step.is-visible,
.service.is-visible,
.testimonials__slider.is-visible,
.faq__list.is-visible,
.cta__title.is-visible,
.cta__text.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* ============================================
   HERO ANIMATIONS - FIXED
   ============================================ */
.hero__title-word {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__title-word.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero__status,
.hero__desc,
.hero__cta {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero__status.is-visible,
.hero__desc.is-visible,
.hero__cta.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ec4899;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    animation: glitch-anim-1 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: 2px 0 #3b82f6;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    animation: glitch-anim-2 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {

    0%,
    90%,
    100% {
        clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
        transform: translateX(0);
    }

    92% {
        clip-path: polygon(0 15%, 100% 15%, 100% 30%, 0 30%);
        transform: translateX(-3px);
    }

    94% {
        clip-path: polygon(0 50%, 100% 50%, 100% 65%, 0 65%);
        transform: translateX(3px);
    }

    96% {
        clip-path: polygon(0 25%, 100% 25%, 100% 45%, 0 45%);
        transform: translateX(-2px);
    }

    98% {
        clip-path: polygon(0 0, 100% 0, 100% 20%, 0 20%);
        transform: translateX(2px);
    }
}

@keyframes glitch-anim-2 {

    0%,
    88%,
    100% {
        clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
        transform: translateX(0);
    }

    90% {
        clip-path: polygon(0 70%, 100% 70%, 100% 85%, 0 85%);
        transform: translateX(4px);
    }

    93% {
        clip-path: polygon(0 80%, 100% 80%, 100% 95%, 0 95%);
        transform: translateX(-4px);
    }

    95% {
        clip-path: polygon(0 60%, 100% 60%, 100% 75%, 0 75%);
        transform: translateX(3px);
    }

    97% {
        clip-path: polygon(0 75%, 100% 75%, 100% 90%, 0 90%);
        transform: translateX(-3px);
    }
}

/* Hero visual smooth transition */
.hero__visual {
    transition: transform 0.1s linear;
    will-change: transform;
}

.hero__stats-block {
    animation: fadeInUp 0.8s ease 0.5s both;
}

.hero__tech-orbit {
    animation: fadeIn 1s ease 0.8s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ============================================
   HERO - SMOOTH ELEGANT ENTRY (FIXED)
   ============================================ */
.hero__left,
.hero__right {
    opacity: 0;
}

.hero__left {
    animation: heroSlideRight 1s ease-out 0.3s forwards;
}

.hero__right {
    animation: heroSlideLeft 1s ease-out 0.5s forwards;
}

@keyframes heroSlideRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes heroSlideLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Remove old word animations - now inherited */
.hero__title-word {
    opacity: 1;
    transform: none;
}

/* Shimmer text effect for accent word */
.hero__title-word--accent {
    position: relative;
    background: linear-gradient(90deg,
            var(--c-primary) 0%,
            var(--c-accent) 25%,
            var(--c-pink) 50%,
            var(--c-accent) 75%,
            var(--c-primary) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Hero visual - no parallax shake */
.hero__visual {
    transition: none;
}

.hero__stats-block {
    animation: none;
    opacity: 1;
}

.hero__tech-orbit {
    animation: orbitSpin 30s linear infinite;
    opacity: 0.8;
}

/* ============================================
   PORTFOLIO - SCREENSHOT GALLERY (NEW)
   ============================================ */
.portfolio {
    position: relative;
    padding: 120px 0;
}

.portfolio__bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.portfolio__header {
    text-align: center;
    margin-bottom: 60px;
}

.portfolio__subtitle {
    color: var(--c-muted);
    font-size: 1.1rem;
    margin-top: -10px;
}

.portfolio__gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.portfolio__card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--c-dark-2);
    border: 1px solid var(--c-border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.portfolio__card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.portfolio__screen {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
    position: relative;
    overflow: hidden;
}

.portfolio__screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: 0.4s;
}

.portfolio__card:hover .portfolio__screen::before {
    opacity: 1;
}

/* Placeholder pattern for screenshots */
.portfolio__screen::after {
    content: '';
    position: absolute;
    inset: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.portfolio__info {
    padding: 20px;
    background: linear-gradient(to top, var(--c-dark-2), transparent);
}

.portfolio__category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--c-primary);
    margin-bottom: 10px;
}

.portfolio__info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-light);
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 1024px) {
    .portfolio__gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .portfolio__gallery {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FIX: HERO STAT WIDTH (no layout shift)
   ============================================ */
.hero__stat-value {
    min-width: 70px;
    text-align: center;
    display: inline-block;
}

/* ============================================
   FIX: RESTORE HERO ELEMENTS VISIBILITY
   ============================================ */
.hero__status,
.hero__desc,
.hero__cta,
.hero__title-small {
    opacity: 1 !important;
    transform: none !important;
}

/* ============================================
   BLOG SECTION (INDEX)
   ============================================ */
.blog {
    padding: 120px 0;
    position: relative;
    background: var(--c-dark);
}

.blog__bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(139, 92, 246, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.blog__header {
    text-align: center;
    margin-bottom: 60px;
}

.blog__subtitle {
    color: var(--c-muted);
    font-size: 1.1rem;
    margin-top: -10px;
}

.blog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.blog__card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s ease;
}

.blog__card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.blog__card-image {
    height: 275px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.blog__card-category {
    padding: 6px 14px;
    background: var(--gradient);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog__card-content {
    padding: 24px;
}

.blog__card-date {
    font-size: 0.8rem;
    color: var(--c-muted);
}

.blog__card-content h3 {
    margin: 10px 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.blog__card-content h3 a {
    transition: color 0.3s;
}

.blog__card-content h3 a:hover {
    color: var(--c-primary);
}

.blog__card-content p {
    font-size: 0.9rem;
    color: var(--c-muted);
    line-height: 1.6;
}

.blog__more {
    text-align: center;
}

/* ============================================
   BLOG LIST PAGE
   ============================================ */
.blog-page {
    padding-top: var(--header-h);
}

.blog-page__hero {
    padding: 80px 0 60px;
    position: relative;
    background: linear-gradient(180deg, var(--c-dark) 0%, var(--c-dark-2) 100%);
}

.blog-page__glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: var(--gradient);
    filter: blur(150px);
    opacity: 0.08;
}

.blog-page__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -2px;
}

.blog-page__desc {
    color: var(--c-muted);
    font-size: 1.15rem;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 30px;
}

.breadcrumbs__list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--c-muted);
}

.breadcrumbs__item:not(:last-child)::after {
    content: '/';
    color: var(--c-border);
}

.breadcrumbs__item a {
    color: var(--c-muted);
    transition: color 0.3s;
}

.breadcrumbs__item a:hover {
    color: var(--c-primary);
}

.breadcrumbs__item--active {
    color: var(--c-light);
}

/* Blog Filters */
.blog-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.blog-filter {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--c-border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--c-muted);
    cursor: pointer;
    transition: all 0.3s;
}

.blog-filter:hover,
.blog-filter--active {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: white;
}

/* Blog List */
.blog-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.blog-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
}

.blog-card__image {
    display: block;
    height: 370px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
    position: relative;
    padding: 20px;
}

.blog-card__category {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 14px;
    background: var(--gradient);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-card__body {
    padding: 24px;
}

.blog-card__meta {
    display: flex;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--c-muted);
    margin-bottom: 14px;
}

.blog-card h2 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 12px;
}

.blog-card h2 a {
    transition: color 0.3s;
}

.blog-card h2 a:hover {
    color: var(--c-primary);
}

.blog-card p {
    color: var(--c-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-card__author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.blog-card__avatar {
    width: 32px;
    height: 32px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

.blog-card__link {
    color: var(--c-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 60px 0;
}

.pagination__btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--c-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-muted);
    transition: all 0.3s;
}

.pagination__btn:hover {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: white;
}

.pagination__pages {
    display: flex;
    gap: 6px;
}

.pagination__page {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
    color: var(--c-muted);
    transition: all 0.3s;
}

.pagination__page:hover,
.pagination__page--active {
    background: var(--c-primary);
    color: white;
}

.pagination__dots {
    color: var(--c-muted);
    padding: 0 8px;
}

/* ============================================
   ARTICLE SINGLE PAGE
   ============================================ */
.article {
    padding-top: var(--header-h);
}

.article__hero {
    padding: 80px 0 60px;
    position: relative;
    background: linear-gradient(180deg, var(--c-dark) 0%, var(--c-dark-2) 100%);
}

.article__hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
}

.article__header {
    max-width: 800px;
}

.article__category {
    display: inline-block;
    padding: 8px 18px;
    background: var(--gradient);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.article__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.article__author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.article__avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.article__author strong {
    display: block;
}

.article__author span {
    font-size: 0.85rem;
    color: var(--c-muted);
}

.article__info {
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--c-muted);
}

/* Article Layout */
.article__layout {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 60px;
    padding: 60px 0;
}

/* Table of Contents */
.toc {
    position: sticky;
    top: 100px;
}

.toc h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--c-muted);
    margin-bottom: 16px;
}

.toc nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toc__link {
    font-size: 0.9rem;
    color: var(--c-muted);
    padding-left: 16px;
    border-left: 2px solid transparent;
    transition: all 0.3s;
}

.toc__link:hover,
.toc__link--active {
    color: var(--c-light);
    border-color: var(--c-primary);
}

/* Prose Styles */
.prose {
    max-width: 700px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--c-light-2);
}

.prose h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 48px 0 20px;
    color: var(--c-light);
}

.prose h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 36px 0 16px;
    color: var(--c-light);
}

.prose p {
    margin-bottom: 20px;
}

.prose .lead {
    font-size: 1.25rem;
    color: var(--c-light);
    line-height: 1.7;
    margin-bottom: 32px;
}

.prose strong {
    color: var(--c-light);
    font-weight: 600;
}

.prose a {
    color: var(--c-primary);
    text-decoration: underline;
}

.prose ul,
.prose ol {
    margin: 20px 0;
    padding-left: 24px;
}

.prose li {
    margin-bottom: 10px;
}

.prose ul li::marker {
    color: var(--c-primary);
}

.prose ol li::marker {
    color: var(--c-primary);
    font-weight: 600;
}

.prose blockquote {
    margin: 32px 0;
    padding: 24px 30px;
    background: rgba(59, 130, 246, 0.05);
    border-left: 4px solid var(--c-primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--c-light);
}

.prose blockquote p {
    margin: 0;
}

.prose pre {
    margin: 24px 0;
    padding: 24px;
    background: #0d0d14;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow-x: auto;
}

.prose code {
    font-family: 'Fira Code', 'Monaco', monospace;
    font-size: 0.9rem;
    color: #e5e5e5;
}

.prose p code {
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: var(--c-accent);
}

.prose table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
}

.prose th,
.prose td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--c-border);
}

.prose th {
    background: rgba(255, 255, 255, 0.02);
    font-weight: 600;
    color: var(--c-light);
}

.prose figure {
    margin: 32px 0;
}

.prose figcaption {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--c-muted);
    text-align: center;
}

/* Callouts */
.callout {
    margin: 24px 0;
    padding: 20px 24px;
    border-radius: var(--radius);
    border-left: 4px solid;
}

.callout strong {
    display: block;
    margin-bottom: 8px;
}

.callout p {
    margin: 0;
    font-size: 0.95rem;
}

.callout--info {
    background: rgba(59, 130, 246, 0.08);
    border-color: var(--c-primary);
}

.callout--warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: #f59e0b;
}

.callout--success {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--c-green);
}

/* Article Sidebar */
.article__sidebar {
    position: sticky;
    top: 100px;
}

.article__share {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article__share span {
    font-size: 0.8rem;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.share-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--c-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
}

.share-btn:hover {
    background: var(--c-primary);
    border-color: var(--c-primary);
}

/* Author Box */
.author-box {
    display: flex;
    gap: 24px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    margin: 60px 0;
}

.author-box__avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.author-box__info h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.author-box__info p {
    color: var(--c-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.btn--sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* Related Posts */
.related-posts {
    padding: 60px 0;
    border-top: 1px solid var(--c-border);
}

.related-posts h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.blog-card--horizontal {
    display: flex;
}

.blog-card--horizontal .blog-card__image {
    width: 200px;
    height: auto;
    flex-shrink: 0;
}

.blog-card--horizontal .blog-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-card--horizontal time {
    font-size: 0.8rem;
    color: var(--c-muted);
}

.blog-card--horizontal h4 {
    font-size: 1rem;
    margin-top: 8px;
    line-height: 1.4;
}

.blog-card--horizontal h4 a:hover {
    color: var(--c-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .blog__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article__layout {
        grid-template-columns: 1fr;
    }

    .article__toc,
    .article__sidebar {
        display: none;
    }
}

@media (max-width: 768px) {

    .blog__grid,
    .blog-list {
        grid-template-columns: 1fr;
    }

    .related-posts__grid {
        grid-template-columns: 1fr;
    }

    .blog-card--horizontal {
        flex-direction: column;
    }

    .blog-card--horizontal .blog-card__image {
        width: 100%;
        height: 150px;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   SUBTLE PARALLAX EFFECTS
   ============================================ */
.parallax-bg {
    transform: translateZ(0);
    will-change: transform;
}

/* Services background parallax */
.services__bg {
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 20% 80%, rgba(139, 92, 246, 0.04) 0%, transparent 40%),
        radial-gradient(ellipse 40% 30% at 80% 60%, rgba(236, 72, 153, 0.03) 0%, transparent 40%);
}

/* About floating elements */
.about__photo::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius);
    animation: floatSlow 6s ease-in-out infinite;
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(5px, -10px) rotate(2deg);
    }

    50% {
        transform: translate(-5px, -5px) rotate(-1deg);
    }

    75% {
        transform: translate(3px, -8px) rotate(1deg);
    }
}

/* Testimonials floating decor */
.testimonials__decor {
    animation: floatDecor 8s ease-in-out infinite;
}

.testimonials__decor--2 {
    animation-delay: -4s;
}

@keyframes floatDecor {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -20px);
    }
}

/* Portfolio card tilt on hover */
.portfolio__card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.portfolio__card:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
}

/* Blog cards subtle float */
.blog__card:nth-child(2) {
    animation: blogFloat 5s ease-in-out infinite;
    animation-delay: -1.5s;
}

@keyframes blogFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* CTA glow pulse */
.cta__glow {
    animation: ctaGlowPulse 4s ease-in-out infinite;
}

@keyframes ctaGlowPulse {

    0%,
    100% {
        opacity: 0.08;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.12;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* FAQ glow drift */
.faq__glow {
    animation: glowDrift 10s ease-in-out infinite;
}

@keyframes glowDrift {

    0%,
    100% {
        transform: translate(-50%, -50%);
    }

    50% {
        transform: translate(-45%, -55%);
    }
}

/* Approach step lines animated */
.approach__step-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30px;
    background: linear-gradient(to right, var(--c-primary), transparent);
    animation: lineMove 2s ease-in-out infinite;
}

@keyframes lineMove {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateX(300%);
        opacity: 0;
    }
}

/* ============================================
   HERO CODE WINDOW (replaces stats)
   ============================================ */
.hero__code-window {
    position: relative;
    z-index: 2;
    background: rgba(13, 13, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    max-width: 380px;
}

.hero__code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero__code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.hero__code-dot--red {
    background: #ff5f57;
}

.hero__code-dot--yellow {
    background: #febc2e;
}

.hero__code-dot--green {
    background: #28c840;
}

.hero__code-title {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--c-muted);
    font-family: 'Fira Code', monospace;
}

.hero__code-body {
    padding: 20px 24px;
}

.hero__code-body code {
    font-family: 'Fira Code', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

.code-line {
    display: block;
}

.code-purple {
    color: #c678dd;
}

.code-blue {
    color: #61afef;
}

.code-green {
    color: #98c379;
}

.code-orange {
    color: #e5c07b;
}

.code-gray {
    color: #28c840;
}

/* ============================================
   PORTFOLIO BENTO GRID (creative layout)
   ============================================ */
.portfolio__floating {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    opacity: 0.5;
}

.portfolio__floating--1 {
    background: rgba(59, 130, 246, 0.15);
    top: 10%;
    left: -5%;
    animation: floatSlow 10s ease-in-out infinite;
}

.portfolio__floating--2 {
    background: rgba(139, 92, 246, 0.12);
    bottom: 10%;
    right: -5%;
    animation: floatSlow 12s ease-in-out infinite reverse;
}

.portfolio__bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 20px;
}

.bento__item {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.bento__item:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.bento__item--featured {
    grid-column: span 2;
    grid-row: span 2;
}

.bento__item--tall {
    grid-row: span 2;
}

.bento__item--wide {
    grid-column: span 2;
}

.bento__screen {
    flex: 1;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
    position: relative;
}

.bento__browser-bar {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
}

.bento__browser-bar span {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.bento__content {
    padding: 20px;
    background: linear-gradient(to top, var(--c-dark-2) 60%, transparent);
}

.bento__badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 0.7rem;
    margin-bottom: 8px;
}

.bento__category {
    display: block;
    font-size: 0.7rem;
    color: var(--c-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.bento__content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.bento__item--featured .bento__content h3 {
    font-size: 1.5rem;
}

.bento__content p {
    font-size: 0.85rem;
    color: var(--c-muted);
    margin-top: 8px;
}

.bento__stack {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.bento__stack span {
    padding: 4px 10px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    font-size: 0.7rem;
    color: var(--c-primary);
}

/* Bot mockup */
.bento__item--bot {
    background: linear-gradient(180deg, #1a1a2e 0%, var(--c-dark-2) 100%);
}

.bento__bot-mockup {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.bot-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.8rem;
    animation: botType 0.5s ease both;
}

.bot-message--in {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.bot-message--out {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.bot-message:nth-child(2) {
    animation-delay: 0.3s;
}

.bot-message:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes botType {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio__cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--c-border);
}

.portfolio__cta p {
    color: var(--c-muted);
}

/* ============================================
   TESTIMONIALS CREATIVE BACKGROUND
   ============================================ */
.testimonials {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--c-dark) 0%, var(--c-dark-2) 50%, var(--c-dark) 100%);
}

.testimonials__pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}

.testimonials__glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.testimonials__glow--1 {
    background: rgba(59, 130, 246, 0.15);
    top: 0;
    left: 15%;
    animation: floatDecor 8s ease-in-out infinite;
}

.testimonials__glow--2 {
    background: rgba(139, 92, 246, 0.12);
    bottom: 0;
    right: 15%;
    animation: floatDecor 10s ease-in-out infinite reverse;
}

.testimonials__quotes {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: Georgia, serif;
    font-size: 40rem;
    color: rgba(255, 255, 255, 0.01);
    pointer-events: none;
    line-height: 1;
    z-index: 0;
}

/* Responsive Bento */
@media (max-width: 1024px) {
    .portfolio__bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento__item--featured {
        grid-column: span 2;
        grid-row: span 1;
    }

    .bento__item--tall {
        grid-row: span 1;
    }
}

@media (max-width: 600px) {
    .portfolio__bento {
        grid-template-columns: 1fr;
    }

    .bento__item--featured,
    .bento__item--wide {
        grid-column: span 1;
    }

    .hero__code-window {
        max-width: 100%;
    }

    .hero__code-body code {
        font-size: 0.8rem;
    }
}

/* ============================================
   PORTFOLIO SHOWCASE (Real Screenshots)
   ============================================ */
.portfolio__subtitle {
    color: var(--c-muted);
    font-size: 1.1rem;
    margin-top: -10px;
}

.portfolio__showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.showcase__item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--c-dark-2);
    border: 1px solid var(--c-border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.showcase__item:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(59, 130, 246, 0.2),
        0 0 40px rgba(59, 130, 246, 0.1);
}

.showcase__item--featured {
    grid-column: span 2;
}

.showcase__item--wide {
    grid-column: span 2;
}

.showcase__image {
    position: relative;
    overflow: hidden;
}

.showcase__image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase__item:hover .showcase__image img {
    transform: scale(1.08);
}

.showcase__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(6, 6, 10, 0.95) 0%,
            rgba(6, 6, 10, 0.5) 40%,
            transparent 100%);
    opacity: 0.7;
    transition: opacity 0.4s;
}

.showcase__item:hover .showcase__overlay {
    opacity: 1;
}

.showcase__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    transform: translateY(20px);
    opacity: 0.9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase__item:hover .showcase__info {
    transform: translateY(0);
    opacity: 1;
}

.showcase__tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--c-primary);
    margin-bottom: 12px;
}

.showcase__info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.showcase__item--featured .showcase__info h3 {
    font-size: 1.6rem;
}

.showcase__info p {
    font-size: 0.9rem;
    color: var(--c-muted);
    line-height: 1.5;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.1s;
}

.showcase__item:hover .showcase__info p {
    opacity: 1;
    transform: translateY(0);
}

/* Portfolio CTA styling */
.portfolio__cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--c-border);
}

.portfolio__cta p {
    color: var(--c-muted);
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .portfolio__showcase {
        grid-template-columns: repeat(2, 1fr);
    }

    .showcase__item--featured,
    .showcase__item--wide {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .portfolio__showcase {
        grid-template-columns: 1fr;
    }

    .showcase__item--featured,
    .showcase__item--wide {
        grid-column: span 1;
    }

    .showcase__info {
        padding: 20px;
    }

    .showcase__info h3,
    .showcase__item--featured .showcase__info h3 {
        font-size: 1.1rem;
    }
}

/* ============================================
   PORTFOLIO SLIDER
   ============================================ */
.portfolio__slider-wrapper {
    position: relative;
    margin-top: 50px;
    padding: 0 0 30px;
}

.portfolio__slider {
    overflow: hidden;
    margin: 0 auto;
    max-width: 100%;
}

.portfolio__track {
    display: flex;
    gap: 20px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px 40px;
}

.portfolio__slide {
    flex: 0 0 calc(16.666% - 17px);
    min-width: 280px;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--c-dark-2);
    border: 1px solid var(--c-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.portfolio__slide:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(59, 130, 246, 0.2),
        0 0 30px rgba(59, 130, 246, 0.1);
}

.portfolio__slide img {
    width: 100%;
    aspect-ratio: 740 / 412;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio__slide:hover img {
    transform: scale(1.05);
}

.portfolio__slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(6, 6, 10, 0.95) 0%, transparent 100%);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio__slide:hover .portfolio__slide-info {
    transform: translateY(0);
    opacity: 1;
}

.portfolio__slide-info span {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--c-primary);
    margin-bottom: 8px;
}

.portfolio__slide-info h4 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Controls */
.portfolio__controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.portfolio__btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--c-border);
    border-radius: 50%;
    color: var(--c-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.portfolio__btn:hover {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: white;
    transform: scale(1.1);
}

.portfolio__counter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
}

.portfolio__current {
    color: var(--c-primary);
}

.portfolio__sep {
    color: var(--c-border);
}

.portfolio__total {
    color: var(--c-muted);
}

/* Responsive slider */
@media (max-width: 1400px) {
    .portfolio__slide {
        flex: 0 0 calc(25% - 15px);
    }
}

@media (max-width: 1024px) {
    .portfolio__slide {
        flex: 0 0 calc(33.333% - 14px);
        min-width: 260px;
    }

    .portfolio__track {
        padding: 20px 24px;
    }
}

@media (max-width: 768px) {
    .portfolio__slide {
        flex: 0 0 calc(50% - 10px);
        min-width: 240px;
    }
}

@media (max-width: 500px) {
    .portfolio__slide {
        flex: 0 0 85%;
        min-width: 0;
    }

    .portfolio__track {
        gap: 16px;
        padding: 15px 20px;
    }
}

/* ============================================
   PORTFOLIO SLIDER ENHANCED
   ============================================ */
.portfolio__slide {
    flex: 0 0 calc(16.666% - 17px);
    min-width: 300px;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(145deg, #12121a 0%, #0a0a0f 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.portfolio__slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(59, 130, 246, 0.1) 0%,
            transparent 50%,
            rgba(139, 92, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 1;
    pointer-events: none;
}

.portfolio__slide:hover::before {
    opacity: 1;
}

.portfolio__slide:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(59, 130, 246, 0.3),
        0 0 60px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.portfolio__slide-frame {
    position: relative;
    padding: 12px 12px 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
}

.portfolio__slide-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 16px;
    display: flex;
    gap: 6px;
    width: 50px;
    height: 10px;
    background:
        radial-gradient(circle at 6px 5px, #ff5f57 4px, transparent 4px),
        radial-gradient(circle at 22px 5px, #febc2e 4px, transparent 4px),
        radial-gradient(circle at 38px 5px, #28c840 4px, transparent 4px);
    z-index: 2;
    opacity: 0.6;
}

.portfolio__slide-frame img {
    width: 100%;
    aspect-ratio: 740 / 412;
    object-fit: cover;
    display: block;
    border-radius: 6px 6px 0 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio__slide:hover .portfolio__slide-frame img {
    transform: scale(1.05);
}

.portfolio__slide-info {
    position: relative;
    padding: 18px 16px;
    background: linear-gradient(to top, rgba(6, 6, 10, 1) 0%, rgba(6, 6, 10, 0.95) 100%);
    z-index: 2;
}

.portfolio__slide-info span {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 100px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--c-primary);
    margin-bottom: 10px;
    transition: all 0.3s;
}

.portfolio__slide:hover .portfolio__slide-info span {
    background: var(--gradient);
    border-color: transparent;
    color: white;
}

.portfolio__slide-info h4 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--c-light);
    transition: color 0.3s;
}

.portfolio__slide:hover .portfolio__slide-info h4 {
    color: white;
}

/* Dots indicator */
.portfolio__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.portfolio__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.portfolio__dot--active,
.portfolio__dot:hover {
    background: var(--c-primary);
    transform: scale(1.3);
}

/* Responsive */
@media (max-width: 1400px) {
    .portfolio__slide {
        flex: 0 0 calc(25% - 15px);
        min-width: 280px;
    }
}

@media (max-width: 1024px) {
    .portfolio__slide {
        flex: 0 0 calc(33.333% - 14px);
        min-width: 260px;
    }
}

@media (max-width: 768px) {
    .portfolio__slide {
        flex: 0 0 calc(50% - 10px);
        min-width: 240px;
    }

    .portfolio__slide-frame::before {
        display: none;
    }
}

@media (max-width: 500px) {
    .portfolio__slide {
        flex: 0 0 85%;
        min-width: 0;
    }
}

/* ============================================
   PORTFOLIO SLIDER - CLEAN MODERN DESIGN
   ============================================ */

/* Override previous styles */
.portfolio__slide {
    flex: 0 0 calc(16.666% - 17px);
    min-width: 300px;
    position: relative;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    overflow: hidden;
    background: transparent;
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.portfolio__slide::before {
    display: none;
}

.portfolio__slide:hover {
    transform: translateY(-8px);
    box-shadow: none;
    border-color: transparent;
}

.portfolio__slide-frame {
    position: relative;
    padding: 0;
    background: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
}

.portfolio__slide-frame::before {
    display: none;
}

.portfolio__slide-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(6, 6, 10, 0.6) 0%,
            transparent 40%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
}

.portfolio__slide:hover .portfolio__slide-frame {
    border-color: var(--c-primary);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(59, 130, 246, 0.2);
}

.portfolio__slide:hover .portfolio__slide-frame::after {
    opacity: 1;
}

.portfolio__slide-frame img {
    width: 100%;
    aspect-ratio: 740 / 412;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg);
    transition: transform 0.5s ease;
}

.portfolio__slide:hover .portfolio__slide-frame img {
    transform: scale(1.03);
}

/* Info always visible below image */
.portfolio__slide-info {
    padding: 16px 4px 0;
    background: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.portfolio__slide-info span {
    display: inline-flex;
    align-self: flex-start;
    padding: 0;
    background: none;
    border: none;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--c-primary);
    transition: color 0.3s;
}

.portfolio__slide:hover .portfolio__slide-info span {
    color: var(--c-accent);
}

.portfolio__slide-info h4 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--c-light);
    transition: color 0.3s;
}

.portfolio__slide:hover .portfolio__slide-info h4 {
    color: white;
}

/* Controls enhanced */
.portfolio__controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.portfolio__btn {
    width: 56px;
    height: 56px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--c-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.portfolio__btn:hover {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.portfolio__counter {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 80px;
    justify-content: center;
}

.portfolio__current {
    font-size: 1.5rem;
    color: var(--c-light);
}

.portfolio__sep {
    color: rgba(255, 255, 255, 0.15);
    font-weight: 300;
}

.portfolio__total {
    color: var(--c-muted);
}

/* Track padding */
.portfolio__track {
    display: flex;
    gap: 24px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 60px 20px;
}

/* Responsive updates */
@media (max-width: 1400px) {
    .portfolio__slide {
        flex: 0 0 calc(25% - 18px);
        min-width: 280px;
    }
}

@media (max-width: 1024px) {
    .portfolio__slide {
        flex: 0 0 calc(33.333% - 16px);
        min-width: 260px;
    }

    .portfolio__track {
        padding: 10px 30px 20px;
    }
}

@media (max-width: 768px) {
    .portfolio__slide {
        flex: 0 0 calc(50% - 12px);
        min-width: 220px;
    }

    .portfolio__controls {
        margin-top: 30px;
    }

    .portfolio__btn {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 500px) {
    .portfolio__slide {
        flex: 0 0 85%;
        min-width: 0;
    }

    .portfolio__track {
        gap: 16px;
        padding: 10px 24px 20px;
    }
}

/* Portfolio slide description */
.portfolio__slide-info p {
    font-size: 0.8rem;
    color: var(--c-muted);
    line-height: 1.4;
    margin: 0;
}

.portfolio__slide:hover .portfolio__slide-info p {
    color: var(--c-light-2);
}

/* Portfolio Slider - Improved Layout */
.portfolio__slider-wrapper {
    position: relative;
    margin-top: 50px;
    padding: 0;
    overflow: hidden;
}

.portfolio__slider {
    overflow: hidden;
    margin: 0;
    padding: 0 60px;
}

.portfolio__track {
    display: flex;
    gap: 24px;
    padding: 20px 0;
    will-change: transform;
}

.portfolio__slide {
    flex: 0 0 calc((100% - 24px * 4) / 5);
    min-width: 280px;
}

/* Responsive slide widths */
@media (max-width: 1400px) {
    .portfolio__slider {
        padding: 0 40px;
    }

    .portfolio__slide {
        flex: 0 0 calc((100% - 24px * 3) / 4);
        min-width: 260px;
    }
}

@media (max-width: 1024px) {
    .portfolio__slider {
        padding: 0 30px;
    }

    .portfolio__slide {
        flex: 0 0 calc((100% - 24px * 2) / 3);
        min-width: 240px;
    }
}

@media (max-width: 768px) {
    .portfolio__slider {
        padding: 0 24px;
    }

    .portfolio__slide {
        flex: 0 0 calc((100% - 24px) / 2);
        min-width: 200px;
    }
}

@media (max-width: 500px) {
    .portfolio__slider {
        padding: 0 20px;
    }

    .portfolio__slide {
        flex: 0 0 calc(100% - 40px);
        min-width: 0;
    }

    .portfolio__track {
        gap: 16px;
    }
}

/* Button disabled state */
.portfolio__btn {
    transition: all 0.3s ease, opacity 0.3s ease;
}

.portfolio__btn[style*="opacity: 0.3"] {
    pointer-events: none;
}

/* ============================================
   POPUP MODAL
   ============================================ */
.popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 6, 10, 0.9);
    backdrop-filter: blur(8px);
}

.popup__content {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 20px;
    padding: 40px;
    background: linear-gradient(145deg, #12121a 0%, #0a0a0f 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(59, 130, 246, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup.active .popup__content {
    transform: scale(1) translateY(0);
}

.popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--c-muted);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.popup__close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    transform: rotate(90deg);
}

.popup__header {
    text-align: center;
    margin-bottom: 30px;
}

.popup__header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.popup__header p {
    color: var(--c-muted);
    font-size: 0.95rem;
}

.popup__form .form__group input,
.popup__form .form__group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--c-light);
    font-size: 1rem;
    transition: all 0.3s;
}

.popup__form .form__group input:focus,
.popup__form .form__group textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    background: rgba(59, 130, 246, 0.05);
}

.popup__form .form__row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.popup__form .form__group {
    flex: 1;
    margin-bottom: 16px;
}

.popup__form .form__row .form__group {
    margin-bottom: 0;
}

/* Mobile popup */
@media (max-width: 600px) {
    .popup__content {
        padding: 30px 24px;
        margin: 16px;
    }

    .popup__form .form__row {
        flex-direction: column;
        gap: 0;
    }

    .popup__form .form__row .form__group {
        margin-bottom: 16px;
    }

    .popup__header h3 {
        font-size: 1.5rem;
    }
}

/* ============================================
   PAGE TEMPLATE STYLES
   ============================================ */
.page-content {
    padding: 160px 0 120px;
    min-height: 60vh;
}

.page__header {
    text-align: center;
    margin-bottom: 60px;
}

.page__body {
    max-width: 800px;
    margin: 0 auto;
}

.page__body.prose h2 {
    margin-top: 48px;
    margin-bottom: 20px;
}

.page__body.prose h3 {
    margin-top: 32px;
    margin-bottom: 16px;
}

/* Mobile touch improvements for portfolio slider */
.portfolio__slider {
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
}

.portfolio__track {
    touch-action: pan-x;
    -webkit-user-select: none;
    user-select: none;
}

.portfolio__slide {
    -webkit-user-drag: none;
    user-drag: none;
}

.portfolio__slide img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
}

.portfolio__track.is-dragging {
    transition: none !important;
}

.portfolio__track.is-dragging .portfolio__slide-frame img {
    transition: none !important;
}

.blog-card__image img.blog-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Featured Image в статье */
.article__hero {
    position: relative;
    overflow: hidden;
}

.article__hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.article__hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(6, 6, 10, 0.3) 0%,
            rgba(6, 6, 10, 0.7) 50%,
            rgba(6, 6, 10, 0.95) 100%);
}

.article__featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.article__hero .container {
    position: relative;
    z-index: 1;
}

/* Blog Card Image Fix */
.blog__card-image {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.blog__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.blog__card:hover .blog__card-image img {
    transform: scale(1.05);
}

.blog__card-category {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 6px 12px;
    background: rgba(139, 92, 246, 0.9);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}
/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #12121a 0%, #1a1a2e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(59, 130, 246, 0.1);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast__icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    flex-shrink: 0;
}

.toast--success .toast__icon {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.toast--error .toast__icon {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.toast__text {
    color: var(--c-light);
    font-size: 0.95rem;
    line-height: 1.4;
    max-width: 400px;
}

@media (max-width: 600px) {
    .toast {
        left: 20px;
        right: 20px;
        bottom: 20px;
        transform: translateX(0) translateY(100px);
    }
    
    .toast--visible {
        transform: translateX(0) translateY(0);
    }
}
