/* Homepage Specific Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

.header {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--bg-secondary);
    box-shadow: 0 4px 20px var(--shadow);
    position: relative;
    overflow: hidden;
    min-height: fit-content;
}

.header::before, .header::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--gradient);
    opacity: 0.1;
    z-index: 0;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.header::before {
    top: -100px;
    left: -100px;
    animation: floatHeader1 15s ease-in-out infinite;
}

.header::after {
    bottom: -100px;
    right: -100px;
    animation: floatHeader2 18s ease-in-out infinite;
}

.logo {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.welcome-text {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-secondary);
    font-family: 'Source Sans Pro', sans-serif;
}

.main-content {
    flex: 1;
    padding: 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

@keyframes floatHeader1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    50% {
        transform: translate(50px, 50px) rotate(180deg);
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
}

@keyframes floatHeader2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
    50% {
        transform: translate(-50px, -50px) rotate(-180deg);
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0;
}

.topic-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px var(--shadow);
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.topic-card::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--gradient);
    opacity: 0.05;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphCards 12s ease-in-out infinite;
}

.topic-card > * {
    position: relative;
    z-index: 1;
}

.topic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px var(--shadow);
}

.topic-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent);
    display: block;
}

.topic-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.topic-card p {
    color: var(--text-secondary);
    font-family: 'Source Sans Pro', sans-serif;
}

.topic-card a {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    top: 0;
    left: 0;
}

.start-button {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 35px;
    font-size: 1.3rem;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
    font-family: 'Source Sans Pro', sans-serif;
}

.start-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(74, 144, 226, 0.5);
}

.exercises-section {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 20px;
    margin: 2rem 0;
    box-shadow: 0 8px 30px var(--shadow);
}

.exercises-title {
    margin-bottom: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.5rem;
}

.exercises-title span {
    font-size: xxx-large;
}

.exercise-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow);
    position: relative;
}

.exercise-card:hover {
    transform: translateX(8px);
}

.exercise-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.exercise-card p {
    color: var(--text-secondary);
    font-family: 'Source Sans Pro', sans-serif;
}

.footer {
    padding: 3rem 2rem 1rem;
    background: var(--bg-secondary);
    margin-top: auto;
    box-shadow: 0 -4px 20px var(--shadow);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'Source Sans Pro', sans-serif;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--shadow);
    color: var(--text-secondary);
}

.footer-bottom p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.donation-section {
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--shadow);
}

.donation-button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Source Sans Pro', sans-serif;
    width: fit-content;
}

.donation-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.donation-button i {
    color: #ff7675;
}

.hero-header {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--bg-secondary);
    box-shadow: 0 4px 20px var(--shadow);
    position: relative;
    overflow: hidden;
    min-height: fit-content;
    margin-top: 0;
}

@media (max-width: 768px) {
    .hero-header {
        min-height: fit-content;
        padding: 2rem 1rem;
    }
    .main-content {
        padding: 1rem;
    }
    .topics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .exercises-section {
        padding: 1rem;
    }
    .footer {
        padding: 2rem 1rem 1rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
    .donation-section {
        margin: 0;
        padding-top: 1rem;
    }
}

@media (max-width: 600px) {
    .user-name {
        display: none;
    }
    .user-profile {
        padding: 0.4rem;
        gap: 0.4rem;
    }
}

@keyframes morphCards {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: translate(-50%, -50%) rotate(0deg);
    }
    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
        transform: translate(-50%, -50%) rotate(180deg);
    }
}