/* ===== Variables ===== */
:root {
    --primary: #7C3AED;
    --primary-dark: #6D28D9;
    --primary-light: #A78BFA;
    --accent: #F472B6;
    --accent-light: #FBCFE8;
    --bg: #0F0A1A;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-glass: rgba(255, 255, 255, 0.08);
    --text: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #64748B;
    --border-glass: rgba(255, 255, 255, 0.12);
    --gradient: linear-gradient(135deg, #7C3AED 0%, #A78BFA 40%, #F472B6 100%);
    --gradient-text: linear-gradient(135deg, #C4B5FD 0%, #F9A8D4 100%);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 60px rgba(124, 58, 237, 0.15);
    --radius: 20px;
    --radius-sm: 12px;
}

/* ===== Reset ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

/* Prevent double-tap zoom on interactive elements */
button, a, .carousel__btn, .carousel__dot {
    touch-action: manipulation;
}

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

/* ===== Glass Card ===== */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

/* ===== Container ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Nav ===== */
.nav {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: calc(100% - 32px);
    max-width: 700px;
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: rgba(15, 10, 26, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
}

.nav__logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.nav__logo span {
    color: var(--accent);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav__links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav__links a:hover {
    color: var(--text);
}

.nav__cta {
    background: var(--gradient);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600 !important;
}

/* ===== Typography ===== */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-light);
    margin-bottom: 12px;
}

.section-label--light {
    color: rgba(255, 255, 255, 0.7);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-top: 12px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
}

.btn--primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.4);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.5);
}

.btn--glass {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn--glass:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn--white {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.btn--white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.btn--glass-light {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.btn--glass-light:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn--lg {
    padding: 16px 32px;
    font-size: 1rem;
}

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

.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 8s ease-in-out infinite;
}

.hero__orb--1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.hero__orb--2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: 20%;
    left: 5%;
    animation-delay: -3s;
}

.hero__orb--3 {
    width: 200px;
    height: 200px;
    background: #3B82F6;
    top: 50%;
    left: 40%;
    animation-delay: -5s;
}

.hero__orb--4 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: -10%;
    right: -5%;
    animation-delay: -2s;
}

.hero__orb--5 {
    width: 250px;
    height: 250px;
    background: var(--accent);
    bottom: -10%;
    left: 10%;
    animation-delay: -4s;
}

.hero__orb--6 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: -20%;
    left: 10%;
    animation-delay: -1s;
}

.hero__orb--7 {
    width: 200px;
    height: 200px;
    background: var(--primary);
    bottom: -20%;
    right: 10%;
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-10px, 15px) scale(0.95); }
}

