/* Resket - AI-Powered Software Transformation */

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

/* Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --accent: #8b5cf6;
    --quantum: #06b6d4;
    --quantum-dark: #0891b2;
    --success: #10b981;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #64748b;
    --background: #ffffff;
    --background-alt: #f8fafc;
    --gray-light: #f1f5f9;
    --gray-medium: #e2e8f0;
    --border: #e2e8f0;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-quantum: linear-gradient(135deg, var(--quantum) 0%, var(--primary) 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-quantum: 0 0 40px rgba(6, 182, 212, 0.3);
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Typography */
body {
    font-family: var(--font-main);
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}

/* Typography Scale */
h1 {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-align: center;
}

h3 {
    font-size: 28px;
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

p {
    margin-bottom: 20px;
}

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

a:hover {
    text-decoration: underline;
}

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 140px 0;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

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

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

.logo-img {
    height: 48px;
    width: auto;
    filter: brightness(0.2);
    transition: filter 0.3s ease;
}

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

.logo-text {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--text-primary);
    text-decoration: none;
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 140px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 25%, #ddd6fe 50%, #dbeafe 100%);
    position: relative;
    overflow: hidden;
}

/* Hero Background Pattern */
.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.08;
    background-image: 
        radial-gradient(circle at 25% 25%, var(--quantum) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, var(--primary) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    animation: floating 20s ease-in-out infinite;
}

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

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

.hero-title {
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease-out;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 760px;
    margin: 0 auto 48px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

/* Quantum-inspired glow effects */
.service-card {
    position: relative;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-quantum);
    border-radius: 24px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.service-card:hover::after {
    opacity: 0.3;
    filter: blur(10px);
}

/* Hero Visual - SVG Diagram */
.hero-visual {
    margin: 60px 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.transformation-diagram {
    width: 100%;
    max-width: 800px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(37, 99, 235, 0.2));
    margin: 0 auto;
    display: block;
}

.transformation-diagram .system-label {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    fill: var(--text-primary);
}

.transformation-diagram .legacy-system > rect:first-child {
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.2));
}

.transformation-diagram .legacy-system rect {
    animation: pulse 4s ease-in-out infinite;
}

.transformation-diagram .ai-agent circle {
    animation: rotate 8s linear infinite;
    transform-origin: center;
}

.transformation-diagram .transformed-system rect {
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes glow {
    from { filter: brightness(1); }
    to { filter: brightness(1.1); }
}

/* Hero Capabilities */
.hero-capabilities {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 48px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.capability-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 100px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.capability-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

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

.metric:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left-width: 6px;
}

.metric-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.metric-label {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Services Section */
.services {
    padding: 120px 0;
    background: var(--background);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 48px;
    margin-top: 80px;
}

.service-card {
    background: var(--background);
    padding: 48px;
    border-radius: 24px;
    border: 2px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--background) 0%, #f0f9ff 100%);
}

.service-card:hover::before {
    opacity: 0.05;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.capability {
    background: var(--background);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.capability:hover {
    border-color: var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
}

.service-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.service-features {
    list-style: none;
    margin-top: 24px;
}

.service-features li {
    padding: 12px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-secondary);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.tech-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-specs span {
    background: var(--gray-light);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
}

/* Approach Section */
.approach {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--background-alt) 0%, var(--background) 100%);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 80px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-light) 50%, transparent 100%);
    opacity: 0.3;
    z-index: 0;
}

.process-step {
    position: relative;
    text-align: center;
    z-index: 1;
}

.step-number {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    margin: 0 auto 32px;
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
    position: relative;
    z-index: 2;
    border: 4px solid white;
}

.process-step h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.process-step p {
    color: var(--text-secondary);
    max-width: 280px;
    margin: 0 auto;
}

.architecture h2 {
    text-align: center;
}

.architecture-diagram {
    max-width: 700px;
    margin: 60px auto 0;
    background: var(--background);
    padding: 48px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.arch-layer {
    background: var(--background);
    padding: 32px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    position: relative;
}

.arch-layer:first-child {
    border-color: var(--primary);
}

.arch-layer h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 600;
}

.arch-components {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.arch-components span {
    background: var(--gray-light);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.arch-arrow {
    text-align: center;
    font-size: 20px;
    color: var(--primary);
    margin: 12px 0;
    position: relative;
}

.arch-arrow::before,
.arch-arrow::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 8px;
    background: var(--primary);
    left: 50%;
    transform: translateX(-50%);
}

.arch-arrow::before {
    top: -8px;
}

.arch-arrow::after {
    bottom: -8px;
}

/* Approach Section */
.approach-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 60px 0;
}

