/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light mode - Mauve & Dusty Rose Theme */
    --primary-color: #B0829D;
    --secondary-color: #C7A5B9;
    --accent-color: #D9C2D1;
    --background-color: #FDF8F5;
    --surface-color: #FFFFFF;
    --text-primary: #4A274F;
    --text-secondary: #73516C;
    --text-muted: #8F7686;
    --border-color: #EAE0E5;
    --shadow-color: rgba(115, 81, 108, 0.1);
    --gradient-primary: linear-gradient(135deg, #B0829D, #C7A5B9);
    --gradient-secondary: linear-gradient(135deg, #D9C2D1, #EAE0E5);
}

.dark-mode {
    /* Dark mode - Deep Blue & Plum Theme */
    --primary-color: #A491D3;
    --secondary-color: #8E7AB5;
    --accent-color: #7A63A2;
    --background-color: #1A1226;
    --surface-color: #251B3A;
    --text-primary: #F0E8FF;
    --text-secondary: #D9C8F8;
    --text-muted: #BFAAE3;
    --border-color: #40325D;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, #A491D3, #8E7AB5);
    --gradient-secondary: linear-gradient(135deg, #7A63A2, #5F4B8B);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background-color);
    transition: all 0.3s ease;
    overflow-x: hidden;
}

/* Stars background */
.stars, .twinkling {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -2;
}

/* Theme toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

#theme-toggle-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.3s ease;
}

#theme-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-color);
}

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

/* Header */
.header {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.main-title {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.heart {
    display: inline-block;
    animation: pulse 2s infinite;
}

.subtitle, .arabic-blessing {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.arabic-blessing {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-top: 20px;
}

/* Main content */
.main-content {
    padding: 60px 0;
}

/* Hero section */
.hero-section {
    background: var(--surface-color);
    padding: 80px 0;
    text-align: center;
    position: relative;
    border-radius: 20px;
    margin: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-heart, .floating-star, .floating-sparkle, .floating-tooth, .floating-matcha, .floating-sushi, .floating-cake {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.6;
}

.floating-heart:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-star:nth-child(2) { top: 20%; right: 15%; animation-delay: 1s; }
.floating-sparkle:nth-child(3) { top: 30%; left: 20%; animation-delay: 2s; }
.floating-tooth:nth-child(4) { bottom: 30%; right: 10%; animation-delay: 3s; }
.floating-star:nth-child(5) { bottom: 20%; left: 15%; animation-delay: 4s; }
.floating-heart:nth-child(6) { top: 50%; right: 25%; animation-delay: 5s; }
.floating-tooth:nth-child(7) { bottom: 40%; left: 30%; animation-delay: 1.5s; }
.floating-matcha:nth-child(8) { top: 15%; left: 60%; animation-delay: 2.5s; }
.floating-sushi:nth-child(9) { bottom: 15%; right: 35%; animation-delay: 3.5s; }
.floating-cake:nth-child(10) { top: 70%; left: 45%; animation-delay: 4.5s; }

.hero-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 30px;
    line-height: 1.3;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

/* Encouragement Modal */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-container.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: var(--surface-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px var(--shadow-color);
    border: 2px solid var(--border-color);
    max-width: 600px;
    width: 90%;
    position: relative;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.modal-container.hidden .modal-content {
    transform: scale(0.9);
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal-btn:hover {
    color: var(--primary-color);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.card-content {
    text-align: center;
    margin-bottom: 30px;
}

.card-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.new-message-btn {
    background: var(--gradient-secondary);
    color: var(--text-primary);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.new-message-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-color);
}

.dark-mode .new-message-btn {
    color: white;
}

/* Section styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Duas section */
.duas-section {
    padding: 80px 0;
    background: var(--background-color);
}

.duas-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.dua-card {
    background: var(--surface-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-color);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.dua-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.dua-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.dua-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.dua-text {
    text-align: center;
}

.arabic {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.8;
}

.translation {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
}

/* DDS section */
.dds-section {
    padding: 80px 0;
    background: var(--surface-color);
}

.dds-content {
    max-width: 800px;
    margin: 0 auto;
}

.dds-quotes {
    text-align: center;
    margin-bottom: 50px;
}

.dds-quote {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.dds-quote.active {
    opacity: 1;
    transform: translateY(0);
}

/* Ice cream section */
.ice-cream-section {
    padding: 80px 0;
    background: var(--background-color);
}

.ice-cream-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: var(--surface-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    border: 2px solid var(--border-color);
}

.ice-cream-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.ice-cream-card h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.ice-cream-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Interactive section */
.interactive-section {
    padding: 80px 0;
    background: var(--surface-color);
}

.interactive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.interactive-card {
    background: var(--background-color);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.interactive-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.interactive-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.interactive-card p {
    color: var(--text-muted);
    margin-top: 15px;
}

/* Hug animation */
.hug-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.hug-animation {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hug-animation:hover {
    transform: scale(1.1);
}

.progress-bar-container {
    width: 90%;
    height: 10px;
    background-color: var(--border-color);
    border-radius: 5px;
    margin: 15px auto 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    border-radius: 5px;
    animation: fill-progress 2.5s ease-in-out forwards;
}

@keyframes fill-progress {
    from { width: 0%; }
    to { width: 100%; }
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 10px;
    height: 2.5em; /* Reserve space */
}

.arm {
    position: absolute;
    width: 20px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 10px;
    top: 30px;
    transition: all 0.3s ease;
}

.arm.left {
    left: 20px;
    transform: rotate(-45deg);
}

.arm.right {
    right: 20px;
    transform: rotate(45deg);
}

.hug-animation:hover .arm.left { transform: rotate(-90deg); }
.hug-animation:hover .arm.right { transform: rotate(90deg); }

.hug-heart {
    position: absolute;
    font-size: 2rem;
    animation: pulse 2s infinite;
}

/* Snack Dispenser */
.snack-dispenser {
    font-size: 4rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin: 10px 0;
    color: var(--primary-color);
}

.snack-dispenser:hover {
    transform: scale(1.1) rotate(15deg);
}

.snack-display {
    margin-top: 10px;
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-style: italic;
    min-height: 4em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Celebration button */
.celebration-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 20px 30px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1.1rem;
}

.celebration-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px var(--shadow-color);
}

/* Affirmations section */
.affirmations-section {
    padding: 80px 0;
    background: var(--background-color);
}

.affirmations-carousel {
    max-width: 800px;
    margin: 0 auto 40px;
    position: relative;
    min-height: 200px;
}

.affirmation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
    padding: 20px;
    background: var(--surface-color);
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-color);
}

.affirmation.active {
    opacity: 1;
    transform: translateX(0);
}

.affirmation i {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

.affirmation p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.carousel-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    padding: 40px 0;
}

.study-reminder i {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.study-reminder h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.study-reminder p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Notifications */
.hug-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    box-shadow: 0 5px 20px var(--shadow-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.hug-notification.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
    pointer-events: none;
}

.hug-message {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

/* Confetti & Hearts */
#confetti-container, #hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    animation: confetti-fall 3s linear forwards;
}

.heart-rain {
    position: absolute;
    top: -50px;
    user-select: none;
    animation: heart-fall 4s linear forwards;
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes heart-fall {
    from {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    to {
        transform: translateY(105vh) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .main-title { font-size: 3rem; }
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 2rem; }
    .duas-content { grid-template-columns: 1fr; }
    .interactive-grid { grid-template-columns: 1fr; }
    .container { padding: 0 15px; }
    .hero-section { margin: 10px; padding: 60px 20px; }
}

@media (max-width: 480px) {
    .main-title { font-size: 2.5rem; }
    .hero-title { font-size: 1.8rem; }
    .cta-button { padding: 12px 25px; font-size: 1rem; }
    .modal-content { padding: 30px 20px; }
    .ice-cream-card { padding: 30px 20px; }
}

/* Countdown Timer */
.countdown-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 20px auto;
}

.countdown-svg {
    transform: rotate(-90deg); /* Start from the top */
}

.countdown-bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 8;
}

.countdown-progress {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}

.countdown-timer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
}

#startCountdownBtn {
    margin-top: 5px;
}

.countdown-message {
    margin-top: 15px;
    font-style: italic;
    min-height: 1.2em;
    color: var(--text-secondary);
} 
