/* ==========================================
   ACUARIA LABS - Styles
   ========================================== */

/* Variables */
:root {
    --color-primary: #1a4a6e;
    --color-primary-light: #2d7ab3;
    --color-primary-dark: #0f3249;
    --color-accent: #4a9fd4;
    --color-white: #ffffff;
    --color-gray-50: #f8fafc;
    --color-gray-100: #f1f5f9;
    --color-gray-200: #e2e8f0;
    --color-gray-300: #cbd5e1;
    --color-gray-400: #94a3b8;
    --color-gray-500: #64748b;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1e293b;
    --color-gray-900: #0f172a;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-700);
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-primary);
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-light);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Floating decorative elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    opacity: 0.03;
    animation: float 20s infinite ease-in-out;
}

.bubble-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.bubble-2 {
    width: 300px;
    height: 300px;
    top: 60%;
    right: -5%;
    animation-delay: -5s;
}

.bubble-3 {
    width: 200px;
    height: 200px;
    top: 30%;
    right: 20%;
    animation-delay: -10s;
}

.bubble-4 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 10%;
    animation-delay: -15s;
}

.bubble-5 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    right: 30%;
    animation-delay: -8s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, -30px) scale(1.05);
    }
    50% {
        transform: translate(-10px, 20px) scale(0.95);
    }
    75% {
        transform: translate(15px, 10px) scale(1.02);
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-gray-100);
    transition: box-shadow var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-gray-600);
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--color-primary);
}

.btn-nav {
    padding: 0.5rem 1.25rem;
    background: var(--color-primary);
    color: var(--color-white) !important;
    border-radius: 6px;
    font-weight: 500;
}

.btn-nav:hover {
    background: var(--color-primary-dark);
    color: var(--color-white) !important;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition-fast);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-gray-100);
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--color-primary-light);
    position: relative;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dna-helix {
    width: 200px;
    height: 400px;
}

.helix-svg {
    width: 100%;
    height: 100%;
}

.helix-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawHelix 3s ease forwards;
}

.helix-2 {
    animation-delay: 0.5s;
}

.helix-node {
    opacity: 0;
    animation: fadeInNode 0.5s ease forwards;
}

.helix-node:nth-child(5) { animation-delay: 0.8s; }
.helix-node:nth-child(6) { animation-delay: 1s; }
.helix-node:nth-child(7) { animation-delay: 1.2s; }
.helix-node:nth-child(8) { animation-delay: 1.4s; }
.helix-node:nth-child(9) { animation-delay: 1.6s; }
.helix-node:nth-child(10) { animation-delay: 1.8s; }
.helix-node:nth-child(11) { animation-delay: 2s; }
.helix-node:nth-child(12) { animation-delay: 2.2s; }

.helix-connection {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawConnection 0.5s ease forwards;
}

.helix-connection:nth-child(3) { animation-delay: 1s; }
.helix-connection:nth-child(4) { animation-delay: 1.5s; }
.helix-connection:nth-child(5) { animation-delay: 2s; }
.helix-connection:nth-child(6) { animation-delay: 2.5s; }

@keyframes drawHelix {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeInNode {
    to {
        opacity: 1;
    }
}

@keyframes drawConnection {
    to {
        stroke-dashoffset: 0;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--color-primary);
    border-radius: 20px;
    position: relative;
    opacity: 0.6;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

/* Section Commons */
section {
    position: relative;
    z-index: 1;
}

.section-tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--color-gray-100);
    color: var(--color-primary);
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 50px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

/* About Section */
.about {
    padding: 8rem 0;
    background: var(--color-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.molecule-grid {
    position: relative;
    width: 300px;
    height: 300px;
}

.molecule {
    position: absolute;
    border-radius: 50%;
    background: var(--color-primary);
}

.m1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    animation: pulse 3s infinite ease-in-out;
}

.m2 {
    width: 60px;
    height: 60px;
    bottom: 25%;
    left: 15%;
    background: var(--color-primary-light);
    animation: pulse 3s infinite ease-in-out 0.5s;
}

.m3 {
    width: 50px;
    height: 50px;
    bottom: 25%;
    right: 15%;
    background: var(--color-accent);
    animation: pulse 3s infinite ease-in-out 1s;
}

.connection {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    transform-origin: left center;
    border-radius: 2px;
}

.c1 {
    width: 100px;
    top: calc(20% + 70px);
    left: calc(50% - 70px);
    transform: rotate(45deg);
}

.c2 {
    width: 100px;
    top: calc(20% + 70px);
    left: calc(50% - 30px);
    transform: rotate(-45deg);
}

.c3 {
    width: 120px;
    bottom: calc(25% + 15px);
    left: calc(15% + 50px);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--color-gray-600);
    font-size: 1.0625rem;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--color-gray-200);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--color-gray-500);
    margin-top: 0.5rem;
}

/* Pillars Section */
.pillars {
    padding: 8rem 0;
    background: var(--color-gray-50);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pillar-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--color-gray-200);
    transition: all var(--transition-normal);
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.pillar-card.featured {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.pillar-card.featured h3,
.pillar-card.featured p {
    color: var(--color-white);
}

.pillar-card.featured .pillar-icon {
    color: var(--color-white);
}

.pillar-card.featured .pillar-tags li {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

.pillar-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.pillar-card h3 {
    margin-bottom: 1rem;
}

.pillar-card p {
    color: var(--color-gray-600);
    margin-bottom: 1.5rem;
}

.pillar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
}

.pillar-tags li {
    padding: 0.375rem 0.75rem;
    background: var(--color-gray-100);
    color: var(--color-gray-600);
    font-size: 0.8125rem;
    border-radius: 50px;
}

/* Projects Section */
.projects {
    padding: 8rem 0;
    background: var(--color-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    padding: 2rem;
    background: var(--color-gray-50);
    border-radius: 12px;
    border: 1px solid var(--color-gray-200);
    transition: all var(--transition-normal);
}

.project-card:hover {
    border-color: var(--color-primary-light);
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--color-primary-light);
    border-radius: 50%;
    animation: blink 2s infinite;
}

.project-status.idea .status-dot {
    background: var(--color-accent);
    animation: none;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.project-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.project-card p {
    color: var(--color-gray-600);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    padding: 0.25rem 0.625rem;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    color: var(--color-gray-600);
    font-size: 0.75rem;
    border-radius: 4px;
}

.projects-cta {
    text-align: center;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--color-gray-200);
}

.projects-cta p {
    font-size: 1.25rem;
    color: var(--color-gray-600);
    margin-bottom: 1.5rem;
}

/* Philosophy Section */
.philosophy {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.philosophy-quote {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.philosophy-quote p {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 300;
    color: var(--color-white);
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.philosophy-quote cite {
    font-style: normal;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background: var(--color-gray-50);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 1.5rem;
}

.contact-info > p {
    color: var(--color-gray-600);
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--color-white);
    border-radius: 8px;
    border: 1px solid var(--color-gray-200);
    color: var(--color-gray-700);
    transition: all var(--transition-fast);
}

.contact-method:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.method-icon {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
}

.contact-form {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--color-gray-200);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-700);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-gray-800);
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(26, 74, 110, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    background: var(--color-gray-900);
    color: var(--color-gray-400);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--color-gray-800);
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 0.9375rem;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 4rem;
    justify-content: flex-end;
}

.footer-column h4 {
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--color-gray-400);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--color-white);
}

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin: 0 auto 2rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-visual {
        order: 2;
    }

    .pillars-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--color-white);
        padding: 1.5rem;
        border-bottom: 1px solid var(--color-gray-200);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: flex;
    }

    .about-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
