/* 
 * Design System for iDroid App
 * Focused on premium aesthetics, glassmorphism, and smooth animations.
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --accent: #10b981;
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.4);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --glass-blur: 12px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary: #60a5fa;
        --primary-hover: #3b82f6;
        --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        --card-bg: rgba(30, 41, 59, 0.7);
        --card-border: rgba(255, 255, 255, 0.1);
        --text-main: #f1f5f9;
        --text-muted: #94a3b8;
        --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Decoration */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--primary);
    filter: blur(120px);
    opacity: 0.1;
    border-radius: 50%;
    animation: blobFloat 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 { top: -100px; right: -100px; }
.blob-2 { bottom: -100px; left: -100px; background: var(--accent); animation-delay: -5s; }

@keyframes blobFloat {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(50px, 100px) scale(1.1); }
}

/* Glassmorphism Utility */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--card-border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

/* Layout */
.navbar {
    position: sticky;
    top: 16px;
    z-index: 2000;
    max-width: 700px;
    margin: 0 auto;
    padding: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(59, 130, 246, 0.05);
    color: var(--primary);
}

.nav-link.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px 80px;
}

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

.reveal {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0 40px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    background: linear-gradient(to right, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 32px;
}




/* Principles Section */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 80px 0;
}

.principle-card {
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.principle-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.principle-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.principle-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.principle-card p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0;
}




@media (prefers-color-scheme: dark) {
    .navbar {
        background: rgba(15, 23, 42, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
}

/* Content Cards */
.content-card {
    padding: 40px;
    margin-bottom: 32px;
}

.section-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

h2 i {
    color: var(--primary);
}

/* Typography Overrides */
p {
    margin-bottom: 20px;
}

ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 24px;
}

li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

strong {
    color: var(--text-main);
    font-weight: 600;
}

/* Footer */
footer {
    padding: 80px 0 40px;
    margin-top: 100px;
    border-top: 1px solid var(--card-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 280px;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--card-border);
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .footer-brand p {
        margin: 0 auto;
    }
    .footer-link {
        justify-content: center;
    }
    .footer-link:hover {
        transform: translateY(-2px);
    }
}

/* Specific to Support */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.contact-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.contact-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.contact-card a:hover {
    color: var(--primary-hover);
}

/* Hero Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--card-border);
    border-radius: 99px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.badge .dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
}

/* Showcase Section */
.showcase-header {
    margin: 80px 0 40px;
    text-align: center;
}

.showcase-header h2 {
    justify-content: center;
    font-size: 2.25rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(580px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.app-card {
    padding: 32px;
    display: flex;
    gap: 32px;
    text-align: left;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.app-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.1);
}

.app-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.app-icon-container {
    width: 100px;
    height: 100px;
    margin: 0;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.app-icon-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-right {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.app-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
    color: var(--text-main);
}

.app-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.store-badges {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.store-badges a {
    display: block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.store-badges a:hover {
    transform: scale(1.08) translateY(-2px);
}

.store-badges img {
    height: 44px;
    width: auto;
    display: block;
}

.coming-soon {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 16px;
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-muted);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px dashed var(--card-border);
    transition: all 0.3s ease;
}

.app-card:hover .coming-soon {
    background: rgba(148, 163, 184, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

@media (max-width: 768px) {
    .app-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .content-card {
        padding: 24px;
    }
    .navbar {
        width: calc(100% - 24px);
        top: 10px;
    }
    .nav-logo {
        font-size: 1rem;
        padding-left: 8px;
    }
    .nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }
    .showcase-grid {
        gap: 20px;
    }

    .principles-grid {
        margin: 40px 0;
    }
    .principle-card {
        padding: 24px;
    }

}
