/* EmbeddedOS.org - Linux Foundation Style Professional Design */

:root {
    --primary-dark: #0a0a0a;
    --primary-blue: #0066cc;
    --primary-light-blue: #0099ff;
    --accent-green: #00a86b;
    --accent-orange: #ff6b35;
    --white: #ffffff;
    --light-gray: #f7f8fa;
    --medium-gray: #e5e7eb;
    --dark-gray: #374151;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --gradient-hero: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    --gradient-blue: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.25);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

/* Top Bar */
.top-bar {
    background: var(--primary-dark);
    padding: 8px 0;
    font-size: 0.875rem;
}

.top-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.2s;
}

.top-bar a:hover {
    color: var(--white);
}

/* Navigation */
.navbar {
    background: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--medium-gray);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

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

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--primary-blue);
}

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

.nav-links > li {
    position: relative;
}

.nav-links > li > a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    display: block;
    transition: color 0.2s;
}

.nav-links > li > a:hover {
    color: var(--primary-blue);
}

.nav-cta {
    background: var(--primary-blue);
    color: var(--white) !important;
    border-radius: 6px;
    margin-left: 1rem;
}

.nav-cta:hover {
    background: var(--primary-light-blue);
    color: var(--white) !important;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 250px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    z-index: 100;
}

.nav-links > li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background: var(--light-gray);
    color: var(--primary-blue);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section - Linux Foundation Style */
