/* Landing page specific layout and hero styles */

/* Background and layout */
.background-container {
    position: relative;
    height: var(--hero-height);
    background: var(--accent-gradient);
    background-size: 100% 100%;
    background-position: 0 0;
    background-repeat: no-repeat;
    overflow: visible;
}

.background-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, transparent 0%, rgba(240, 242, 245, 0.3) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Removed old background image overlay to show the blue gradient
.background-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("/static/assets/landing-page-background.png");
    background-size: cover;
    filter: grayscale(50%) brightness(50%);
}
*/

/* Wave animations - Extended height for better coverage */
.waves {
    position: absolute;
    width: 100%;
    height: calc(var(--waves-height) + 50px);
    min-height: calc(var(--waves-min-height) + 50px);
    max-height: calc(var(--waves-max-height) + 50px);
    bottom: -25px;
    z-index: var(--z-waves);
    pointer-events: none;
}

.parallax > use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% {
        transform: translate3d(85px, 0, 0);
    }
}

/* Hero content */
.hero-content {
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    text-align: center;
    color: white;
    z-index: var(--z-hero);
    padding: 0 15px;
}

.logo-container {
    margin-bottom: var(--spacing-lg);
    display: inline-block;
    position: relative;
}

.logo-container img {
    max-width: var(--logo-max-width);
    height: auto;
    display: block;
    position: relative;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: var(--font-weight-light);
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.6;
}

/* Fix white gap issues - ensure no white backgrounds show through */
body {
    background: var(--section-bg) !important;
}

#content {
    background: transparent !important;
}

/* Device showcase container - Remove white background */
#feature-section {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.container-fluid {
    background: transparent !important;
    padding: 0 !important;
}

/* Device showcase */
.device-showcase {
    position: relative;
    margin-top: -150px;
    z-index: var(--z-device);
    height: var(--device-showcase-height);
}

.device-art-container {
    position: absolute;
    height: 100%;
    right: 10%;
    top: 0;
}

#device-art-framed {
    height: 100%;
}

/* Content sections */
.content-section {
    padding: var(--spacing-xxl) 0;
    text-align: center;
    position: relative;
    z-index: var(--z-content);
}

/* Wearables section specific styling */
.wearables-section {
    background: var(--section-bg);
    position: relative;
    overflow: hidden;
}

.wearables-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(58, 86, 135, 0.05) 0%, transparent 70%);
    transform: rotate(45deg);
    pointer-events: none;
}

.wearables-content {
    position: relative;
    z-index: 1;
}

.wearables-intro {
    max-width: 900px;
    margin: 0 auto var(--spacing-md);
    font-size: 1.125rem;
    line-height: 1.7;
    color: #495057;
}

.wearables-subsection {
    background: var(--shaded-white);
    border-radius: 12px;
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: left;
    position: relative;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.wearables-subsection:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.wearables-subsection h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.wearables-subsection h3::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 24px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

/* Stats grid for key numbers */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.stat-item {
    text-align: center;
    padding: var(--spacing-md);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    display: block;
    line-height: 1;
    margin-bottom: var(--spacing-sm);
}

.stat-label {
    font-size: 0.875rem;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced text formatting */
.highlight-text {
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
}

.tech-list {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0 var(--spacing-sm) 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-sm);
}

.tech-list li {
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(58, 86, 135, 0.05);
    border-left: 3px solid var(--tertiary-color);
    border-radius: 0 4px 4px 0;
    font-size: 0.95rem;
}

.lead-paragraph {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--accent-gradient);
    margin: var(--spacing-xl) auto;
    border-radius: 2px;
}

.feature-section {
    background-color: var(--section-bg);
    padding: var(--spacing-xxl) 0;
    position: relative;
    z-index: var(--z-content);
}

.publications-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--section-bg);
}

/* Publication items */
.publication-item {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    background-color: var(--shaded-white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.publication-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.publication-title {
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
}

.publication-authors {
    font-size: 0.9rem;
    color: #4a4a4a; /* Improved contrast: 7.5:1 ratio on white */
    margin-bottom: var(--spacing-sm);
}

.publication-journal {
    font-style: italic;
    font-size: 0.9rem;
    color: #4a4a4a; /* Improved contrast: 7.5:1 ratio on white */
}

/* Navigation styles - Use matching gradient with viewport synchronization */
#main-navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-navbar);
    background: var(--accent-gradient) !important;
    background-size: 100% 100%;
    background-position: 0 0;
    background-repeat: no-repeat;
    border: none;
    box-shadow: none;
}

#main-navbar .navbar-brand {
    display: none;
}

#main-navbar .navbar-nav .nav-link {
    color: white !important;
    font-weight: var(--font-weight-medium);
}

#main-navbar .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

#main-navbar .navbar-text {
    color: white !important;
}

#main-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

#main-navbar .navbar-toggler-icon {
    filter: invert(1);
}

/* Footer styles */
footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
}

/* Legacy support for existing elements */
#floating-text {
    position: absolute;
    display: flex;
    align-items: center;
    top: 100px;
    width: 80%;
    left: 10%;
    vertical-align: center;
}

#floating-text-logo {
    width: 50%;
    vertical-align: center;
    max-width: fit-content;
    text-align: center;
    margin: 20px auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}