@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/manrope/manrope-v20-latin_cyrillic-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/manrope/manrope-v20-latin_cyrillic-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/fonts/manrope/manrope-v20-latin_cyrillic-800.woff2') format('woff2');
}

@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/oswald/oswald-v57-latin_cyrillic-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/oswald/oswald-v57-latin_cyrillic-700.woff2') format('woff2');
}

/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    --color-bg: #0a0a0c;
    /* Deep dark, almost black with slight blue/purple tint */
    --color-bg-alt: #121215;
    /* Slightly lighter for cards/sections */
    --color-text: #e2e8f0;
    /* Soft white for readability */
    --color-text-muted: #94a3b8;
    --color-accent: #10b981;
    /* Emerald Green for "Dublin" Vibe */
    --color-accent-hover: #059669;
    --color-gold: #fbbf24;
    /* Gold for premium accents / ratings */

    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Manrope', sans-serif;

    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius: 12px;
}

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

html {
    scroll-behavior: initial;
    /* Managed by lenis */
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-alt);
}

::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-hover);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.container--fluid {
    max-width: 100%;
    padding: 0;
}

.text-center {
    text-align: center;
}

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

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
.header__logo,
.footer__logo {
    font-family: var(--font-heading);
    text-transform: uppercase;
    line-height: 1.1;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    text-align: center;
}

.btn--primary {
    background-color: var(--color-accent);
    color: #fff;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    border: 1px solid var(--color-accent);
    letter-spacing: 1px;
}

.btn--primary:hover {
    background-color: transparent;
    color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.8);
}

.btn--outline {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-text);
    backdrop-filter: blur(5px);
}

.btn--outline:hover {
    border-color: var(--color-accent);
    background: rgba(16, 185, 129, 0.05);
    color: var(--color-text);
    transform: translateY(-2px);
}

.btn--large {
    padding: 16px 24px;
    font-size: 0.9rem;
    width: 100%;
}

@media (min-width: 768px) {
    .btn--large {
        padding: 18px 40px;
        font-size: 1rem;
        width: auto;
    }
}

.btn--small {
    padding: 8px 16px;
    font-size: 0.75rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 24px 0;
    transition: var(--transition-smooth);
    background: transparent;
}

.header.scrolled {
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(12px);
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.header__logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
}

.header__nav {
    display: none;
}

@media (min-width: 768px) {
    .header__nav {
        display: flex;
        gap: 2rem;
    }

    .header__nav a {
        font-weight: 600;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .header__nav a:hover {
        color: var(--color-accent);
    }
}

.header__cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.phone-link {
    font-weight: 800;
    font-size: 1.1rem;
    display: none;
}

@media (min-width: 1024px) {
    .phone-link {
        display: block;
    }
}

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

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transform: scale(1.05);
    /* Заблюрим картинку и уберем часть цвета, чтобы сделать из нее абстрактный фон-текстуру, 
       на котором текст будет читаться идеально */
    filter: blur(8px) grayscale(60%);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, var(--color-bg) 0%, rgba(10, 10, 12, 0.8) 50%, rgba(10, 10, 12, 0.9) 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards 0.2s;
}

.hero__title {
    font-size: clamp(3rem, 11vw, 8rem);
    margin-bottom: 1rem;
    line-height: 0.85;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    word-break: break-word;
    hyphens: auto;
}

.text-reveal {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    animation: revealText 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.text-reveal:nth-child(2) {
    animation-delay: 0.2s;
}

.hero__subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--color-text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 0.8s forwards 0.6s;
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    opacity: 0;
    animation: fadeUp 0.8s forwards 0.8s;
}

@media (min-width: 768px) {
    .hero__actions {
        flex-direction: row;
        align-items: center;
    }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    padding: 5rem 0;
}

@media (min-width: 768px) {
    .about {
        padding: 8rem 0;
    }
}

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

@media (min-width: 992px) {
    .about__inner {
        grid-template-columns: 1fr 1fr;
    }
}

.about__text p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

@media (min-width: 480px) {
    .stats {
        gap: 3rem;
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 8vw, 3rem);
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 600;
}

.about__image-wrapper {
    position: relative;
}

.about__img {
    border-radius: var(--border-radius);
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.about__img-backdrop {
    position: absolute;
    inset: -20px;
    background: linear-gradient(45deg, var(--color-accent), transparent);
    border-radius: var(--border-radius);
    z-index: 1;
    opacity: 0.3;
    filter: blur(20px);
}

/* ==========================================================================
   Services Section (Vanilla Tilt Cards)
   ========================================================================== */
.services {
    padding: 5rem 0;
    background-color: var(--color-bg-alt);
}

@media (min-width: 768px) {
    .services {
        padding: 8rem 0;
    }
}

.services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

@media (min-width: 768px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

/* Decorative glassmorphism blob inside card */
.service-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--color-accent);
    filter: blur(80px);
    opacity: 0.15;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.service-card:hover::before {
    opacity: 0.5;
    transform: scale(1.4);
}

.service-card__content {
    transform: translateZ(30px);
    /* Creates the 3D pop effect on tilt */
}

.service-card__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.service-card__desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    min-height: 50px;
}

.service-card__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.service-card__price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-accent);
}

/* ==========================================================================
   Gallery section
   ========================================================================== */
.gallery {
    padding: 2rem 0;
}

.gallery__item img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    border-radius: var(--border-radius);
}


/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: #000;
    padding: 6rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

.footer__desc {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-icon {
    font-size: 1.5rem;
}

.map-placeholder {
    width: 100%;
    height: 300px;
    background: #111;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.developer a {
    color: var(--color-accent);
    font-weight: 600;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes revealText {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Classes for Intersection Observer */
.js-hidden {
    opacity: 0;
    visibility: hidden;
}

[data-animate="fade-up"] {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate="fade-left"] {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translate(0);
}

/* ==========================================================================
   Preloader
   ========================================================================== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: var(--color-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader__logo {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 4px;
    position: relative;
    overflow: hidden;
}

.preloader__logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.4), transparent);
    animation: shine 1.5s infinite;
}

@keyframes shine {
    100% {
        left: 200%;
    }
}

@keyframes fadeOutBanner {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
        visibility: hidden;
    }
}

/* ==========================================================================
   Demo Mode Indicators (Portfolio)
   ========================================================================== */
.demo-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(16, 185, 129, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    z-index: 990;
    pointer-events: none;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.toast-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150px);
    /* Hidden by default */
    background: rgba(20, 20, 25, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--color-accent);
    border-radius: 8px;
    padding: 16px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    z-index: 9999;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 400px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    opacity: 0;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.toast-text strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 4px;
}

.toast-text p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .toast-notification {
        left: 20px;
        transform: translateX(-150%) translateY(0);
        /* Hide to the left */
    }

    .toast-notification.show {
        transform: translateX(0) translateY(0);
    }

    .demo-badge {
        bottom: 30px;
        right: 30px;
    }
}