/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    font-weight: 400;
    letter-spacing: -0.025em;
    overflow-x: hidden;
    cursor: none;
}

body.loaded {
    cursor: auto;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-container {
    text-align: center;
    color: white;
}

.loading-logo-img {
    height: auto;
    width: 200px;
}

@keyframes logoGlow {
    from { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5)); }
    to { filter: drop-shadow(0 0 40px rgba(240, 147, 251, 0.8)); }
}

.loading-spinner {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
}

.spinner-ring {
    position: absolute;
    border: 4px solid transparent;
    border-top: 4px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(1) {
    width: 120px;
    height: 120px;
    animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
    width: 90px;
    height: 90px;
    top: 15px;
    left: 15px;
    animation-delay: 0.3s;
    border-top-color: rgba(240, 147, 251, 0.8);
}

.spinner-ring:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 30px;
    left: 30px;
    animation-delay: 0.6s;
    border-top-color: rgba(102, 126, 234, 0.8);
}

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

.loading-text {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.9;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Particle Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

/* Cursor Trail */
.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: screen;
}

/* Hero Shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: morphShape 20s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation-delay: 5s;
    background: radial-gradient(circle, rgba(240, 147, 251, 0.1) 0%, transparent 70%);
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 20%;
    animation-delay: 10s;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.1) 0%, transparent 70%);
}

.shape-4 {
    width: 250px;
    height: 250px;
    top: 30%;
    right: 30%;
    animation-delay: 15s;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

@keyframes morphShape {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        border-radius: 50%;
    }
    25% {
        transform: scale(1.2) rotate(90deg);
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    50% {
        transform: scale(0.8) rotate(180deg);
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
    75% {
        transform: scale(1.1) rotate(270deg);
        border-radius: 30% 70% 30% 70% / 70% 30% 70% 30%;
    }
}

/* Card Effects */
.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient);
    border-radius: 22px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(8px);
}

.floating-card:hover .card-glow {
    opacity: 0.4;
    animation: cardGlow 2s ease-in-out infinite;
}

@keyframes cardGlow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.card-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    pointer-events: none;
}

.card-particles::before,
.card-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(102, 126, 234, 0.6);
    border-radius: 50%;
    opacity: 0;
}

.floating-card:hover .card-particles::before {
    animation: particleFloat1 3s ease-in-out infinite;
}

.floating-card:hover .card-particles::after {
    animation: particleFloat2 3s ease-in-out infinite 1.5s;
}

@keyframes particleFloat1 {
    0% {
        opacity: 0;
        transform: translateY(100%) translateX(0%);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-100%) translateX(50%);
    }
}

@keyframes particleFloat2 {
    0% {
        opacity: 0;
        transform: translateY(100%) translateX(100%);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-100%) translateX(-50%);
    }
}

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

/* Color Variables */
:root {
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --background-light: #f7fafc;
    --background-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-gradient: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    --border-color: #e2e8f0;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-hover: linear-gradient(135deg, #5a67d8 0%, #6b46c1 50%, #ec4899 100%);
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-large: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05);
    --shadow-colored: 0 10px 40px rgba(102, 126, 234, 0.2);
    --glassmorphism: rgba(255, 255, 255, 0.25);
    --backdrop-blur: blur(10px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo-img {
    height: auto;
    width: 80px;
    position: relative;
}

.nav-logo h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    border-radius: 1px;
    opacity: 0.6;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, rgba(247, 250, 252, 1), transparent);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--white);
    letter-spacing: -0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.gradient-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #ffffff 0%, #f093fb 100%);
    border-radius: 2px;
    opacity: 0.8;
}

.hero-description {
    font-size: 1.375rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    line-height: 1.8;
    font-weight: 400;
    max-width: 90%;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.025em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    box-shadow: var(--shadow-medium);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-large);
    background: rgba(255, 255, 255, 1);
    color: var(--primary-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: var(--backdrop-blur);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-medium);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: var(--backdrop-blur);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-large);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.2rem;
    min-width: 200px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--backdrop-blur);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-large);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 6s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 160px;
    max-width: 200px;
}

@media (max-width: 768px) {
    .floating-card {
        padding: 1rem 1.5rem;
        min-width: 140px;
        max-width: 170px;
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .floating-card {
        padding: 0.8rem 1rem;
        min-width: 120px;
        max-width: 150px;
        gap: 0.6rem;
    }
}

.floating-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.floating-card i {
    font-size: 2.25rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.3));
}

.floating-card span {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
    letter-spacing: -0.025em;
}

.card-1 {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
    z-index: 3;
}

.card-2 {
    top: 40%;
    right: 10%;
    animation-delay: 2s;
    z-index: 4;
}

.card-3 {
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 4s;
    z-index: 5;
}

@media (max-width: 1024px) {
    .card-1 {
        top: 10%;
        left: 5%;
    }
    
    .card-2 {
        top: 35%;
        right: 5%;
    }
    
    .card-3 {
        bottom: 10%;
        left: 50%;
    }
}

