:root {

    --primary-color: #7c5cff;
    --primary-dark: #5b3fe0;
    --primary-light: #9d83ff;
    --primary-50: rgba(124, 92, 255, 0.08);

    --secondary-color: #22d3ee;
    --secondary-dark: #06b6d4;
    --secondary-light: #67e8f9;

    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --accent-orange: #fb923c;

    --gradient-primary: linear-gradient(135deg, #7c5cff 0%, #a855f7 50%, #22d3ee 100%);
    --gradient-secondary: linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%);
    --gradient-warm: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    --gradient-text: linear-gradient(120deg, #9d83ff 0%, #22d3ee 100%);

    --bg-body: #070912;
    --bg-deep: #05060d;
    --surface: #11142a;
    --surface-2: #171b38;
    --surface-3: #1e2347;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-strong: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.09);

    --dark-color: #f1f5f9;
    --white: #ffffff;
    --light-color: #171b38;
    --gray-900: #0b0e1c;
    --gray-700: #94a3b8;
    --gray-500: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-100: #1e2347;
    --gray-50: #11142a;

    --text-color: #c7d0e0;
    --text-light: #8b93a7;
    --border-color: rgba(255, 255, 255, 0.09);

    --success-color: #34d399;
    --warning-color: #fbbf24;
    --danger-color: #f87171;
    --info-color: #60a5fa;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
    --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.6);
    --glow: 0 0 40px rgba(124, 92, 255, 0.35);
    --glow-cyan: 0 0 40px rgba(34, 211, 238, 0.3);

    --transition-fast: all 0.15s ease;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    --radius: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;

    --z-dropdown: 100;
    --z-fixed: 300;
    --z-modal: 500;
    --z-tooltip: 700;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-body);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: -20%;
    z-index: -2;
    background:
        radial-gradient(45% 40% at 12% 5%, rgba(124, 92, 255, 0.30) 0%, transparent 60%),
        radial-gradient(40% 40% at 100% 8%, rgba(34, 211, 238, 0.24) 0%, transparent 55%),
        radial-gradient(45% 45% at 50% 100%, rgba(168, 85, 247, 0.22) 0%, transparent 60%),
        radial-gradient(35% 35% at 80% 60%, rgba(236, 72, 153, 0.14) 0%, transparent 60%);
    pointer-events: none;
    animation: ambient-drift 24s ease-in-out infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    inset: -30%;
    z-index: -2;
    background:
        conic-gradient(from 0deg at 30% 30%, transparent 0deg, rgba(124, 92, 255, 0.18) 70deg, transparent 150deg),
        conic-gradient(from 180deg at 75% 65%, transparent 0deg, rgba(34, 211, 238, 0.16) 80deg, transparent 170deg);
    filter: blur(80px);
    opacity: 0.8;
    pointer-events: none;
    animation: aurora-spin 38s linear infinite;
}

@keyframes ambient-drift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(2%, -1.5%, 0) scale(1.06); }
    100% { transform: translate3d(-1.5%, 2%, 0) scale(1.03); }
}

@keyframes aurora-spin {
    0%   { transform: rotate(0deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1.1); }
}

body.menu-open {
    overflow: hidden;
}

::selection {
    background: var(--primary-color);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 3px;
}

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    border: 2px solid var(--bg-deep);
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.15;
    color: var(--dark-color);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
h4 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: 1.5rem;
    line-height: 1.75;
    color: var(--text-color);
}

.lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-light);
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition-fast);
}
a:hover { color: var(--secondary-light); }

