/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #05347E;
    --light-blue: #94B9FF;
    --accent-blue: #4A90E2;
    --dark-blue: #022654;
    --gray-light: #DEDFE2;
    --gray-medium: #A0A0A0;
    --gray-dark: #333333;
    --white: #FFFFFF;
    --gradient-start: #DEDFE2;
    --gradient-end: #94B8FA;
}

body {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

/* Header Navigation */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-text {
    font-family: 'Archivo', sans-serif;
    color: var(--primary-blue);
    text-decoration: none;
    letter-spacing: -0.5px;
}

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

.nav-link {
    color: var(--gray-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-blue);
}

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

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

.nav-cta {
    background: var(--primary-blue);
    color: var(--white) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
}

.nav-cta::after {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gray-dark);
    transition: all 0.3s ease;
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #F5F7FA 0%, #E8F2FF 100%);
    z-index: -2;
}

.hero-circle {
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(148, 185, 255, 0.3) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(-50px); }
}

.hero-content {
    width: 100%;
    padding: 4rem 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    gap: 3rem;
}

.hero-inner {
    flex: 1;
    padding: 20px;
    max-width: 500px;
    padding-top: 2rem;
}

.hero-title {
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease;
}

.hero-line {
    display: block;
    letter-spacing: -2px;
}

.hero-line.accent {
    color: var(--primary-blue);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--gray-dark);
    max-width: 500px;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.2s both;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

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

/* Molecular Art Styles */
.molecular-art {
    flex: 0 0 450px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: fadeIn 1.2s ease 0.6s both;
}

.dna-protein-svg {
    width: 100%;
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 15px 40px rgba(5, 52, 126, 0.15));
}

/* DNA Animations */
.dna-strand-1 {
    animation: dnaWave 10s ease-in-out infinite;
}

.dna-strand-2 {
    animation: dnaWave 10s ease-in-out infinite reverse;
}

@keyframes dnaWave {
    0%, 100% {
        d: path("M 50 50 C 70 80, 30 120, 50 150 S 30 220, 50 250 S 30 320, 50 350");
    }
    50% {
        d: path("M 50 50 C 30 80, 70 120, 50 150 S 70 220, 50 250 S 70 320, 50 350");
    }
}

.base-pairs line {
    animation: basePairPulse 3s ease-in-out infinite;
}

.base-pairs line:nth-child(even) {
    animation-delay: 0.5s;
}

@keyframes basePairPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.3; }
}

/* Protein Complex Animations */
.protein-complex {
    animation: proteinFloat 8s ease-in-out infinite;
    transform-origin: center;
}

@keyframes proteinFloat {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(5px) translateY(-3px); }
    50% { transform: translateX(0) translateY(-5px); }
    75% { transform: translateX(-5px) translateY(-3px); }
}

.alpha-helices ellipse {
    animation: helixRotate 12s linear infinite;
    transform-origin: center;
}

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

/* Interaction Animations */
.contact-point {
    animation: contactGlow 2s ease-in-out infinite;
}

.contact-point:nth-child(2) {
    animation-delay: 0.3s;
}

.contact-point:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes contactGlow {
    0%, 100% {
        opacity: 0.8;
        r: 4;
    }
    50% {
        opacity: 1;
        r: 6;
    }
}

.interaction-line {
    animation: interactionFlow 3s ease-in-out infinite;
}

@keyframes interactionFlow {
    0%, 100% {
        opacity: 0.6;
        stroke-dashoffset: 0;
    }
    50% {
        opacity: 0.9;
        stroke-dashoffset: 10;
    }
}

/* Energy Dots Animation */
.energy-dots circle {
    animation: energyPulse 4s ease-in-out infinite;
}

.energy-dot-1 { animation-delay: 0s; }
.energy-dot-2 { animation-delay: 0.5s; }
.energy-dot-3 { animation-delay: 1s; }
.energy-dot-4 { animation-delay: 1.5s; }

