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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: #1a202c;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 25%, #1d4ed8 50%, #2563eb 75%, #3b82f6 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Content wrapper for main sections */
.content-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 2rem 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(30, 58, 138, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.15);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

.logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: #374151;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover,
nav a:focus {
    color: #1e40af;
    background: rgba(30, 64, 175, 0.08);
    transform: translateY(-1px);
    outline: none;
}

/* Hero section */
.hero {
    background: transparent;
    padding: 6rem 0 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-weight: 400;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

/* Sections */
section {
    padding: 0;
    margin: 2rem 0;
}

section .container {
    padding: 4rem 2rem;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1f2937;
    font-weight: 700;
    position: relative;
    text-align: center;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 2px;
}

section h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #374151;
    font-weight: 600;
}

section p {
    margin-bottom: 1.5rem;
    max-width: 70ch;
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.8;
}

/* About section */
.about .container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.company-details {
    margin-top: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.08);
    border: 1px solid rgba(30, 64, 175, 0.1);
    position: relative;
    overflow: hidden;
}

.company-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.company-details ul {
    list-style: none;
    margin-top: 1.5rem;
}

.company-details li {
    margin-bottom: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(30, 64, 175, 0.08);
    font-size: 1.1rem;
    color: #374151;
}

.company-details li:last-child {
    border-bottom: none;
}

.company-details strong {
    color: #1e40af;
    font-weight: 600;
}

/* Apps section */
.apps .container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.app-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(30, 64, 175, 0.1);
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.app-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.15);
}

.app-card h3 {
    margin-bottom: 1.5rem;
    color: #1f2937;
    font-size: 1.5rem;
}

.app-store-link {
    display: inline-block;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.25);
}

.app-store-link:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.35);
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
}

.app-store-link.disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    cursor: not-allowed;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.25);
}

/* Contact section */
.contact .container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact a:hover {
    background: rgba(30, 64, 175, 0.08);
    transform: translateY(-1px);
}

/* Footer */
footer {
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(20px);
    color: #f9fafb;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-nav {
    display: flex;
    gap: 2.5rem;
}

.footer-nav a {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    color: #f9fafb;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Privacy and Support pages */
.privacy-policy,
.support-page {
    max-width: 800px;
    margin: 2rem auto;
    line-height: 1.7;
}

.privacy-policy h1,
.support-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.privacy-policy h2,
.support-page h2 {
    font-size: 1.75rem;
    margin: 2rem 0 1rem 0;
    color: #333;
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 0.5rem;
}

.privacy-policy h3,
.support-page h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem 0;
    color: #444;
}

.privacy-policy ul,
.support-page ul,
.privacy-policy ol,
.support-page ol {
    margin: 1rem 0 1rem 2rem;
}

.privacy-policy li,
.support-page li {
    margin-bottom: 0.5rem;
}

.privacy-policy a,
.support-page a {
    color: #007AFF;
    text-decoration: none;
}

.privacy-policy a:hover,
.support-page a:hover {
    text-decoration: underline;
}

/* Support page specific styles */
.contact-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.faq-item:last-child {
    border-bottom: none;
}

/* 404 page */
.error-page {
    text-align: center;
    padding: 4rem 0;
    max-width: 600px;
    margin: 0 auto;
}

.error-page h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.error-actions {
    margin: 2rem 0;
}

.btn-primary {
    display: inline-block;
    background: #007AFF;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background: #0056CC;
}

.error-links {
    list-style: none;
    margin: 1rem 0;
}

.error-links li {
    margin: 0.5rem 0;
}

.error-links a {
    color: #007AFF;
    text-decoration: none;
}

.error-links a:hover {
    text-decoration: underline;
}

.contact-help {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

/* Floating elements animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.app-card {
    animation: float 6s ease-in-out infinite;
}

.app-card:nth-child(2) {
    animation-delay: -2s;
}

.app-card:nth-child(3) {
    animation-delay: -4s;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 4rem 0 3rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    header .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    nav {
        gap: 1rem;
    }

    nav a {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }

    footer .container {
        flex-direction: column;
        text-align: center;
    }

    .app-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    section .container {
        padding: 3rem 1.5rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .company-details {
        padding: 2rem;
    }

    .app-card {
        padding: 2rem;
        animation: none;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .app-card {
        border: 2px solid #1f2937;
    }

    .company-details {
        border: 2px solid #1f2937;
    }
}
