:root {
    --primary: #0b0f2e;
    --secondary: #1a1f4e;
    --accent: #00c7ff;
    --accent-light: #6ae2ff;
    --text: #e6f1ff;
    --text-light: #a0b8e0;
    --card-bg: rgba(15, 22, 56, 0.7);
    --border: rgba(0, 199, 255, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    background: linear-gradient(to right, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 5px 15px rgba(0, 199, 255, 0.2);
}

h2 {
    font-size: 2.5rem;
    color: var(--accent);
    position: relative;
    display: inline-block;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 70px;
    height: 3px;
    background: linear-gradient(to right, var(--accent), transparent);
}

h3 {
    font-size: 1.8rem;
    color: var(--accent-light);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    background: linear-gradient(to right, var(--accent), var(--secondary));
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 199, 255, 0.3);
    text-align: center;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 199, 255, 0.4);
}

.highlight {
    color: var(--accent);
    font-weight: 700;
}

/* Header with Background Image */
.space-header {
    padding: 60px 0;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-top: 80px;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1627398242454-45a1465c2479?ixlib=rb-4.0.3&auto=format&fit=crop&w=2074&q=80');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(11, 15, 46, 0.85) 0%, rgba(11, 15, 46, 0.7) 50%, rgba(11, 15, 46, 0.3) 100%);
    z-index: 2;
}

.header-content {
    position: relative;
    z-index: 10;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 199, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(11, 15, 46, 0.6);
    backdrop-filter: blur(10px);
}

.header-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
}

/* Sections */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    color: black;
    display: inline-block;
}

.section-title p {
    max-width: 700px;
    margin: 20px auto 0;
    color: black;
}

/* Strategic Imperative Section */
.strategic-imperative {
    background-color: rgb(231 231 231 / 90%);
    position: relative;
}

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

.imperative-text {
    text-align: justify;
    padding-right: 40px;
}

.imperative-visual:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(5, 95, 120, 0.7);
    border-color: var(--accent);
}

.imperative-visual {
    background-color: rgba(15, 22, 56, 1);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.our-approach p {
    color: var(--text-light);
}

.our-approach h2 {
    color: var(--text-light);
}

.imperative-visual.our-approach {
    background-color: rgba(248, 249, 250, 0.8);
    color: black;
    padding-left: 70px;
}

.header-change h3,
.header-change p {
    color: black;
}

/* AI Flow Styling */
.ai-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 70px;
    flex-wrap: wrap;
}

.flow-step {
    text-align: center;
    position: relative;
    flex: 1;
    min-width: 120px;
}

.flow-step i {
    font-size: 2rem;
    color: var(--accent);
    background-color: rgba(0, 199, 255, 0.1);
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    margin-bottom: 15px;
    display: inline-block;
    transition: all 0.3s ease;
}

