/*
Theme Name: Algrid
Theme URI: https://algrid.com
Author: Algrid Team
Author URI: https://algrid.com
Description: A modern, ocean-themed WordPress template for Algrid - AI-Driven Ocean Intelligence & Biomass Innovation
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: algrid
Tags: custom-background, custom-colors, custom-menu, featured-images, responsive-design, one-column

This theme is designed for showcasing ocean technology and biomass innovation with a modern, bioluminescent aesthetic.
*/

/* Modern Bioluminescent Ocean Palette */
:root {
    --deep-ocean: #0A1628;          /* Deep ocean midnight */
    --electric-cyan: #00D9FF;       /* Bioluminescent glow */
    --neon-aqua: #00FFC8;           /* Algae bloom bright */
    --tech-blue: #0066FF;           /* Tech interface blue */
    --ocean-navy: #1A2F4F;          /* Ocean depth */
    --soft-teal: #2DD4BF;           /* Modern teal accent */
    
    /* Extended palette */
    --midnight-purple: #1E1B4B;
    --steel-blue: #334155;
    --ice-white: #F8FAFC;
    --glass-white: rgba(255, 255, 255, 0.08);
    --glow-gradient: linear-gradient(135deg, var(--electric-cyan), var(--neon-aqua));
    
    /* Neutral shades */
    --text-primary: #E2E8F0;
    --text-secondary: #94A3B8;
    --border-color: rgba(0, 217, 255, 0.15);
    
    /* Spacing system */
    --space-xs: clamp(0.5rem, 1vw, 0.75rem);
    --space-sm: clamp(1rem, 2vw, 1.5rem);
    --space-md: clamp(2rem, 4vw, 3rem);
    --space-lg: clamp(3rem, 6vw, 5rem);
    --space-xl: clamp(4rem, 8vw, 7rem);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--deep-ocean);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

/* Main Content Area - Grows to Push Footer Down */
body > main,
body > .site-content,
body > #content,
body > #primary {
    flex: 1 0 auto;
}

/* Footer Positioning - Stays at Bottom */
.footer {
    flex-shrink: 0;
    margin-top: auto;
    width: 100%;
}

/* Animated Grid Background with Organic Wave Pattern */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        linear-gradient(90deg, rgba(0, 217, 255, 0.03) 1px, transparent 1px),
        linear-gradient(0deg, rgba(0, 217, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-wave 60s ease-in-out infinite;
}

@keyframes grid-wave {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    25% { 
        transform: translate(15px, 10px) scale(1.02);
        opacity: 0.25;
    }
    50% { 
        transform: translate(30px, -5px) scale(1);
        opacity: 0.3;
    }
    75% { 
        transform: translate(15px, 5px) scale(0.98);
        opacity: 0.35;
    }
}

/* Gradient Overlay with Organic Growth Pattern */
.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(0, 255, 200, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(0, 217, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 255, 200, 0.04) 0%, transparent 60%);
    pointer-events: none;
    animation: gentle-pulse 40s ease-in-out infinite;
}

@keyframes gentle-pulse {
    0%, 100% { 
        opacity: 0.6;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Floating Algae Backdrop */
.algae-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.algae-strand {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(180deg, transparent, rgba(0, 255, 200, 0.08), transparent);
    border-radius: 50%;
    opacity: 0;
    animation: grow-algae 45s ease-in-out infinite;
    filter: blur(1px);
}

@keyframes grow-algae {
    0% {
        opacity: 0;
        transform: translateY(110vh) scaleY(0.3) rotate(0deg);
    }
    5% {
        opacity: 0.3;
    }
    50% {
        transform: translateY(50vh) scaleY(1) rotate(90deg);
        opacity: 0.4;
    }
    95% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: translateY(-10vh) scaleY(0.5) rotate(180deg);
    }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ice-white);
}

.gradient-text {
    background: var(--glow-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glowing Text Effect */
.glow-text {
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.5),
                 0 0 40px rgba(0, 217, 255, 0.3);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 22, 40, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-icon {
    width: 55px;
    height: 55px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo Image */
.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 255, 200, 0.3));
    transition: transform 0.3s ease;
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--ice-white);
    font-family: 'Lexend', sans-serif;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
    min-height: 44px; /* Touch-friendly */
    display: flex;
    align-items: center;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--glow-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--electric-cyan);
}

.nav-cta {
    background: var(--glow-gradient);
    color: var(--deep-ocean);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.nav-cta:hover,
.nav-cta:focus {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
}

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background: var(--electric-cyan);
    border-radius: 2px;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--space-xl) + 80px) 0 var(--space-xl);
    position: relative;
    overflow: hidden;
}