.approach-step {
    padding-right: 40px;
}

.approach-step h3 {
    color: var(--primary);
}

.approach-step p {
    color: var(--text-secondary);
}

/* Constraints */
.constraints {
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 40px;
    border-radius: 12px;
    margin-top: 80px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.constraints h3 {
    margin-bottom: 24px;
    color: #991b1b;
    font-size: 20px;
}

.constraints ul {
    list-style: none;
}

.constraints li {
    padding: 12px 0 12px 32px;
    border-bottom: 1px solid #fecaca;
    color: #7f1d1d;
    position: relative;
}

.constraints li:before {
    content: "×";
    position: absolute;
    left: 0;
    font-size: 24px;
    font-weight: 300;
    color: #dc2626;
}

.constraints li:last-child {
    border-bottom: none;
}

/* Research Section */
.research {
    padding: 140px 0;
    background: var(--gradient-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.research::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, var(--quantum) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, var(--primary-dark) 0%, transparent 40%);
    opacity: 0.15;
    animation: rotate 30s linear infinite;
    filter: blur(40px);
}

.research h2 {
    color: white;
    margin-bottom: 60px;
    text-shadow: 0 0 40px rgba(6, 182, 212, 0.5);
}

.research-areas {
    display: grid;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.research-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    padding: 56px;
    border-radius: 28px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.research-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.research-card.featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 2px solid rgba(6, 182, 212, 0.3);
    box-shadow: 0 0 60px rgba(6, 182, 212, 0.2);
}

.research-card h3 {
    margin-bottom: 32px;
}

.research-card h3 {
    color: white;
    font-size: 32px;
    line-height: 1.3;
}


.research-visual {
    margin: 32px 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 24px;
    overflow: hidden;
}

.pki-diagram {
    width: 100%;
    height: auto;
}

.pki-diagram text {
    font-family: var(--font-main);
    fill: white;
}

.diagram-title {
    font-size: 16px;
    font-weight: 600;
}

.state-label {
    font-size: 12px;
    font-weight: 500;
    fill: rgba(255, 255, 255, 0.8);
}

.cert-text {
    font-size: 11px;
    fill: var(--text-primary);
}

.ai-label {
    font-size: 12px;
    font-weight: 600;
    fill: var(--primary-light);
}

.research-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.research-goals h4 {
    color: white;
    font-size: 20px;
    margin-bottom: 16px;
}

.research-goals ul {
    list-style: none;
}

.research-goals li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    color: rgba(255, 255, 255, 0.8);
}

.research-goals li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-size: 20px;
}

.status {
    display: inline-block;
    background: var(--gray-light);
    color: var(--text-secondary);
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.optimization-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.opt-area {
    background: rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: var(--transition);
}

.opt-area:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.opt-area h4 {
    color: var(--primary-light);
    font-size: 16px;
    margin-bottom: 8px;
}

.opt-area p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
}

.impact-metrics {
    display: grid;
    gap: 16px;
    margin-top: 32px;
}

.impact {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.impact-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--background) 0%, var(--background-alt) 100%);
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    margin-bottom: 60px;
}

.contact-intro p {
    font-size: 22px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.contact-card {
    background: var(--background);
    padding: 48px;
    border-radius: 24px;
    border: 2px solid var(--border);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
}

.contact-card:first-child {
    background: linear-gradient(135deg, var(--background) 0%, #f0f9ff 100%);
    border-color: var(--primary-light);
    position: relative;
    overflow: hidden;
}

.contact-card:first-child::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    opacity: 0.1;
    animation: pulse 4s ease-in-out infinite;
}

.contact-card:last-child {
    background: linear-gradient(135deg, var(--background) 0%, #f0fdfa 100%);
    border-color: var(--quantum);
    position: relative;
    overflow: hidden;
}

.contact-card:last-child::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--quantum) 0%, transparent 70%);
    opacity: 0.1;
    animation: pulse 4s ease-in-out infinite 2s;
}

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

.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-xl);
}

.contact-card h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.contact-card li {
    padding: 8px 0;
    color: var(--text-secondary);
    padding-left: 24px;
    position: relative;
}

