:root {
    /* Light Water Theme - ALKAVIDA */
    --bg-light: #f8fafc;
    /* Very light blue/gray background */
    --text-primary: #1e293b;
    /* Dark slate text */
    --text-secondary: #64748b;
    /* Medium slate text */

    /* ALKAVIDA Brand Colors */
    --accent-purple: #4a148c;
    /* Deep purple from logo */
    --accent-cyan: #00bcd4;
    /* Bright cyan from wave in logo */
    --accent-blue: #1565c0;
    /* Medium blue from 'A' in logo */

    --card-bg: rgba(255, 255, 255, 0.8);
    --card-border: rgba(0, 188, 212, 0.2);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Editable element styles */
[contenteditable="true"] {
    outline: 2px dashed var(--accent-cyan);
    outline-offset: 4px;
    background: rgba(0, 188, 212, 0.05);
    border-radius: 4px;
    cursor: text;
    transition: all 0.2s;
}

[contenteditable="true"]:focus {
    outline: 2px solid var(--accent-purple);
    background: rgba(74, 20, 140, 0.05);
}

/* Edit Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent-purple);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(74, 20, 140, 0.3);
    transform: translateY(150%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.toast.show {
    transform: translateY(0);
}

/* Watery Background effects tailored for light theme */
.water-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
}

.blob {
    position: absolute;
    filter: blur(120px);
    border-radius: 50%;
    opacity: 0.15;
    /* Subtler opacity for light theme */
    animation: float 20s ease-in-out infinite;
}

.blob1 {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
}

.blob2 {
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(5%) scale(1.05);
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    /* Adjust based on actual logo proportion */
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-cyan);
}

.nav-btn {
    background: transparent;
    color: var(--accent-purple);
    border: 2px solid var(--accent-purple);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
}

.nav-btn:hover,
.nav-btn.active {
    background: var(--accent-purple);
    color: #fff;
    box-shadow: 0 4px 15px rgba(74, 20, 140, 0.2);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.badge {
    padding: 0.5rem 1.25rem;
    background: rgba(0, 188, 212, 0.1);
    border: 1px solid rgba(0, 188, 212, 0.2);
    border-radius: 100px;
    color: var(--accent-blue);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

h1 span {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.description {
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Features Bar */
.features-bar {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 2rem 3rem;
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.feature-val {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.feature-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.feature-divider {
    width: 1px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
}

/* Services Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

#searchInput {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 100px;
    color: var(--text-primary);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

#searchInput:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(74, 20, 140, 0.1);
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.stats-bar {
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Soft hover gradient effect for cards */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 188, 212, 0.08), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-md);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    z-index: 2;
    position: relative;
}

.icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 188, 212, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
}

.category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-purple);
    background: rgba(74, 20, 140, 0.08);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}

.card-img-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    background: #f1f5f9;
    position: relative;
    z-index: 2;
}

.card-img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 12px;
}

.card:hover .card-img-placeholder {
    transform: scale(1.05);
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    z-index: 2;
    position: relative;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    z-index: 2;
    position: relative;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 2;
    position: relative;
}

.complexity {
    display: flex;
    gap: 0.25rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
}

.dot.active {
    background: var(--accent-cyan);
}

/* Contact Section */
.contact-section {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Science Section (Equilibrio Natural) */
.science-section {
    margin-top: 6rem;
    padding-top: 2rem;
}

.science-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    padding: 4rem;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.science-layout::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(74, 20, 140, 0.05) 0%, transparent 60%);
    z-index: 0;
}

.science-content-box {
    flex: 1;
    z-index: 1;
}

.special-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.subtitle-gradient {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.science-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.science-desc strong {
    color: var(--text-primary);
}

.science-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.science-benefits li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    background: rgba(0, 188, 212, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 188, 212, 0.1);
}

.science-media {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 400px;
    background: linear-gradient(45deg, #f1f5f9, #ffffff);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: auto;
}

.science-media.editable-mode {
    cursor: pointer;
    border: 2px dashed var(--accent-cyan);
}

.editable-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.5s ease;
}

.science-media:hover .editable-image {
    transform: scale(1.02);
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.media-overlay span {
    background: white;
    color: var(--accent-purple);
    padding: 0.8rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
}

.science-media.editable-mode:hover .media-overlay {
    opacity: 1;
}

@media (max-width: 992px) {
    .science-layout {
        flex-direction: column;
        padding: 3rem 2rem;
    }

    .science-media {
        width: 100%;
        min-height: 300px;
    }
}

.glass-card {
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
}

.contact-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem;
    margin-top: 2rem;
}

.contact-info h3 {
    color: var(--accent-purple);
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.contact-info strong {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }

    .features-bar {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem;
    }

    .feature-divider {
        width: 100%;
        height: 1px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-container {
        max-width: 100%;
    }

    .contact-card {
        grid-template-columns: 1fr;
    }
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 24px;
    width: 90%;
    max-width: 450px;
    position: relative;
    transform: translateY(0) scale(1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--card-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-overlay.hidden .modal-content {
    transform: translateY(20px) scale(0.95);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.modal-header h2 {
    font-size: 1.8rem;
    margin: 0;
    font-family: 'Outfit', sans-serif;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}

.close-btn:hover {
    color: var(--accent-purple);
}

.modal-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.input-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.input-group input {
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.5);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

/* Updated aesthetics for .subtitle-desc */
.subtitle-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Card image placeholder */
.card-img-container {
    width: 100%;
    height: 180px;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(74, 20, 140, 0.05), rgba(0, 188, 212, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border: 1px dashed rgba(0, 188, 212, 0.3);
}

.card-img-placeholder {
    width: 60%;
    height: 60%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.card:hover .card-img-placeholder {
    transform: scale(1.1) translateY(-5px);
}