/* Floating Organic Elements - Algae Cells & Ocean Bubbles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 20px;
    height: 20px;
    opacity: 0;
    animation: float-particle 35s infinite linear;
}

/* Algae Cell Style */
.particle.algae-cell {
    background: radial-gradient(ellipse, rgba(0, 255, 200, 0.3) 0%, rgba(0, 255, 200, 0.1) 50%, transparent 70%);
    border-radius: 50% 45% 50% 45%;
    animation: float-algae-cell 40s infinite linear;
}

/* Ocean Bubble Style */
.particle.ocean-bubble {
    background: radial-gradient(circle at 30% 30%, rgba(0, 217, 255, 0.4), rgba(0, 217, 255, 0.1) 50%, transparent 70%);
    border-radius: 50%;
    border: 1px solid rgba(0, 217, 255, 0.2);
    animation: float-bubble 35s infinite ease-in-out;
}

/* Small Plankton Dots */
.particle.plankton {
    width: 8px;
    height: 8px;
    background: var(--neon-aqua);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 255, 200, 0.6);
    animation: float-plankton 45s infinite linear;
}

@keyframes float-algae-cell {
    0% {
        transform: translateY(110vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    5% { opacity: 0.4; }
    50% { 
        opacity: 0.6;
        transform: translateY(50vh) translateX(30px) rotate(180deg);
    }
    95% { opacity: 0.4; }
    100% {
        transform: translateY(-10vh) translateX(60px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes float-bubble {
    0% {
        transform: translateY(110vh) translateX(0) scale(0.5);
        opacity: 0;
    }
    5% { opacity: 0.5; }
    50% { 
        opacity: 0.7;
        transform: translateY(50vh) translateX(-20px) scale(1);
    }
    95% { opacity: 0.5; }
    100% {
        transform: translateY(-10vh) translateX(-40px) scale(0.7);
        opacity: 0;
    }
}

@keyframes float-plankton {
    0% {
        transform: translateY(110vh) translateX(0);
        opacity: 0;
    }
    5% { opacity: 0.6; }
    25% { opacity: 0.8; }
    50% { 
        opacity: 0.9;
        transform: translateY(50vh) translateX(40px);
    }
    75% { opacity: 0.8; }
    95% { opacity: 0.6; }
    100% {
        transform: translateY(-10vh) translateX(80px);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-text {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--glass-white);
    border: 1px solid var(--border-color);
    color: var(--electric-cyan);
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-badge::before {
    content: '●';
    color: var(--neon-aqua);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 800;
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    text-align: left;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--glow-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footnote styles */
.stat-footnote {
    display: inline-block;
    font-size: 0.65rem;
    color: var(--electric-cyan);
    vertical-align: super;
    margin-left: 2px;
    cursor: help;
    text-decoration: none;
    font-weight: 600;
}

.stat-footnote:hover {
    color: var(--neon-aqua);
}

.footnotes-section {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 217, 255, 0.1);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.footnote-item {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    text-align: left;
    opacity: 0.8;
}

.footnote-item a {
    color: var(--electric-cyan);
    text-decoration: none;
    word-break: break-word;
}

.footnote-item a:hover {
    text-decoration: underline;
    color: var(--neon-aqua);
}

.footnote-number {
    color: var(--electric-cyan);
    font-weight: 600;
    margin-right: 0.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    min-height: 48px; /* Touch-friendly */
    position: relative;
    z-index: 10;
}

.btn-primary {
    background: var(--glow-gradient);
    color: var(--deep-ocean);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
}

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

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--glass-white);
    border-color: var(--electric-cyan);
}

/* Hero Visual - Data Visualization */
.hero-visual {
    position: relative;
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.data-visual {
    width: 100%;
    height: 550px;
    background: var(--glass-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ocean-data-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(0, 217, 255, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(0, 255, 200, 0.15) 0%, transparent 40%);
    animation: pulse-overlay 8s ease-in-out infinite;
}

@keyframes pulse-overlay {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.visual-text {
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: 5rem;
    filter: drop-shadow(0 0 20px var(--electric-cyan));
}

/* Algae Growth Visualization */
.algae-growth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.algae-growth-svg {
    width: 80%;
    height: 80%;
    filter: drop-shadow(0 0 15px rgba(0, 255, 200, 0.3));
}

@keyframes draw-strand {
    0%, 100% {
        stroke-dasharray: 1000;
        stroke-dashoffset: 1000;
    }
    50% {
        stroke-dashoffset: 0;
    }
}

.algae-strand-svg {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

/* Technology Section */
.tech-section {
    padding: var(--space-xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-label {
    display: inline-block;
    background: var(--glass-white);
    border: 1px solid var(--border-color);
    color: var(--electric-cyan);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.section-description {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Tech Cards */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: var(--space-md);
}

.tech-card {
    background: var(--glass-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--glow-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.tech-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 255, 200, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.5s ease;
}

.tech-card:hover::after {
    opacity: 1;
    bottom: -20px;
    right: -20px;
}

.tech-card:hover::before {
    transform: scaleX(1);
}

.tech-card:hover {
    transform: translateY(-8px);
    border-color: var(--electric-cyan);
    box-shadow: 0 20px 40px rgba(0, 217, 255, 0.2);
}

.tech-icon {
    width: 70px;
    height: 70px;
    background: var(--glow-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.tech-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--ice-white);
}

.tech-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.tech-features {
    list-style: none;
}

.tech-features li {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.tech-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--electric-cyan);
}

/* Solutions Showcase */
.solutions-section {
    padding: var(--space-xl) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(26, 47, 79, 0.3) 50%, transparent 100%);
}

/* Sustainability Impact Section */
.sustainability-section {
    padding: var(--space-xl) 0;
    background: linear-gradient(180deg, 
        rgba(0, 255, 200, 0.03) 0%, 
        rgba(0, 217, 255, 0.05) 50%, 
        transparent 100%);
    position: relative;
}

.sustainability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: var(--space-md);
}

.sustainability-card {
    background: var(--glass-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.sustainability-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 200, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.sustainability-card:hover::before {
    opacity: 1;
}

.sustainability-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-aqua);
    box-shadow: 0 20px 40px rgba(0, 255, 200, 0.2);
}

.sustainability-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    color: var(--neon-aqua);
    filter: drop-shadow(0 0 10px rgba(0, 255, 200, 0.3));
}

.sustainability-icon svg {
    width: 100%;
    height: 100%;
}

.sustainability-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--ice-white);
}

.sustainability-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.sustainability-metric {
    background: var(--glass-white);
    border: 1px solid var(--neon-aqua);
    padding: 1rem;
    border-radius: 12px;
    color: var(--text-secondary);
}

.sustainability-metric strong {
    display: block;
    font-size: 1.8rem;
    color: var(--neon-aqua);
    margin-bottom: 0.25rem;
}

.sustainability-stats {
    margin-top: var(--space-lg);
    background: var(--glass-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}

.stat-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-bar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-bar-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.stat-bar-content {
    display: flex;
    flex-direction: column;
}

.stat-bar-content strong {
    font-size: 1.3rem;
    color: var(--electric-cyan);
    margin-bottom: 0.25rem;
}

.stat-bar-content span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.solutions-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
    margin-top: var(--space-md);
}

.solution-details h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--ice-white);
}

.solution-details p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.solution-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-box {
    background: var(--glass-white);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.metric-box strong {
    display: block;
    font-size: 2rem;
    color: var(--electric-cyan);
    margin-bottom: 0.5rem;
}

.solution-visual-container {
    background: var(--glass-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    text-align: center;
}

.solution-visual-container h4 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    color: var(--ice-white);
}

/* Applications */
.applications-section {
    padding: var(--space-xl) 0;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: var(--space-md);
}

.app-card {
    background: var(--glass-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.app-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-aqua);
}

.app-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.app-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--ice-white);
}

.app-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Process Timeline */
.process-section {
    padding: var(--space-xl) 0;
    background: linear-gradient(180deg, rgba(26, 47, 79, 0.3) 0%, transparent 100%);
    position: relative;
    overflow: hidden;
}

/* Add background image with fade overlay */
.process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('http://algrid.tech/wp-content/uploads/2025/11/sargassum.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.55; /* Adjust this value to control overall image opacity */
}

/* Fade overlay - creates gradient fade to sides */
.process-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, 
            var(--deep-ocean) 0%, 
            transparent 15%, 
            transparent 85%, 
            var(--deep-ocean) 100%),
        linear-gradient(180deg, 
            rgba(10, 22, 40, 0.7) 0%, 
            rgba(10, 22, 40, 0.4) 50%, 
            rgba(10, 22, 40, 0.7) 100%);
    z-index: -1;
    pointer-events: none;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: var(--space-md) auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--border-color);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:nth-child(even) .timeline-content {
    grid-column: 2;
}

.timeline-item:nth-child(even) .timeline-number {
    left: auto;
    right: -60px;
}

.timeline-content {
    background: var(--glass-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.timeline-number {
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--glow-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--deep-ocean);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
    z-index: 10;
}

.timeline-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--ice-white);
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Contact Section */
.contact-section {
    padding: var(--space-xl) 0;
}

.contact-container {
    max-width: 700px;
    margin: var(--space-md) auto 0;
}

.contact-form {
    background: var(--glass-white);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--ice-white);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: var(--deep-ocean);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--electric-cyan);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

.form-submit {
    background: var(--glow-gradient);
    color: var(--deep-ocean);
    padding: 1rem 3rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.form-submit:hover,
.form-submit:focus {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
}

/* Footer */
.footer {
    background: rgba(10, 22, 40, 0.9);
    border-top: 1px solid var(--border-color);
    padding: var(--space-lg) 0 var(--space-sm);
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.footer-brand {
    max-width: 600px;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--electric-cyan);
    letter-spacing: 2px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.footer-logo-icon {
    width: 50px;
    height: 50px;
}

.footer-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 255, 200, 0.3));
}

.footer-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--electric-cyan);
    font-family: 'Lexend', sans-serif;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--glass-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--electric-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.3rem;
}

