/* CSS Variables */
:root {
    --primary: #0066cc;
    --primary-dark: #0052a3;
    --secondary: #1a1a2e;
    --accent: #00b4d8;
    --text: #2d3748;
    --text-light: #718096;
    --text-dark: #1a202c;
    --bg: #ffffff;
    --bg-light: #f7fafc;
    --bg-dark: #1a1a2e;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--bg);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-nav {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-apex {
    color: var(--secondary);
}

.logo-grid {
    color: var(--primary);
}

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

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--secondary);
    transition: 0.2s;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(0, 102, 204, 0.7) 100%);
}

.hero-content {
    max-width: 800px;
    color: white;
}

.hero h1 {
    color: white;
    margin-bottom: 24px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero .btn-secondary {
    background: transparent;
    border-color: rgba(255,255,255,0.4);
    color: white;
}

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

/* About Section */
.about {
    padding: 100px 0;
}

.about-header {
    margin-bottom: 60px;
}

.about-header h2 {
    margin-bottom: 16px;
}

.about-lead {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 500;
}

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

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

.about-domains {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.domain {
    padding: 20px 24px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.domain h4 {
    margin-bottom: 8px;
    color: var(--text-dark);
}

.domain p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-images img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-img-1 {
    transform: translateY(40px);
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background: var(--bg-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: clamp(3rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    line-height: 1;
}

.stat-label {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    margin-top: 8px;
    display: block;
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-top: 16px;
}

.section-label {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 30px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Products Section */
.products {
    padding: 100px 0;
    background: var(--bg-light);
}

.product-hero {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    margin-bottom: 40px;
}

.product-hero img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.product-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 60px;
}

.product-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.feature-content {
    padding: 28px;
}

.feature-content h3 {
    margin-bottom: 12px;
}

.feature-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.product-cta {
    text-align: center;
}

/* Capabilities Section */
.capabilities {
    padding: 100px 0;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.capability-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.capability-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.capability-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 250px;
}

.capability-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.capability-content h3 {
    margin-bottom: 12px;
}

.capability-content > p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.capability-stat {
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.capability-stat .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.capability-stat .stat-desc {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Technology Section */
.technology {
    padding: 60px 0;
    background: var(--bg-light);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tech-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.tech-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.tech-card:hover img {
    transform: scale(1.1);
}

.tech-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.tech-overlay h3 {
    color: white;
    font-size: 1.2rem;
}

/* Industries Section */
.industries {
    padding: 100px 0;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.industry-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.industry-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.industry-card:hover img {
    transform: scale(1.1);
}

.industry-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 102, 204, 0.9) 0%, rgba(0, 102, 204, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    color: white;
}

.industry-overlay h3 {
    color: white;
    margin-bottom: 8px;
}

.industry-overlay p {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Success Story Section */
.success-story {
    padding: 100px 0;
    background: var(--bg-light);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.story-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

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

.story-label {
    display: inline-block;
    padding: 8px 20px;
    background: var(--accent);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 30px;
    margin-bottom: 24px;
}

.success-story blockquote {
    font-size: 1.5rem;
    color: var(--text-dark);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 24px;
    position: relative;
    padding-left: 24px;
    border-left: 4px solid var(--primary);
}

.story-author {
    margin-bottom: 40px;
}

.story-author strong {
    display: block;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.story-author span {
    color: var(--text-light);
}

.story-metrics {
    display: flex;
    gap: 48px;
}

.story-metric {
    text-align: left;
}

.story-metric .metric-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.story-metric .metric-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 8px;
}

/* Leadership Section */
.leadership {
    padding: 100px 0;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.leader-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.leader-info {
    padding: 40px 32px;
    text-align: center;
}

.leader-info h3 {
    margin-bottom: 4px;
}

.leader-title {
    display: block;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 16px;
}

.leader-info p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* CTA Section */
.cta {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(0, 102, 204, 0.85) 100%);
}

.cta-content {
    text-align: center;
    color: white;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    margin-bottom: 16px;
}

.cta-content > p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 24px;
}

.cta-offer {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    padding: 20px 28px;
    margin-bottom: 32px;
    display: inline-block;
}

.cta-badge {
    background: var(--accent);
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 8px;
}

.cta-offer-text {
    font-size: 1.1rem;
    opacity: 1;
    margin: 0;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

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

.contact-info h2 {
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: var(--radius);
    color: var(--primary);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 4px;
}

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

.contact-form {
    background: var(--bg-light);
    padding: 48px;
    border-radius: var(--radius-xl);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232d3748' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 48px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

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

/* Footer */
.footer {
    background: var(--bg-dark);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    margin-top: 20px;
    max-width: 300px;
    line-height: 1.7;
}

.footer-brand .logo {
    display: inline-block;
}

.footer-links h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 24px;
}

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

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

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

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

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

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

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

.footer-legal a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-images {
        order: -1;
    }

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

    .capability-card {
        grid-template-columns: 1fr 1.5fr;
    }

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

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

    .story-image {
        max-width: 500px;
        margin: 0 auto;
    }

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

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

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

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .capability-card {
        grid-template-columns: 1fr;
    }

    .capability-image {
        height: 200px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .story-metrics {
        flex-wrap: wrap;
        gap: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .industries-grid,
    .tech-grid,
    .leadership-grid {
        grid-template-columns: 1fr;
    }

    .about-images {
        grid-template-columns: 1fr;
    }

    .about-img-1 {
        transform: none;
    }

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

    .hero-buttons .btn {
        width: 100%;
    }

    .contact-form {
        padding: 32px 24px;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .success-story blockquote {
        font-size: 1.15rem;
    }

    .story-metric .metric-value {
        font-size: 2rem;
    }
}

/* Animation classes */
.animate-ready {
    opacity: 0;
    transform: translateY(20px);
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* Reduce animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animate-ready {
        opacity: 1;
        transform: none;
    }

    .animate-in {
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }

    .tech-card img,
    .industry-card img {
        transition: none;
    }

    .tech-card:hover img,
    .industry-card:hover img {
        transform: none;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 48px;
        padding: 14px 28px;
    }

    .nav-links a {
        padding: 12px 0;
    }

    .feature-card:hover,
    .capability-card:hover,
    .leader-card:hover {
        transform: none;
    }

    .tech-card:hover img,
    .industry-card:hover img {
        transform: none;
    }
}

/* Improve text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* GPU acceleration for animations */
.feature-card,
.capability-card,
.leader-card,
.tech-card img,
.industry-card img {
    will-change: transform;
}

/* Prevent layout shift from images */
img {
    content-visibility: auto;
}

.hero-bg img,
.product-hero img,
.cta-bg img {
    object-fit: cover;
}

/* Ensure proper tap targets on mobile */
.footer-links a,
.footer-legal a {
    display: inline-block;
    padding: 8px 0;
}

/* Mobile menu animation */
.nav-links {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

@media (max-width: 768px) {
    .nav-links {
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
}