.text-gradient {
    background: linear-gradient(120deg, #9d83ff 0%, #22d3ee 35%, #ec4899 70%, #9d83ff 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 6s linear infinite;
}

@keyframes gradient-shift {
    0%   { background-position: 0% center; }
    100% { background-position: 220% center; }
}

.text-muted { color: var(--text-light); }
.text-center { text-align: center; }
.mt-5 { margin-top: 3rem; }
.mb-5 { margin-bottom: 3rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 8px 24px rgba(124, 92, 255, 0.4);
    background-size: 200% 200%;
    animation: gradient-shift-bg 5s ease infinite;
}
.btn-primary:hover {
    color: #fff;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 18px 44px rgba(124, 92, 255, 0.6), var(--glow-cyan);
}
@keyframes gradient-shift-bg {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}
.btn:hover::after { left: 140%; }

.btn-outline {
    background: var(--glass);
    color: var(--dark-color);
    border-color: var(--glass-border);
    backdrop-filter: blur(10px);
}
.btn-outline:hover {
    background: var(--primary-50);
    border-color: var(--primary-color);
    color: var(--primary-light);
    transform: translateY(-3px);
}

.btn-white {
    background: #fff;
    color: var(--primary-dark);
}
.btn-white:hover {
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}
.btn-outline-white:hover {
    background: #fff;
    color: var(--primary-dark);
}

.btn-lg { padding: 1rem 2.2rem; font-size: 1.125rem; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.875rem; }
.btn-block { width: 100%; justify-content: center; }

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

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(8, 10, 22, 0.55);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid transparent;
    z-index: var(--z-fixed);
    transition: var(--transition);
}
.header.scrolled {
    background: rgba(8, 10, 22, 0.85);
    border-bottom-color: var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.navbar { padding: 1.1rem 0; transition: var(--transition); }
.header.scrolled .navbar { padding: 0.7rem 0; }

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-color);
    transition: var(--transition);
}
.logo:hover { color: var(--dark-color); }
.logo-text { letter-spacing: -0.02em; }
.logo-text-accent {
    background: linear-gradient(135deg, #2f6bff 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.logo-icon {
    position: relative;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #2f6bff 0%, #22d3ee 100%);
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow), inset 0 1px 0 rgba(255,255,255,0.35);
    transition: var(--transition);
}
.logo-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255,255,255,0.18);
    pointer-events: none;
}
.logo-icon svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}
.logo:hover .logo-icon { transform: rotate(-6deg) scale(1.08); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    gap: 1.8rem;
    list-style: none;
}

.nav-link {
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-secondary);
    border-radius: 2px;
    transition: var(--transition);
}
.nav-link:hover,
.nav-link.active { color: var(--dark-color); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.mobile-menu-toggle {
    display: none;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    width: 34px;
    height: 30px;
}
.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--dark-color);
    border-radius: var(--radius-full);
    transition: var(--transition);
    position: absolute;
    left: 0;
}
.mobile-menu-toggle span:nth-child(1) { top: 0.4rem; }
.mobile-menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-menu-toggle span:nth-child(3) { bottom: 0.4rem; }
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg); top: 50%; }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg); bottom: 50%; }

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

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.10) 1.2px, transparent 1.3px);
    background-size: 30px 30px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.7;
    animation: float-rotate 18s ease-in-out infinite;
    mix-blend-mode: screen;
}
@keyframes float-rotate {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.08); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}
.hero-shape:nth-child(1) {
    width: 620px; height: 620px;
    background: radial-gradient(circle, #7c5cff, transparent 70%);
    top: -280px; right: -180px;
}
.hero-shape:nth-child(2) {
    width: 520px; height: 520px;
    background: radial-gradient(circle, #22d3ee, transparent 70%);
    bottom: -240px; left: -180px;
    animation-delay: -7s;
}
.hero-shape:nth-child(3) {
    width: 420px; height: 420px;
    background: radial-gradient(circle, #a855f7, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-slogan,
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-full);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2.8rem, 6.5vw, 5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.06;
    letter-spacing: -0.035em;
    color: var(--dark-color);
    text-shadow: 0 0 50px rgba(124, 92, 255, 0.35);
}
.hero-title .text-gradient {
    filter: drop-shadow(0 4px 30px rgba(124, 92, 255, 0.45));
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    color: var(--text-light);
    margin: 0 auto 3rem;
    max-width: 720px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.stat-item {
    background: var(--glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 1.75rem 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}
.stat-item:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 92, 255, 0.4);
    box-shadow: var(--shadow-lg), var(--glow);
}

.stat-number {
    font-size: 2.6rem;
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.4rem;
}
.stat-label { color: var(--text-color); font-weight: 600; }

.hero-scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    cursor: pointer;
    z-index: 1;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

.section { padding: 100px 0; position: relative; }

.section-header { text-align: center; margin-bottom: 4.5rem; }

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--secondary-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-full);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.2);
}

.section-title {
    font-size: clamp(2.1rem, 4.4vw, 3rem);
    margin-bottom: 1.1rem;
    letter-spacing: -0.03em;
}
.section-title .text-gradient { filter: drop-shadow(0 2px 18px rgba(124, 92, 255, 0.35)); }
.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 620px;
    margin: 0 auto;
}

.bg-light { background: var(--surface); position: relative; }

