/* =====================================================
   TRUBALANCE - Professional Minimal Design System
   ===================================================== */

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

:root {
    /* Color Palette - Professional Minimal */
    --primary: #2c3e50;
    --secondary: #34495e;
    --accent: #3498db;
    --success: #27ae60;
    --danger: #e74c3c;
    --light: #ecf0f1;
    --lighter: #f8f9fa;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --border: #bdc3c7;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-md: rgba(0, 0, 0, 0.12);
    --shadow-lg: rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: #ffffff;
    letter-spacing: 0.3px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER & NAVIGATION ===== */

header {
    background: white;
    border-bottom: 1px solid var(--light);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.navbar {
    padding: 1.25rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.navbar a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar a:hover {
    color: var(--accent);
}

.navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent);
    transition: width 0.3s ease;
}

.navbar a:hover::after {
    width: 100%;
}

/* ===== MAIN CONTENT ===== */

main {
    min-height: calc(100vh - 60px);
}

section {
    padding: 5rem 0;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* ===== HERO SECTION ===== */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
    padding: 7rem 0;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.8;
}

/* ===== EXERCISES SECTION ===== */

.exercises-section {
    background: white;
}

.exercises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.exercise-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.exercise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--secondary) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.exercise-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 12px 24px var(--shadow-lg);
}

.exercise-card:hover::before {
    transform: scaleX(1);
}

.exercise-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-weight: 600;
}

.exercise-card p {
    color: var(--text-light);
    margin-bottom: 1.75rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== JOURNAL SECTION ===== */

.journal-section {
    background: var(--lighter);
}

.journal-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.journal-write label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#journal-entry {
    width: 100%;
    height: 300px;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'Menlo', 'Monaco', monospace;
    font-size: 0.95rem;
    resize: vertical;
    transition: all 0.3s ease;
    background: white;
    color: var(--text);
}

#journal-entry:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background: white;
}

.journal-list h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
}

#entries-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 8px;
}

#entries-container::-webkit-scrollbar {
    width: 6px;
}

#entries-container::-webkit-scrollbar-track {
    background: var(--lighter);
    border-radius: 3px;
}

#entries-container::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.journal-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
    animation: slideInFromLeft 0.3s ease;
}

.journal-item:hover {
    box-shadow: 0 4px 12px var(--shadow-md);
    transform: translateX(4px);
}

.journal-item-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.journal-item-text {
    color: var(--text);
    line-height: 1.7;
    word-break: break-word;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* ===== ABOUT SECTION ===== */

.about-section {
    background: white;
}

.about-section p {
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    text-align: center;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== BUTTONS ===== */

.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    font-family: inherit;
}

.btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--light);
    color: var(--text);
    box-shadow: 0 2px 8px var(--shadow);
}

.btn-secondary:hover {
    background: var(--border);
    color: var(--primary);
}

.btn-danger {
    background: var(--danger);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
    background: #c0392b;
}

#save-entry {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    margin-top: 1rem;
}

/* ===== MODAL - PROFESSIONAL DESIGN ===== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    animation: fadeInBg 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal.active {
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid var(--light);
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.05) 0%, rgba(52, 152, 219, 0.05) 100%);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0;
    font-weight: 700;
}

.close {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.close:hover {
    background: var(--light);
    color: var(--primary);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--light);
    background: var(--lighter);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

/* ===== EXERCISE CONTENT ===== */

.exercise-content {
    animation: fadeIn 0.3s ease-in;
}

.exercise-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-weight: 700;
}

.exercise-instructions {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(52, 152, 219, 0.05) 100%);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    line-height: 1.8;
    border-left: 4px solid var(--accent);
    color: var(--text-light);
}

.exercise-timer {
    font-size: 3.5rem;
    text-align: center;
    margin: 2.5rem 0;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.exercise-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.exercise-steps li {
    background: white;
    padding: 1.25rem;
    border-left: 4px solid var(--accent);
    border-radius: 6px;
    border: 1px solid var(--light);
    border-left: 4px solid var(--accent);
    transition: all 0.3s ease;
}

.exercise-steps li:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px var(--shadow-md);
}

