
:root {
    --primary: #0071DC;
    --primary-light: #4a9fea;
    --primary-dark: #0055a4;
    --accent: #FBBD18;
    --text-light: #f3ecea;
    --text-dark: #26282b;
    --bg-light: #F2F8FD;
    --card-bg: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --error: #ff4d4d;
    --success: #4caf50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'PoppinSBold';
    src: local('Poppins SemiBold'), local('PoppinSBold'), 
            url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&display=swap');
}

@font-face {
    font-family: 'PoppinEBold';
    src: local('Poppins ExtraBold'), local('PoppinEBold'), 
            url('https://fonts.googleapis.com/css2?family=Poppins:wght@800&display=swap');
}

@font-face {
    font-family: 'PoppinNormal';
    src: local('Poppins Regular'), local('PoppinNormal'), 
            url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
}

html {
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

h2 {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
}

.logo i {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}


.nav-links a:hover {
    color: var(--accent);
}

.user-actions {
    display: flex;
    gap: 1rem;
}

/* Auth Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.auth-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
}

.auth-tab {
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    opacity: 0.7;
    transition: all 0.3s;
}

.auth-tab.active {
    opacity: 1;
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-group input:focus {
    border-color: var(--primary);
    outline: none;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-message {
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 5px;
    display: none;
}

.form-message.error {
    background-color: #ffebee;
    color: var(--error);
    display: block;
}

.form-message.success {
    background-color: #e8f5e9;
    color: var(--success);
    display: block;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-content {
    color: var(--text-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--text-dark);
}

.btn-accent:hover {
    background-color: #e6a800;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--primary);
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--card-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-img {
    height: 200px;
    overflow: hidden;
}

.feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.feature-card:hover .feature-img img {
    transform: scale(1.1);
}

.feature-content {
    padding: 1.5rem;
}

.feature-content h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Water Selection Section */
.water-selection {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.water-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.bottle-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.bottle-image img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s;
}

.bottle-image img:hover {
    transform: scale(1.05) rotate(5deg);
}

.water-options {
    flex: 1;
    min-width: 300px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.water-option {
    background: var(--card-bg);
    border: 2px solid var(--primary-light);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.water-option:hover, .water-option.selected {
    background: var(--primary);
    color: var(--text-light);
    transform: translateY(-5px);
}

.custom-option {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.custom-input {
    display: flex;
    gap: 0.5rem;
}

.custom-input input {
    flex: 1;
    padding: 0.5rem;
    border: 2px solid var(--primary-light);
    border-radius: 5px;
}

/* Reminder Section */
.reminder-section {
    padding: 4rem 0;
    background-color: var(--primary-light);
    text-align: center;
}

.reminder-content {
    max-width: 600px;
    margin: 0 auto;
}

.reminder-section h2 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.reminder-section p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.reminder-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.reminder-form input {
    flex: 1;
    min-width: 250px;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 50px;
    font-family: inherit;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--accent);
}

.creator {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.creator-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent);
    background-color: #FBBD18;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-weight: bold;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Task Manager */
.task-manager {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
}

.task-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.task-btn:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

.task-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 300px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 1rem;
    display: none;
}

.task-panel h3 {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-task {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.task-list {
    list-style: none;
    margin-bottom: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.task-item:last-child {
    border-bottom: none;
}

.remove-task {
    background: none;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
}

.task-form {
    display: flex;
    gap: 0.5rem;
}

.task-input {
    flex: 1;
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 5px;
}

/* Responsive Design */
 (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .water-container {
        flex-direction: column;
    }
    
    .footer-content {
        fl@mediaex-direction: column;
    }
    
    .task-panel {
        width: 250px;
    }
    
    .reminder-form {
        flex-direction: column;
        align-items: center;
    }
    
    .reminder-form input {
        width: 100%;
    }
    
    .user-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    .nav-toggle {
        display: block !important;
    }
    
    /* Make sure nav links are hidden by default on mobile */
    .nav-links:not(.active) {
        display: none !important;
    }
    
    /* When active, show the nav links */
    .nav-links.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-dark);
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }
}


/* User info */
.user-info {
    display: none;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-dark);
}

/* Logout button */
#logout-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
}

#logout-btn:hover {
    color: var(--accent);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile-first approach for navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
        z-index: 101;
    }

    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        position: relative;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-dark);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        display: none;
        z-index: 100;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 0.8rem 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .user-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Adjust header padding for mobile */
    header {
        padding: 0.8rem 0;
    }
}

/* For larger screens */
@media (min-width: 769px) {
    .nav-links {
        display: flex !important;
    }
}