/* XDOSDEV - MODERN DESIGN SYSTEM */

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

:root {
    --primary: #0071e3;
    --primary-hover: #0077ED;
    --accent: #6e3aff;
    --accent-2: #ff6b6b;
    --bg-white: #ffffff;
    --bg-light: #f5f5f7;
    --bg-dark: #1d1d1f;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-white: #ffffff;
    --border: #d2d2d7;
    --border-light: rgba(255,255,255,0.12);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 16px;
    --radius-xl: 28px;
    --radius-pill: 980px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 40px rgba(110, 58, 255, 0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* NAVIGATION */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    padding: 0;
    transition: all var(--transition);
}

.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.nav-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.03em;
    transition: opacity var(--transition);
}

.nav-logo:hover {
    opacity: 0.7;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    transition: all var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(0,0,0,0.04);
}

.nav-link.active {
    color: var(--accent);
    background: rgba(110, 58, 255, 0.06);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

.toggle-line {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle.active .toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active .toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
    background: var(--bg-dark);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('img/hero-bg.png') center/cover no-repeat;
    opacity: 0.35;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(29,29,31,0.5) 0%, rgba(29,29,31,0.3) 40%, rgba(29,29,31,0.7) 100%),
        radial-gradient(ellipse at 20% 50%, rgba(110, 58, 255, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(0, 113, 227, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    max-width: 780px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    margin-bottom: 32px;
    letter-spacing: 0.02em;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 28px;
    color: var(--text-white);
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #a78bfa, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 44px;
    font-weight: 400;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 72px;
}

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

.hero-clients-label {
    display: block;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-clients-flags {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.hero-clients-flags span {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(8px);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 32px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--text-white);
    box-shadow: 0 4px 20px rgba(110, 58, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(110, 58, 255, 0.4);
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: var(--text-white);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(12px);
}

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

/* Light-section buttons */
.btn-primary-light {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--text-white);
    box-shadow: 0 4px 20px rgba(110, 58, 255, 0.25);
}

.btn-primary-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(110, 58, 255, 0.35);
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* SECTION HEADERS */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.1;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* SERVICES */
.services {
    padding: 120px 0;
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0,113,227,0.08), rgba(110,58,255,0.08));
    border-radius: var(--radius-md);
    margin-bottom: 22px;
    color: var(--accent);
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    transform: scale(1.05);
}

.service-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.service-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 18px;
}

.service-tags,
.tech-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(110, 58, 255, 0.07);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    transition: all var(--transition);
}

.service-card:hover .tag,
.project-card:hover .tag {
    background: rgba(110, 58, 255, 0.12);
}

/* PROJECTS */
.projects {
    padding: 120px 0;
    background: var(--bg-light);
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 600;
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    padding: 9px 24px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    color: var(--text-white);
    box-shadow: 0 4px 16px rgba(110, 58, 255, 0.25);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.project-thumb {
    height: 200px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 16px;
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
}

.project-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-thumb img.error {
    display: none;
}

.project-card:hover .project-thumb img {
    transform: scale(1.05);
}

.project-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.15) 100%);
    transition: opacity var(--transition);
    z-index: 1;
}

.project-card:hover .project-thumb::after {
    opacity: 0.5;
}

.project-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-white);
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.project-info {
    padding: 24px;
}

.project-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 16px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    margin-top: 8px;
    transition: all var(--transition);
}

.project-link:hover {
    gap: 12px;
    color: var(--primary);
}

.project-link--coming-soon {
    color: var(--text-secondary);
    cursor: default;
    font-weight: 500;
}

.project-link--coming-soon:hover {
    gap: 6px;
    color: var(--text-secondary);
}

.arrow {
    transition: transform var(--transition);
}

.project-link:hover .arrow {
    transform: translateX(3px);
}

/* ABOUT */
.about {
    padding: 120px 0;
    background: var(--bg-white);
    position: relative;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 72px;
}

.location-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.location-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: left;
}

.location-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.location-card:hover::before {
    transform: scaleX(1);
}