@keyframes energyPulse {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* Geometric Accent Animation */
.geometric-accent polygon {
    animation: geometricShift 15s ease-in-out infinite;
}

@keyframes geometricShift {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

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

/* Epigenetic Tensor Vignette Styles */
.tensor-vignette {
    flex: 0 0 auto;
    width: 600px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: fadeIn 1s ease 0.8s both;
}

.tensor-container {
    width: 100%;
    max-width: 600px;
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(5, 52, 126, 0.08);
}

.tensor-equation {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--dark-blue);
    font-family: 'Georgia', serif;
    animation: fadeInUp 0.8s ease 1s both;
}

.math-symbol {
    font-style: italic;
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 2rem;
}

.math-operator {
    margin: 0 0.7rem;
    color: var(--gray-dark);
    font-size: 1.6rem;
}

.math-set {
    color: var(--accent-blue);
    font-weight: 500;
    font-size: 1.8rem;
}

.math-set sup {
    font-size: 0.65em;
    position: relative;
    top: -0.5em;
}

.tensor-visualization {
    width: 100%;
    height: auto;
    max-height: 400px;
    filter: drop-shadow(0 10px 30px rgba(5, 52, 126, 0.1));
    animation: tensorFloat 1.5s ease-out forwards;
    margin: 0 auto;
    display: block;
}

@keyframes tensorFloat {
    0% { transform: translateY(10px) rotateX(0) rotateY(0); opacity: 0; }
    100% { transform: translateY(0) rotateX(0) rotateY(0); opacity: 1; }
}

/* Layered network animations */
.marks-layer g[class^="mark-node"] {
    animation: marksPulse 2s ease-out forwards;
    opacity: 0;
}

.marks-layer .mark-node-1 { animation-delay: 0s; }
.marks-layer .mark-node-2 { animation-delay: 0.3s; }
.marks-layer .mark-node-3 { animation-delay: 0.6s; }
.marks-layer .mark-node-4 { animation-delay: 0.9s; }
.marks-layer .mark-node-5 { animation-delay: 1.2s; }

.marks-layer text {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.mark-node-1 text { animation-delay: 0.5s; }
.mark-node-2 text { animation-delay: 0.8s; }
.mark-node-3 text { animation-delay: 1.1s; }
.mark-node-4 text { animation-delay: 1.4s; }
.mark-node-5 text { animation-delay: 1.7s; }

@keyframes marksPulse {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.positions-layer circle {
    animation: positionGlow 1.5s ease-out forwards;
    opacity: 0;
}

.positions-layer .pos-node-1 { animation-delay: 0s; }
.positions-layer .pos-node-2 { animation-delay: 0.2s; }
.positions-layer .pos-node-3 { animation-delay: 0.4s; }
.positions-layer .pos-node-4 { animation-delay: 0.6s; }
.positions-layer .pos-node-5 { animation-delay: 0.8s; }
.positions-layer .pos-node-6 { animation-delay: 1s; }

@keyframes positionGlow {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 0.8; }
}

.cells-layer g[class^="cell-type"] {
    animation: cellFloat 2s ease-out forwards;
    opacity: 0;
}

.cells-layer .cell-type-1 { animation-delay: 0s; }
.cells-layer .cell-type-2 { animation-delay: 0.5s; }
.cells-layer .cell-type-3 { animation-delay: 1s; }
.cells-layer .cell-type-4 { animation-delay: 1.5s; }

.cells-layer text {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.cell-type-1 text { animation-delay: 0.5s; }
.cell-type-2 text { animation-delay: 1s; }
.cell-type-3 text { animation-delay: 1.5s; }
.cell-type-4 text { animation-delay: 2s; }

@keyframes cellFloat {
    0% { transform: translateX(20px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

.connections line {
    animation: connectionFlow 3s ease-out forwards;
    stroke-dasharray: 5, 5;
    opacity: 0;
}

@keyframes connectionFlow {
    0% { stroke-dashoffset: 20; opacity: 0; }
    100% { stroke-dashoffset: 0; opacity: 0.4; }
}

.signal-intensity circle {
    animation: signalPulse 2s ease-out forwards;
    opacity: 0;
}

.signal-1 { animation-delay: 0s; }
.signal-2 { animation-delay: 0.4s; }
.signal-3 { animation-delay: 0.8s; }

@keyframes signalPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

/* Dimension marker animations */
.dim-m, .dim-l, .dim-c, .dim-t {
    animation: dimAppear 1s ease forwards;
    opacity: 0;
}

.dim-m { animation-delay: 1.2s; }
.dim-l { animation-delay: 1.4s; }
.dim-c { animation-delay: 1.6s; }
.dim-t { animation-delay: 1.8s; }

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

/* Dimension dots pulsing */
.mark-dot, .position-dot, .cell-dot, .time-dot {
    animation: dotPulse 3s ease-in-out infinite;
}

.mark-dot { animation-delay: 0s; }
.position-dot { animation-delay: 0.5s; }
.cell-dot { animation-delay: 1s; }
.time-dot { animation-delay: 1.5s; }

@keyframes dotPulse {
    0%, 100% {
        r: 2;
        opacity: 0.8;
    }
    50% {
        r: 4;
        opacity: 1;
    }
}

/* Data points animation */
.data-points circle {
    animation: dataFloat 6s ease-in-out infinite;
}

.data-pt-1, .data-pt-5 { animation-delay: 0s; }
.data-pt-2, .data-pt-6 { animation-delay: 0.5s; }
.data-pt-3, .data-pt-7 { animation-delay: 1s; }
.data-pt-4, .data-pt-8 { animation-delay: 1.5s; }

@keyframes dataFloat {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

/* Tensor slices animation */
.tensor-slices rect {
    animation: sliceSlide 10s ease-in-out infinite;
}

.slice-1 { animation-delay: 0s; }
.slice-2 { animation-delay: 0.3s; }
.slice-3 { animation-delay: 0.6s; }

@keyframes sliceSlide {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.4;
    }
    50% {
        transform: translateX(10px);
        opacity: 0.7;
    }
}

/* Horizontal legend footer */
.tensor-legend-footer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
    background: linear-gradient(to right, rgba(245, 247, 250, 0.5), rgba(232, 242, 255, 0.5));
    border-radius: 8px;
    border-top: 1px solid rgba(5, 52, 126, 0.1);
    animation: fadeInUp 0.8s ease 2s both;
}

.legend-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    cursor: help;
    padding: 0.5rem;
}

.legend-symbol {
    display: inline-block;
    margin-right: 0.5rem;
}

.legend-text {
    font-size: 11px;
    color: #555;
    line-height: 1.3;
    font-weight: 400;
}

/* Element notation */
.tensor-element {
    text-align: center;
    margin-top: 1rem;
    font-size: 1.15rem;
    color: var(--gray-medium);
    font-family: 'Georgia', serif;
    font-style: italic;
    animation: fadeInUp 0.8s ease 2.2s both;
}

.tensor-element sub {
    font-size: 0.75em;
}

/* Tensor description */
.tensor-description {
    text-align: center;
    margin-top: 1.2rem;
    font-size: 1rem;
    color: var(--gray-dark);
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    animation: fadeInUp 0.8s ease 2.4s both;
    padding: 0 1rem;
}

/* Tooltip styles */
.tooltip-trigger {
    cursor: help;
    position: relative;
}

.tooltip {
    position: absolute;
    background: rgba(5, 52, 126, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-family: 'Manrope', sans-serif;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    max-width: 200px;
    white-space: normal;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(5, 52, 126, 0.95);
}

.tooltip-trigger:hover .tooltip {
    opacity: 1;
    transform: translateY(-10px);
}

/* Position tooltips above by default */
.tooltip {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    margin-bottom: 5px;
}

.tooltip-trigger:hover .tooltip {
    transform: translateX(-50%) translateY(-10px);
}

/* Tooltip variants for different positions */
.tooltip-right {
    left: 100%;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) translateX(5px);
    margin-left: 10px;
    margin-bottom: 0;
}

.tooltip-right::after {
    top: 50%;
    left: -5px;
    transform: translateY(-50%);
    border-right-color: rgba(5, 52, 126, 0.95);
    border-top-color: transparent;
}

.tooltip-trigger:hover .tooltip-right {
    transform: translateY(-50%) translateX(10px);
}

/* Interactive elements with tooltips */
.marks-layer g[class^="mark-node"],
.cells-layer g[class^="cell-type"],
.positions-layer circle,
.dimension-markers circle {
    cursor: help;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--dark-blue);
    border-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(5, 52, 126, 0.3);
}

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

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* Mission Section */
.mission-section {
    padding: 5rem 0;
    background: var(--white);
}

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

.section-title {
    margin-bottom: 1.5rem;
}

.mission-text {
    font-size: 1.1rem;
    color: var(--gray-dark);
    line-height: 1.8;
}

.mission-stats {
    display: grid;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--gradient-start) 0%, rgba(148, 184, 250, 0.1) 100%);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    font-family: 'Archivo', sans-serif;
}

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

/* Projects Section */
.projects-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--white) 0%, rgba(148, 184, 250, 0.05) 100%);
}

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

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-medium);
    margin-top: 1rem;
}

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

