:root {
    --bg-color: #0d1117;
    --panel-bg: rgba(22, 27, 34, 0.4);
    --panel-hover: rgba(33, 38, 45, 0.8);
    --panel-border: rgba(255, 255, 255, 0.08);
    --panel-border-hover: rgba(88, 166, 255, 0.4);
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --accent-color: #58a6ff;
    --badge-bg: rgba(88, 166, 255, 0.15);
    --badge-text: #79c0ff;
    --badge-info-bg: rgba(139, 148, 158, 0.15);
    --badge-info-text: #c9d1d9;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

/* Dynamic Background Orbs */
.background-globes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    animation: float 25s infinite ease-in-out alternate;
}

.globe-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(88, 166, 255, 0.7) 0%, rgba(88, 166, 255, 0) 70%);
    top: -150px;
    left: -100px;
}

.globe-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(163, 113, 247, 0.5) 0%, rgba(163, 113, 247, 0) 70%);
    bottom: -200px;
    right: -150px;
    animation-delay: -12s;
}

.globe-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(46, 160, 67, 0.4) 0%, rgba(46, 160, 67, 0) 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -5s;
    animation-duration: 30s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(60px, 60px) scale(1.15);
    }
}

/* Layout */
.container {
    width: 100%;
    max-width: 1100px;
    padding: 3rem 2rem;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 5rem;
    margin-top: 3rem;
}

.title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #a5d6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
    animation: slideUp 0.6s ease-out;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    animation: slideUp 0.6s ease-out 0.1s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Card Styling */
.tool-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    padding: 2rem;
    animation: slideUp 0.6s ease-out 0.2s both;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.tool-card:hover {
    background: var(--panel-hover);
    border-color: var(--panel-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(88, 166, 255, 0.1);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

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

/* Card Content */
.card-icon-wrapper {
    width: 54px;
    height: 54px;
    background: rgba(1, 4, 9, 0.5);
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    transition: var(--transition);
}

.tool-card:hover .card-icon-wrapper {
    background: rgba(88, 166, 255, 0.1);
    border-color: var(--panel-border-hover);
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.2);
}

.card-icon {
    width: 26px;
    height: 26px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

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

/* Card Footer */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.badge {
    background: var(--badge-bg);
    color: var(--badge-text);
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.badge.info {
    background: var(--badge-info-bg);
    color: var(--badge-info-text);
}

.arrow-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.tool-card:hover .arrow-icon {
    color: var(--accent-color);
    transform: translateX(4px);
}

/* Placeholder Card specifics */
.tool-card.placeholder {
    pointer-events: none;
    opacity: 0.7;
}

.tool-card.placeholder .card-icon-wrapper {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    margin-top: auto;
    text-align: center;
    padding-top: 3rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--accent-color);
}

.heart-icon {
    width: 14px;
    height: 14px;
    color: #f85149;
    display: inline-block;
    vertical-align: middle;
    margin: 0 0.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .hero {
        margin-bottom: 3rem;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 2rem 1rem;
    }

    .title {
        font-size: 2rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }
}