@media (max-width: 768px) {
    .card-1 {
        top: 8%;
        left: 3%;
    }
    
    .card-2 {
        top: 30%;
        right: 3%;
    }
    
    .card-3 {
        bottom: 8%;
        left: 50%;
    }
}

@media (max-width: 480px) {
    .hero-visual {
        height: 250px;
    }
    
    .card-1 {
        top: 5%;
        left: 2%;
    }
    
    .card-2 {
        top: 25%;
        right: 2%;
    }
    
    .card-3 {
        bottom: 5%;
        left: 50%;
    }
    
    .floating-card {
        padding: 0.8rem 1rem;
        font-size: 0.8rem;
    }
    
    .floating-card i {
        font-size: 1.3rem;
    }
    
    .floating-card span {
        font-size: 0.9rem;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.card-3 {
    animation-name: floatCentered;
}

@keyframes floatCentered {
    0%, 100% { transform: translateX(-50%) translateY(0px) rotateY(0deg); }
    25% { transform: translateX(-50%) translateY(-10px) rotateY(5deg); }
    50% { transform: translateX(-50%) translateY(-20px) rotateY(0deg); }
    75% { transform: translateX(-50%) translateY(-10px) rotateY(-5deg); }
}

/* 3D Transform Effects */
.floating-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.floating-card:hover {
    transform: translateY(-5px) scale(1.05) rotateX(10deg) rotateY(10deg);
}

/* Services Section */
.services {
    padding: 120px 0;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><defs><pattern id="hexagon" width="60" height="60" patternUnits="userSpaceOnUse"><polygon points="30,5 50,17.32 50,42.68 30,55 10,42.68 10,17.32" fill="none" stroke="%23e2e8f0" stroke-width="0.5" opacity="0.5"/></pattern></defs><rect width="100%" height="100%" fill="url(%23hexagon)"/></svg>');
    opacity: 0.3;
}

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

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.05em;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.375rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: -0.025em;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}
.services-grid h3 {
     font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.05em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Featured service spans both columns in top row */
.service-card.featured {
    grid-column: span 2;
    grid-row: 1;
    max-width: none;
    margin: 0;
}

/* Other services in bottom row */
.service-card:not(.featured) {
    grid-row: 2;
}

@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 1fr;
        gap: 2rem;
        max-width: 1400px;
    }
    
    .service-card.featured {
        grid-column: span 1;
        grid-row: 1;
    }
    
    .service-card:not(.featured) {
        grid-row: 1;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .service-card.featured {
        grid-column: span 2;
        grid-row: 1;
    }
    
    .service-card:not(.featured) {
        grid-row: 2;
    }
}

.service-card {
    background: var(--card-gradient);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    backdrop-filter: var(--backdrop-blur);
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
}

.service-card.featured {
    min-height: 450px;
    padding: 3rem;
}

@media (min-width: 1200px) {
    .service-card {
        min-height: 480px;
        padding: 2.5rem;
    }
    
    .service-card.featured {
        min-height: 480px;
        padding: 2.5rem;
    }
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s;
}

.service-card:hover::before {
    left: 100%;
}

/* Service Background Effects */
.service-bg-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 24px;
}

.service-card:hover .service-bg-effect {
    opacity: 1;
    animation: bgPulse 3s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.premium-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--gradient);
    border-radius: 34px;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.5s ease;
    z-index: -2;
}

.service-card.featured:hover .premium-glow {
    opacity: 0.3;
    animation: premiumGlow 2s ease-in-out infinite;
}

@keyframes premiumGlow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02) rotateX(5deg) rotateY(5deg);
    box-shadow: var(--shadow-large);
    border-color: rgba(102, 126, 234, 0.3);
}

.service-card.featured:hover {
    transform: translateY(-20px) scale(1.05) rotateX(10deg) rotateY(10deg);
}

.service-card.featured {
    border: 2px solid transparent;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: var(--shadow-colored);
    transform: scale(1.02);
    position: relative;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .service-card.featured {
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .service-card.featured {
        margin-top: 12px;
    }
}

.service-card.featured::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: var(--gradient);
    border-radius: 24px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
}

@media (min-width: 1200px) {
    .service-card.featured {
        transform: scale(1.05);
    }
}

.service-badge {
    position: absolute;
    top: -1px;
    left: 70%;
    transform: translateX(-40%);
    background: var(--gradient);
    color: var(--white);
    padding: 30px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: var(--shadow-medium);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 5;
    min-width: 100px;
    text-align: left;
}

/* Ensure the services section has enough top padding for the badge */
.services {
    padding: 140px 0 120px;
}

