:root {
    --primary-color: #7C83FD;
    --secondary-color: #96BAFF;
    --accent-color: #7DEDFF;
    --background-color: #F7F7FF;
    --text-color: #2A2A2A;
    --danger-color: #FF6B6B;
}

*{
    font-family: 'Space Mono', monospace;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.212);
}
.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 2rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.emergency-btn {
    background: var(--danger-color);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.resources-container {
    padding: 2rem 8%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Space Mono', monospace;
}

.resources-container h1 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    letter-spacing: -1px;
    color: #000000;
}

.resources-grid {
    display: grid;
    gap: 2.5rem;
}

.resource-category {
    background-color: #f7f7f7;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #7C83FD;
    transition: all 0.3s ease;
}

.resource-category:hover {
    transform: translateY(-5px);
}

.resource-category h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.resource-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.resource-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid #7C83FD;
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(124, 131, 253, 0.2);
}

.resource-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.resource-card p {
    color: #666;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.resource-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 2px solid #7C83FD;
    color: var(--text-color);
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.resource-link:hover {
    background: #7C83FD;
    color: white;
    transform: translateY(-2px);
}

.breathing-exercise {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 3rem;
}

.breathing-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.breathing-circle {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #7C83FD, #96BAFF);
    border-radius: 50%;
    position: relative;
    transition: transform 5s ease-in-out;
}

.breathing-circle.animate {
    animation: breathe 10s infinite ease-in-out;
}

@keyframes breathe {
    0%, 100% { transform: scale(0.5); } 
    50% { transform: scale(1); }        
}

.breathing-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -60px;
    font-size: 1.2rem;
    color: #272727;
    white-space: nowrap;
}

.breathing-controls {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.breathing-btn {
    padding: 0.8rem 2rem;
    border: 2px solid #7C83FD;
    border-radius: 25px;
    background: transparent;
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.breathing-btn:hover:not(:disabled) {
    background: #7C83FD;
    color: white;
    transform: translateY(-2px);
}

.breathing-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.breath-count {
    position: absolute;
    top: -40px;
    font-size: 1.1rem;
    color: var(--text-color);
}

/* Educational Articles */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-item {
    padding: 1.5rem;
    border: 2px solid #7C83FD;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #ffffff;
}

.article-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(124, 131, 253, 0.2);
    background: white;
}

.article-item h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.article-item p {
    color: #666;
    line-height: 1.5;
}

/* Self-Care Activities */
.activity-suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.activity-card {
    background: #ffffff;
    padding: 1.8rem;
    border-radius: 15px;
    border: 2px solid #7C83FD;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(124, 131, 253, 0.2);
}

.activity-card h3 {
    color: #272727;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.activity-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}


@media (max-width: 768px) {
    .resources-container {
        padding: 1.5rem 4%;
    }

    .resources-container h1 {
        font-size: 2rem;
    }

    .resource-category {
        padding: 1.5rem;
    }

    .breathing-container {
        width: 250px;
        height: 250px;
    }

    .breathing-circle {
        width: 120px;
        height: 120px;
    }

    .breathing-controls {
        flex-direction: column;
    }

    .breathing-btn {
        width: 100%;
    }

    .activity-suggestions {
        grid-template-columns: 1fr;
    }
    
    .activity-card {
        padding: 1.5rem;
    }
}

