:root {
    --color-cyan: #00d1ff;
    --color-mint: #adffed;
    --color-lime: #e4ff36;
    --color-purple: #e077ff;
    --color-dark: #1a1a1a;
    --color-gray: #666;
}

/* Hero Section */
.apps-hero {
    background: #1a1a1a;
    padding: 140px 20px 100px;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.hero-shape.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--color-cyan);
    top: -150px;
    right: -100px;
    animation: float-shape 20s ease-in-out infinite;
}

.hero-shape.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--color-purple);
    bottom: -100px;
    left: -80px;
    animation: float-shape 15s ease-in-out infinite reverse;
}

.hero-shape.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--color-mint);
    top: 40%;
    right: 25%;
    animation: float-shape 18s ease-in-out infinite;
}

@keyframes float-shape {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 209, 255, 0.1);
    border: 2px solid var(--color-cyan);
    padding: 12px 24px;
    border-radius: 50px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.hero-badge svg {
    color: var(--color-cyan);
}

.hero-badge span {
    color: var(--color-cyan);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.apps-hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1.1;
    color: white;
    background: linear-gradient(135deg, #fff 0%, var(--color-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto;
}

/* Apps Section */
.apps-section {
    padding: 100px 20px;
    background: white;
}

.content-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Apps Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 35px;
}

/* App Card */
.app-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    display: flex;
    flex-direction: column;
}

.app-card:nth-child(1) {
    animation-delay: 0.05s;
}
.app-card:nth-child(2) {
    animation-delay: 0.1s;
}
.app-card:nth-child(3) {
    animation-delay: 0.15s;
}
.app-card:nth-child(4) {
    animation-delay: 0.2s;
}
.app-card:nth-child(5) {
    animation-delay: 0.25s;
}
.app-card:nth-child(6) {
    animation-delay: 0.3s;
}
.app-card:nth-child(7) {
    animation-delay: 0.35s;
}
.app-card:nth-child(8) {
    animation-delay: 0.4s;
}
.app-card:nth-child(9) {
    animation-delay: 0.45s;
}

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

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 209, 255, 0.2);
    border-color: var(--color-cyan);
}

.app-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-cyan), var(--color-mint));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

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

/* App Image */
.app-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f9ff, #e0f7fa);
}

.app-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.app-card:hover .app-image img {
    transform: scale(1.1);
}

.app-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.app-image-overlay svg {
    color: white;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* App Content */
.app-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 30px;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.app-description {
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1rem;
    flex: 1;
    /* Taller scroll area */
    max-height: 150px;
    overflow-y: auto;
    padding-right: 8px;
}

/* Custom scrollbar styling */
.app-description::-webkit-scrollbar {
    width: 6px;
}

.app-description::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.app-description::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--color-cyan, #00D1FF), #00b8e6);
    border-radius: 3px;
}

.app-description::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00b8e6, #009fcc);
}

/* Firefox */
.app-description {
    scrollbar-width: thin;
    scrollbar-color: var(--color-cyan, #00D1FF) #f1f1f1;
}

/* App Links - Multiple URLs */
.app-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.app-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--color-cyan), #00b8e6);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-link:hover {
    background: linear-gradient(135deg, #00b8e6, #009fcc);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 209, 255, 0.4);
}

.app-link svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.app-link:hover svg {
    transform: translateX(2px);
}

/* Different link styles */
.app-link.github {
    background: linear-gradient(135deg, #333, #24292e);
}

.app-link.github:hover {
    background: linear-gradient(135deg, #24292e, #1a1e22);
}

.app-link.demo {
    background: linear-gradient(135deg, var(--color-purple), #c061e6);
}

.app-link.demo:hover {
    background: linear-gradient(135deg, #c061e6, #a64dcc);
}

.app-link.docs {
    background: linear-gradient(135deg, var(--color-lime), #d4e632);
    color: var(--color-dark);
}

.app-link.docs:hover {
    background: linear-gradient(135deg, #d4e632, #c0d32e);
}
/* App Tags */
.app-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.app-tag {
    padding: 6px 14px;
    background: #f8f9fa;
    color: var(--color-gray);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.app-card:hover .app-tag {
    background: rgba(0, 209, 255, 0.1);
    color: var(--color-cyan);
    border-color: var(--color-cyan);
}

/* Responsive */
@media (max-width: 1200px) {
    .apps-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    }
}

@media (max-width: 768px) {
    .apps-hero h1 {
        font-size: 2.5rem;
    }

    .hero-lead {
        font-size: 1.1rem;
    }

    .apps-section {
        padding: 60px 20px;
    }

    .apps-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .app-image {
        height: 200px;
    }

    .app-content {
        padding: 25px 20px;
    }

    .app-title {
        font-size: 1.3rem;
    }

    .app-description {
        font-size: 0.95rem;
    }
}