.exercise-steps strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 700;
}

.cbt-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group textarea {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'Menlo', 'Monaco', monospace;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
    color: var(--text);
    background: white;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* ===== NOTIFICATIONS/TOAST ===== */

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    padding: 1.25rem 1.75rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    animation: slideInFromRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-left: 4px solid var(--accent);
    max-width: 400px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--danger);
}

.toast.info {
    border-left-color: var(--accent);
}

.toast-message {
    color: var(--text);
    font-size: 0.95rem;
}

.toast.closing {
    animation: slideOutToRight 0.3s ease forwards;
}

/* ===== FOOTER ===== */

footer {
    background: var(--primary);
    color: white;
    padding: 2.5rem 0;
    text-align: center;
    margin-top: 4rem;
}

footer p {
    opacity: 0.85;
    font-size: 0.95rem;
}

/* ===== ANIMATIONS ===== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInBg {
    from {
        background-color: rgba(0, 0, 0, 0);
    }
    to {
        background-color: rgba(0, 0, 0, 0.5);
    }
}

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

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutToRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }

    section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .navbar ul {
        gap: 1rem;
    }

    .navbar a {
        font-size: 0.85rem;
    }

    .hero {
        padding: 4rem 0;
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .journal-container {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 20% auto;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .exercises-grid {
        grid-template-columns: 1fr;
    }

    .toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .navbar h1 {
        font-size: 1.2rem;
    }

    .navbar ul {
        gap: 0.75rem;
    }

    .navbar a {
        font-size: 0.75rem;
    }

    section {
        padding: 2rem 0;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .exercise-timer {
        font-size: 2.5rem;
    }

    .exercise-content h3 {
        font-size: 1.3rem;
    }
}

/* ===== PAGE SYSTEM ===== */

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ===== HERO BUTTONS ===== */

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ===== FEATURES SECTION ===== */

.features {
    background: white;
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--light);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px var(--shadow-lg);
    border-color: var(--accent);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== CTA SECTION ===== */

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* ===== PAGE HEADER ===== */

.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== EXERCISE META ===== */

.exercise-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--light);
    color: var(--accent);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.duration {
    background: rgba(52, 152, 219, 0.1);
    color: var(--accent);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== RESOURCES SECTION ===== */

.resources-section {
    background: white;
    padding: 3rem 0;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.resource-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--light);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow);
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px var(--shadow-md);
    border-color: var(--accent);
}

.resource-category {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.resource-card h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.resource-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.resource-list {
    list-style: none;
    padding-left: 0;
}

.resource-list li {
    color: var(--text);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.resource-list li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ===== CONTACT SECTION ===== */

.contact-section {
    background: var(--lighter);
    padding: 3rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-info p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.services-list {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent);
}

.services-list h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.services-list ul {
    list-style: none;
}

.services-list li {
    color: var(--text);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.services-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--light);
    text-align: center;
}

.info-card h4 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
}

.info-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.info-card a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.info-card a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* ===== CONTACT FORM ===== */

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-md);
}

.contact-form h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
    color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
    font-family: 'Menlo', 'Monaco', monospace;
}

.contact-form select {
    cursor: pointer;
}

.form-note {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 1rem;
    text-align: center;
}

/* ===== TEAM SECTION ===== */

.team-section {
    background: white;
    padding: 4rem 0;
    text-align: center;
}

.team-section h2 {
    margin-bottom: 0.5rem;
}

.team-section > .container > p {
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.team-member {
    background: var(--lighter);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--light);
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px var(--shadow-lg);
    border-color: var(--accent);
}

.member-avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.team-member h4 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.team-member .role {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-member .bio {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== FOOTER ===== */

footer {
    background: var(--primary);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h4 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom small {
    color: rgba(255, 255, 255, 0.6);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        min-width: 200px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-header h2 {
        font-size: 1.8rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .services-list {
        padding: 1rem;
    }
}

