
/* Base Styles */
:root {
    --primary-color: #6c63ff;
    --secondary-color: #4caf50;
    --dark-bg: #121212;
    --dark-surface: #1e1e1e;
    --light-text: #f5f5f5;
    --dark-text: #333;
    --accent-color: #ff7eb3;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--light-text);
    background-color: var(--dark-bg);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(125deg, #2c3e50, #000000);
    overflow: hidden;
}

.background-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, var(--dark-bg) 70%);
}

.background-animation::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        radial-gradient(circle, rgba(108, 99, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle, rgba(108, 99, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    animation: backgroundMove 60s linear infinite;
}

@keyframes backgroundMove {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(-5%, -5%) rotate(5deg);
    }
}


h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.animated-text {
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.animated-text span {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.animated-text span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.5s ease;
}

.animated-text:hover span::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

#theme-toggle {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

#theme-toggle:hover {
    color: var(--primary-color);
    transform: rotate(30deg);
}

/* Main Content */
main {
    padding: 2rem 5%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    padding: 0.8rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

/* Section Styles */
section {
    margin: 4rem 0;
    padding: 2rem;
    background-color: rgba(30, 30, 30, 0.7);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* Habits Section */
.habit-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.habit-form input, .habit-form select {
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 8px;
    background-color:  light-dark(rgb(0 0 0), rgb(255 255 255));;
    color: rgb(229, 228, 226);
    flex: 1;
    min-width: 200px;
}

.habit-form button {
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.habit-form button:hover {
    background-color: #5a52d5;
}

.habits-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.habit-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.habit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.habit-card h3 {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.habit-card .category {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 1rem;
}

.habit-card .category.fitness {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.habit-card .category.nutrition {
    background-color: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.habit-card .category.mindfulness {
    background-color: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
}

.habit-card .category.sleep {
    background-color: rgba(33, 150, 243, 0.2);
    color: #2196f3;
}

.habit-card .category.water {
    background-color: rgba(3, 169, 244, 0.2);
    color: #03a9f4;
}

.habit-card .streak {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.habit-card .actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.habit-card .actions button {
    background: none;
    border: none;
    color: var(--light-text);
    cursor: pointer;
    transition: var(--transition);
}

.habit-card .actions button:hover {
    color: var(--primary-color);
}

.habit-card .progress {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 1rem 0;
    overflow: hidden;
}

.habit-card .progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s ease;
}

/* Mindful Minutes Section */
.mindful-exercises {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.exercise-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    transition: var(--transition);
    text-align: center;
}

.exercise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.breathing-animation {
    width: 100px;
    height: 100px;
    margin: 1.5rem auto;
    position: relative;
}

.breathing-animation .circle {
    width: 100%;
    height: 100%;
    background-color: rgba(108, 99, 255, 0.2);
    border-radius: 50%;
    position: absolute;
    animation: breathe 8s infinite ease-in-out;
}

@keyframes breathe {
    0%, 100% {
        transform: scale(0.8);
        background-color: rgba(108, 99, 255, 0.2);
    }
    50% {
        transform: scale(1.2);
        background-color: rgba(108, 99, 255, 0.5);
    }
}

.start-exercise {
    padding: 0.6rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.start-exercise:hover {
    background-color: #5a52d5;
}

.timer {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Stats Section */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

.stat-chart {
    height: 100px;
    margin-top: 1rem;
    position: relative;
}

/* Modal(it is useful for the judge ) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--dark-surface);
    padding: 2rem;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.exercise-timer {
    font-size: 3rem;
    font-weight: 700;
    margin: 2rem 0;
    color: var(--primary-color);
}

#stop-exercise {
    padding: 0.8rem 2rem;
    background-color: var(--error-color);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

#stop-exercise:hover {
    background-color: #d32f2f;
}

/* Footer */
footer {
    background-color: rgba(18, 18, 18, 0.9);
    padding: 2rem 5%;
    text-align: center;
    margin-top: 4rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Responsive Design@piyush */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    nav ul li {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .habit-form {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
}

/* Animations***important***** */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Social Icons Animation all link directed to my profile */
.social-icon i {
    transition: transform 0.3s ease;
}

.social-icon:hover i {
    transform: rotate(360deg);
}