.location-flag {
    font-size: 3rem;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.location-name {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.location-entity {
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.location-detail {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.location-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.location-info a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition);
}

.location-info a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.location-info p {
    margin-bottom: 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 72px;
}

.stat-card {
    text-align: center;
    padding: 36px 16px;
    background: linear-gradient(135deg, rgba(0,113,227,0.03), rgba(110,58,255,0.03));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.stat-suffix {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    display: block;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 6px;
    font-weight: 500;
}

.tech-stack {
    background: linear-gradient(135deg, rgba(0,113,227,0.03), rgba(110,58,255,0.03));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
}

.tech-stack-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--text-primary);
}

.tech-list {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tech-item {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-white);
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    transition: all var(--transition);
    cursor: default;
}

.tech-item:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(110, 58, 255, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(110, 58, 255, 0.1);
}

/* CONTACT */
.contact {
    padding: 120px 0;
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    align-items: start;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-method h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.contact-method a,
.contact-method p {
    font-size: 1.05rem;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.5;
    font-weight: 500;
}

.contact-method a {
    transition: color var(--transition);
}

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

.contact-form-wrapper {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    font-family: var(--font);
    font-size: 0.95rem;
    padding: 14px 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    color: var(--text-primary);
    transition: all var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #b0b0b5;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(110, 58, 255, 0.1);
    background: var(--bg-white);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.contact-form .btn {
    margin-top: 4px;
}

/* FOOTER */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 72px 0 36px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(110,58,255,0.4), rgba(0,113,227,0.4), transparent);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 56px;
}

.footer-brand {
    max-width: 360px;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 800;
    display: block;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.footer-entity {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.7;
}

.footer-socials {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.footer-socials a {
    color: rgba(255,255,255,0.4);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
}

.footer-socials a:hover {
    color: var(--text-white);
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.footer-links {
    display: flex;
    gap: 72px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.footer-col a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--text-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 28px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.3);
}

/* FADE-IN ANIMATION */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Stagger children */
.services-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.services-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.services-grid .fade-in:nth-child(4) { transition-delay: 0.3s; }

.projects-grid .fade-in:nth-child(2) { transition-delay: 0.08s; }
.projects-grid .fade-in:nth-child(3) { transition-delay: 0.16s; }
.projects-grid .fade-in:nth-child(4) { transition-delay: 0.24s; }

.stats-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.stats-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.stats-grid .fade-in:nth-child(4) { transition-delay: 0.3s; }

/* FORM MESSAGE */
.form-message {
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-message.success {
    background: linear-gradient(135deg, rgba(74,222,128,0.1), rgba(52,211,153,0.1));
    color: #16a34a;
    border: 1px solid rgba(74,222,128,0.3);
}

.form-message.error {
    background: linear-gradient(135deg, rgba(255,107,107,0.1), rgba(248,113,113,0.1));
    color: #dc2626;
    border: 1px solid rgba(255,107,107,0.3);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* SCROLL TO TOP */
.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(110, 58, 255, 0.3);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all var(--transition);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(110, 58, 255, 0.4);
}

/* CHAT WIDGET */
.chat-widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    font-family: var(--font);
}

.chat-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--text-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(110, 58, 255, 0.4);
    transition: all var(--transition);
    position: relative;
    z-index: 2;
}

.chat-bubble:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 32px rgba(110, 58, 255, 0.5);
}

.chat-bubble .chat-icon-close {
    display: none;
}

.chat-widget.open .chat-bubble .chat-icon-open {
    display: none;
}

.chat-widget.open .chat-bubble .chat-icon-close {
    display: block;
}

.chat-window {
    position: absolute;
    bottom: 76px;
    right: 0;
    width: 370px;
    max-height: 480px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom right;
}

.chat-widget.open .chat-window {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chat-header {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 20px;
    flex-shrink: 0;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

.chat-header-name {
    font-weight: 700;
    font-size: 1rem;
}

.chat-header-status {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.chat-status-dot {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 180px;
    max-height: 280px;
}

.chat-msg {
    display: flex;
    max-width: 85%;
}

.chat-msg--bot {
    align-self: flex-start;
}

.chat-msg--user {
    align-self: flex-end;
}

.chat-msg-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-msg--bot .chat-msg-bubble {
    background: var(--bg-light);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.chat-msg--user .chat-msg-bubble {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--text-white);
    border-bottom-right-radius: 4px;
}

.chat-form {
    padding: 14px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.chat-input-row {
    display: flex;
    gap: 8px;
}

.chat-input {
    flex: 1;
    font-family: var(--font);
    font-size: 0.9rem;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--bg-light);
    color: var(--text-primary);
    transition: all var(--transition);
    outline: none;
}

.chat-input::placeholder {
    color: #b0b0b5;
}

.chat-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(110, 58, 255, 0.1);
    background: var(--bg-white);
}

.chat-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--text-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
}

.chat-send:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(110, 58, 255, 0.3);
}

.chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 56px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-top: 1px solid var(--border);
        flex-direction: column;
        padding: 16px 24px;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition);
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-link {
        padding: 14px 16px;
        font-size: 1rem;
    }

    .hero {
        padding: 100px 24px 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-clients-flags {
        gap: 12px;
    }

    .hero-clients-flags span {
        font-size: 0.82rem;
        padding: 6px 14px;
    }

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

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .chat-widget {
        bottom: 16px;
        right: 16px;
    }

    .chat-window {
        width: calc(100vw - 32px);
        right: -8px;
        bottom: 72px;
        max-height: 420px;
    }

    .chat-bubble {
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 24px 12px;
    }

    .stat-number, .stat-suffix {
        font-size: 2rem;
    }

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

    .contact-form-wrapper {
        padding: 28px 20px;
    }
}
