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

:root {
    /* Brand palette */
    --primary-color: #004e7a;   /* deep blue */
    --secondary-color: #9bc3c2; /* light teal */
    --accent-color: #345e77;    /* blue-gray */

    /* Light theme surfaces */
    --dark-bg: #ffffff;         /* page background (repurposed var name) */
    --darker-bg: #f5f8fa;       /* light section background */

    /* Text colors (repurposed vars) */
    --light-text: #345e77;      /* main text color */
    --gray-text: #6f8896;       /* secondary text */

    --section-padding: 80px 0;
    --container-max-width: 1200px;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Lexend', sans-serif;
    line-height: 1.6;
    color: var(--light-text);
    background: var(--dark-bg);
    overflow-x: hidden;
}

h1, h2, h4, h5, h6 {
    font-family: 'M PLUS 1', sans-serif;
    color: var(--accent-color);
}

h3 {
    font-family: 'Martel Sans', sans-serif;
    color: var(--accent-color);
}

/* Accessibility utilities */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    position: fixed;
    left: 20px;
    top: 20px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 6px;
    z-index: 2000;
}
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Improve focus visibility */
*:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--gray-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: radial-gradient(ellipse at center, rgba(155, 195, 194, 0.25) 0%, var(--dark-bg) 70%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(52,94,119,0.08)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-text);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.4);
}

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

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

/* Quantum Animation */
.hero-visual {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.quantum-animation {
    width: 100%;
    height: 100%;
    position: relative;
}

#waveCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Section Styles */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray-text);
    max-width: 600px;
    margin: 0 auto;
}

/* Technology Section */
.technology {
    background: var(--darker-bg);
    position: relative;
}

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

.tech-card {
    background: #ffffff;
    border: 1px solid rgba(0, 78, 122, 0.12);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    transition: var(--transition);
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.tech-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.tech-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--accent-color);
}

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

/* Applications Section */
.applications-grid {
    display: grid;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.app-item {
    background: #ffffff;
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid rgba(0, 78, 122, 0.12);
    border-left: 4px solid var(--primary-color);
}

.app-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.app-item p {
    color: var(--gray-text);
    margin-bottom: 20px;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: width 1s ease-in-out;
}

/* Stats Section */
.stats {
    background: var(--darker-bg);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--gray-text);
    font-weight: 500;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.team-member {
    text-align: center;
    background: #ffffff;
    border: 1px solid rgba(0, 78, 122, 0.12);
    border-radius: var(--border-radius);
    padding: 40px;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ffffff;
}

.team-member h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.member-role {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.member-bio {
    color: var(--gray-text);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: var(--darker-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 30px;
}

.contact-details {
    space-y: 15px;
}

.contact-item {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--gray-text);
}

.contact-item strong {
    color: var(--light-text);
}

.contact-form {
    background: #ffffff;
    border-radius: var(--border-radius);
    padding: 40px;
    border: 1px solid rgba(0, 78, 122, 0.12);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: #f8fbfc;
    border: 1px solid rgba(0, 78, 122, 0.2);
    border-radius: 8px;
    color: var(--light-text);
    font-family: inherit;
    font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--gray-text);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #ffffff;
}

.contact-form iframe {
    width: 100%;
    border: none;
    border-radius: 8px;
    min-height: 600px;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 60px 0 30px;
}

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

.footer-brand h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.footer-brand p {
    color: var(--gray-text);
}

.footer-links h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent-color);
}

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

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

.footer-links a {
    color: var(--gray-text);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--gray-text);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .nav-menu {
        display: none;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
        height: 250px;
    }
    
    .quantum-animation {
        width: 100%;
        height: 100%;
    }

    .logo-img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    :root {
        --section-padding: 60px 0;
    }
    
    .tech-card,
    .team-member,
    .contact-form {
        padding: 30px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
}
