/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #1a1a24;
    --border-color: #27272a;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-2: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
}

html {
    scroll-behavior: smooth;
}

/* Mobile scroll optimization */
@media (max-width: 768px) {
    html {
        scroll-behavior: auto;
    }
    
    /* Improve scrolling performance */
    body {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Mobile navbar enhancement */
@media (max-width: 768px) {
    .navbar {
        background: rgba(10, 10, 15, 0.85);
        backdrop-filter: blur(30px) saturate(180%);
        -webkit-backdrop-filter: blur(30px) saturate(180%);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    }
}

/* Mobile navbar spacing */
@media (max-width: 768px) {
    .navbar {
        padding: 0.875rem 0;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.75rem 0;
    }
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 1.8rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

/* Animated Background Elements */
.animated-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Floating Particles */
.bg-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.4;
    animation: float-particle-bg 12s infinite ease-in-out;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.particle-1 {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
    background: var(--primary-color);
}

.particle-2 {
    top: 30%;
    left: 80%;
    animation-delay: 2s;
    background: var(--secondary-color);
    width: 6px;
    height: 6px;
}

.particle-3 {
    top: 70%;
    left: 25%;
    animation-delay: 4s;
    background: var(--accent-color);
    width: 10px;
    height: 10px;
}

.particle-4 {
    top: 50%;
    left: 70%;
    animation-delay: 6s;
    background: var(--primary-color);
    width: 7px;
    height: 7px;
}

.particle-5 {
    top: 85%;
    left: 60%;
    animation-delay: 8s;
    background: var(--secondary-color);
    width: 5px;
    height: 5px;
}

.particle-6 {
    top: 20%;
    left: 50%;
    animation-delay: 10s;
    background: var(--accent-color);
    width: 9px;
    height: 9px;
}

@keyframes float-particle-bg {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.2;
    }
    25% {
        transform: translate(50px, -80px) scale(1.3);
        opacity: 0.5;
    }
    50% {
        transform: translate(-30px, -120px) scale(0.7);
        opacity: 0.3;
    }
    75% {
        transform: translate(70px, -40px) scale(1.1);
        opacity: 0.4;
    }
}

/* Animated Shapes */
.bg-shape {
    position: absolute;
    border: 2px solid;
    opacity: 0.1;
    animation: rotate-shape 20s infinite linear;
}

.shape-1 {
    width: 100px;
    height: 100px;
    border-color: var(--primary-color);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 15%;
    left: 10%;
    animation-duration: 25s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    border-color: var(--secondary-color);
    border-radius: 50%;
    top: 60%;
    right: 15%;
    animation-duration: 30s;
    animation-direction: reverse;
}

.shape-3 {
    width: 120px;
    height: 120px;
    border-color: var(--accent-color);
    border-radius: 20% 80% 80% 20% / 20% 20% 80% 80%;
    bottom: 20%;
    left: 20%;
    animation-duration: 35s;
}

@keyframes rotate-shape {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Animated Lines */
.bg-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.15;
    animation: move-line 15s infinite ease-in-out;
}

.line-1 {
    width: 200px;
    height: 2px;
    top: 25%;
    left: -200px;
    animation-delay: 0s;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.line-2 {
    width: 150px;
    height: 2px;
    top: 55%;
    right: -150px;
    animation-delay: 5s;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    animation-duration: 18s;
}

.line-3 {
    width: 180px;
    height: 2px;
    bottom: 30%;
    left: -180px;
    animation-delay: 10s;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    animation-duration: 20s;
}

@keyframes move-line {
    0% {
        transform: translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateX(calc(100vw + 200px));
        opacity: 0;
    }
}

/* Section Title Background Animation */
.section-title-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 200px;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.title-animation-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: title-pulse 6s ease-in-out infinite;
    filter: blur(40px);
}

@keyframes title-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.5;
    }
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 2;
}

/* Mobile spacing adjustments */
@media (max-width: 768px) {
    .hero-content {
        margin-top: 10px;
        padding-top: 10px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        margin-top: 20px;
        padding-top: 15px;
    }
}

/* Text Background Animation */
.text-background-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.text-glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 4s ease-in-out infinite;
    filter: blur(60px);
}

.text-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.text-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: float-particle 8s infinite ease-in-out;
}

.text-particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    background: var(--primary-color);
}

.text-particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 1.5s;
    background: var(--secondary-color);
}

.text-particle:nth-child(3) {
    top: 80%;
    left: 30%;
    animation-delay: 3s;
    background: var(--accent-color);
}

.text-particle:nth-child(4) {
    top: 30%;
    left: 70%;
    animation-delay: 4.5s;
    background: var(--primary-color);
}

