/* ===================================
   GNOMAD'S WORKSHOP - ENCHANTED THEME
   =================================== */

:root {
    /* Color Palette - Enchanted Forest */
    --color-bg-dark: #12122b;
    --color-bg-mid: #16213e;
    --color-accent: #7fdbda;
    /* Teal */
    --color-accent-glow: #a8e6cf;
    /* Bright Teal */
    --color-secondary: #6b5b95;
    /* Purple */
    --color-firefly: #c3e88d;
    /* Lime Green */
    --color-text-main: #e2e8e9;
    --color-text-muted: #a0a0c0;

    /* Gradients */
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(127, 219, 218, 0.15) 0%, transparent 70%);

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    /* Fonts */
    --font-main: 'Inter', sans-serif;
    --font-display: 'Cinzel', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===================================
   ANIMATED BACKGROUND
   =================================== */

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--color-secondary);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--color-accent);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--color-firefly);
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(30px, -50px);
    }

    66% {
        transform: translate(-20px, 20px);
    }
}

/* ===================================
   HEADER & HERO
   =================================== */

.main-header {
    padding: var(--spacing-md);
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(127, 219, 218, 0.5));
}

.logo-icon-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(127, 219, 218, 0.3));
}

.footer-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(127, 219, 218, 0.2));
}

.logo-text h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-accent);
}

.tagline {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    background: radial-gradient(circle at center, rgba(22, 33, 62, 0.5) 0%, transparent 70%);
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-banner-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 2rem;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(127, 219, 218, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero-banner-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.hero-banner-container:hover .hero-banner-img {
    transform: scale(1.05);
}

.hero-title {
    display: none;
    /* Replaced by banner image */
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
}

/* ===================================
   SECTIONS & CARDS
   =================================== */

.section {
    padding: var(--spacing-lg) 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-description {
    color: var(--color-text-muted);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Base Card Styles */
.webapp-card,
.app-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: inherit;
    display: block;
    backdrop-filter: blur(10px);
}

.webapp-card:hover,
.app-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(127, 219, 218, 0.3);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.webapp-card:hover .card-glow,
.app-card:hover .card-glow {
    opacity: 1;
}

.card-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.webapp-icon,
.app-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease;
    object-fit: cover;
    /* Added for PNG images */
}

.webapp-card:hover .webapp-icon,
.app-card:hover .app-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #fff;
}

.card-description {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    color: var(--color-accent);
    border: 1px solid rgba(127, 219, 218, 0.1);
}

/* Footer & Status */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.launch-text {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 600;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-live {
    background: rgba(195, 232, 141, 0.1);
    color: var(--color-firefly);
    border: 1px solid var(--color-firefly);
}

.status-coming-soon {
    background: rgba(107, 91, 149, 0.1);
    color: var(--color-secondary);
    border: 1px solid var(--color-secondary);
}

/* Coming Soon Overlay */
.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 18, 43, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
    z-index: 5;
}

.app-card:hover .coming-soon-overlay {
    opacity: 1;
}

.play-store-badge {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #000;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.app-card:hover .play-store-badge {
    transform: translateY(0);
}

.play-store-badge svg {
    width: 24px;
    height: 24px;
}

/* ===================================
   FOOTER
   =================================== */

.main-footer {
    padding: 4rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--color-text-muted);
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-info {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin: 0.5rem 0;
    justify-content: center;
}

.social-link {
    color: var(--color-text-main);
    opacity: 0.7;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.social-link:hover {
    color: var(--color-accent);
    opacity: 1;
    transform: translateY(-3px);
    background: rgba(127, 219, 218, 0.1);
    box-shadow: 0 0 15px rgba(127, 219, 218, 0.3);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .hero-banner-img {
        height: 250px;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }
}