.project-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--light-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(5, 52, 126, 0.15);
}

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

.project-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.project-card:hover .project-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
}

.project-icon iconify-icon {
    font-size: 48px;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.project-description {
    color: var(--gray-dark);
    line-height: 1.6;
}

/* Technology Section */
.technology-section {
    padding: 5rem 0;
    background: var(--white);
}

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

.tech-description {
    font-size: 1.1rem;
    color: var(--gray-dark);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.tech-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tech-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    width: 30px;
    height: 30px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
}

.feature-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
}

.feature-text p {
    color: var(--gray-dark);
    line-height: 1.6;
}

.tech-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 400px;
}

.dna-helix {
    position: relative;
    width: 200px;
    height: 100%;
    display: flex;
    justify-content: space-around;
}

.helix-strand {
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-blue), var(--light-blue), var(--primary-blue));
    position: relative;
    animation: twist 8s linear infinite;
}

.helix-strand:nth-child(2) {
    animation-delay: -4s;
}

@keyframes twist {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, rgba(148, 184, 250, 0.05) 0%, var(--white) 100%);
}

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

.about-text {
    font-size: 1.1rem;
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    gap: 1rem;
}

.highlight-label {
    font-weight: 600;
    color: var(--dark-blue);
}

.highlight-value {
    color: var(--gray-dark);
}

