/* CSS Custom Properties for Youthful Color Scheme */
:root {
    --primary-color: #FF69B4; /* Hot Pink */
    --secondary-color: #00BFFF; /* Deep Sky Blue */
    --accent-color: #FFD700; /* Gold */
    --background-color: #F0F8FF; /* Alice Blue */
    --text-color: #333333;
    --dark-bg: #1a1a2e;
    --dark-text: #ffffff;
    --dark-primary: #FF1493; /* Deep Pink */
    --dark-secondary: #1E90FF; /* Dodger Blue */
    --dark-accent: #FFA500; /* Orange */
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    overflow-x: hidden;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

nav {
    display: flex;
    align-items: center;
}

#dark-mode-toggle {
    margin-left: auto;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s;
}

#dark-mode-toggle:hover {
    transform: scale(1.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 1rem;
}

nav ul li {
    margin: 0 1rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ff6b6b;
}

#hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 60px; /* for fixed nav */
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="5" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="80" r="4" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeIn 2s, pulse 2s infinite alternate;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.02); }
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    animation: bounce 0.6s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

#about, #gallery, #contact {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    margin: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

.routine-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.step {
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.step.completed {
    background: var(--accent-color);
    color: white;
    transform: scale(0.95);
}

.step:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.step-checkbox {
    display: none;
}

.step label {
    cursor: pointer;
    display: block;
}

.step h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.step.completed h3 {
    color: white;
}

.outfit-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.outfit-item {
    text-align: center;
}

.outfit-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.outfit-img:hover {
    transform: scale(1.05);
}

.tips-list {
    list-style: none;
    padding: 0;
    text-align: center;
}

.tips-list li {
    background: rgba(255, 255, 255, 0.8);
    margin: 0.5rem 0;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.motivation {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-top: 2rem;
}

#contact ul {
    list-style: none;
    text-align: center;
}

#contact ul li {
    margin: 1rem 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-icon {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    position: relative;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.twitch:hover { background: #9146ff; }
.vk:hover { background: #4c75a3; }
.twitter:hover { background: #1da1f2; }

#contact-form {
    max-width: 600px;
    margin: 0 auto;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
}

#contact-form textarea {
    height: 150px;
    resize: vertical;
}

footer {
    text-align: center;
    padding: 2rem;
    background: #333;
    color: white;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Dark mode */
body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

body.dark-mode header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

body.dark-mode #about,
body.dark-mode #gallery,
body.dark-mode #contact {
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    color: var(--dark-text);
    border: 1px solid rgba(255,255,255,0.1);
}

body.dark-mode .btn {
    background: var(--dark-accent);
    color: var(--dark-text);
}

body.dark-mode .btn:hover {
    background: var(--dark-primary);
}

body.dark-mode #contact-form input,
body.dark-mode #contact-form textarea {
    background: rgba(44, 44, 76, 0.8);
    border-color: rgba(255,255,255,0.2);
    color: var(--dark-text);
}

body.dark-mode #contact-form input::placeholder,
body.dark-mode #contact-form textarea::placeholder {
    color: #bbb;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    animation: zoom 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        display: none;
    }

    nav ul.show {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }
    .modal-content {
        width: 100%;
    }
    .social-icons {
        flex-direction: column;
        gap: 0.5rem;
    }
    #gallery .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    section {
        padding: 2rem 1rem;
    }
}