.service-card,
.testimonial-card,
.blog-card,
.stat-card,
.value-card,
.team-card,
.faq-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

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

.service-card {
    border-radius: var(--radius-lg);
    padding: 2.75rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}
.service-card::after {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(124,92,255,0.18), transparent 70%);
    top: -80px; right: -80px;
    opacity: 0;
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl), var(--glow);
    border-color: rgba(124, 92, 255, 0.35);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after { opacity: 1; }

.service-icon {
    width: 84px; height: 84px;
    margin: 0 auto 1.75rem;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    color: #fff;
    box-shadow: var(--glow);
    transition: var(--transition);
    animation: gradient-shift-bg 6s ease infinite, pulse-glow 4s ease-in-out infinite;
}
.service-card:hover .service-icon { transform: scale(1.12) rotate(-6deg); }

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 30px rgba(124, 92, 255, 0.35); }
    50% { box-shadow: 0 0 48px rgba(34, 211, 238, 0.5); }
}

.service-title { font-size: 1.4rem; margin-bottom: 1rem; }
.service-desc { color: var(--text-light); margin-bottom: 1.5rem; }

.service-link {
    color: var(--secondary-light);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}
.service-link:hover { gap: 1rem; color: var(--secondary-light); }

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.feature-list { margin: 2rem 0; }
.feature-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    transition: var(--transition);
}
.feature-item:hover { background: var(--glass); }
.feature-item i { color: var(--secondary-color); font-size: 1.5rem; flex-shrink: 0; }
.feature-item h4 { margin-bottom: 0.25rem; }
.feature-item p { margin-bottom: 0; color: var(--text-light); }

.about-image { position: relative; }
.about-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
}
.about-experience,
.experience-badge {
    position: absolute;
    bottom: -28px;
    right: -28px;
    background: var(--gradient-secondary);
    color: #fff;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-xl), var(--glow);
}
.experience-number { font-size: 2.5rem; font-weight: 900; }

