/* Base Styles & Variables */
:root {
    --primary: #62C1E8;
    --primary-dark: #4AA0C7;
    --secondary: #6ED1B2;
    --secondary-dark: #5CB998;
    --accent: #FFD95C;
    --dark: #333333;
    --light: #FFFFFF;
    --light-gray: #f9f9f9;
    --mid-gray: #dddddd;
    --text: #4A4A4A;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-light: linear-gradient(135deg, rgba(98, 193, 232, 0.2) 0%, rgba(110, 209, 178, 0.2) 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --font-special: 'Orbitron', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--dark);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

p {
    margin-bottom: 20px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button, .btn-primary, .btn-outline {
    cursor: pointer;
    border: none;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--light);
    padding: 12px 30px;
    border-radius: var(--radius-md);
    display: inline-block;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.btn-primary:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    color: var(--light);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    padding: 10px 25px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    display: inline-block;
    text-align: center;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--light);
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    box-shadow: var(--shadow-md);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--dark);
    font-family: var(--font-heading);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--dark);
    margin: 3px 0;
    border-radius: 3px;
    transition: var(--transition);
}

/* Intro/Hero Section */
.hero {
    background: var(--gradient-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: 0;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-bottom: 20px;
    color: var(--dark);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.wave-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.water-drops-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.5;
    background-image: radial-gradient(circle, var(--primary) 1px, transparent 1px),
                      radial-gradient(circle, var(--primary) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: dropAnimation 20s linear infinite;
}

@keyframes dropAnimation {
    0% {
        background-position: 0 0, 10px 10px;
    }
    100% {
        background-position: 20px 20px, 30px 30px;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(98, 193, 232, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(98, 193, 232, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(98, 193, 232, 0);
    }
}

/* Benefits Section */
.benefits {
    background-color: var(--light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-card {
    background-color: var(--light);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon {
    width: 40px;
    height: 40px;
    color: var(--light);
}

/* Electrolytes Section */
.electrolytes {
    background-color: var(--light-gray);
    position: relative;
}

.electrolyte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.electrolyte-card {
    background-color: var(--light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    transition: var(--transition);
}

.electrolyte-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.electrolyte-icon {
    width: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--light);
}

.element {
    font-family: var(--font-special);
    font-size: 1.8rem;
    font-weight: 700;
}

.electrolyte-content {
    padding: 20px;
    flex-grow: 1;
}

.electrolyte-info p {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.effect-graph {
    margin-top: 15px;
}

.graph-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.graph-bar {
    height: 25px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    color: var(--light);
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Products Section */
.products {
    background-color: var(--light);
    position: relative;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.product-card {
    background-color: var(--light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-details {
    padding: 25px;
}

.product-details h3 {
    margin-bottom: 10px;
}

.product-details p {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.product-composition {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.product-composition span {
    background-color: var(--light-gray);
    color: var(--primary-dark);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

.product-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

/* Hydration Guide Section */
.hydration-guide {
    background-color: var(--light-gray);
}

.guide-content {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 40px;
    align-items: center;
}

.guide-intro {
    text-align: left;
    margin-bottom: 30px;
}

.swiper-container {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.guide-card {
    background: var(--light);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    height: 100%;
}

.guide-card h3 {
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.guide-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.checklist {
    margin-left: 5px;
}

.checklist li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--secondary);
    font-weight: bold;
}

.swiper-button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 20px;
}

.swiper-button-prev,
.swiper-button-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary);
    transition: var(--transition);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: var(--primary);
    color: var(--light);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 1rem;
}

.bottle-animation {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

.water-drop {
    animation: waterDrop 3s infinite;
    opacity: 0;
}

.water-drop-1 {
    animation-delay: 0s;
}

.water-drop-2 {
    animation-delay: 1s;
}

.water-drop-3 {
    animation-delay: 2s;
}

@keyframes waterDrop {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(200px);
        opacity: 0.3;
    }
}

/* Comparison Section */
.comparison {
    background-color: var(--light);
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-bottom: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--mid-gray);
}

.comparison-table th {
    background-color: var(--primary);
    color: var(--light);
    font-weight: 600;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) {
    background-color: var(--light-gray);
}

.highlight {
    color: var(--primary-dark);
    font-weight: 600;
    position: relative;
}

.highlight::after {
    content: '✓';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: var(--secondary);
    font-weight: bold;
}

.comparison-chart {
    margin-top: 50px;
}

.chart-container {
    background-color: var(--light);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.chart-header {
    text-align: center;
    margin-bottom: 30px;
}

.chart-header h3 {
    margin-bottom: 5px;
}

.chart-header p {
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chart-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.color-box {
    width: 15px;
    height: 15px;
    border-radius: 3px;
}

.na-color {
    background-color: #3498db;
}

.k-color {
    background-color: #2ecc71;
}

.mg-color {
    background-color: #9b59b6;
}

.ca-color {
    background-color: #e74c3c;
}

.chart-bars {
    display: flex;
    justify-content: space-around;
    height: 300px;
    align-items: flex-end;
}

.chart-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%;
}

.bar-label {
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

.stacked-bar {
    width: 40px;
    height: 250px;
    display: flex;
    flex-direction: column-reverse;
    position: relative;
}

.bar-segment {
    width: 100%;
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: var(--transition);
    cursor: pointer;
}

.bar-segment:hover {
    opacity: 0.8;
}

.bar-segment[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--dark);
    color: var(--light);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.bar-segment:hover[data-tooltip]::after {
    opacity: 1;
    visibility: visible;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--light-gray);
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: var(--transition);
    display: flex;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-avatar {
    width: 80px;
    flex-shrink: 0;
    overflow: hidden;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    padding: 20px;
    flex-grow: 1;
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.testimonial-header h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.rating {
    color: var(--accent);
    font-size: 1.1rem;
}

.testimonial-text {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.testimonial-extra {
    font-size: 0.9rem;
    color: var(--text);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    margin-bottom: 0;
}

.testimonial-card:hover .testimonial-extra {
    max-height: 200px;
    opacity: 1;
    margin-bottom: 10px;
}

/* Newsletter Section */
.newsletter {
    background: var(--gradient-light);
    padding: 100px 0;
}

.newsletter-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--light);
    border-radius: var(--radius-xl);
    padding: 50px 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.subscription-form {
    max-width: 500px;
    margin: 30px auto;
}

.form-group {
    display: flex;
    margin-bottom: 15px;
}

.form-group input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid var(--mid-gray);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group button {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    font-size: 0.85rem;
}

.form-consent input {
    margin-top: 5px;
}

.guide-preview {
    margin-top: 30px;
}

.guide-preview img {
    max-width: 200px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* Contact Section */
.contact {
    background-color: var(--light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form-container {
    background-color: var(--light);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.contact-form .form-group {
    margin-bottom: 20px;
    display: block;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--mid-gray);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form button {
    width: 100%;
}

.form-status {
    margin-top: 15px;
    font-weight: 500;
    height: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-container {
    background-color: var(--light);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.info-container h3 {
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.info-container h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
}

.info-container p {
    margin-bottom: 10px;
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 15px;
}

.tagline {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.2rem;
}

.footer-navigation h3,
.footer-newsletter h3 {
    color: var(--light);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-navigation ul li {
    margin-bottom: 10px;
}

.footer-navigation ul li a {
    color: #aaa;
    transition: var(--transition);
}

.footer-navigation ul li a:hover {
    color: var(--primary);
}

.footer-newsletter p {
    color: #aaa;
    margin-bottom: 20px;
}

.footer-subscribe-form {
    display: flex;
}

.footer-subscribe-form input {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.footer-subscribe-form button {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 10px 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

/* Notification */
.notification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.notification.show {
    opacity: 1;
    visibility: visible;
}

.notification-content {
    background-color: var(--light);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    position: relative;
}

.close-notification {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

#notification-message {
    margin-bottom: 0;
    font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .guide-content {
        grid-template-columns: 1fr;
    }
    
    .guide-animation {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--light);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .testimonial-card {
        flex-direction: column;
    }
    
    .testimonial-avatar {
        width: 100%;
        height: 120px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .form-group input,
    .form-group button,
    .footer-subscribe-form input,
    .footer-subscribe-form button {
        width: 100%;
        border-radius: var(--radius-md);
    }
    
    .form-group button,
    .footer-subscribe-form button {
        margin-top: 10px;
    }
    
    .newsletter-content {
        padding: 30px 20px;
    }
}