*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: Inter, Arial;
}

html {
    scroll-behavior: smooth;
}

.hero {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1a202c 25%, #2d3748 50%, #4a5568 75%, #718096 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    animation: gridFlow 40s linear infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 40%);
    animation: colorShift 25s ease-in-out infinite;
}

@keyframes gridFlow {
    0% { 
        background-position: 0 0, 0 0, 0 0, 0 0; 
    }
    100% { 
        background-position: 100px 100px, 100px 100px, 20px 20px, 20px 20px; 
    }
}

@keyframes colorShift {
    0%, 100% { 
        opacity: 0.6;
        transform: scale(1) rotate(0deg);
    }
    33% { 
        opacity: 0.8;
        transform: scale(1.05) rotate(1deg);
    }
    66% { 
        opacity: 0.4;
        transform: scale(0.95) rotate(-1deg);
    }
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    text-align: center;
    background: linear-gradient(90deg, #337AB6 0%, #337AB6 25%, #B83DBA 40%, #B83DBA 65%, #E879F9 80%, #E879F9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-user-select: none;
    -ms-user-select: none; 
    user-select: none;
}

.subtitle {
    font-size: 30px;
    text-align: center;
    font-weight: 300;
    color: white;
    opacity: 0.9;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    -webkit-user-select: none;
    -ms-user-select: none; 
    user-select: none;
}

.scroll-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 10;
}

.scroll-link {
    color: white;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.scroll-link:hover {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.1);
}

.scroll-link:visited {
    color: white;
}

.scroll-link:active {
    color: white;
}

.scroll {
    font-size: 14px;
    text-align: center;
}

.arrow {
    font-size: 24px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateX(-50%) translateY(0); 
    }
    40% { 
        transform: translateX(-50%) translateY(-10px); 
    }
    60% { 
        transform: translateX(-50%) translateY(-5px); 
    }
}

.business-selection {
    min-height: 100vh;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 30%, #cbd5e1 70%, #94a3b8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.business-selection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(239, 68, 68, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 60% 20%, rgba(139, 92, 246, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 30% 80%, rgba(16, 185, 129, 0.06) 1px, transparent 1px);
    background-size: 150px 150px, 180px 180px, 120px 120px, 200px 200px;
    animation: subtleFloat 35s ease-in-out infinite;
    pointer-events: none;
}

.business-selection::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 70%, rgba(255, 255, 255, 0.1) 71%, rgba(255, 255, 255, 0.1) 73%, transparent 74%),
        linear-gradient(-45deg, transparent 60%, rgba(255, 255, 255, 0.05) 61%, rgba(255, 255, 255, 0.05) 63%, transparent 64%);
    background-size: 300px 300px, 250px 250px;
    animation: geometricShift 40s linear infinite;
    pointer-events: none;
}

@keyframes subtleFloat {
    0%, 100% { 
        background-position: 0 0, 0 0, 0 0, 0 0;
        opacity: 0.7;
    }
    33% { 
        background-position: 20px -10px, -15px 25px, 10px 15px, -20px -5px;
        opacity: 1;
    }
    66% { 
        background-position: -10px 20px, 25px -15px, -15px -10px, 15px 20px;
        opacity: 0.5;
    }
}

@keyframes geometricShift {
    0% { 
        background-position: 0 0, 0 0;
    }
    100% { 
        background-position: 300px 300px, -250px 250px;
    }
}

.container {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.business-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    width: 100%;
}

.business-card:nth-child(1) {
    animation: slideInLeft 1s ease-out 0.6s both;
}

.business-card:nth-child(2) {
    animation: slideInRight 1s ease-out 0.8s both;
}

.business-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    transition: all 0.3s ease;
    border-radius: 24px 24px 0 0;
    animation: borderGlow 3s ease-in-out infinite;
}

.business-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
    border-radius: 24px;
    opacity: 0.8;
}

.construction::before {
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0.8), 
        rgba(29, 78, 216, 0.8), 
        rgba(139, 92, 246, 0.8));
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.retail::before {
    background: linear-gradient(90deg, 
        rgba(239, 68, 68, 0.8), 
        rgba(220, 38, 38, 0.8), 
        rgba(249, 115, 22, 0.8));
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.business-card:hover {
    transform: translateY(-12px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.business-card:hover::before {
    height: 8px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 0 30px currentColor;
}

.business-card:hover::after {
    opacity: 1;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.2) 100%);
}

.construction:hover {
    box-shadow: 
        0 20px 60px rgba(59, 130, 246, 0.2),
        0 8px 24px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.retail:hover {
    box-shadow: 
        0 20px 60px rgba(239, 68, 68, 0.2),
        0 8px 24px rgba(239, 68, 68, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
        filter: brightness(1.2);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.business-type {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.construction .business-type {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.retail .business-type {
    background: linear-gradient(135deg, #ef4444, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.business-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out 1.1s both;
}

.business-card p {
    color: #475569;
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    position: relative;
    z-index: 2;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 1.2s both;
    flex-grow: 1;
}

.logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0px;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.logo-image {
    height: 300px;
    width: 300px;
    max-width: 300px;
    object-fit: contain;
    margin: 10px auto;
    display: block;
    transition: all 0.3s ease;
    animation: logoFadeIn 0.8s ease-out 1.2s both;
}

.retail .logos {
    gap: 1.5rem;
}

.retail .logo-image {
    max-width: 200px;
    max-height: 200px;
}

.retail .logo-image:nth-child(2) {
    animation: logoFadeIn 0.8s ease-out 1.4s both;
}

.business-card:hover .logo-image {
    transform: scale(1.05);
    opacity: 0.9;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cta-button {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    border: none;
    padding: 1.25rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 16px rgba(30, 41, 59, 0.3);
    margin: 0 auto;
    animation: buttonPulse 2s ease-in-out 1.8s both, fadeInUp 0.8s ease-out 1.6s both;
    text-decoration: none;
}

.construction .cta-button {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.retail .cta-button {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.construction .cta-button:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.retail .cta-button:hover {
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
}

@keyframes buttonPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
            
    .subtitle {
        font-size: 1.1rem;
    }

    .scroll-container {
        bottom: 80px;
    }
            
    .business-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
            
    .business-card {
        padding: 2rem;
        min-height: auto;
    }
            
    .section-header h2 {
        font-size: 2.2rem;
    }

    .business-card h3 {
        font-size: 2rem;
    }

    .logos {
        flex-direction: column;
        gap: 10px;
    }

    .logo-image {
        height: 180px;
        width: 180px;
        max-width: 180px;
    }

    .retail .logo-image {
        max-width: 150px;
        max-height: 60px;
        height: auto;
        width: auto;
    }
}

/* Additional mobile fix for very small screens */
@media (max-width: 480px) {
    .scroll-container {
        bottom: 100px;
    }

    .logo-image {
        height: 200px;
        width: 200px;
        max-width: 200px;
    }

    .retail .logo-image {
        max-width: 200px;
        max-height: 200px;
    }
}
