: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);
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
}

* {
    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);
}

.btn-success {
    background: linear-gradient(to right, var(--success), #20c997);
}

.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; /* Account for fixed header */
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../images/JPG/Cloudlightcorp-services-erp.webp);
    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;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--accent-light);
    margin-bottom: 30px;
    font-weight: 600;
}

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

.section-title h2 {
    color: var(--accent);
    display: inline-block;
}

.section-title p {
    max-width: 700px;
    margin: 20px auto 0;
    color: var(--text-light);
}

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

.strategic-imperative .section-title h2 {
    color: var(--primary);
}

.strategic-imperative .section-title p {
    color: #333;
}

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

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

.strategic-imperative .imperative-text p {
    color: #333;
}

.strategic-imperative .imperative-text ul {
    color: #333;
}

.imperative-visual:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(5, 95, 120, 0.5);
    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;
}

/* Framework Section Specific Styles */
#framework .section-title h2 {
    color: var(--primary);
}

#framework .section-title p {
    color: #555;
}

#framework .imperative-text {
    padding-left: 40px;
}

#framework .imperative-text h3 {
    color: var(--primary);
}

/* Pain Points List */
.pain-points-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.pain-points-list li {
    padding-left: 40px;
    margin-bottom: 15px;
    position: relative;
    color: orange;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 500;
}

.pain-points-list li:before {
    content: "✗";
    position: absolute;
    left: 0;
    color: orange;
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: bold;
}

/* 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.5);
    border-color: var(--accent);
}

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

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

/* Framework List Styling */
.framework-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.framework-list li {
    padding-left: 30px;
    margin-bottom: 15px;
    position: relative;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
}

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

/* ERP Process Flow Styling */
.erp-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    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;
    font-weight: 600;
}

.flow-step .step-number {
    display: none;
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--accent);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 0.9rem;
    line-height: 30px;
    font-weight: bold;
}

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

/* 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;
}

/* Outcome Grid */
.outcome-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.outcome-item {
    background: rgba(0, 199, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(0, 199, 255, 0.2);
    transition: transform 0.3s;
}

.outcome-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 199, 255, 0.2);
}

.outcome-number {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
    line-height: 1;
}

.outcome-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Platform Grid */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.platform-item {
    background: rgba(15, 22, 56, 1);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.3s;
}

.platform-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.platform-item:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
}

/* Our Approach Section */
#approach {
    background-color: #1a1f4e;
}

/* Warning Box */
.warning-box {
    background: rgba(220 175 53 / 10%);
    border-left: 4px solid orange;
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 10px 10px 0;
}

.warning-box h4 {
    color: orange;
    margin-bottom: 15px;
}

/* Success Box */
.success-box {
    background: rgba(40, 167, 69, 0.1);
    border-left: 4px solid var(--success);
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 10px 10px 0;
}

.success-box h4 {
    color: var(--success);
    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;
    }
}

/* 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;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .imperative-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .imperative-text {
        padding-right: 0;
        padding-left: 0;
    }
    
    #framework .imperative-text {
        padding-left: 0;
    }
    
    .services-grid,
    .diff-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .erp-flow {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }
    
    .flow-step {
        min-width: 140px;
    }
    
    .flow-step i {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 1.5rem;
    }
    
    .flow-connector {
        min-width: 30px;
    }
    
    #approach .imperative-text {
        padding-left: 0;
    }
}

/* 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;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 1rem;
        display: block;
        width: fit-content;
        margin: 0 auto;
    }
    
    .services-grid,
    .diff-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card,
    .diff-item {
        padding: 25px;
    }
    
    .service-icon {
        font-size: 2rem;
    }
    
    .imperative-visual {
        padding: 30px 25px;
    }
    
    #framework .imperative-visual {
        padding: 30px 25px;
    }
    
    .erp-flow {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .flow-connector {
        display: none;
    }
    
    .flow-step {
        min-width: 120px;
        flex: 0 0 calc(50% - 15px);
        margin-bottom: 15px;
    }
    
    .flow-step i {
        width: 60px;
        height: 60px;
        line-height: 60px;
    }
    
    .outcome-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .platform-grid {
        grid-template-columns: 1fr;
    }
    
    .platform-item:nth-child(3) {
        max-width: 100%;
    }
    
    .warning-box,
    #approach .imperative-text > div {
        padding: 20px;
        margin: 25px 0;
    }
}

/* 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;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 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;
    }
    
    .framework-list li,
    .pain-points-list li {
        font-size: 1rem;
        padding-left: 25px;
        margin-bottom: 12px;
    }
    
    .pain-points-list li {
        padding-left: 35px;
    }
    
    .erp-flow {
        justify-content: center;
        gap: 20px;
    }
    
    .flow-step {
        flex: 0 0 100%;
        min-width: 100px;
    }
    
    .flow-step i {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 1.3rem;
    }
    
    .flow-step p {
        font-size: 0.85rem;
    }
    
    .outcome-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .outcome-number {
        font-size: 1.8rem;
    }
    
    .outcome-label {
        font-size: 0.9rem;
    }
    
    .warning-box,
    #approach .imperative-text > div {
        padding: 15px;
        margin: 20px 0;
    }
    
    #approach .imperative-visual,
    #approach .imperative-text {
        height: auto;
        margin-bottom: 30px;
    }
}

/* 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;
    }
    
    .erp-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;
    }
}

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

/* Print styles */
@media print {
    .space-header {
        min-height: auto;
        padding: 20px 0;
    }
    
    .bg-image,
    .bg-overlay {
        display: none;
    }
    
    .header-content {
        background: white;
        color: black;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    h1, h2, h3 {
        color: #000 !important;
        background: none !important;
        -webkit-background-clip: initial !important;
        background-clip: initial !important;
    }
    
    .btn {
        display: none;
    }
    
    section {
        padding: 30px 0;
        break-inside: avoid;
    }
}