/* CSS Reset & Variables */
:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-bg: rgba(255, 255, 255, 0.06);
    --card-hover-border: rgba(255, 255, 255, 0.15);
    
    --accent-1: #6366f1; /* Indigo */
    --accent-2: #a855f7; /* Purple */
    --accent-3: #ec4899; /* Pink */
}

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

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

/* Background Mesh & Glow Effects */
.background-mesh {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at center, #0f1016 0%, #050505 100%);
}

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

.orb-1 {
    width: 500px; height: 500px;
    background: var(--accent-1);
    top: -100px; left: -100px;
}

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

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

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Typography & Hero */
.hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.gradient-text::after {
    content: "Qaisaryah";
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.title:hover .gradient-text::after {
    opacity: 1;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
}

/* Grid System */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

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

/* Glassmorphism Cards */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: var(--card-hover-bg);
    border-color: var(--card-hover-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Section Headers & Dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--card-border), transparent);
    margin: 2rem 0;
    width: 100%;
}

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

.section-title {
    font-size: 2rem;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Infra Cards (Slightly more subdued) */
.infra-card {
    background: rgba(15, 23, 42, 0.4); /* Darker blue tint */
    border-color: rgba(255, 255, 255, 0.05);
}

.infra-card:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

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

.highlight-card {
    border-color: rgba(99, 102, 241, 0.3);
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.highlight-card:hover {
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease;
}

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

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

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

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--card-border);
    padding-top: 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.link-text {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.glass-card:hover .link-text {
    color: var(--text-primary);
}

/* Status Indicators */
.status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.status::before {
    content: '';
    display: block;
    width: 8px; height: 8px;
    border-radius: 50%;
}

.status.pulse::before {
    background: #10b981; /* Emerald */
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

.status.active::before {
    background: var(--accent-1);
    box-shadow: 0 0 10px var(--accent-1);
}

@keyframes pulse {
    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); }
}

/* Responsive */
@media (max-width: 768px) {
    .title { font-size: 3rem; }
    .container { padding: 4rem 1.5rem; }
}