.contact-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.btn-secondary {
    background: var(--background);
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.contact-info {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.contact-info p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.contact-info a {
    color: var(--primary);
    font-weight: 500;
}

.contact-details {
    display: flex;
    gap: 40px;
    margin: 40px 0;
}

.detail strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.detail a {
    color: var(--primary);
}

/* Next Steps */
.next-steps {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.next-steps h3 {
    margin-bottom: 24px;
}

.next-steps ol {
    list-style: none;
    counter-reset: steps;
}

.next-steps li {
    counter-increment: steps;
    padding: 16px 0;
    position: relative;
    padding-left: 40px;
    color: var(--text-secondary);
}

.next-steps li:before {
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 18px;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 100px 0 20px;
    position: relative;
    overflow: hidden;
    margin-top: 120px;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-light) 50%, transparent 100%);
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.footer-company h3 {
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 600;
    color: white;
}

.footer-company p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: white;
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    opacity: 0.6;
}

.footer-bottom p {
    margin: 0;
}

/* Scroll Animations */
@media (prefers-reduced-motion: no-preference) {
    .animate-on-scroll {
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    
    .animate-on-scroll.animate-in {
        animation: fadeInUp 0.8s ease-out forwards;
    }
}

/* Ensure all content is visible by default */
.service-card,
.process-step,
.research-card,
.contact-card,
.capability-item {
    opacity: 1 !important;
    transform: none !important;
}

/* Staggered animations for lists */
@media (prefers-reduced-motion: no-preference) {
    .service-card:nth-child(1) { animation-delay: 0.1s; }
    .service-card:nth-child(2) { animation-delay: 0.2s; }
    .service-card:nth-child(3) { animation-delay: 0.3s; }
    
    .process-step:nth-child(1) { animation-delay: 0.1s; }
    .process-step:nth-child(2) { animation-delay: 0.2s; }
    .process-step:nth-child(3) { animation-delay: 0.3s; }
    .process-step:nth-child(4) { animation-delay: 0.4s; }
}

/* Navbar scroll effects */
.navbar {
    transition: all 0.3s ease;
}

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-hidden {
    transform: translateY(-100%);
}

/* Button loading state */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    position: absolute;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span:nth-child(1) { top: 8px; }
.mobile-menu-toggle span:nth-child(2) { top: 14px; }
.mobile-menu-toggle span:nth-child(3) { top: 20px; }

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-metrics,
    .capability-grid,
    .approach-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .research-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: var(--background);
        box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        padding: 40px 24px;
        overflow-y: auto;
    }
    
    .nav-menu.mobile-active {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 24px;
    }
    
    .nav-link {
        display: block;
        padding: 12px 0;
        font-size: 18px;
        border-bottom: 1px solid var(--border);
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    section {
        padding: 80px 0;
    }
    
    .hero {
        padding-top: 120px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .contact-details {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-main {
        flex-direction: column;
        gap: 32px;
    }
    
    .footer-links {
        flex-wrap: wrap;
    }
}

/* Fix for contact card buttons during animation */
.contact-card .btn {
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
}

/* Align contact cards and buttons */
.contact-options {
    display: flex;
    gap: 32px;
    align-items: stretch;
}

.contact-card {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.contact-card ul {
    flex-grow: 1;
    margin-bottom: 24px;
}

.contact-card .btn {
    margin-top: auto;
}

/* Ensure contact cards remain interactive during animation */
.contact-card.fade-in {
    opacity: 1;
    transform: none;
    animation: fadeInSubtle 0.6s ease-out forwards;
}

@keyframes fadeInSubtle {
    from {
        opacity: 0.8;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Adjust font sizes for research section */
.research h2 {
    font-size: 2.25rem;  /* Keep section title normal size */
    margin-bottom: 2rem;
}

.research-card h3 {
    font-size: 1.5rem;  /* Slightly reduced title size */
    margin-bottom: 1.5rem;
    text-align: center;  /* Center the title */
}

.research-card p {
    font-size: 1.1rem;  /* Slightly increased body text size */
    line-height: 1.7;
}

.research-goals h4 {
    font-size: 1.3rem;  /* Slightly increased heading size */
    margin-bottom: 0.75rem;
}

.research-goals ul {
    font-size: 1.05rem;  /* Slightly increased list size */
    line-height: 1.7;
}

/* SVG diagram text sizing - make these smaller */
.pki-diagram text {
    font-size: 10px;
}

.pki-diagram .diagram-title {
    font-size: 12px;
    font-weight: 600;
}

.pki-diagram .state-label {
    font-size: 11px;
    font-weight: 500;
}

.pki-diagram .cert-text,
.pki-diagram .ai-text {
    font-size: 9px;
}

/* Make the diagram more compact */
.pki-diagram {
    max-width: 100%;
    height: auto;
}