.about-vision {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.vision-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-blue);
}

.vision-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.vision-card p {
    color: var(--gray-dark);
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-text {
    font-size: 1.1rem;
    color: var(--gray-dark);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-blue);
}

.contact-form {
    background: linear-gradient(135deg, rgba(148, 184, 250, 0.05) 0%, rgba(222, 223, 226, 0.1) 100%);
    padding: 2rem;
    border-radius: 20px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(5, 52, 126, 0.1);
}

.btn-submit {
    width: 100%;
    font-size: 1.1rem;
}

/* Tippy.js Custom Theme */
.tippy-box[data-theme~='custom'] {
    background: linear-gradient(135deg, #05347E 0%, #0A4CA8 100%);
    color: white;
    font-size: 12px;
    line-height: 1.5;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(5, 52, 126, 0.3);
}

.tippy-box[data-theme~='custom'][data-placement^='top'] > .tippy-arrow::before {
    border-top-color: #05347E;
}

.tippy-box[data-theme~='custom'][data-placement^='bottom'] > .tippy-arrow::before {
    border-bottom-color: #05347E;
}

.tippy-box[data-theme~='custom'][data-placement^='left'] > .tippy-arrow::before {
    border-left-color: #05347E;
}

.tippy-box[data-theme~='custom'][data-placement^='right'] > .tippy-arrow::before {
    border-right-color: #05347E;
}

.tippy-box[data-theme~='custom'] .tippy-content {
    padding: 0;
}

/* Footer */
.main-footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-logo {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0.5rem 0;
}

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

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

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

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

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--light-blue);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design for wider screens */
@media (min-width: 1400px) {
    .hero-content {
        max-width: 1600px;
    }

    .tensor-vignette {
        width: 700px;
    }

    .tensor-container {
        max-width: 700px;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .hero-inner {
        max-width: 700px;
    }

    .tensor-vignette {
        width: 100%;
        max-width: 600px;
    }
}

@media (max-width: 968px) {
    /* Hide tensor visualization on mobile and tablets */
    .tensor-vignette {
        display: none !important;
    }

    .tensor-container {
        display: none !important;
    }

    .tensor-visualization {
        display: none !important;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        transition: right 0.3s ease;
        padding: 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .mission-grid,
    .tech-wrapper,
    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

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

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .tensor-vignette {
        flex: 1;
        margin-top: 2rem;
        max-width: 100%;
        width: 100%;
    }

    .tensor-container {
        max-width: 100%;
        padding: 1rem;
    }

    .tensor-visualization {
        max-width: 100%;
        margin: 0 auto;
    }
}

/* Affiliated Companies Section */
.affiliated-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.affiliates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.affiliate-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.affiliate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.affiliate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.affiliate-name {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.affiliate-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.affiliate-link:hover {
    color: var(--secondary-color);
}

.affiliate-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.affiliate-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.affiliate-tags .tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: #f0f4ff;
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

@media (max-width: 640px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }

    .hero-cta {
        flex-direction: column;
    }

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

    .affiliates-grid {
        grid-template-columns: 1fr;
    }
}