/* style.css - Updated with correct variables */
:root {
    --primary: #4f46e5;
    --primary-light: #e0e7ff;
    --slate-900: #0f172a;
    --slate-700: #334155;
    --slate-500: #64748b;
    --slate-100: #f1f5f9;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- SHARED LAYOUT STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--slate-100);
    color: var(--slate-700);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Effects */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 0%, #e0e7ff 0%, #f1f5f9 100%);
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(79, 70, 229, 0.1);
    filter: blur(80px);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    display: grid; /* Changed from flex to grid for better centering */
    grid-template-columns: 1fr auto 1fr; /* Creates three equal zones */
    align-items: center;
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    z-index: 1000;
    transition: var(--transition);
}

.logo {
    grid-column: 1; /* Locks logo to the left zone */
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
    text-decoration: none;
}

.nav-links {
    grid-column: 2; /* Locks links to the absolute center zone */
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--slate-500);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

#navbar.scrolled {
    top: 0.75rem;
    width: 95%;
    padding: 0.5rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.mobile-menu-btn {
    grid-column: 3; /* Places button (hidden) in the right zone */
    justify-self: end;
    display: none; 
}

/* Adjust for Mobile */
@media (max-width: 768px) {
    #navbar {
        display: flex; /* Switch back to flex for mobile spacing */
        justify-content: space-between;
    }
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

main {
    max-width: 1200px;
    margin: 160px auto 0;
    padding: 0 2rem;
    flex-grow: 1;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 80px;
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    /* Corrected Variable */
    color: var(--slate-900); 
    margin-bottom: 1.5rem;
}

.hero h1 span {
    /* Corrected Variable */
    color: var(--primary);
}

.hero p {
    /* Corrected Variable */
    color: var(--slate-500);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 100px;
}

.feature-card {
    /* Corrected Variable */
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.5);
    padding: 3rem 2rem;
    border-radius: 24px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-light);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.05);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    /* Corrected Variable */
    color: var(--slate-900);
}

.feature-card p {
    /* Corrected Variable */
    color: var(--slate-500);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    main { margin-top: 120px; }
    .hero h1 { font-size: 2.8rem; }
}

/* --- MOBILE MENU STYLES --- */
.mobile-menu-btn {
    display: none; /* Hidden on management */
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--slate-900);
    transition: var(--transition);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden off-screen by default */
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    right: 0; /* Slide in when active */
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-menu-item {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--slate-900);
}

.mobile-menu-item.active {
    color: var(--primary);
}

/* --- RESPONSIVE BREAKPOINT --- */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide management links on mobile */
    }

    .mobile-menu-btn {
        display: flex; /* Show the hamburger button */
    }

    #navbar {
        padding: 0.75rem 1.5rem;
    }
}