/* ESMD Homepage Styles - Futuristic Design System */

:root {
    --esmd-primary: #0066FF;
    --esmd-primary-dark: #0052CC;
    --esmd-primary-light: #3385FF;
    --esmd-secondary: #00C9A7;
    --esmd-accent: #FF6B35;
    --esmd-dark: #1A1A1A;
    --esmd-gray-900: #2D3748;
    --esmd-gray-700: #4A5568;
    --esmd-gray-500: #718096;
    --esmd-gray-300: #CBD5E0;
    --esmd-gray-100: #F7FAFC;
    --esmd-white: #FFFFFF;
    --esmd-glass: rgba(255, 255, 255, 0.7);
}

* {
    box-sizing: border-box;
}

.esmd-homepage {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--esmd-gray-900);
    overflow-x: hidden;
    background: var(--esmd-white);
}

.esmd-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section - Futuristic Design */
.esmd-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--esmd-white);
    overflow: hidden;
    padding: 4rem 0;
}

.esmd-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.esmd-hero-bg::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.08) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: esmd-orb-pulse 8s ease-in-out infinite;
}

.esmd-hero-bg::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 201, 167, 0.06) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: esmd-orb-pulse 10s ease-in-out 2s infinite reverse;
}

.esmd-grid-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 102, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 1;
    animation: esmd-grid-drift 30s linear infinite;
}

.esmd-circuit-lines {
    display: none;
}

.esmd-circuit-line {
    display: none;
}

.esmd-circuit-node {
    display: none;
}

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

.esmd-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.75rem;
    background: var(--esmd-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 102, 255, 0.2);
    color: var(--esmd-primary);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 102, 255, 0.15);
    animation: esmd-badge-float 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.esmd-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: translateX(-100%);
    animation: esmd-shine 3s infinite;
}

.esmd-badge-icon {
    font-size: 1.25rem;
    animation: esmd-pulse-icon 2s ease-in-out infinite;
}

.esmd-hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 1.5rem;
    color: var(--esmd-dark);
    letter-spacing: -0.03em;
}

.esmd-gradient-text {
    background: linear-gradient(135deg, var(--esmd-primary) 0%, var(--esmd-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.esmd-hero-description {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.7;
    color: var(--esmd-gray-700);
    margin: 0 auto 3rem;
    max-width: 700px;
}

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

.esmd-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.esmd-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.esmd-btn:hover::before {
    transform: translateX(100%);
}

.esmd-btn-primary {
    background: linear-gradient(135deg, var(--esmd-primary), var(--esmd-primary-dark));
    color: white;
    box-shadow: 0 12px 40px rgba(0, 102, 255, 0.25);
}

.esmd-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.35);
}

.esmd-btn-secondary {
    background: var(--esmd-white);
    color: var(--esmd-primary);
    border-color: rgba(0, 102, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.esmd-btn-secondary:hover {
    transform: translateY(-3px);
    border-color: var(--esmd-primary);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.esmd-btn-white {
    background: var(--esmd-white);
    color: var(--esmd-primary);
    border-color: rgba(255, 255, 255, 0.3);
}

.esmd-btn-white:hover {
    background: var(--esmd-white);
    transform: translateY(-2px);
}

.esmd-btn svg {
    transition: transform 0.3s;
}

.esmd-btn:hover svg {
    transform: translateX(4px);
}

/* Hero Stats - Glassmorphism Cards */
.esmd-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.esmd-stat {
    background: var(--esmd-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 102, 255, 0.15);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.esmd-stat::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.esmd-stat:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--esmd-primary);
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.2);
}

.esmd-stat:hover::before {
    opacity: 1;
}

.esmd-stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--esmd-primary), var(--esmd-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.esmd-stat-number::after {
    content: '+';
}

.esmd-stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--esmd-gray-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero Visual */
.esmd-hero-visual {
    display: none;
}

.esmd-tech-stack {
    display: none;
}

.esmd-tech-item {
    display: none;
}

/* Services Section - Modern Card Grid */
.esmd-services {
    position: relative;
    padding: 8rem 0;
    background: var(--esmd-white);
    overflow: hidden;
}

.esmd-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.2), transparent);
}

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

.esmd-section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--esmd-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 102, 255, 0.15);
    color: var(--esmd-primary);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.esmd-section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--esmd-dark);
    margin: 0;
    letter-spacing: -0.02em;
}

.esmd-section-description {
    display: none;
}

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

.esmd-service-card {
    position: relative;
    background: var(--esmd-white);
    border: 1px solid rgba(0, 102, 255, 0.1);
    border-radius: 32px;
    padding: 3rem 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.esmd-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--esmd-primary), var(--esmd-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.esmd-service-card:hover {
    transform: translateY(-12px);
    border-color: var(--esmd-primary);
    box-shadow: 0 30px 80px rgba(0, 102, 255, 0.15);
}

.esmd-card-featured {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.03), rgba(0, 201, 167, 0.03));
    border-color: var(--esmd-primary);
}

.esmd-featured-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--esmd-primary), var(--esmd-secondary));
    color: white;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3);
}

.esmd-service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 201, 167, 0.1));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--esmd-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.esmd-service-card:hover .esmd-service-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(0, 201, 167, 0.15));
}

.esmd-service-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--esmd-dark);
    margin: 0 0 1rem;
}

.esmd-service-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--esmd-gray-700);
    margin: 0 0 1.5rem;
}

.esmd-service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.esmd-service-features li {
    padding: 0.75rem 0;
    color: var(--esmd-gray-700);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding-left: 2rem;
}

.esmd-service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--esmd-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.esmd-service-hover {
    display: none;
}

/* CTA Section - Gradient Background */
.esmd-cta {
    position: relative;
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--esmd-primary) 0%, var(--esmd-primary-dark) 100%);
    overflow: hidden;
}

.esmd-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: esmd-grid-drift 30s linear infinite reverse;
}

.esmd-cta-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.esmd-cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--esmd-white);
    margin: 0;
    letter-spacing: -0.02em;
}

.esmd-cta-text {
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    max-width: 700px;
}

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

/* Animations */
@keyframes esmd-badge-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes esmd-pulse-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

@keyframes esmd-shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(200%);
    }
}

@keyframes esmd-orb-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@keyframes esmd-grid-drift {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(60px, 60px);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .esmd-hero {
        min-height: auto;
        padding: 6rem 0 4rem;
    }

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

    .esmd-hero-description {
        font-size: 1.125rem;
    }

    .esmd-hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .esmd-hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .esmd-services {
        padding: 4rem 0;
    }

    .esmd-services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .esmd-service-card {
        padding: 2rem 1.5rem;
    }

    .esmd-section-header {
        margin-bottom: 3rem;
    }

    .esmd-section-title {
        font-size: 2rem;
    }

    .esmd-cta {
        padding: 4rem 0;
    }

    .esmd-cta-title {
        font-size: 2rem;
    }

    .esmd-cta-text {
        font-size: 1.125rem;
    }

    .esmd-cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .esmd-btn {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .esmd-container {
        padding: 0 1.25rem;
    }

    .esmd-hero-title {
        font-size: 2rem;
    }

    .esmd-stat {
        padding: 1.5rem;
    }

    .esmd-stat-number {
        font-size: 2.5rem;
    }

    .esmd-service-card {
        border-radius: 24px;
        padding: 2rem 1.25rem;
    }

    .esmd-service-icon {
        width: 64px;
        height: 64px;
    }

    .esmd-featured-badge {
        top: 1.5rem;
        right: 1.5rem;
        font-size: 0.7rem;
    }
}
