:root {
    --bg-base: #050505;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Service Accents */
    --accent-ai: #8b5cf6;
    --accent-mail: #3b82f6;
    --accent-files: #06b6d4;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    animation: float 20s infinite ease-in-out alternate;
}

.glow-orb-1 {
    width: 40vw;
    height: 40vw;
    background: rgba(139, 92, 246, 0.15);
    top: -10vw;
    right: -10vw;
}

.glow-orb-2 {
    width: 50vw;
    height: 50vw;
    background: rgba(59, 130, 246, 0.1);
    bottom: -20vw;
    left: -10vw;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, 50px) scale(1.1); }
}

/* Main Container */
.container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 5rem;
    animation: fadeDown 1s ease-out forwards;
}

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

.title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dot {
    color: var(--accent-mail);
    -webkit-text-fill-color: var(--accent-mail);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

/* Service Card */
.service-card {
    position: relative;
    text-decoration: none;
    color: inherit;
    border-radius: 20px;
    padding: 1px; /* Space for gradient border */
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.01));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeUp 0.8s ease-out backwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }

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

.card-content {
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 19px;
    padding: 2.5rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* Dynamic Glow Effect on Hover */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

/* Specific Accents */
#card-ai .icon-wrapper { color: var(--accent-ai); background: rgba(139, 92, 246, 0.1); }
#card-mail .icon-wrapper { color: var(--accent-mail); background: rgba(59, 130, 246, 0.1); }
#card-files .icon-wrapper { color: var(--accent-files); background: rgba(6, 182, 212, 0.1); }

.icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.icon {
    width: 32px;
    height: 32px;
}

.text-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.text-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.arrow {
    position: absolute;
    bottom: 2.5rem;
    right: 2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

/* Hover States */
.service-card:hover {
    transform: translateY(-5px) scale(1.02);
}

#card-ai:hover {
    background: linear-gradient(to bottom right, var(--accent-ai), rgba(255, 255, 255, 0.01));
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.2);
}
#card-mail:hover {
    background: linear-gradient(to bottom right, var(--accent-mail), rgba(255, 255, 255, 0.01));
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2);
}
#card-files:hover {
    background: linear-gradient(to bottom right, var(--accent-files), rgba(255, 255, 255, 0.01));
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.2);
}

.service-card:hover .card-glow { opacity: 1; }
.service-card:hover .arrow {
    opacity: 1;
    transform: translateX(0);
}
.service-card:hover .icon-wrapper {
    transform: scale(1.1);
}

/* Specific Hover text colors */
#card-ai:hover .arrow { color: var(--accent-ai); }
#card-mail:hover .arrow { color: var(--accent-mail); }
#card-files:hover .arrow { color: var(--accent-files); }

/* Footer & Status */
footer {
    margin-top: auto;
    display: flex;
    justify-content: center;
    padding-bottom: 2rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #6b7280;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(107, 114, 128, 0.5);
    animation: pulse-checking 2s infinite;
}

.status-dot.online {
    background-color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    animation: pulse-online 2s infinite;
}

.status-dot.offline {
    background-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    animation: pulse-offline 2s infinite;
}

.status-dot.warning {
    background-color: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-checking {
    0% { box-shadow: 0 0 0 0 rgba(107, 114, 128, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(107, 114, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(107, 114, 128, 0); }
}

@keyframes pulse-online {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulse-offline {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes pulse-warning {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Responsive */
@media (max-width: 768px) {
    .title { font-size: 2.5rem; }
    .services-grid { grid-template-columns: 1fr; }
    .container { padding: 2rem 1.5rem; }
}
