/* --- Global Variables (Orange & Blue Theme) --- */
:root {
    --primary: #f97316; /* Vibrant Orange */
    --primary-hover: #ea580c; /* Darker Orange */
    --secondary: #1e3a8a; /* Deep University Blue */
    --bg-color: #f0f6ff; /* Very soft blue-tinted background */
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 16px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

/* --- Navigation --- */
nav {
    background: var(--secondary);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-links button {
    background: transparent;
    border: none;
    color: #e2e8f0; /* Light gray-blue for unselected tabs */
    font-size: 1rem;
    font-weight: 600;
    margin-left: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
}

.nav-links button:hover, .nav-links button.active-btn {
    color: white;
    background: var(--primary);
}

/* --- Layout & Sections --- */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

section {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

section.active {
    display: block;
}

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

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--secondary); /* Headers in deep blue */
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* --- Cards --- */
.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border-bottom: 4px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    border-bottom: 4px solid var(--primary);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* --- Home / Hero --- */
.hero {
    text-align: center;
    padding: 60px 0;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--secondary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.respect-score-card {
    background: white;
    display: inline-block;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-top: 6px solid var(--primary);
}

.score {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin: 15px 0;
}

.score span {
    font-size: 2rem;
    color: var(--text-muted);
}

.trend {
    color: #10b981;
    font-weight: 600;
}

/* --- Lists & Flex Rows --- */
.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.flex-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.item h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

/* --- Case Study --- */
.comparison-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-card {
    padding: 30px;
    border-radius: var(--border-radius);
    color: white;
}

.case-card h3 { margin-bottom: 20px; }
.case-card ul { margin-left: 20px; }
.case-card li { margin-bottom: 10px; }

.before { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.after { background: linear-gradient(135deg, #10b981, #047857); }

/* --- Appreciation Wall --- */
.wall-form {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

textarea { resize: vertical; min-height: 100px; }

.primary-btn {
    background: var(--primary) !important;
    color: white !important;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.primary-btn:hover { background: var(--primary-hover) !important; }

.messages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.message-card {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    position: relative;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary);
}

.message-card p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 15px;
    color: var(--text-main);
}

.message-card .author {
    font-weight: 600;
    color: var(--primary);
}


/* =========================================
   MOBILE RESPONSIVENESS (HAMBURGER MENU)
   ========================================= */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger .bar {
    width: 28px;
    height: 3px;
    background-color: white; /* White lines to contrast against blue nav */
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex; 
    }

    .nav-links {
        position: absolute;
        top: 65px; 
        left: -100%; /* Hidden off-screen by default */
        width: 100%;
        background-color: var(--secondary); /* Match the navbar color */
        flex-direction: column;
        text-align: center;
        transition: 0.3s ease-in-out; 
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
        padding-bottom: 20px;
    }

    /* JavaScript toggles this class */
    .nav-links.active-menu {
        left: 0; 
    }

    .nav-links button {
        margin: 15px auto !important;
        width: 80%;
        display: block;
    }

    .hero h1 { font-size: 2.5rem; }
    .score { font-size: 3.5rem; }
}