/* Import Nordic-inspired fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Orbitron:wght@400;500;700;900&family=Bebas+Neue&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', 'Cinzel', monospace;
    background-color: #0a0e1a; /* Fallback solid background */
    min-height: 100vh;
    color: #c7d2fe;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Animated background using pseudo-element for iOS compatibility */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Animated navy gradient background */
    background:
        linear-gradient(135deg, 
            #0a0e1a 0%, 
            #1a2332 12%, 
            #0f1419 25%, 
            #1e2a4a 37%, 
            #0d1421 50%,
            #1a1f3a 62%,
            #0a0e1a 75%,
            #1c2951 87%,
            #0f1419 100%
        );
    background-size: 800% 800%;
    animation: navyShift 25s ease-in-out infinite;
    /* iOS/WebKit prefixes */
    -webkit-background-size: 800% 800%;
    -webkit-animation: navyShift 25s ease-in-out infinite;
}

/* Animated navy blue background gradient */
@keyframes navyShift {
    0% { 
        background-position: 0% 50%; 
    }
    25% { 
        background-position: 100% 25%; 
    }
    50% { 
        background-position: 50% 100%; 
    }
    75% { 
        background-position: 25% 0%; 
    }
    100% { 
        background-position: 0% 50%; 
    }
}



/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.title-card {
    background: transparent;
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 2rem auto;
    max-width: 800px;
    position: relative;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(147, 197, 253, 0.2);
}

.title-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, 
        #93c5fd 0%, 
        #64748b 20%, 
        #93c5fd 40%, 
        #7dd3fc 60%, 
        #64748b 80%, 
        #93c5fd 100%
    );
    border-radius: 20px;
    z-index: -2;
}

.title-card::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, 
        rgb(15, 20, 25) 0%, 
        rgb(30, 40, 50) 50%, 
        rgb(15, 20, 25) 100%
    );
    border-radius: 18px;
    z-index: -1;
}



.hero-description {
    font-size: 1.2rem;
    color: #94a3b8;
    margin: 1.5rem 0 2.5rem;
    font-family: 'Cinzel', serif;
    font-weight: 400;
}



/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Title styling - Viking/Nordic inspired */
.title {
    font-family: 'Bebas Neue', 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #93c5fd 0%, #64748b 50%, #E59500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: titleGlow 3s ease-in-out infinite alternate, fadeInUp 1s ease-out;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(147, 197, 253, 0.3);
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
}

/* Glowing title animation */
@keyframes titleGlow {
    0% {
        background-position: 0% 50%;
        filter: brightness(1);
    }
    100% {
        background-position: 100% 50%;
        filter: brightness(1.2);
    }
}



@keyframes runeFlicker {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Subtitle */
.subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: #93c5fd;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
    text-shadow: 0 0 10px rgba(147, 197, 253, 0.3);
    letter-spacing: 1px;
    font-weight: 500;
}

/* Card styling - Nordic warrior theme */
.card {
    background: linear-gradient(135deg, rgba(20, 25, 35, 0.9) 0%, rgba(40, 52, 84, 0.8) 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(147, 197, 253, 0.2);
    border-left: 4px solid #E59500;
    animation: fadeInUp 1s ease-out 0.4s both;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(147, 197, 253, 0.1);
    position: relative;
    overflow: hidden;
}

/* Card glow effect */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #93c5fd, transparent);
    animation: cardScan 3s ease-in-out infinite;
}

@keyframes cardScan {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.card h2 {
    font-family: 'Orbitron', monospace;
    color: #93c5fd;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(147, 197, 253, 0.3);
    letter-spacing: 1px;
}

.card p {
    color: #c7d2fe;
    line-height: 1.7;
    font-size: 1rem;
    font-family: 'Cinzel', serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

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

/* Sections */
.section {
    padding: 5rem 0;
    position: relative;
}

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

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: #93c5fd;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(147, 197, 253, 0.3);
}

.section-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #E59500;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(229, 149, 0, 0.3);
}

.section-divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #E59500, #fbbf24);
    margin: 0 auto 2rem;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(229, 149, 0, 0.5);
}

.section-description {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-description p {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-family: 'Cinzel', serif;
}

.section-footer {
    max-width: 800px;
    margin: 3rem auto 0;
    text-align: center;
    padding: 2rem;
    background: rgba(15, 20, 25, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(229, 149, 0, 0.3);
}

.section-footer p {
    font-size: 1.2rem;
    color: #94a3b8;
    line-height: 1.6;
    font-family: 'Cinzel', serif;
}

.section-footer strong {
    color: #E59500;
    text-shadow: 0 0 8px rgba(229, 149, 0, 0.4);
}

/* Feature Cards */
.section-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(15, 20, 25, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(147, 197, 253, 0.2);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(229, 149, 0, 0.6), 
        rgba(147, 197, 253, 0.6), 
        transparent, 
        rgba(229, 149, 0, 0.6), 
        rgba(147, 197, 253, 0.6), 
        transparent
    );
    background-size: 400% 400%;
    border-radius: 12px;
    z-index: -1;
    animation: shimmer 3s ease-in-out infinite;
    /* iOS/WebKit prefixes */
    -webkit-animation: shimmer 3s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(147, 197, 253, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

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

.feature-card:hover::after {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(229, 149, 0, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(229, 149, 0, 0.1);
}

/* iOS-compatible active states (mirrors hover styles) */
.feature-card.active::before {
    opacity: 1;
}

.feature-card.active::after {
    left: 100%;
}

.feature-card.active {
    transform: translateY(-5px);
    border-color: rgba(229, 149, 0, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(229, 149, 0, 0.1);
}

/* iOS/WebKit compatible keyframes */
@-webkit-keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: #93c5fd;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.feature-card p {
    color: #94a3b8;
    line-height: 1.6;
}

/* Feature Grid (for What section) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Responsive grid for different screen sizes */
@media (min-width: 1200px) {
    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

.feature-item {
    background: rgba(15, 20, 25, 0.6);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: rgba(229, 149, 0, 0.5);
    background: rgba(15, 20, 25, 0.8);
    transform: translateY(-2px);
}

.feature-item h4 {
    font-family: 'Orbitron', monospace;
    color: #E59500;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-item p {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    background: rgba(15, 20, 25, 0.9);
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
    margin: 4rem 0;
    border: 1px solid rgba(147, 197, 253, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(229, 149, 0, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: #93c5fd;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.cta-content p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-final {
    font-size: 1.2rem;
    padding: 1.2rem 3rem;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.2; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding: 0 1.5rem;
        max-width: 100%;
    }
    
    .hero {
        padding: 2rem 1.5rem;
    }
    
    .title-card {
        margin: 2rem 0;
        padding: 2.5rem 1.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .title {
        font-size: 2.5rem;
    }
    

    
    .section {
        padding: 3rem 1.5rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .section-content {
        padding: 0 1rem;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}







/* Responsive design */
@media (max-width: 480px) {
    .main-content {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 1.5rem 1rem;
    }
    
    .title-card {
        margin: 1.5rem 0;
        padding: 2rem 1rem;
    }
    
    .title {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
    
    .section {
        padding: 2.5rem 1rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .section-content {
        padding: 0 0.5rem;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .section-description {
        padding: 0 0.5rem;
    }
}