/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0d1117; /* A very dark, almost black color */
    color: #f9fafb; /* text-gray-50 */
    overflow-x: hidden; /* Prevent horizontal scrollbars from animations */
}

/* --- Subtle Aurora Background --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 25%, rgba(167, 139, 250, 0.12), transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(59, 130, 246, 0.12), transparent 40%);
    
    animation: subtle-aurora 40s ease-in-out infinite alternate;
}

/* --- Keyframe Animations --- */
@keyframes subtle-aurora {
    0% { transform: rotate(0deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1.2); }
}

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

.animate-fade-in-down { animation: fadeInDown 0.8s ease-out forwards; }
.animate-fade-in-up { animation: fadeInUp 0.8s ease-out 0.2s forwards; }

.feature-card, .server-card, .tech-card, .faq-item {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

/* --- Staggered Animations --- */
.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }

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

.faq-item { animation-delay: calc(0.1s * var(--i)); }
.server-card { animation-delay: calc(0.1s * var(--i)); }


/* --- Navigation Bar --- */
.main-header {
    position: sticky;
    top: 0;
    background: rgba(13, 17, 23, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 50;
    border-bottom: 1px solid rgba(55, 65, 81, 0.5);
}

.nav-link {
    transition: color 0.3s ease, background-color 0.4s ease;
}

.active-link {
    background-color: #4f46e5;
    color: #ffffff !important;
}


/* --- Buttons & Interactive Effects --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* New Glossy Button Style */
.btn-glossy {
    color: white;
    background: linear-gradient(180deg, rgba(129, 140, 248, 0.9) 0%, rgba(99, 102, 241, 1) 100%);
    border: 1px solid rgba(129, 140, 248, 0.4);
    box-shadow: 
        inset 0px 1px 1px 0px rgba(255, 255, 255, 0.25), /* Inner highlight */
        0px 5px 15px rgba(99, 102, 241, 0.3); /* Outer glow */
}

.btn-glossy:hover {
    box-shadow: 
        inset 0px 1px 2px 0px rgba(255, 255, 255, 0.3),
        0px 8px 25px rgba(99, 102, 241, 0.4);
}

.feature-card, .tech-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover, .tech-card:hover {
    transform: translateY(-10px);
    border-color: rgba(129, 140, 248, 0.5);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25), 0 0 20px rgba(129, 140, 248, 0.3);
}

.server-card {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.server-card:hover {
    border-color: #6366f1;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
}

/* --- FAQ Styles --- */
.faq-item.open .faq-icon {
    transform: rotate(180deg);
}