.hero {
    background: var(--gradient-hero);
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    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(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    background-size: 100px 100px;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content h1 span {
    color: var(--primary-light-blue);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-light-blue);
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
}

.hero-visual {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.2) 0%, rgba(0, 153, 255, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

/* Buttons */
.btn {
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--primary-light-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

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

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

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

.btn-dark:hover {
    background: #1a1a1a;
}

.btn-success {
    background: var(--accent-green);
    color: var(--white);
}

.btn-success:hover {
    background: #00c77b;
}

/* Sections */
.section {
    padding: 100px 2rem;
}

.section-white {
    background: var(--white);
}

.section-gray {
    background: var(--light-gray);
}

.section-dark {
    background: var(--primary-dark);
    color: var(--white);
}

.section-dark h2, .section-dark h3 {
    color: var(--white);
}

.section-gradient {
    background: var(--gradient-hero);
    color: var(--white);
}

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

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

.section-header .overline {
    color: var(--primary-blue);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.section-dark .overline {
    color: var(--primary-light-blue);
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
}

.section-dark .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

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

.cards-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Card Styles */
.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    border: 1px solid var(--medium-gray);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-image {
    height: 200px;
    background: var(--gradient-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}

.card-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.card-content a.card-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.card-content a.card-link:hover {
    gap: 10px;
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid var(--medium-gray);
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--light-gray);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Membership Section */
.membership-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.membership-card {
    background: var(--white);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    border: 2px solid var(--medium-gray);
    transition: all 0.3s;
    position: relative;
}

.membership-card.featured {
    border-color: var(--primary-blue);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.membership-card.featured::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.membership-card:hover {
    border-color: var(--primary-blue);
}

.membership-icon {
    width: 80px;
    height: 80px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.membership-card.featured .membership-icon {
    background: var(--gradient-blue);
}

.membership-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.membership-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.membership-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.membership-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.membership-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--medium-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.membership-features li::before {
    content: '✓';
    color: var(--accent-green);
    font-weight: 700;
}

/* Certification Section */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.cert-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    border: 1px solid var(--medium-gray);
    transition: all 0.3s;
}

.cert-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.cert-badge {
    width: 80px;
    height: 80px;
    background: var(--gradient-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cert-badge img {
    width: 50px;
    height: 50px;
}

.cert-badge-icon {
    font-size: 2rem;
    color: white;
}

.cert-info h3 {
    margin-bottom: 0.5rem;
}

.cert-info p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.cert-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Neural Link Diagram */
.neural-diagram {
    background: var(--white);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.diagram-title {
    text-align: center;
    margin-bottom: 2rem;
}

.diagram-layers {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.diagram-layer {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
    background: var(--light-gray);
    border-left: 4px solid var(--primary-blue);
    transition: all 0.3s;
}

.diagram-layer:nth-child(odd) {
    background: var(--white);
}

.diagram-layer:hover {
    background: rgba(0, 102, 204, 0.05);
    border-left-color: var(--primary-light-blue);
}

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

.layer-content h4 {
    margin-bottom: 0.25rem;
}

.layer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Connection Flow */
.connection-flow {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    align-items: center;
    margin: 3rem 0;
}

.flow-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.flow-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin: 0 auto 1rem;
}

.flow-arrow {
    font-size: 2rem;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stats Bar */
.stats-bar {
    background: var(--primary-dark);
    padding: 60px 2rem;
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item-large {
    color: white;
}

.stat-item-large .number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-light-blue);
    margin-bottom: 0.5rem;
}

.stat-item-large .label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Logos Section */
.logos-section {
    background: var(--white);
    padding: 60px 2rem;
    border-top: 1px solid var(--medium-gray);
    border-bottom: 1px solid var(--medium-gray);
}

.logos-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.logo-item {
    opacity: 0.6;
    transition: opacity 0.3s;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-gray);
}

.logo-item:hover {
    opacity: 1;
}

/* Two Column Layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.two-col-content h2 {
    margin-bottom: 1.5rem;
}

.two-col-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.two-col-content ul {
    list-style: none;
    margin-bottom: 2rem;
}

.two-col-content ul li {
    padding: 0.5rem 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-dark);
}

.two-col-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: 700;
}

.two-col-image {
    background: var(--gradient-blue);
    border-radius: 16px;
    padding: 2rem;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.two-col-image img {
    width: 100%;
    border-radius: 8px;
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.data-table th,
.data-table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--medium-gray);
}

.data-table th {
    background: var(--primary-dark);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.data-table tr:hover {
    background: var(--light-gray);
}

.data-table td:first-child {
    font-weight: 600;
    color: var(--text-dark);
}

/* CTA Section */
.cta-section {
    background: var(--gradient-blue);
    padding: 80px 2rem;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 80px 2rem 40px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 3rem;
}

.footer-brand {
    padding-right: 2rem;
}

.footer-brand .logo-text {
    color: var(--white);
    margin-bottom: 1rem;
    display: block;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.2s;
}

.footer-social a:hover {
    background: var(--primary-blue);
}

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

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

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

.footer-column ul a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-column ul a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .cards-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .membership-tiers {
        grid-template-columns: repeat(2, 1fr);
    }

    .membership-card.featured {
        transform: none;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .connection-flow {
        grid-template-columns: 1fr;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section {
        padding: 60px 1rem;
    }

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

    .cards-grid-3, .cards-grid-4 {
        grid-template-columns: 1fr;
    }

    .membership-tiers {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        padding-right: 0;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .top-bar {
        display: none;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

/* Animation */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-blue {
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-blue);
}

.badge-green {
    background: rgba(0, 168, 107, 0.1);
    color: var(--accent-green);
}

.badge-orange {
    background: rgba(255, 107, 53, 0.1);
    color: var(--accent-orange);
}

/* Page Header - For Interior Pages */
.page-header {
    background: var(--gradient-hero);
    padding: 120px 2rem 80px;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    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(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    background-size: 100px 100px;
}

.page-header h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Research Content Layout */
.research-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 2rem 0;
}

.research-text h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-dark .research-text h3 {
    color: var(--white);
}

.research-text p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.section-dark .research-text p {
    color: rgba(255, 255, 255, 0.8);
}

.research-text ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.research-text ul li {
    padding: 0.5rem 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-dark);
}

.section-dark .research-text ul li {
    color: rgba(255, 255, 255, 0.9);
}

.research-text ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: 700;
}

.research-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* Architecture Diagram */
.architecture-diagram {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    margin: 2rem 0;
}

.section-dark .architecture-diagram {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.architecture-diagram h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.section-dark .architecture-diagram h3 {
    color: var(--white);
}

/* Layer Styles for Diagrams */
.layer {
    padding: 1.25rem 2rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: transform 0.2s;
}

.layer:hover {
    transform: scale(1.02);
}

.layer-application {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.layer-security {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.layer-ai {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.layer-middleware {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.layer-rtos {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.layer-hardware {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    color: white;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.section-white .feature-item,
.section-light .feature-item {
    background: var(--white);
    border: 1px solid var(--medium-gray);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-item .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    background: none;
    width: auto;
    height: auto;
}

.feature-item h3 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.section-dark .feature-item h3 {
    color: var(--white);
}

.feature-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.section-white .feature-item p,
.section-light .feature-item p {
    color: var(--text-muted);
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-table th,
.comparison-table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--medium-gray);
}

.comparison-table th {
    background: var(--primary-dark);
    color: var(--white);
    font-weight: 600;
}

.comparison-table tr:hover {
    background: var(--light-gray);
}

/* Positions List for Careers */
.positions-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.position-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
}

.section-white .position-card,
.section-light .position-card {
    background: var(--white);
    border: 1px solid var(--medium-gray);
}

.position-card:hover {
    transform: translateX(10px);
    border-left: 4px solid var(--primary-blue);
}

.position-card h3 {
    margin-bottom: 0.5rem;
}

.section-dark .position-card h3 {
    color: var(--white);
}

.position-card .type {
    color: var(--primary-light-blue);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.position-card p {
    color: rgba(255, 255, 255, 0.7);
}

.section-white .position-card p,
.section-light .position-card p {
    color: var(--text-muted);
}

/* Section Light (alias for section-white) */
.section-light {
    background: var(--white);
}

/* Section Title (alias for section-header) */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    margin-bottom: 1rem;
}

.section-dark .section-title h2 {
    color: var(--white);
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-dark .section-title p {
    color: rgba(255, 255, 255, 0.7);
}

/* Cards Grid for 2 columns */
.cards-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Application Form */
.application-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
}

.application-form h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--medium-gray);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    outline: none;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Responsive for new components */
@media (max-width: 992px) {
    .research-content {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 100px 1rem 60px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

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

    .cards-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ADDITIONAL FOUNDATION-LEVEL STYLES
   ============================================ */

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Margin utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

/* Gradient backgrounds for variety */
.gradient-purple { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.gradient-pink { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.gradient-cyan { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.gradient-green { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }

/* News article hover */
article:hover {
    transform: translateX(8px);
    transition: transform 0.3s ease;
}

/* Partner logo grid responsive */
@media (max-width: 992px) {
    .container > div[style*="grid-template-columns: repeat(6"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .container > div[style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 576px) {
    .container > div[style*="grid-template-columns: repeat(6"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Badge enhancements */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-blue {
    background: rgba(0, 102, 204, 0.15);
    color: #0066cc;
}

.badge-green {
    background: rgba(0, 168, 107, 0.15);
    color: #00a86b;
}

.badge-orange {
    background: rgba(255, 107, 53, 0.15);
    color: #ff6b35;
}

/* Card link styling */
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 1rem;
    transition: gap 0.3s ease;
}

.card-link:hover {
    gap: 0.75rem;
}

/* Testimonial cards animation */
.section-dark .cards-grid > div {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-dark .cards-grid > div:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Event cards hover */
div[style*="border: 2px solid var(--medium-gray)"]:hover {
    border-color: var(--primary-blue) !important;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

/* Feature card in get involved section */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

/* Logo items in partner section */
div[style*="background: var(--light-gray); border-radius: 12px; font-weight: 700"] {
    transition: all 0.3s ease;
}

div[style*="background: var(--light-gray); border-radius: 12px; font-weight: 700"]:hover {
    background: var(--primary-blue) !important;
    color: white !important;
    transform: scale(1.05);
}