.text-particle:nth-child(5) {
    top: 50%;
    left: 20%;
    animation-delay: 6s;
    background: var(--secondary-color);
}

@keyframes pulse-glow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.5;
    }
}

@keyframes float-particle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(30px, -40px) scale(1.2);
        opacity: 0.7;
    }
    50% {
        transform: translate(-20px, -60px) scale(0.8);
        opacity: 0.5;
    }
    75% {
        transform: translate(40px, -20px) scale(1.1);
        opacity: 0.6;
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
    position: relative;
    z-index: 3;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

/* Mobile text shadow optimization */
@media (max-width: 768px) {
    .hero-title {
        text-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    }
}

@media (max-width: 480px) {
    .hero-title {
        text-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
    }
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.4));
}

/* Mobile gradient text optimization */
@media (max-width: 768px) {
    .gradient-text {
        filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.5));
    }
}

@media (max-width: 480px) {
    .gradient-text {
        filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.6));
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 60px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
}

.service-features li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* About Section */
.about {
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-values {
    margin-top: 2rem;
}

.value-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.value-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.value-text h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.value-text p {
    color: var(--text-secondary);
}

.about-visual {
    position: relative;
}

.visual-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.card-content {
    position: relative;
    z-index: 1;
}

.visual-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.visual-stat {
    text-align: center;
}

.visual-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.visual-label {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: var(--bg-secondary);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Contact Page */
.contact-hero {
    padding: 140px 0 60px;
    text-align: center;
    background: var(--bg-secondary);
}

.contact-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.contact-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.contact-section {
    padding: 80px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-methods {
    margin-bottom: 3rem;
}

.contact-method {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.method-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.method-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.method-content p {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.social-links h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    display: block;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    display: block;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn.loading .btn-loader {
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-description {
    color: var(--text-secondary);
    margin-top: 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    max-width: 300px;
    width: 100%;
    padding: 2rem;
}

.loader-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
}

.loader-icon {
    font-size: 2.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

.loader-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loader-spinner {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.spinner-ring {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: bounce 1.4s ease-in-out infinite both;
}

.spinner-ring:nth-child(1) {
    animation-delay: -0.32s;
}

.spinner-ring:nth-child(2) {
    animation-delay: -0.16s;
}

.loader-progress {
    width: 100%;
    height: 4px;
    background: var(--bg-card);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-1);
    width: 0%;
    animation: progress 1.5s ease-in-out forwards;
}

@keyframes progress {
    to {
        width: 100%;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Social Stats Section */
.social-stats {
    padding: 100px 0;
    background: var(--bg-primary);
}

.social-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.social-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.social-stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.social-stat-card:hover::before {
    transform: scaleX(1);
}

.social-stat-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.social-stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: block;
}

.social-stat-label {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.social-stat-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.social-stat-platforms span {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.social-stat-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.social-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.platform-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.platform-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
}

.platform-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.platform-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.platform-followers {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.platform-count {
    color: var(--primary-color);
    font-weight: 700;
}

/* Legal Pages */
.legal-hero {
    padding: 140px 0 60px;
    text-align: center;
    background: var(--bg-secondary);
}

.legal-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.legal-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.legal-content {
    padding: 80px 0;
}

.legal-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.legal-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.legal-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-section ul li {
    margin-bottom: 0.5rem;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--text-primary);
}

.footer-legal-links span {
    color: var(--text-secondary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    /* Overlay when menu is open */
    .nav-menu.active::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        z-index: -1;
        animation: fadeInOverlay 0.4s ease;
    }

    @keyframes fadeInOverlay {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        flex-direction: column;
        width: 100%;
        height: 100vh;
        padding: 100px 2rem 2rem;
        background: rgba(10, 10, 15, 0.7);
        backdrop-filter: blur(40px) saturate(180%);
        -webkit-backdrop-filter: blur(40px) saturate(180%);
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
        pointer-events: none;
        z-index: -1;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin-bottom: 1rem;
        opacity: 0;
        transform: translateX(-20px);
        animation: slideInMenu 0.4s ease forwards;
    }

    .nav-menu.active li:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-menu.active li:nth-child(2) {
        animation-delay: 0.15s;
    }

    .nav-menu.active li:nth-child(3) {
        animation-delay: 0.2s;
    }

    .nav-menu.active li:nth-child(4) {
        animation-delay: 0.25s;
    }

    .nav-link {
        display: block;
        padding: 1rem 1.5rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
        font-size: 1.1rem;
        font-weight: 600;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(99, 102, 241, 0.2);
        border-color: rgba(99, 102, 241, 0.4);
        transform: translateX(5px);
        box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    }

    .nav-link::after {
        display: none;
    }

    @keyframes slideInMenu {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        max-width: 100%;
    }

    .stat-card {
        max-width: 100%;
        min-width: 0;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: auto;
        min-width: 200px;
        max-width: 85%;
        padding: 0.875rem 2rem;
    }

    /* Add more space from top on mobile */
    .hero {
        padding: 130px 0 60px;
    }

    .hero-content {
        margin-top: 15px;
    }

    /* Mobile Animation Optimizations - Reduced complexity */
    .gradient-orb {
        animation-duration: 40s;
        filter: blur(50px);
        opacity: 0.15;
    }

    .service-card:hover,
    .social-stat-card:hover,
    .platform-item:hover,
    .stat-card:hover {
        transform: none;
    }

    .card-glow {
        animation-duration: 40s;
        opacity: 0.1;
    }

    /* Reduce animation complexity on mobile */
    .hero-title,
    .hero-subtitle,
    .hero-buttons {
        animation-duration: 0.4s !important;
    }

    /* Simplify background effects on mobile - but keep them visible */
    .hero-background {
        opacity: 0.7;
    }

    .bg-particle {
        opacity: 0.4;
        width: 6px;
        height: 6px;
        animation-duration: 15s;
    }

    .bg-shape {
        opacity: 0.15;
        width: 60px;
        height: 60px;
        animation-duration: 25s;
    }

    .bg-line {
        opacity: 0.2;
        height: 1px;
        animation-duration: 20s;
    }

    .text-glow-effect {
        filter: blur(40px);
        opacity: 0.3;
        width: 400px;
        height: 400px;
    }

    .title-animation-bg {
        filter: blur(30px);
        opacity: 0.25;
        width: 300px;
        height: 300px;
    }

    .text-particle {
        width: 3px;
        height: 3px;
        opacity: 0.5;
        animation-duration: 10s;
    }

    /* Reduce number of visible particles on mobile */
    .particle-4,
    .particle-5,
    .particle-6 {
        display: none;
    }

    .shape-3 {
        display: none;
    }

    .line-2,
    .line-3 {
        display: none;
    }

    .service-card::before,
    .social-stat-card::before {
        height: 2px;
    }

    /* Optimize loader for mobile */
    .page-loader {
        backdrop-filter: blur(0);
    }

    .loader-spinner .spinner-ring {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .service-card,
    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .hero {
        padding: 140px 0 60px;
        min-height: auto;
    }

    .hero-content {
        margin-top: 20px;
    }

    .social-stat-card {
        padding: 2rem 1.5rem;
    }

    .social-stat-number {
        font-size: 2rem;
    }

    .social-stat-label {
        font-size: 1.25rem;
    }

    .platform-item {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }

    .legal-section h2 {
        font-size: 1.5rem;
    }

    .legal-section h3 {
        font-size: 1.25rem;
    }

    .legal-section p,
    .legal-section ul {
        font-size: 0.95rem;
    }

    .footer-legal-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-legal-links span {
        display: none;
    }

    /* Extra mobile optimizations for small screens - More attractive design */
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-top: 10px;
        margin-bottom: 2rem;
        letter-spacing: -0.5px;
        text-shadow: 0 0 30px rgba(99, 102, 241, 0.5), 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.6;
        padding: 0 1rem;
    }

    .hero-buttons {
        gap: 1rem;
        margin-top: 2rem;
        align-items: center;
    }

    .btn {
        width: auto;
        min-width: 180px;
        max-width: 80%;
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    }

    .btn-primary {
        background: var(--gradient-1);
        box-shadow: 0 6px 30px rgba(99, 102, 241, 0.5);
    }

    .btn-primary:active {
        transform: scale(0.98);
        box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    }

    .btn-secondary {
        border: 2px solid rgba(99, 102, 241, 0.5);
        background: rgba(99, 102, 241, 0.1);
        backdrop-filter: blur(10px);
    }

    .stat-card {
        padding: 1.25rem 1rem;
        border-radius: 16px;
        background: rgba(26, 26, 36, 0.8);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(99, 102, 241, 0.3);
        box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
    }

    .stat-number {
        font-size: 2rem;
        margin-bottom: 0.4rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        margin-top: 40px;
        max-width: 100%;
    }

    .stat-card {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .service-card,
    .social-stat-card {
        border-radius: 24px;
        background: rgba(26, 26, 36, 0.9);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(99, 102, 241, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    .section-title {
        font-size: 2rem;
        text-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    }

    /* Enhanced mobile visual effects */
    .hero {
        background: linear-gradient(180deg, rgba(10, 10, 15, 0.95) 0%, rgba(17, 17, 24, 0.98) 100%);
    }

    .platform-item {
        background: rgba(26, 26, 36, 0.8);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(99, 102, 241, 0.2);
        box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
    }

    .about-visual .visual-card {
        background: rgba(26, 26, 36, 0.9);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(99, 102, 241, 0.3);
        box-shadow: 0 8px 32px rgba(99, 102, 241, 0.25);
    }

    /* Enhanced gradients on mobile */
    .gradient-text {
        filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.6));
    }

    /* Better spacing and visual hierarchy */
    .section-header {
        margin-bottom: 3rem;
    }

    .services,
    .about,
    .social-stats {
        padding: 80px 0;
    }

    /* Keep animations visible but simplified on small screens */
    .text-background-animation {
        width: 100%;
        height: 100%;
    }

    .text-glow-effect {
        width: 300px;
        height: 300px;
        filter: blur(35px);
        opacity: 0.25;
    }

    .text-particle {
        width: 2px;
        height: 2px;
        opacity: 0.4;
    }

    .section-title-bg {
        height: 150px;
    }

    .title-animation-bg {
        width: 250px;
        height: 250px;
        filter: blur(25px);
        opacity: 0.2;
    }

    /* Reduce particles and shapes on very small screens */
    .bg-particle {
        width: 4px;
        height: 4px;
        opacity: 0.3;
    }

    .particle-3,
    .particle-4,
    .particle-5,
    .particle-6 {
        display: none;
    }

    .bg-shape {
        width: 50px;
        height: 50px;
        opacity: 0.1;
    }

    .shape-2,
    .shape-3 {
        display: none;
    }

    .bg-line {
        height: 1px;
        opacity: 0.15;
    }

    .line-2,
    .line-3 {
        display: none;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .stat-card {
        padding: 1rem 0.75rem;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin-top: 30px;
        max-width: 100%;
    }

    .stat-card {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    /* Simplify loader on very small screens */
    .loader-logo {
        font-size: 1.5rem;
    }

    .loader-icon {
        font-size: 2rem;
    }

    /* Reduce padding on mobile */
    .services,
    .about,
    .social-stats,
    .cta {
        padding: 60px 0;
    }
}

/* Mobile Optimization Improvements */
@media (max-width: 768px) {
    .social-stats-grid {
        grid-template-columns: 1fr;
    }

    .social-platforms {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-stat-platforms {
        font-size: 0.8rem;
    }

    .social-stat-platforms span {
        padding: 0.4rem 0.8rem;
    }

    /* Performance optimizations */
    .hero-title,
    .section-title,
    .legal-title {
        will-change: auto;
    }

    /* Reduce shadow complexity */
    .btn-primary {
        box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    }

    .stat-card:hover,
    .service-card:hover {
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    }

    /* Optimize animations for tablet/mobile */
    .bg-particle {
        animation-duration: 18s;
    }

    .bg-shape {
        animation-duration: 30s;
    }

    .bg-line {
        animation-duration: 25s;
    }

    .text-glow-effect {
        animation-duration: 5s;
    }

    .title-animation-bg {
        animation-duration: 8s;
    }
}

/* Touch Optimization */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-link,
    .service-card,
    .social-stat-card,
    .platform-item {
        -webkit-tap-highlight-color: rgba(99, 102, 241, 0.2);
    }

    .btn:active {
        transform: scale(0.98);
    }

    /* Disable hover effects on touch devices */
    .service-card:hover,
    .social-stat-card:hover,
    .platform-item:hover,
    .stat-card:hover,
    .contact-method:hover {
        transform: none;
        box-shadow: none;
        border-color: var(--border-color);
    }

    /* Keep animations but optimize them for touch devices */
    .bg-particle {
        animation-duration: 20s;
        opacity: 0.35;
    }

    .bg-shape {
        animation-duration: 35s;
        opacity: 0.12;
    }

    .text-glow-effect,
    .title-animation-bg {
        animation-duration: 6s;
    }
}

/* Performance Optimizations */
.service-card,
.social-stat-card,
.platform-item,
.stat-card {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Mobile-specific performance */
@media (max-width: 768px) {
    .service-card,
    .social-stat-card,
    .platform-item,
    .stat-card {
        will-change: auto;
    }

    /* Use GPU acceleration only when needed */
    .page-loader {
        transform: translateZ(0);
    }

    /* Reduce repaints */
    .navbar {
        will-change: auto;
    }
}

/* Prefers reduced motion */
@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;
    }

    .gradient-orb,
    .card-glow {
        animation: none !important;
    }
    
    .page-loader {
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
}

/* Additional mobile performance tweaks */
@media (max-width: 768px) {
    /* Reduce backdrop blur on mobile for better performance */
    .navbar {
        backdrop-filter: blur(10px);
    }
    
    /* Simplify gradients on mobile */
    .btn-primary {
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    }
    
    /* Optimize font rendering */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeSpeed;
    }
    
    /* Reduce repaints */
    .hero-content,
    .section-header {
        contain: layout style paint;
    }
}

