/* CSS Variables */
:root {
    --white: #ffffff;
    --gray-800: #1a1a1a;
    --gradient-hero: linear-gradient(45deg, #000 0%, #1a0b2e 50%, #4a1b3d 100%);
    --gradient-solutions: linear-gradient(135deg, #FFFFFF 0%, #F8FAFF 50%, #E6F0FF 100%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: var(--white);
    color: var(--gray-800);
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 78vh;
    max-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::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-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.hero-btn {
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background-color: white;
    color: #222;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
}

.btn-white {
    background: white;
    color: black;
}

.btn-white:hover {
    background: transparent;
    border: 1px solid white;
    color: white;
}

.btn-dark {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background-color: white;
    color: #222;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
}

.btn-dark:hover {
    background-color: transparent;
    border: 1px solid #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

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

.btn-dark svg {
    vertical-align: middle;
    margin-left: 12px;
    transition: transform 0.3s ease;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 450px;
    max-width: 100%;
    height: auto;
}

/* Features Section */
.features-section {
    padding: 30px 20px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.features-section li {
    list-style: none;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, #f0f0f0, #f0f0f0);
    margin: 20px 0;
}

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

.features-container h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.features-container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 4px;
    background: #1A65EB;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    perspective: 2000px;
    height: 260px;
    margin-bottom: 20px;
}

.card-inner {
    position: relative;
    width: 90%;
    height: 90%;
    text-align: center;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    cursor: default;
    margin: 0 auto;
}

.feature-card:hover .card-inner {
    transform: rotateY(180deg) scale(1.05);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 2rem;
    background: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.card-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(26, 101, 235, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover .card-front::before {
    opacity: 1;
}

.card-front img {
    width: 85px;
    height: 85px;
    object-fit: contain;
    transition: all 0.4s ease;
    filter: drop-shadow(0 6px 12px rgba(26, 101, 235, 0.2));
    animation: inventoryFloat 4s ease-in-out infinite;
}

/* SVG specific animations for become a partner */
.card-front img[alt="Commission Structure"] {
    animation: inventoryFloat 4s ease-in-out infinite;
}

.card-front img[alt="Marketing Support"] {
    animation: inventoryPulse 3s ease-in-out infinite;
}

.card-front img[alt="Technical Training"] {
    animation: inventoryGlow 2.5s ease-in-out infinite;
}

.card-front img[alt="Sales Tools"] {
    animation: inventorySlide 3.5s ease-in-out infinite;
}

.card-front img[alt="24/7 Support"] {
    animation: inventoryBounce 2s ease-in-out infinite;
}

.feature-card:hover .card-front img {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 8px 16px rgba(26, 101, 235, 0.3));
}

.card-front h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    transition: all 0.4s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.feature-card:hover .card-front h3 {
    color: #1A65EB;
    transform: translateY(-2px);
}

.card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, #1A65EB, #0d4bb3);
    color: white;
}

.card-back h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    color: white;
}

.card-back p {
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    opacity: 0.95;
    margin: 0;
}

/* Stagger the become a partner card animations */
.feature-card:nth-child(1) .card-front img {
    animation-delay: 0s;
}

.feature-card:nth-child(2) .card-front img {
    animation-delay: 0.5s;
}

.feature-card:nth-child(3) .card-front img {
    animation-delay: 1s;
}

.feature-card:nth-child(4) .card-front img {
    animation-delay: 0.2s;
}

.feature-card:nth-child(5) .card-front img {
    animation-delay: 0.7s;
}

/* Animations */
@keyframes inventoryFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

@keyframes inventoryGlow {
    0%, 100% { filter: drop-shadow(0 6px 12px rgba(26, 101, 235, 0.2)); }
    50% { filter: drop-shadow(0 6px 12px rgba(26, 101, 235, 0.4)); }
}

@keyframes inventorySlide {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(5px); }
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .features-container h2 {
        font-size: 2rem;
    }
    
    .features-container h2::after {
        width: 200px;
    }
}

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero-image img {
        width: 350px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 100px 20px 60px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .features-section {
        padding: 20px 10px;
    }
    
    .features-container h2 {
        font-size: 1.75rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        height: 220px;
    }
    
    .card-front, .card-back {
        padding: 1.5rem;
    }
    
    .card-front img {
        width: 60px;
        height: 60px;
    }
} 