/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--main-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Animation classes */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* Animation delay classes */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Scroll reveal class */
.reveal {
    opacity: 0;
    transform: translateY(20px); /* Reduced to prevent overflow */
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Prevent overflow for footer animations */
footer .reveal {
    transform: translateY(10px);
}

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

html {
    scroll-behavior: smooth;
}

/* Polaire Color Palette */
:root {
    --primary-blue: #2F70D8;
    --primary-coral: #FFC4A3;
    --dark-coral: #FFB088; /* New darker coral variant */
    --light-blue: #E8F1FF;
    --dark-blue: #1A5BC6;
    --deep-blue: #0F3A79;
    --deeper-blue: #091E3D; /* New deepest blue for intense areas */
    --light-coral: #FDE2D7;
    --neutral-gray: #F5F7FA;
    --dark-gray: #1d3557;
    --highlight-blue: #4e9be5;
    --light-gray: #E2E8F0;
    --high-impact: #E53E3E;
    --medium-impact: #ED8936;
    --low-impact: #38A169;
    
    /* Font variables */
    --main-font: 'Be Vietnam Pro', 'Segoe UI', 'Roboto', sans-serif;
    --heading-font: 'Be Vietnam Pro', sans-serif;
    
    /* Spacing Variables - Using 8px Scale System */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --space-7: 56px;
    --space-8: 64px;
    --space-9: 72px;
    --space-10: 80px;
    --space-12: 96px;
    --space-14: 112px;
    --space-16: 128px;
    
    /* Section spacing aliases for semantic use */
    --section-spacing: var(--space-12);
    --content-spacing: var(--space-10);
    --element-spacing: var(--space-4);
}

html {
    height: 100%;
}

body {
    line-height: 1.7;
    color: #1a202c;
    background-color: #FFFFFC;
    font-family: var(--main-font);
    letter-spacing: 0.01em;
    font-weight: 400;
    min-height: 100vh;
    position: relative;
    z-index: 0;
}

.container {
    width: 95%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px;
    overflow-x: hidden;
}

header .container {
    padding: 15px 30px; /* Adjust header container padding */
    width: 95%; /* Make header slightly wider */
    max-width: 1400px; /* Increase max-width for header */
}

/* Header styles */
header {
    background-color: rgba(255, 255, 252, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 2.2rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 6px;
    display: inline-block;
}

.logo:hover {
    background-color: rgba(255, 255, 252, 0.1);
}

.logo-text {
    color: #1a202c;
    text-shadow: none;
    font-weight: 300;
    letter-spacing: 0.02em;
    position: relative;
}

.logo-letter-a {
    position: relative;
    display: inline-block;
    width: 28px;
    height: 28px;
    vertical-align: middle;
    margin: 0 1px;
    transform: translateY(-2px);
}

.logo-img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(0.1); /* Make the SVG logo dark */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Navigation */
nav {
    margin-left: auto; /* Push nav to the right */
    padding-left: 40px; /* Add more space between logo and nav */
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: flex-end; /* Align items to the right */
}

nav ul li {
    margin-left: 25px; /* Increase spacing between nav items */
}

nav ul li a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 400;
    transition: all 0.3s;
    padding: 5px 10px;
    border-radius: 4px;
}

nav ul li a:hover {
    color: var(--deep-blue);
    background-color: rgba(15, 58, 121, 0.05);
}

/* Mobile Navigation */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 200;
    position: absolute;
    right: 10px; /* Added padding from right edge */
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    border-radius: 3px;
    background-color: #1a202c;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Maintain padding even when active */
.hamburger-menu.active {
    right: 10px;
}

/* Hero section */
.hero {
    padding: 180px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #1a202c;
    z-index: 1;
    background-color: #FFFFFC;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    z-index: -1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-logo-text {
    font-size: 5.5rem;
    font-weight: 300;
    color: #1a202c;
    text-align: center;
    margin: 0 auto 60px;
    letter-spacing: 0.05em;
    position: relative;
    transition: transform 0.3s ease;
}

.hero-logo-text:hover {
    transform: translateY(-5px);
}

.hero-logo-letter-a {
    position: relative;
    display: inline-block;
    width: 65px;
    height: 65px;
    vertical-align: middle;
    margin: 0 3px;
    transform: translateY(-4px);
}

.hero-logo {
    height: 65px;
    width: auto;
    filter: brightness(0) invert(0.1); /* Make the SVG logo dark */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 200;
    letter-spacing: -1px;
    margin-bottom: 40px;
    color: #1a202c;
    font-family: var(--heading-font);
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 60px;
    color: #4a5568;
    font-weight: 300;
    letter-spacing: 0.01em;
    text-align: center;
}

/* Hero email form styles */
.hero-email-form {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 2;
    background-color: #f7fafc;
    padding: 48px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hero-email-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(46, 83, 121, 0.15);
    border-radius: 8px;
    font-size: 1rem;
    background-color: rgba(248, 250, 252, 0.8);
    color: var(--dark-gray);
    transition: all 0.3s ease;
}

.hero-email-input:focus {
    background-color: #FFFFFC;
    outline: none;
    border-color: var(--primary-coral);
    box-shadow: 0 0 0 3px rgba(246, 167, 124, 0.15);
}

.hero-email-input::placeholder {
    color: rgba(29, 53, 87, 0.5);
}

.hero-consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--dark-gray);
    text-align: left;
    padding: 0 10px;
}