.portfolio-grid,
.testimonials-grid,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    height: 350px;
    border: 1px solid var(--glass-border);
}
.portfolio-image { width: 100%; height: 100%; }
.portfolio-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,6,13,0.95) 0%, rgba(5,6,13,0.2) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-item:hover .portfolio-image img { transform: scale(1.12); }
.portfolio-info { color: #fff; width: 100%; }
.portfolio-info h4 { color: #fff; margin-bottom: 0.4rem; }
.portfolio-links { display: flex; gap: 0.75rem; margin-top: 1rem; }
.portfolio-link {
    width: 42px; height: 42px;
    background: var(--gradient-secondary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.portfolio-link:hover { transform: scale(1.15); color: #fff; box-shadow: var(--glow); }

.testimonial-card {
    padding: 2.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 92, 255, 0.3);
}
.testimonial-rating { color: #fbbf24; margin-bottom: 1rem; }
.testimonial-content {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-author img,
.testimonial-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    object-fit: cover;
}
.testimonial-author h4 { margin-bottom: 0.1rem; font-size: 1.05rem; }
.testimonial-author p { margin-bottom: 0; font-size: 0.9rem; color: var(--text-light); }
.testimonial-avatar {
    background: var(--gradient-secondary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.blog-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(124, 92, 255, 0.3);
}
.blog-image { position: relative; height: 210px; overflow: hidden; }
.blog-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}
.blog-card:hover .blog-image img { transform: scale(1.08); }
.blog-category {
    position: absolute;
    top: 1rem; left: 1rem;
    background: var(--gradient-secondary);
    color: #fff;
    padding: 0.3rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}
.blog-content { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}
.blog-title { margin-bottom: 1rem; font-size: 1.25rem; }
.blog-title a { color: var(--dark-color); transition: var(--transition); }
.blog-title a:hover { color: var(--primary-light); }
.blog-excerpt { color: var(--text-light); margin-bottom: 1rem; line-height: 1.6; flex: 1; }
.blog-link {
    color: var(--secondary-light);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}
.blog-link:hover { gap: 1rem; color: var(--secondary-light); }

.cta-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1340 0%, #0f1b3d 100%);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(50% 80% at 20% 50%, rgba(124,92,255,0.35), transparent 60%),
        radial-gradient(50% 80% at 80% 50%, rgba(34,211,238,0.25), transparent 60%);
    pointer-events: none;
}
.cta-wrapper { text-align: center; max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
.cta-title { color: #fff; margin-bottom: 1rem; }
.cta-subtitle { font-size: 1.25rem; margin-bottom: 2rem; color: rgba(255,255,255,0.85); }

.footer {
    background: var(--bg-deep);
    color: var(--text-color);
    padding-top: 4.5rem;
    border-top: 1px solid var(--glass-border);
    position: relative;
}
.footer-top { padding-bottom: 3rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 3rem;
}
.footer-title {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}
.footer-subtitle { color: var(--dark-color); font-size: 1.1rem; margin-bottom: 1.5rem; }
.footer-desc, .footer-text { color: var(--text-light); line-height: 1.8; }
.footer-contact { font-style: normal; margin-top: 1.25rem; }
.footer-contact p { margin-bottom: 0.6rem; color: var(--text-light); display: flex; align-items: center; gap: 0.6rem; }
.footer-contact i { color: var(--primary-light); width: 18px; }
.footer-contact a { color: var(--text-light); }
.footer-contact a:hover { color: var(--primary-light); }

.social-links { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.social-link {
    width: 42px; height: 42px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.social-link:hover {
    background: var(--gradient-secondary);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: var(--glow);
    border-color: transparent;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.7rem; }
.footer-links a { color: var(--text-light); transition: var(--transition); }
.footer-links a:hover { color: var(--primary-light); padding-left: 6px; }

.newsletter-form { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.newsletter-form input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--dark-color);
    border-radius: var(--radius-full);
    transition: var(--transition);
}
.newsletter-form input::placeholder { color: var(--text-light); }
.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--glass-strong);
}

.footer-bottom { border-top: 1px solid var(--glass-border); padding: 1.75rem 0; }
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom-content p { margin-bottom: 0; color: var(--text-light); }
.footer-bottom-links { display: flex; gap: 1.5rem; align-items: center; }
.footer-bottom-links a { color: var(--text-light); }
.footer-bottom-links a:hover { color: var(--primary-light); }

.back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 52px; height: 52px;
    background: var(--gradient-secondary);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: var(--shadow), var(--glow);
    z-index: var(--z-fixed);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg), var(--glow); }

.flash-messages {
    position: fixed;
    top: 90px; left: 0; right: 0;
    z-index: var(--z-modal);
    pointer-events: none;
}
.alert { margin-bottom: 1rem; }
.alert-content {
    background: var(--surface-2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
}
.alert-content span { color: var(--dark-color); }
.alert-success .alert-content { border-left: 4px solid var(--success-color); }
.alert-danger .alert-content { border-left: 4px solid var(--danger-color); }
.alert-info .alert-content { border-left: 4px solid var(--info-color); }
.alert-content > i { margin-right: 1rem; font-size: 1.25rem; }
.alert-success > .alert-content > i, .alert-success i { color: var(--success-color); }
.alert-danger > .alert-content > i, .alert-danger i { color: var(--danger-color); }
.alert-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.1rem;
    margin-left: 1rem;
}
.alert-close:hover { color: var(--dark-color); }

@keyframes fadeOut { to { opacity: 0; transform: translateY(-10px); } }

.page-header {
    position: relative;
    padding: 150px 0 80px;
    background: linear-gradient(135deg, #1a1340 0%, #0d1530 60%, #0a1228 100%);
    color: #fff;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(45% 80% at 15% 30%, rgba(124,92,255,0.35), transparent 60%),
        radial-gradient(45% 80% at 85% 50%, rgba(34,211,238,0.25), transparent 60%);
}
.page-header-bg {
    position: absolute;
    inset: 0;
    opacity: 0.6;
    background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1.2px, transparent 1.3px);
    background-size: 30px 30px;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 35%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 35%, transparent 80%);
}
.page-header-content { position: relative; z-index: 1; }
.page-title { font-size: clamp(2.2rem, 5vw, 3.25rem); margin-bottom: 1rem; color: #fff; }
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
}
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: #fff; }

.form-group { margin-bottom: 1.4rem; }
.form-group label,
.form-check-label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--dark-color); }
.form-control {
    width: 100%;
    padding: 0.85rem 1.1rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    color: var(--dark-color);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}