.social-link:hover,
.social-link:focus {
    background: var(--electric-cyan);
    color: var(--deep-ocean);
    transform: translateY(-3px);
}

.footer-column h4 {
    color: var(--ice-white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    padding: 0.5rem 0;
}

.footer-nav-link:hover,
.footer-nav-link:focus {
    color: var(--electric-cyan);
    padding-left: 0.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--electric-cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    border-top: 2px solid var(--electric-cyan);
    padding: 1.5rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    box-shadow: 0 -4px 20px rgba(0, 217, 255, 0.2);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text h3 {
    color: var(--electric-cyan);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.cookie-banner-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.cookie-banner-text a {
    color: var(--electric-cyan);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 0.95rem;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--glow-gradient);
    color: var(--deep-ocean);
    border: none;
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.4);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.cookie-btn-decline:hover {
    border-color: var(--electric-cyan);
    color: var(--electric-cyan);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--electric-cyan);
    border: 2px solid var(--electric-cyan);
}

.cookie-btn-settings:hover {
    background: var(--glass-white);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-settings-modal.show {
    display: flex;
}

.cookie-settings-content {
    background: var(--deep-ocean);
    border: 2px solid var(--electric-cyan);
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cookie-settings-header h2 {
    color: var(--electric-cyan);
    font-family: 'Space Grotesk', sans-serif;
    margin: 0;
}

.cookie-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.cookie-close:hover {
    color: var(--electric-cyan);
}

.cookie-category {
    background: var(--glass-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.cookie-category h3 {
    color: var(--ice-white);
    font-size: 1.1rem;
    margin: 0;
}

.cookie-category p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--steel-blue);
    border-radius: 34px;
    transition: 0.3s;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--electric-cyan);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-settings-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .solutions-content {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .timeline-number {
        left: 0px !important;
        right: auto !important;
    }

    .timeline-content {
        margin-left: 60px;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

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

@media (max-width: 768px) {
    /* Footnotes - Mobile */
    .footnote-item {
        font-size: 0.7rem;
        text-align: center;
    }

    .stat-footnote {
        font-size: 0.6rem;
    }

    /* Navigation */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
        gap: 1.5rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }

    /* Hero */
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-item {
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    /* Sections */
    .section-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .tech-grid,
    .applications-grid,
    .sustainability-grid {
        grid-template-columns: 1fr;
    }

    .solution-metrics {
        grid-template-columns: 1fr;
    }

    .stat-bar {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-column {
        text-align: center;
    }

    /* Timeline */
    .timeline-content {
        padding: 1.5rem;
    }

    /* Contact */
    .contact-form {
        padding: 2rem;
    }

    /* Logo */
    .logo-text {
        font-size: 1.3rem;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
    }

    /* Cookie Banner */
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }

    .cookie-settings-content {
        padding: 1.5rem;
    }

    .cookie-settings-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    /* Typography */
    :root {
        font-size: 14px;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    /* Cards */
    .tech-card,
    .sustainability-card,
    .app-card {
        padding: 1.5rem;
    }

    /* Form */
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.875rem;
    }

    /* Navigation */
    .nav-wrapper {
        padding: 1rem 0;
    }

    /* Spacing */
    .container {
        padding: 0 1rem;
    }
}

/* Large screens optimization */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

    .hero-content {
        max-width: 1000px;
    }
}

/* Tablet landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sustainability-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Smooth Animations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}