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

/* Variables */
:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #00ff88;
    --text-primary: #000000;
    --text-secondary: #666666;
    --background-primary: #ffffff;
    --background-secondary: #f8f9fa;
    --border-color: #e9ecef;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-button: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-button-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Main Container */
.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 255, 136, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 136, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.main-logo-container {
    margin-bottom: 32px;
    display: inline-block;
}

.main-logo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-medium);
}

.main-logo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-heavy);
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: var(--background-secondary);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 80px;
    letter-spacing: -0.02em;
}

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

.service-card {
    background: var(--background-primary);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #00cc6a);
    transform: scaleX(0);
    transition: transform var(--transition-medium);
}

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

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--accent-color);
}

/* Service number removed */

.service-logo-container {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-logo {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    object-fit: contain;
    transition: all var(--transition-medium);
    background: transparent;
}

.service-card:hover .service-logo {
    transform: scale(1.15) rotate(8deg);
}

/* PayCall logo specific styling */
.service-card[data-service="paycall"] .service-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: white;
    border-radius: 15px;
    padding: 5px;
}

.service-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    text-align: center;
}

.service-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    text-align: center;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--text-primary);
    color: var(--background-primary);
    padding: 18px 36px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-button);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    letter-spacing: 0.01em;
    backdrop-filter: blur(10px);
}

.service-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-color) 0%, #00cc6a 100%);
    opacity: 0;
    transition: opacity var(--transition-medium);
    z-index: -1;
}

.service-link:hover {
    color: var(--text-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-button-hover);
    border-color: var(--accent-color);
}

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

.service-link::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #00cc6a 100%);
    border-radius: 14px;
    opacity: 0;
    transition: opacity var(--transition-medium);
    z-index: -2;
    filter: blur(8px);
}

.service-link:hover::after {
    opacity: 0.3;
}

.service-link svg {
    transition: all var(--transition-medium);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    width: 18px;
    height: 18px;
}

.service-link:hover svg {
    transform: translate(6px, -6px) scale(1.1);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25));
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: var(--background-primary);
    padding: 40px 0;
    margin-top: auto;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Staggered animations for service cards */
.service-card:nth-child(1) { animation: fadeInUp 0.6s ease-out 0.1s both; }
.service-card:nth-child(2) { animation: fadeInUp 0.6s ease-out 0.2s both; }
.service-card:nth-child(3) { animation: fadeInUp 0.6s ease-out 0.3s both; }
.service-card:nth-child(4) { animation: fadeInUp 0.6s ease-out 0.4s both; }
.service-card:nth-child(5) { animation: fadeInUp 0.6s ease-out 0.5s both; }
.service-card:nth-child(6) { animation: fadeInUp 0.6s ease-out 0.6s both; }
.service-card:nth-child(7) { animation: fadeInUp 0.6s ease-out 0.7s both; }
.service-card:nth-child(8) { animation: fadeInUp 0.6s ease-out 0.8s both; }

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .main-logo {
        width: 150px;
        height: 150px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2.25rem;
        margin-bottom: 60px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .service-card {
        padding: 32px;
    }
    
    .service-logo {
        width: 80px;
        height: 80px;
        object-fit: contain;
    }
    
    /* PayCall logo mobile specific styling */
    .service-card[data-service="paycall"] .service-logo {
        width: 80px;
        height: 80px;
        background: white;
        border-radius: 12px;
        padding: 4px;
    }
    
    .service-content h3 {
        font-size: 1.5rem;
    }
    
    .service-link {
        padding: 16px 28px;
        font-size: 0.9rem;
        gap: 10px;
    }
    
    .service-link svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .service-card {
        padding: 24px;
    }
    
    .service-link {
        padding: 14px 24px;
        font-size: 0.85rem;
        gap: 8px;
    }
    
    .service-link svg {
        width: 14px;
        height: 14px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #ffffff;
        --secondary-color: #000000;
        --text-primary: #ffffff;
        --text-secondary: #a0a0a0;
        --background-primary: #000000;
        --background-secondary: #111111;
        --border-color: #333333;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --accent-color: #00ff00;
        --border-color: #000000;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}