/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(to bottom right, #eff6ff 0%, #f8fafc 50%, #e0e7ff 100%);
    min-height: 100vh;
    color: #1f2937;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Parallax Background */
.parallax-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.parallax-orb {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: multiply;
    filter: blur(80px);
    will-change: transform;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(96, 165, 250, 0.3);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: rgba(129, 140, 248, 0.25);
    top: 80px;
    right: -100px;
}

.orb-3 {
    width: 550px;
    height: 550px;
    background: rgba(34, 211, 238, 0.25);
    bottom: 0;
    left: 25%;
}

.orb-4 {
    width: 450px;
    height: 450px;
    background: rgba(96, 165, 250, 0.2);
    top: 50%;
    right: 25%;
}

/* Parallax animation will be handled by JavaScript */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 4rem 1rem 2.5rem;
    overflow: hidden;
    z-index: 10;
}

.hero-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.badge .icon {
    width: 1rem;
    height: 1rem;
    color: #1D497B;
}

.badge span {
    font-weight: 600;
    font-size: 0.875rem;
    color: #162F4C;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #111827;
}

.gradient-text {
    background: linear-gradient(to right, #10375C, #1D497B, #10375C);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.hero-subtitle {
    font-size: 1rem;
    color: #4b5563;
    max-width: 48rem;
    margin: 0 auto;
    font-weight: 300;
}

/* QR Section */
.qr-section {
    padding: 1.5rem 1rem;
    position: relative;
    z-index: 10;
}

.qr-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* QR Card */
.qr-card {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
}

.qr-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.qr-card:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: scale(1.02) translateY(-5px);
}

.card-overlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.qr-card:hover .card-overlay {
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Icon Wrapper */
.icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    border: 1px solid rgba(229, 231, 235, 1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.5s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.qr-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(6deg);
}

.platform-icon {
    width: 1.75rem;
    height: 1.75rem;
}

/* Card Title */
.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #162F4C;
    margin-bottom: 1rem;
}

/* QR Image Wrapper */
.qr-image-wrapper {
    width: 100%;
    max-width: 240px;
    aspect-ratio: 1;
    background: white;
    border: 2px solid;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 1rem 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.qr-card:hover .qr-image-wrapper {
    border-opacity: 1;
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}

.qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0.3;
}

.qr-placeholder svg {
    width: 4rem;
    height: 4rem;
    margin-bottom: 0.5rem;
}

.qr-placeholder p {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
}

/* Card Description */
.card-description {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 300;
    margin-bottom: 1rem;
}

/* Button Link */
.btn-link {
    margin-top: 1rem;
    padding: 0.625rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    border: 1px solid;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-link:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

/* Card Accent Line */
.card-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.qr-card:hover .card-accent {
    transform: scaleX(1);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px currentColor,
                    0 0 10px currentColor,
                    0 0 15px currentColor;
    }
    50% {
        box-shadow: 0 0 10px currentColor,
                    0 0 20px currentColor,
                    0 0 30px currentColor;
    }
}

/* Instructions Section */
.instructions-section {
    padding: 2rem 1rem 3rem;
    position: relative;
    z-index: 10;
}

.instructions-card {
    max-width: 48rem;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 1.5rem;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.instructions-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #10375C;
    margin-bottom: 1.5rem;
    text-align: center;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    background-color: #1D497B;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.step-text {
    color: #4b5563;
    padding-top: 0.25rem;
    font-size: 0.9375rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Tablet Styles */
@media (min-width: 640px) {
    .hero-section {
        padding: 5rem 1rem 3rem;
    }

    .badge {
        padding: 0.625rem 1.75rem;
    }

    .badge .icon {
        width: 1.125rem;
        height: 1.125rem;
    }

    .badge span {
        font-size: 0.9375rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .qr-section {
        padding: 2.5rem 1rem;
    }

    .qr-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .qr-card {
        padding: 2.5rem 2rem;
    }

    .icon-wrapper {
        width: 4rem;
        height: 4rem;
        border-radius: 1.25rem;
    }

    .platform-icon {
        width: 2rem;
        height: 2rem;
    }

    .card-title {
        font-size: 1.25rem;
    }

    .card-description {
        font-size: 0.9375rem;
    }

    .btn-link {
        font-size: 0.9375rem;
    }

    .instructions-card {
        padding: 2rem 2.5rem;
    }

    .instructions-title {
        font-size: 1.5rem;
    }

    .step-number {
        width: 2.25rem;
        height: 2.25rem;
    }

    .step-text {
        font-size: 1rem;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .hero-section {
        padding: 8rem 1.5rem 5rem;
    }

    .badge {
        padding: 0.75rem 2rem;
    }

    .badge .icon {
        width: 1.25rem;
        height: 1.25rem;
    }

    .hero-title {
        font-size: 3.75rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .qr-section {
        padding: 4rem 1.5rem;
    }

    .qr-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    .qr-card {
        padding: 3rem 2.5rem;
    }

    .icon-wrapper {
        width: 5rem;
        height: 5rem;
        border-radius: 1.5rem;
    }

    .platform-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .card-description {
        font-size: 1rem;
    }

    .btn-link {
        padding: 0.75rem 1.75rem;
    }

    .instructions-section {
        padding: 4rem 1.5rem;
    }

    .instructions-card {
        padding: 3rem;
    }

    .instructions-title {
        font-size: 2rem;
    }

    .step-number {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    .step-text {
        font-size: 1.125rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .hero-section,
    .instructions-section {
        display: none;
    }

    .qr-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 2px solid #e5e7eb;
    }

    .btn-link {
        display: none;
    }
}