.form-control::placeholder { color: var(--text-light); }
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--glass-strong);
    box-shadow: 0 0 0 3px var(--primary-50);
}
textarea.form-control { min-height: 150px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.invalid-feedback { color: var(--danger-color); font-size: 0.85rem; margin-top: 0.4rem; display: block; }
.form-control.is-invalid { border-color: var(--danger-color); }

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    list-style: none;
    flex-wrap: wrap;
}
.pagination-link {
    min-width: 44px;
    height: 44px;
    padding: 0 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
}
.pagination-link:hover,
.pagination-link.active {
    background: var(--gradient-secondary);
    color: #fff;
    border-color: transparent;
}
.pagination-ellipsis { color: var(--text-light); padding: 0 0.5rem; }

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
}
.badge-success, .bg-success { background: rgba(52,211,153,0.15); color: var(--success-color); }
.badge-warning, .bg-warning { background: rgba(251,191,36,0.15); color: var(--warning-color); }
.bg-info { background: rgba(96,165,250,0.15); color: var(--info-color); }
.bg-primary { background: var(--primary-50); color: var(--primary-light); }

.tag, .tag-link {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-full);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    font-size: 0.85rem;
    transition: var(--transition);
}
.tag-link:hover { background: var(--primary-50); color: var(--primary-light); border-color: var(--primary-color); }

.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-light);
}
.empty-state i { font-size: 3rem; color: var(--text-light); margin-bottom: 1rem; }

.loading {
    display: inline-block;
    width: 18px; height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 992px) {
    .about-wrapper { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .section { padding: 64px 0; }
    .section-header { margin-bottom: 2.5rem; }

    .page-header { padding: 110px 0 56px; }

    .hero-title { font-size: clamp(2.1rem, 8vw, 2.8rem); }
    .hero-subtitle { margin-bottom: 2.25rem; font-size: 1.05rem; }
    .hero-buttons { margin-bottom: 2.5rem; }

    .nav-menu {
        position: fixed;
        top: 0; right: 0;
        width: min(82%, 360px);
        height: 100vh;
        background: rgba(10, 12, 26, 0.97);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--glass-border);
        flex-direction: column;
        justify-content: flex-start;
        padding: 6rem 2rem 2rem;
        box-shadow: -20px 0 60px rgba(0,0,0,0.5);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 1.5rem;
        z-index: var(--z-modal);
    }
    .nav-menu.active { transform: translateX(0); }
    .nav-list { flex-direction: column; width: 100%; gap: 0.5rem; }
    .nav-list li { width: 100%; }
    .nav-link {
        display: block;
        width: 100%;
        padding: 0.9rem 1rem;
        border-radius: var(--radius);
        font-size: 1.1rem;
    }
    .nav-link:hover, .nav-link.active { background: var(--glass); }
    .nav-link::after { display: none; }
    .nav-cta { width: 100%; }
    .mobile-menu-toggle { display: block; z-index: var(--z-tooltip); }

    .hero { padding: 110px 0 64px; min-height: auto; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        width: 100%;
    }
    .stat-item { padding: 1.25rem 0.75rem; text-align: center; }
    .stat-number { font-size: 2rem; }
    .stat-label { font-size: 0.85rem; }

    .services-grid,
    .portfolio-grid,
    .testimonials-grid,
    .blog-grid { grid-template-columns: 1fr; }

    .about-experience, .experience-badge { right: 50%; transform: translateX(50%); bottom: -24px; }

    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-contact p { justify-content: center; }
    .social-links { justify-content: center; }
    .footer-bottom-content { flex-direction: column; text-align: center; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form .btn { width: 100%; }

    .form-row { grid-template-columns: 1fr; }
    .back-to-top { bottom: 20px; right: 20px; width: 46px; height: 46px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .section { padding: 52px 0; }

    .page-header { padding: 96px 0 44px; }
    .page-title { font-size: clamp(1.8rem, 9vw, 2.2rem); }

    .hero { padding: 100px 0 52px; }
    .hero-title { font-size: clamp(1.9rem, 9vw, 2.4rem); letter-spacing: -0.02em; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 2rem; }
    .hero-slogan, .hero-badge { font-size: 0.72rem; letter-spacing: 2px; padding: 0.45rem 0.9rem; }

    .hero-stats { grid-template-columns: 1fr; }
    .stat-item { display: flex; align-items: baseline; justify-content: center; gap: 0.6rem; padding: 1rem 1.25rem; }
    .stat-number { font-size: 1.8rem; margin-bottom: 0; }

    .footer-grid { gap: 2rem; }
    .nav-menu { width: 100%; }
}

@media print {
    body::before, body::after { display: none; }
    .header, .footer, .back-to-top, .btn, .mobile-menu-toggle, .hero-bg { display: none !important; }
    body { background: #fff; color: #000; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
