/* css/style.css */

:root {
    /* High-End Enterprise Color Palette */
    --bg-base: #07090f;        /* Deep matte navy-black */
    --bg-surface: #12151e;     /* Slightly lighter card background */
    --bg-elevated: #1a1e2b;
    --brand-red: #e63946;      /* Sophisticated, professional crimson */
    --brand-red-hover: #ff4d5a;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --border-subtle: rgba(255, 255, 255, 0.08);
    
    /* Premium Typography */
    --font-ui: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Fira Code', 'Courier New', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-ui);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

/* --- Universal Navigation (Desktop) --- */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(7, 9, 15, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 4px;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.mobile-menu-btn {
    display: none; /* Hidden on desktop */
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

.nav-elements {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--text-primary);
}

/* --- Buttons --- */
.btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-outline {
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--brand-red);
    background: rgba(230, 57, 70, 0.1);
}

.btn-primary {
    background: var(--brand-red);
    color: #fff;
    border: 1px solid var(--brand-red);
}

.btn-primary:hover {
    background: var(--brand-red-hover);
    border-color: var(--brand-red-hover);
    box-shadow: 0 4px 14px rgba(230, 57, 70, 0.25);
}

/* --- Hero Section (Home Page) --- */
.hero {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(230, 57, 70, 0.1);
    color: var(--brand-red);
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.highlight {
    color: var(--brand-red);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 90%;
}

.centered-subtitle {
    margin: 0 auto;
    max-width: 700px;
}

/* --- Terminal UI --- */
.mock-window {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.window-header {
    background: rgba(0,0,0,0.3);
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #475569;
}

.window-body {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.code-line { margin-bottom: 8px; }
.prompt { color: var(--brand-red); margin-right: 8px; }
.sys-out { color: var(--text-secondary); }
.blink { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* --- Pillars / Features --- */
.pillars {
    padding: 80px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pillar-card {
    padding: 40px;
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-5px);
    border-color: rgba(230, 57, 70, 0.4);
}

.icon-wrapper {
    color: var(--brand-red);
    margin-bottom: 24px;
}

.pillar-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.pillar-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- About Page Specifics --- */
.about-header {
    padding: 80px 24px 40px;
}

.methodology-card {
    background: var(--bg-surface);
    padding: 50px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    margin-bottom: 80px;
}

.methodology-card h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.methodology-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 900px;
}

.methodology-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step-title {
    color: var(--brand-red);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.step-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- Progress Bars (Progress Page) --- */
.progress-item {
    margin-bottom: 30px;
    font-family: var(--font-ui);
}

.progress-item:last-child {
    margin-bottom: 0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-name {
    font-weight: 600;
    color: var(--text-primary);
}

.skill-percent {
    color: var(--brand-red);
    font-weight: 800;
    font-family: var(--font-mono);
}

.progress-track {
    width: 100%;
    height: 8px;
    background: var(--bg-elevated);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--brand-red);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.4);
    transition: width 1s ease-in-out;
}

/* --- Login Form (Profile Page) --- */
.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
}

.login-card {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-align: left;
}

.input-group input {
    padding: 12px 16px;
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--brand-red);
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.2);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        margin: 40px auto;
    }
    
    .hero-subtitle {
        margin: 0 auto 30px auto;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }
    
    .methodology-card {
        padding: 30px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    /* Mobile Menu Logic */
    .mobile-menu-btn {
        display: block;
    }

    .nav-elements {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(7, 9, 15, 0.98);
        backdrop-filter: blur(15px);
        padding: 30px 20px;
        border-bottom: 1px solid var(--border-subtle);
        gap: 24px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .nav-elements.show {
        display: flex; 
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 20px;
        padding: 0;
    }

    .nav-actions {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}
/* --- Professional Avatar Styling --- */
#image-preview {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background-color: var(--bg-base);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

#image-preview:hover {
    border-color: var(--brand-red) !important;
    transform: scale(1.02);
    cursor: pointer;
}

#image-preview::after {
    content: 'CHANGE';
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(230, 57, 70, 0.8);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 0;
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 0 0 50% 50%;
}

#image-preview:hover::after {
    opacity: 1;
}
/* --- Team / Hierarchy Section Styles --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.team-card {
    position: relative;
    padding: 30px !important;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.rank-tag {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--brand-red);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 5px 40px;
    transform: rotate(45deg);
    letter-spacing: 1px;
    text-align: center;
}

.team-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.team-info p {
    font-size: 0.85rem;
    color: var(--brand-red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.thm-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
}

/* Special styling for Leader to make it stand out */
.team-card.leader {
    border-color: var(--brand-red);
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.1);
}

.team-card.co-leader {
    border-color: #94a3b8;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}
/* Placeholder styling for the profile circle */
.profile-img-placeholder {
    background-color: var(--bg-elevated);
    background-image: url('https://cdn-icons-png.flaticon.com/512/149/149071.png'); /* Standard neutral avatar */
    background-size: 60%; /* Make it look like an icon */
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

#image-preview.has-image {
    background-size: cover;
    opacity: 1;
    border: 2px solid var(--brand-red);
}
/* --- Mobile Menu Fix --- */
@media (max-width: 900px) {
    /* Ensure the elements are hidden by default on mobile */
    .nav-elements {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%; /* Sits right under the navbar */
        left: 0;
        width: 100%;
        background: rgba(7, 9, 15, 0.98); /* Deep background for contrast */
        backdrop-filter: blur(15px);
        padding: 30px 20px;
        border-bottom: 1px solid var(--border-subtle);
        gap: 24px;
        z-index: 999;
    }

    /* This is the class the JavaScript toggles */
    .nav-elements.show {
        display: flex !important;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}
/* --- Mobile Menu Universal Fix --- */
@media (max-width: 900px) {
    /* Base state for mobile */
    #nav-elements {
        display: none !important; /* Force hide by default */
        flex-direction: column;
        position: absolute;
        top: 70px; /* Adjust based on your navbar height */
        left: 0;
        width: 100%;
        background-color: #07090f !important; /* Match your theme */
        padding: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        z-index: 9999 !important;
    }

    /* JavaScript Toggle State */
    #nav-elements.show {
        display: flex !important; /* Force show when class is present */
    }

    .nav-menu {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
    }
}
/* --- Mobile Menu Visibility --- */
@media (max-width: 900px) {
    #nav-elements {
        display: none; /* Hidden by default */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjust to match your navbar height */
        left: 0;
        width: 100%;
        background: #07090f; /* Match your theme */
        z-index: 10000;
        padding: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    /* This class is added by the JS */
    #nav-elements.show {
        display: flex !important;
    }
}