.hero__inner {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero__content {
    flex: 1;
}

.hero__badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero__name {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 20px;
}

.hero__countries {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.country-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.country-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.country-dot--us { background: #3B82F6; }
.country-dot--uk { background: #EF4444; }
.country-dot--hu { background: #22C55E; }
.country-dot--it { background: #F59E0B; }

.icon {
    flex-shrink: 0;
}

.hero__badge .icon {
    vertical-align: -3px;
}

.hero__cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero__photo {
    flex-shrink: 0;
    position: relative;
}

.hero__photo-wrapper {
    position: relative;
    width: 340px;
    height: 420px;
}

/* Depth layers behind photo */
.hero__photo-wrapper::before,
.hero__photo-wrapper::after {
    content: '';
    position: absolute;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero__photo-wrapper::before {
    inset: -12px -16px 12px 16px;
    background: rgba(124, 58, 237, 0.08);
    transform: rotate(3deg);
    z-index: -2;
}

.hero__photo-wrapper::after {
    inset: -6px 10px 6px -10px;
    background: rgba(244, 114, 182, 0.06);
    transform: rotate(-2deg);
    z-index: -1;
}

.hero__photo-frame {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Spinning gradient border */
.hero__photo-frame::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 26px;
    background: conic-gradient(
        from 0deg,
        #7C3AED,
        #A78BFA,
        #F472B6,
        #FB923C,
        #A78BFA,
        #7C3AED
    );
    animation: spin-border 4s linear infinite;
    z-index: -1;
}

@keyframes spin-border {
    to { transform: rotate(360deg); }
}

/* Glow */
.hero__photo-frame::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 36px;
    background: conic-gradient(
        from 0deg,
        rgba(124, 58, 237, 0.4),
        rgba(244, 114, 182, 0.3),
        rgba(124, 58, 237, 0.4)
    );
    filter: blur(30px);
    animation: spin-border 4s linear infinite;
    z-index: -2;
    opacity: 0.6;
}

.hero__photo-frame img {
    width: calc(100% + 0px);
    height: calc(100% + 0px);
    object-fit: cover;
    border-radius: 22px;
    position: relative;
    z-index: 1;
    /* inset border to cover the spinning gradient */
    margin: 3px;
    width: calc(100% - 6px);
    height: calc(100% - 6px);
}

.hero__stats {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
}

.stat-card {
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    text-align: center;
    flex: 1;
}

.stat-card__num {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-card__label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== About ===== */
.about {
    padding: 70px 0;
    position: relative;
}

/* ===== Carousel ===== */
.carousel {
    position: relative;
    overflow: hidden;
}

.carousel__track {
    display: flex;
    gap: 16px;
    padding: 8px 0 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel__slide {
    flex-shrink: 0;
}

.carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.carousel__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.carousel__btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.carousel__btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.carousel__btn:disabled {
    opacity: 0.2;
    cursor: default;
}

.carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}

.carousel__dot.active {
    background: var(--primary-light);
    width: 24px;
    border-radius: 4px;
}

/* About carousel */
.about .carousel__slide {
    width: 320px;
    min-height: 100px;
}

.about__card {
    padding: 28px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.about__icon {
    flex-shrink: 0;
    line-height: 1;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 14px;
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.about__icon svg {
    flex-shrink: 0;
}

.about__card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.about__card strong {
    color: var(--text);
}

/* ===== Services ===== */
.services {
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.services__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

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

.services__card {
    padding: 36px 32px;
}

.services__num {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.6;
}

.services__card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--text);
    font-weight: 600;
}

.services__card p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.6;
}

/* ===== Cases ===== */
.cases {
    padding: 70px 0;
}

/* Cases carousel */
.cases .carousel__slide {
    width: 280px;
    padding: 0;
}

.cases__card {
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.cases__img-placeholder,
.cases__card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #fff;
}

.cases__img-placeholder {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(244, 114, 182, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

.cases__body {
    padding: 16px 20px 18px;
}

.cases__name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cases__desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== Program ===== */
.program {
    padding: 70px 0;
}

.program__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.program__card {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.program__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(244, 114, 182, 0.15));
    border: 1px solid rgba(167, 139, 250, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.program__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
}

.program__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.program__list li {
    position: relative;
    padding-left: 22px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.program__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gradient);
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.6);
}

@media (max-width: 768px) {
    .program__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .program__card {
        padding: 28px 24px;
    }
}

/* ===== CTA ===== */
.cta {
    padding: 40px 0 70px;
}

.cta__box {
    position: relative;
    overflow: hidden;
    background: var(--gradient);
    border-radius: 28px;
    padding: 56px 40px;
    text-align: center;
    color: #fff;
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.3);
}

.cta__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.cta__box h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    margin-bottom: 16px;
    position: relative;
}

.cta__box > p {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 36px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.cta__box > .section-label {
    position: relative;
}

.cta__buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ===== Footer ===== */
.footer {
    padding: 32px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-glass);
}

/* ===== Animations ===== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger > .fade-up:nth-child(1) { transition-delay: 0.05s; }
.stagger > .fade-up:nth-child(2) { transition-delay: 0.1s; }
.stagger > .fade-up:nth-child(3) { transition-delay: 0.15s; }
.stagger > .fade-up:nth-child(4) { transition-delay: 0.2s; }
.stagger > .fade-up:nth-child(5) { transition-delay: 0.25s; }
.stagger > .fade-up:nth-child(6) { transition-delay: 0.3s; }
.stagger > .fade-up:nth-child(7) { transition-delay: 0.35s; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav__links a:not(.nav__cta) {
        display: none;
    }

    .about, .services, .cases, .program {
        padding: 50px 0;
    }

    .cta {
        padding: 30px 0 50px;
    }

    .section-header {
        margin-bottom: 28px;
    }

    .hero {
        padding: 90px 0 40px;
    }

    .hero__inner {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }

    .hero__photo-wrapper {
        width: 260px;
        height: 320px;
        margin: 0 auto;
    }

    .stat-card {
        left: -20px;
    }

    .stat-card--right {
        right: -20px;
    }

    .hero__name {
        font-size: 2.8rem;
    }

    .hero__countries {
        justify-content: center;
    }

    .hero__cta {
        justify-content: center;
    }

    .hero__badge {
        margin-bottom: 16px;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .about .carousel__slide {
        width: 280px;
    }

    .cases .carousel__slide {
        width: 260px;
    }

    .cta__box {
        padding: 48px 24px;
    }

    .cta__box h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero__name {
        font-size: 2.2rem;
    }

    .cases .carousel__slide {
        width: 240px;
    }

    .btn--lg {
        padding: 14px 24px;
        font-size: 0.9rem;
    }

    .hero__photo-wrapper {
        width: 220px;
        height: 280px;
    }
}