.flow-step p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.flow-connector {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(to right, var(--accent), transparent);
    margin: 0 10px;
    min-width: 20px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: rgba(15, 22, 56, 1);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(5, 95, 120, 0.7);
    border-color: var(--accent);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-feature-list {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.service-feature-list li {
    padding-left: 25px;
    margin-bottom: 10px;
    position: relative;
    color: var(--text-light);
    font-size: 1rem;
}

.service-feature-list li:before {
    content: "·";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 2rem;
    line-height: 1;
    font-weight: bold;
}

/* Differentiation Section */
.differentiation {
    background-color: var(--secondary);
}

.differentiate p,
.differentiate h2 {
    color: white;
}

.diff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.diff-item {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    border-left: 4px solid var(--accent);
}

.diff-item h3 {
    margin-bottom: 15px;
}

/* RESPONSIVE MEDIA QUERIES */

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .header-content {
        padding: 35px;
    }
    
    .imperative-visual.our-approach {
        padding-left: 60px;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.6rem;
    }
    
    .space-header {
        padding: 40px 0;
        min-height: 80vh;
    }
    
    .header-content {
        padding: 30px;
        margin: 0 15px;
    }
    
    .imperative-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .imperative-text {
        padding-right: 0;
        padding-left: 0;
    }
    
    .imperative-visual.our-approach {
        padding-left: 50px;
        padding-right: 50px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .diff-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .ai-flow {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 20px;
        margin-top: 50px;
    }
    
    .flow-step {
        min-width: 140px;
    }
    
    .flow-step i {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 1.5rem;
    }
    
    .flow-connector {
        min-width: 30px;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    section {
        padding: 60px 0;
    }
    
    .container {
        max-width: 540px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h2:after {
        width: 60px;
        bottom: -8px;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    .header-content {
        padding: 25px 20px;
        margin: 0 10px;
    }
    
    .header-content p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 1rem;
        display: block;
        width: fit-content;
        margin: 0 auto;
        min-height: 44px;
    }
    
    .ai-flow {
        flex-direction: column;
        gap: 30px;
        margin-top: 40px;
    }
    
    .flow-connector {
        width: 2px;
        height: 30px;
        margin: 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .diff-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card,
    .diff-item {
        padding: 25px;
    }
    
    .service-icon {
        font-size: 2rem;
    }
    
    .imperative-visual {
        padding: 30px 25px;
    }
    
    .imperative-visual.our-approach {
        padding: 30px 25px;
    }
    
    .flow-step {
        min-width: 120px;
    }
    
    .flow-step i {
        width: 60px;
        height: 60px;
        line-height: 60px;
    }
    
    .service-feature-list li {
        font-size: 0.95rem;
        padding-left: 22px;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    section {
        padding: 50px 0;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h2:after {
        width: 50px;
        bottom: -6px;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .header-content {
        padding: 20px 15px;
    }
    
    .header-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 300px;
    }
    
    .imperative-visual {
        padding: 25px 20px;
    }
    
    .service-card,
    .diff-item {
        padding: 20px;
    }
    
    .ai-flow {
        gap: 20px;
    }
    
    .flow-step {
        min-width: 100px;
    }
    
    .flow-step i {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 1.3rem;
    }
    
    .flow-step p {
        font-size: 0.85rem;
    }
    
    .imperative-visual.our-approach {
        padding: 25px 20px;
    }
    
    .service-feature-list li {
        font-size: 0.9rem;
        padding-left: 20px;
        margin-bottom: 8px;
    }
}

/* Very small devices (less than 400px) */
@media (max-width: 399.98px) {
    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .header-content {
        padding: 15px 10px;
        margin: 0 5px;
    }
    
    .ai-flow {
        gap: 15px;
    }
    
    .flow-step {
        min-width: 90px;
    }
    
    .flow-step i {
        width: 45px;
        height: 45px;
        line-height: 45px;
        font-size: 1.1rem;
    }
    
    .imperative-visual {
        padding: 20px 15px;
    }
    
    .service-card,
    .diff-item {
        padding: 15px;
    }
    
    .services-grid {
        gap: 15px;
    }
    
    .service-feature-list li {
        padding-left: 18px;
        font-size: 0.85rem;
    }
}

/* Fix for header overlapping on mobile */
@media (max-width: 768px) {
    .space-header {
        margin-top: 70px;
        min-height: 80vh;
    }
    
    .header-content {
        margin-top: 0;
    }
}

/* Ensure content doesn't hide behind fixed header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* Fix for header positioning */
@media (min-width: 769px) {
    .space-header {
        margin-top: 80px;
    }
}

/* Smooth scrolling fix for fixed header */
html {
    scroll-padding-top: 80px;
}

/* Mobile touch improvements */
@media (max-width: 768px) {
    .btn,
    .service-card,
    .diff-item {
        touch-action: manipulation;
    }
    
    .service-card h3,
    .diff-item h3 {
        font-size: 1.2rem;
    }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
.imperative-text p {
    color: black;
}
.our-approach p {
    color: var(--text-light);
}