.hero-consent-checkbox input[type="checkbox"] {
    margin-top: 5px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.hero-consent-checkbox label {
    font-size: 0.9rem;
    line-height: 1.4;
    cursor: pointer;
    color: rgba(29, 53, 87, 0.75);
}

.hero-consent-checkbox a {
    color: var(--primary-coral);
    text-decoration: underline;
}

/* Unified Button System */
.btn {
    display: inline-block;
    padding: var(--space-2) var(--space-5);
    border-radius: 6px; /* Slightly more rounded */
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    transition: left 0.7s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn:hover::before {
    left: 100%;
}

/* Primary button - Coral */
.btn-primary {
    background: linear-gradient(to right, var(--dark-coral), var(--primary-coral));
    color: #1d3557;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(to right, var(--primary-coral), var(--light-coral));
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(246, 167, 124, 0.4);
}

/* Secondary button - Blue */
.btn-secondary {
    background-color: var(--primary-blue);
    color: white;
}

.btn-secondary:hover {
    background-color: #4580E0;
}

/* Tertiary button - Outline */
.btn-tertiary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: calc(var(--space-2) - 2px) calc(var(--space-5) - 2px);
    box-shadow: none;
}

.btn-tertiary:hover {
    background-color: rgba(40, 116, 232, 0.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Button sizes */
.btn-large {
    padding: var(--space-3) var(--space-6);
    font-size: 1.1rem;
}

.btn-small {
    padding: var(--space-1) var(--space-3);
    font-size: 0.9rem;
}

/* Legacy naming for compatibility */
.cta-button {
    display: inline-block;
    background-color: var(--primary-coral);
    color: #333333;
    padding: 14px 36px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #F8BDA0;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Features section */
.features {
    padding: var(--section-spacing) 0;
    background-color: transparent;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
    font-size: 3rem;
    color: #1a202c;
    font-family: var(--heading-font);
    font-weight: 200;
    position: relative;
    padding-bottom: 0;
    letter-spacing: -1px;
    line-height: 1.1;
}

.section-title::after {
    display: none;
}

.section-title:hover::after {
    display: none;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 300;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Standardized Card Component */
.card {
    background-color: #FFFFFC;
    border-radius: 12px;
    padding: var(--space-5) var(--space-4);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(232, 241, 255, 0.4) 0%, rgba(255, 255, 252, 0) 50%),
        linear-gradient(to bottom, rgba(255, 255, 252, 1) 0%, rgba(255, 255, 252, 1) 100%);
    z-index: 0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Card accent styles */
.card-accent-left {
    border-left: 4px solid var(--primary-blue);
    border-top: none;
}

.card-accent-top {
    border-top: 4px solid var(--primary-coral);
    border-left: none;
}

.card-accent-dark {
    border-left: 4px solid var(--dark-blue);
    border-top: none;
}

/* Legacy naming for compatibility */
.feature-card {
    background-color: #FFFFFC;
    border-radius: 12px;
    padding: var(--space-5) var(--space-4);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-blue);
    border-top: none;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(232, 241, 255, 0.4) 0%, rgba(255, 255, 252, 0) 50%),
        linear-gradient(to bottom, rgba(255, 255, 252, 1) 0%, rgba(255, 255, 252, 1) 100%);
    z-index: 0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background-color: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(40, 116, 232, 0.15);
}

.feature-icon::after {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    border: 2px dashed rgba(40, 116, 232, 0.2);
    border-radius: 50%;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.feature-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    animation: spin 25s linear infinite;
    transform-origin: center center;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--dark-gray);
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.feature-card p {
    position: relative;
    z-index: 1;
    color: var(--dark-gray);
    font-weight: 400;
}

/* Impact levels */
.impact-level {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 15px;
}

.impact-high {
    background-color: var(--high-impact);
    color: white;
}

.impact-medium {
    background-color: var(--medium-impact);
    color: white;
}

.impact-low {
    background-color: var(--low-impact);
    color: white;
}

/* Mission section */
.about {
    padding: var(--section-spacing) 0 calc(var(--section-spacing) * 1.2);
    background-color: transparent;
    position: relative;
    overflow: hidden;
}

/* Section spacing placeholder - transitions removed */
.section-transition {
    margin-top: var(--space-4);
    position: relative;
    z-index: 0;
}

/* Legacy naming for compatibility - simplified */
.bridge-connected {
    margin-top: var(--space-4);
    position: relative;
    z-index: 0;
}

/* Visual Bridge styling */
.visual-bridge {
    position: relative;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -30px;
    margin-bottom: 30px;
    overflow: visible;
}

.bridge-arrow {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.bridge-arrow span {
    display: block;
    width: 3px;
    height: 10px;
    background-color: var(--primary-blue);
    opacity: 0.7;
    border-radius: 1.5px;
    animation: pulseArrow 1.5s infinite ease-in-out;
}

.bridge-arrow span:nth-child(2) {
    animation-delay: 0.15s;
}

.bridge-arrow span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes pulseArrow {
    0% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(10px); opacity: 0.8; }
    100% { transform: translateY(0); opacity: 0.4; }
}

/* Remove section background decoration */

.about-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.about-text-wrapper {
    padding: 50px;
    background-color: #FFFFFC;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--primary-coral);
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.about-text-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(246, 167, 124, 0.05) 0%, rgba(255, 255, 252, 0) 50%);
    z-index: 0;
}

.about-text-title {
    font-family: var(--heading-font);
    color: var(--dark-gray);
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
    text-align: center;
}

.about-text p {
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Video showcase styling */
.video-showcase {
    margin-top: 40px;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background-color: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Dashboard Bridge styling */
/* Dashboard styling adjustments */
.dashboards-showcase {
    margin-top: 40px; /* Increased top margin */
    padding: 20px 0;  /* Added vertical padding */
}

.dashboards-showcase {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px; /* Increased gap between dashboard items */
    flex-wrap: wrap;
    position: relative;
    margin-top: 30px;
}

/* Removed gradient effect */

.dashboard-container {
    position: relative;
    transition: all 0.4s ease; /* Slightly slower for smoother transition */
    flex: 1;
    min-width: 320px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dashboard-container:hover {
    transform: translateY(-8px); /* More pronounced lift effect */
}

.dashboard-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px; /* Slightly more rounded corners */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    width: 100%;
    margin-bottom: 8px; /* Slightly more bottom margin */
    background-color: rgba(248, 249, 251, 0.08);
    padding: 25px 25px 12px; /* Increased padding */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease; /* Added transition to the wrapper itself */
}

.dashboard-img-wrapper::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 15%;
    height: 5px;
    background-color: var(--light-gray);
    border-radius: 30px;
    z-index: 2;
}

.dashboard-img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.5s ease;
    border-radius: 6px; /* Slightly more rounded corners */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.18);
    filter: brightness(1.02) contrast(1.02); /* Subtle image enhancement */
}

.dashboard-img-wrapper:hover .dashboard-img {
    transform: scale(1.03); /* Slightly more zoom on hover */
    filter: brightness(1.05) contrast(1.05); /* Enhanced brightness on hover */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.dashboard-overlay {
    position: absolute;
    bottom: 10px;
    left: 20px;
    right: 20px;
    padding: 15px;
    background: rgba(29, 53, 87, 0.9);
    color: white;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 5;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.dashboard-img-wrapper:hover .dashboard-overlay {
    transform: translateY(0);
}

.dashboard-title {
    text-align: center;
    margin: 20px 0 5px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    background-color: rgba(39, 63, 97, 0.9);
    padding: 10px 15px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    display: inline-block;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* AI Ethics section */
.ai-ethics {
    padding: var(--section-spacing) 0 calc(var(--section-spacing) * 1.2);
    background-color: transparent;
    position: relative;
    overflow: hidden;
}

/* AI-Ethics section transition - simplified */
.ai-ethics-transition {
    position: relative;
    margin-top: var(--space-4);
    z-index: 2;
}

/* Remove section background decoration */

.ai-ethics .feature-card {
    border-left: 4px solid var(--dark-blue);
}

/* Team section */
.team {
    padding: 50px 0 var(--section-spacing);
    background-color: transparent;
    position: relative;
    overflow: hidden;
}

/* Team section transition - simplified */
.team-transition {
    position: relative;
    margin-top: var(--space-4);
    z-index: 2;
}

/* Remove section background decoration */

.team-members {
    display: flex;
    justify-content: center;
    gap: 50px; /* Increased gap between team members */
    margin-top: 60px; /* Increased margin */
    flex-wrap: wrap;
}

.team-member {
    background-color: transparent;
    padding: 40px 20px;
    border-radius: 0;
    box-shadow: none;
    max-width: 320px;
    text-align: center;
    transition: all 0.3s ease;
    border-left: 2px solid var(--deep-blue);
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    z-index: 1;
    overflow: hidden;
    margin-bottom: 60px;
}

.team-member:hover {
    transform: none;
    box-shadow: none;
    background-color: transparent;
    border-left-color: var(--primary-coral);
    border-left-width: 3px;
}

/* Standardized Image Containers */
.img-container {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(40, 116, 232, 0.15);
    background-color: #FFFFFC;
    z-index: 2;
}

/* Image shapes */
.img-round {
    border-radius: 50%;
    border: 5px solid #FFFFFC;
}

.img-rounded {
    border-radius: 12px;
}

.img-device {
    border-radius: 12px;
    padding: 15px 15px 5px;
    background-color: #f8f9fb;
    border: 1px solid var(--light-gray);
}

.img-device::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 15%;
    height: 5px;
    background-color: var(--light-gray);
    border-radius: 30px;
    z-index: 2;
}

/* Image container sizing */
.img-lg {
    width: 140px;
    height: 140px;
}

.img-md {
    width: 100px;
    height: 100px;
}

.img-responsive {
    width: 100%;
}

/* Legacy class for compatibility */
.team-avatar {
    width: 150px; /* Slightly larger */
    height: 150px; /* Slightly larger */
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;  /* Adjust to focus on face */
    margin-bottom: var(--space-4); /* More space below avatar */
    background-color: rgba(46, 83, 121, 0.8);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    border: none;
    transition: all 0.35s ease;
    position: relative;
    z-index: 2;
    filter: brightness(1.05); /* Subtle brightness increase */
}

.team-member:hover .team-avatar {
    transform: scale(1.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    border: none;
    filter: brightness(1.1);
}

/* Individual team member avatar adjustments */
.team-member:nth-child(1) .team-avatar {
    object-position: center 20%;  /* Fine-tune Gabrielle's image position */
}

.team-member:nth-child(2) .team-avatar {
    object-position: 65% 0%;  /* Adjust to 65% horizontal and 0% vertical as requested */
}

.team-member h3 {
    color: #1a202c;
    margin-bottom: 8px;
    font-size: 1.8rem;
    font-weight: 300;
    font-family: var(--heading-font);
    letter-spacing: -0.5px;
}

.team-member p.role {
    color: var(--deep-blue);
    font-weight: 400;
    margin-bottom: 20px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.team-member p {
    color: #4a5568;
    font-weight: 300;
    line-height: 1.6;
}

/* Partners section */
.partners {
    padding: var(--section-spacing) 0 40px 0;
    background-color: #f7fafc;
    position: relative;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    gap: 40px;
    flex-wrap: wrap;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.partner-logo:hover {
    transform: translateY(-5px);
}

.partner-logo-img {
    max-height: 120px;
    max-width: 300px;
    object-fit: contain;
    filter: grayscale(0.3);
    transition: filter 0.3s ease;
}

.partner-logo:hover .partner-logo-img {
    filter: grayscale(0);
}

/* Success message */
.success-message {
    display: none;
    background-color: var(--low-impact);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

/* Footer */
footer {
    background-color: #f7fafc;
    color: #1a202c !important;
    padding: 80px 0 40px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    margin-top: 0;
    border-top: 1px solid #e2e8f0;
    box-shadow: none;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-right: 60px;
}

.footer-column:last-child {
    margin-right: 0;
    flex: 0 0 auto;
}

.footer-column h3 {
    color: #1a202c !important;
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-shadow: none;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 300;
    color: #1a202c !important;
    letter-spacing: 0.02em;
    display: inline-block;
}

.footer-logo-letter-a {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin: 0 1px;
    transform: translateY(-1px);
}

.footer-logo {
    height: 18px;
    width: auto;
    filter: brightness(0) invert(0.3); /* Make the SVG logo dark gray */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #1a202c !important;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a:hover {
    color: var(--deep-blue);
    padding-left: 5px;
}

.footer-links a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--deep-blue);
    transition: width 0.3s ease;
}

.footer-links a:hover::before {
    width: 100%;
}

/* Ensure footer container doesn't create scrollbars */
footer .container {
    overflow: visible;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #1a202c !important;
}

.copyright p {
    opacity: 1;
    text-shadow: none;
    transition: all 0.3s ease;
}

.copyright p:hover {
    color: var(--deep-blue);
}

/* Responsive styles */
@media (max-width: 992px) {
    .about-text-wrapper {
        padding: 35px;
        max-width: 90%;
    }
    
    .dashboards-showcase {
        gap: 40px;
    }
    
    .dashboard-container {
        flex-basis: calc(50% - 20px);
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .about-text-wrapper {
        padding: 30px 25px;
        max-width: 100%;
    }
    
    .about-text-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }
    
    .about-text p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .bridge-connected {
        margin-top: -30px;
        padding-top: 60px;
    }
    
    .ai-ethics-transition {
        margin-top: -40px;
    }
    
    .team-transition {
        margin-top: -40px;
    }
    
    .visual-bridge {
        height: 60px;
        margin-top: -20px;
        margin-bottom: 20px;
    }
    
    .bridge-arrow {
        width: 30px;
        height: 30px;
    }
    
    .bridge-arrow span {
        width: 2px;
        height: 8px;
    }
    
    .dashboards-bridge {
        margin-top: 40px;
        padding-bottom: 20px;
    }
    
    .connector-text {
        font-size: 0.8rem;
        padding: 6px 15px;
    }
    
    .dashboard-container {
        flex-basis: 100%;
        margin-bottom: 10px;
    }
    
    /* Mobile-optimized overlay that always shows */
    .dashboard-overlay {
        position: static;
        transform: none;
        border-top: none;
        padding: 15px;
        font-size: 0.85rem;
        background: #FFFFFC;
        border-radius: 0 0 8px 8px;
        box-shadow: none;
        margin: 0;
        border-left: 3px solid var(--primary-blue);
    }
    
    .dashboard-img-wrapper {
        border-radius: 8px 8px 0 0;
        padding: 15px 15px 8px;
    }
    
    /* Removed gradient effect reference */
    
    /* Mobile touch optimization */
    .dashboard-img-wrapper:active .dashboard-img {
        transform: scale(1.01);
    }
    
    .dashboard-title {
        margin: 15px 0 20px;
        font-size: 1rem;
        padding: 8px 12px;
        width: auto;
    }
    
    /* Container paddings */
    .container {
        width: 95%;
        padding: 10px;
    }
}

/* Small phone optimization */
@media (max-width: 480px) {
    .about-text-wrapper {
        padding: 25px 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    }
    
    .about-content {
        gap: 30px;
    }
    
    .about, 
    .ai-ethics {
        padding-bottom: calc(var(--section-spacing) * 0.8);
    }
    
    .dashboards-showcase {
        gap: 25px;
    }
    
    .dashboard-overlay {
        padding: 12px;
        font-size: 0.8rem;
    }
    
    .dashboard-title {
        margin: 12px 0 15px;
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    
    .visual-bridge {
        height: 50px;
        margin-top: -15px;
        margin-bottom: 15px;
    }
    
    .ai-ethics-transition {
        margin-top: -30px;
    }
    
    .team-transition {
        margin-top: -30px;
    }
    
    .ai-ethics-transition::before,
    .team-transition::before,
    .bridge-connected::before {
        height: 80px;
    }
    
    .container {
        width: 95%;
        padding: 15px 10px;
    }
    
    /* Ensure hamburger menu has enough padding on very small screens */
    .hamburger-menu {
        right: 15px;
    }
    
    .hamburger-menu.active {
        right: 15px;
    }
}

body {
    overflow-x: hidden;
    letter-spacing: 0.018em; /* Slightly improved letter spacing for entire body */
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: 0.01em;
    font-weight: 600;
    line-height: 1.3;
}

p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: inherit;
    font-weight: 400;
}

/* Link styling enhancements */
a {
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

/* Global page wrapper */
.page-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .email-form {
        width: 90%;
    }
    
    .hero-logo-text {
        font-size: 4rem;
        margin-bottom: 25px;
    }
    
    .hero-logo-letter-a {
        width: 55px;
        height: 55px;
        transform: translateY(-6px);
    }
    
    .hero-logo {
        height: 55px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero {
        padding: 60px 0 120px; /* Remove top padding since no header */
    }
    
    .hero p {
        font-size: 1.1rem;
        max-width: 95%;
        margin: 0 auto 50px;
        padding: 0 10px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1.05rem;
        padding: 0 10px;
        margin-bottom: 30px;
    }
    
    .feature-card {
        padding: 25px 20px;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
    }
    
    .features-grid {
        padding: 0 5px;
        gap: 20px;
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        gap: 30px;
        justify-content: space-between;
    }
    
    .footer-column {
        margin-right: 0;
    }
    
    /* Hide header content on mobile but keep header for hamburger */
    header {
        background: none;
        backdrop-filter: none;
        box-shadow: none;
        border-bottom: none;
        padding: 0;
    }
    
    header .container {
        padding: 0;
    }
    
    /* Hide logo and nav on mobile */
    .logo {
        display: none;
    }
    
    nav ul:not(.active) {
        display: none;
    }
    
    /* Floating hamburger button */
    .hamburger-menu {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        width: 50px !important;
        height: 50px !important;
        position: fixed !important;
        top: 20px !important;
        right: 20px !important;
        z-index: 200 !important;
        background-color: rgba(255, 255, 252, 0.95) !important;
        border-radius: 8px !important;
        padding: 0 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
        cursor: pointer !important;
        transform: none !important;
        gap: 4px !important;
    }
    
    .hamburger-menu span {
        display: block !important;
        height: 3px !important;
        width: 24px !important;
        border-radius: 2px !important;
        background-color: #1a202c !important;
        transition: all 0.3s ease !important;
        flex-shrink: 0 !important;
    }
    
    /* Fix hamburger animation for mobile */
    .hamburger-menu.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg) !important;
    }
    
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0 !important;
    }
    
    .hamburger-menu.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg) !important;
    }
    
    nav {
        padding-left: 0;
    }
    
    nav ul {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: rgba(20, 37, 56, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        z-index: 99;
        align-items: flex-start;
        justify-content: flex-start; /* Reset justify-content for mobile */
    }
    
    nav ul.active {
        right: 0;
    }
    
    nav ul li {
        margin: 0 0 20px 0;
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        padding: 10px 0;
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    nav ul li a:hover {
        color: white !important;
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    /* Mobile overlay removed - no overlay when menu is open */
    
    /* Fix expandable section arrow positioning on mobile */
    .expandable-header::after {
        top: auto !important;
        bottom: -30px !important;
        transform: translateY(0) !important;
    }
    
    .expandable-section.expanded .expandable-header::after {
        transform: rotate(180deg) !important;
    }
    
    /* Adjust expandable title size for better mobile layout */
    .expandable-title {
        font-size: 1.3rem;
        line-height: 1.2;
    }
    
    .expandable-subtitle {
        font-size: 1.6rem;
        line-height: 1.4;
    }
}

/* Success message */
.success-message {
    display: none;
    background-color: var(--low-impact);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

/* Expandable sections */
.main-content {
    padding: 30px 0 60px;
    position: relative;
    z-index: 1;
    margin-top: -20px; /* Create a slight overlap to smooth the transition */
}

.expandable-section {
    background-color: transparent;
    border-radius: 0;
    margin: 80px auto 20px auto;
    box-shadow: none;
    border-left: 2px solid var(--deep-blue);
    max-width: 750px;
    overflow: hidden;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 60px;
}

/* First expandable section needs less top margin for smoother transition */
.main-content .expandable-section:first-child {
    margin-top: 20px;
}

.expandable-section:hover {
    transform: none;
    box-shadow: none;
    background-color: transparent;
    border-left-color: var(--primary-coral);
    border-left-width: 3px;
}

.expandable-header {
    padding: 24px 0 0 40px;
    cursor: pointer;
    position: relative;
    text-align: left;
    background: none;
    border-bottom: none;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.expandable-section:hover {
    background-image: linear-gradient(to right, rgba(246, 167, 124, 0.06), rgba(246, 167, 124, 0.02));
}

.expandable-section:hover .expandable-header {
    background: none;
}

.expandable-header::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f6a77c'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.expandable-section.expanded .expandable-header::after {
    transform: translateY(-50%) rotate(180deg);
}

.expandable-title {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    color: #1a202c;
    margin-bottom: 16px;
    position: relative;
    display: block;
    font-weight: 200;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.expandable-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: var(--primary-coral);
    opacity: 0.8;
}

.expandable-subtitle {
    color: #4a5568;
    font-size: 2rem;
    line-height: 1.6;
    max-width: 900px;
    margin: 0;
    padding-left: 0;
    font-weight: 300;
}

.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
    opacity: 0;
    padding: 0 40px;
    background: none;
    border-top: none;
}

.expandable-section.expanded .expandable-content {
    max-height: 2000px; /* Large enough to show content */
    opacity: 1;
    padding: 30px 35px;
}

.expandable-content-inner {
    text-align: left;
    position: relative;
}

.expandable-content-inner p {
    margin-bottom: 32px;
    font-size: 1.1rem;
    line-height: 1.7;
    position: relative;
    color: #4a5568;
    font-weight: 300;
}

.expandable-content-inner p strong {
    color: #1a202c;
    font-weight: 500;
}

.expandable-content-inner p:last-child {
    margin-bottom: 0;
}