/* Add extra margin to services grid to accommodate badge */
.services-grid {
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .service-badge {
        top: -10px;
        padding: 8px 16px;
        font-size: 0.7rem;
        min-width: 100px;
        border-radius: 18px;
    }
    
    .services {
        padding: 120px 0;
    }
    
    .services-grid {
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .service-badge {
        top: -8px;
        padding: 6px 14px;
        font-size: 0.65rem;
        min-width: 90px;
        border-radius: 16px;
    }
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    box-shadow: var(--shadow-colored);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-card.featured .service-icon {
    width: 90px;
    height: 90px;
    border-radius: 22px;
    margin-bottom: 2rem;
}

@media (min-width: 1200px) {
    .service-icon {
        width: 70px;
        height: 70px;
        border-radius: 18px;
        margin-bottom: 1.25rem;
    }
    
    .service-card.featured .service-icon {
        width: 70px;
        height: 70px;
        border-radius: 18px;
        margin-bottom: 1.25rem;
    }
}

.service-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient);
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-card:hover .service-icon::before {
    opacity: 0.3;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    line-height: 1.3;
    flex-shrink: 0;
}

.service-card.featured h3 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 1200px) {
    .service-card h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .service-card.featured h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
    font-weight: 400;
    flex-grow: 1;
}

.service-card.featured p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

@media (min-width: 1200px) {
    .service-card p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
    
    .service-card.featured p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
}

.service-features {
    list-style: none;
    flex-shrink: 0;
    margin-top: auto;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.service-features li:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.service-features i {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    font-size: 1.1rem;
}

/* Testimonials Section */
.testimonials {
    padding: 120px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.4;
    animation: bgMove 20s ease-in-out infinite;
}

@keyframes bgMove {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(10px) translateY(-10px); }
    50% { transform: translateX(-5px) translateY(10px); }
    75% { transform: translateX(-10px) translateY(-5px); }
}

.testimonials .section-title {
    color: var(--white);
}

.testimonials .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* Testimonial Background Effects */
.testimonial-bg-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(102, 126, 234, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 24px;
}

.testimonial-card:hover .testimonial-bg-effect {
    opacity: 1;
    animation: testimonialGlow 3s ease-in-out infinite;
}

@keyframes testimonialGlow {
    0%, 100% { 
        background: radial-gradient(circle at 30% 70%, rgba(102, 126, 234, 0.1) 0%, transparent 60%);
    }
    50% { 
        background: radial-gradient(circle at 70% 30%, rgba(240, 147, 251, 0.1) 0%, transparent 60%);
    }
}

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--backdrop-blur);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-large);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 8rem;
    color: rgba(102, 126, 234, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

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

.testimonial-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-style: italic;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-medium);
    border: 3px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.testimonial-card:hover .author-avatar img {
    transform: scale(1.1);
    border-color: rgba(102, 126, 234, 0.4);
}

.author-info h4 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    letter-spacing: -0.025em;
}

.author-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

/* CTA Section */
.cta {
    padding: 120px 0;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    animation: gridMove 15s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

/* CTA Background Animation */
.cta-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: ctaWave 8s ease-in-out infinite;
}

@keyframes ctaWave {
    0%, 100% {
        background: radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    }
    25% {
        background: radial-gradient(circle at 80% 20%, rgba(240, 147, 251, 0.1) 0%, transparent 70%);
    }
    50% {
        background: radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 70%);
    }
    75% {
        background: radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    }
}

.cta-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, #ffffff 0%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    font-size: 1.375rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: var(--white);
    padding: 80px 0 30px;
    position: relative;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.025em;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--backdrop-blur);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--gradient);
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-medium);
    border-color: transparent;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #9ca3af;
}

.contact-info i {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Additional Premium Effects */
.btn {
    position: relative;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    border-radius: 16px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
    opacity: 0.1;
    animation: btnGlow 2s ease-in-out infinite;
}

@keyframes btnGlow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Scroll-based animations */
.hero {
    will-change: transform;
}

/* Performance optimizations */
.floating-card,
.service-card,
.testimonial-card {
    will-change: transform;
    backface-visibility: hidden;
}

/* Enhanced mobile interactions */
@media (hover: none) and (pointer: coarse) {
    .floating-card:active,
    .service-card:active,
    .testimonial-card:active {
        transform: scale(0.98);
    }
    
    .cursor-trail {
        display: none;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-medium);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 2rem;
    }
    
    .service-card {
        min-height: 380px;
        padding: 2rem;
    }
    
    .service-card.featured {
        transform: none;
        grid-column: span 1;
        grid-row: auto;
        min-height: 400px;
        padding: 2.5rem;
    }
    
    .service-card:not(.featured) {
        grid-row: auto;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .service-card,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .floating-card {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .floating-card i {
        font-size: 1.5rem;
    }
    
    /* Mobile services grid */
    .services-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1.5rem;
    }
    
    .service-card {
        min-height: 350px;
        padding: 2rem;
    }
    
    .service-card.featured {
        transform: none;
        grid-column: span 1;
        grid-row: auto;
        max-width: none;
        min-height: 380px;
        padding: 2.5rem;
    }
    
    .service-card:not(.featured) {
        grid-row: auto;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.25rem;
    }
    
    .service-card.featured .service-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .service-card.featured h3 {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    
    .service-card.featured p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Disable 3D effects on mobile for performance */
    .service-card:hover,
    .floating-card:hover {
        transform: translateY(-10px) scale(1.02);
    }
    
    .service-card.featured:hover {
        transform: translateY(-15px) scale(1.05);
    }
    
    /* Reduce particle count on mobile */
    #particle-canvas {
        opacity: 0.3;
    }
    
    .hero-shapes {
        display: none;
    }
}