/* ================================================
   NEXORA Global Limited - Corporate Website Styles
   Brand-compliant, Enterprise-grade Design
   ================================================ */

/* ----- CSS Variables (Brand Colors) ----- */
:root {
    --primary-navy: #071B3A;
    --primary-blue: #1F8ED4;
    --accent-cyan: #2FB4E9;
    --accent-gold: #F2A93B;
    --white: #FFFFFF;
    --light-gray: #E6EBF2;
    --muted-text: #6B7A90;
    --dark-text: #1C2B4A;
    
    /* Gradients */
    --hero-gradient: linear-gradient(180deg, #071B3A 0%, #0A2550 100%);
    --accent-gradient: linear-gradient(135deg, #1F8ED4 0%, #2FB4E9 100%);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --section-padding-mobile: 60px 0;
    
    /* Transitions */
    --transition-smooth: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* ----- Reset & Base ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark-text);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark-text);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--muted-text);
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--accent-cyan);
}

img {
    max-width: 100%;
    height: auto;
}

/* ----- Utility Classes ----- */
.text-white { color: var(--white) !important; }
.text-navy { color: var(--primary-navy) !important; }
.text-blue { color: var(--primary-blue) !important; }
.text-gold { color: var(--accent-gold) !important; }
.text-muted { color: var(--muted-text) !important; }

.bg-navy { background-color: var(--primary-navy) !important; }
.bg-light { background-color: var(--light-gray) !important; }
.bg-white { background-color: var(--white) !important; }
.bg-gradient-hero { background: var(--hero-gradient) !important; }

.section-padding {
    padding: var(--section-padding);
}

/* ----- Navigation ----- */
.navbar {
    padding: 1rem 0;
    transition: var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: var(--primary-navy);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    padding: 0.75rem 0;
}

.navbar-brand {
    padding: 0;
}

.navbar-logo {
    height: 45px;
    width: auto;
    transition: var(--transition-smooth);
}

.navbar.scrolled .navbar-logo {
    height: 38px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: var(--transition-smooth);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--white) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--accent-cyan);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ----- Buttons ----- */
.btn {
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-cyan);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(31, 142, 212, 0.35);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-navy);
    border-color: var(--white);
}

.btn-gold {
    background: var(--accent-gold);
    color: var(--primary-navy);
}

.btn-gold:hover {
    background: #e09a2f;
    color: var(--primary-navy);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* ----- Hero Section ----- */
.hero {
    background: var(--hero-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/images/grid-pattern.svg') repeat;
    opacity: 0.03;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.hero h1 span {
    color: var(--accent-cyan);
}

.hero .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero .description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ----- Trust Indicators Strip ----- */
.trust-strip {
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
}

.trust-item {
    text-align: center;
    padding: 1rem;
}

.trust-item .number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-cyan);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.trust-item .label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ----- Section Titles ----- */
.section-title {
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    margin-top: 1rem;
    border-radius: 2px;
}

.section-title.text-center h2::after {
    margin-left: auto;
    margin-right: auto;
}

.section-title p {
    font-size: 1.1rem;
    max-width: 700px;
}

.section-title.text-center p {
    margin-left: auto;
    margin-right: auto;
}

/* ----- Capability Cards ----- */
.capability-card {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--light-gray);
    transition: var(--transition-smooth);
}

.capability-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(7, 27, 58, 0.12);
    border-color: var(--primary-blue);
}

.capability-card .icon {
    width: 60px;
    height: 60px;
    background: var(--hero-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.capability-card .icon i {
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

.capability-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--primary-navy);
}

.capability-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: var(--muted-text);
}

/* ----- Service Cards ----- */
.service-card {
    background: var(--white);
    border-radius: 8px;
    padding: 2.5rem;
    height: 100%;
    border: 1px solid var(--light-gray);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(7, 27, 58, 0.15);
}

.service-card .icon {
    width: 70px;
    height: 70px;
    background: var(--light-gray);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.service-card:hover .icon {
    background: var(--hero-gradient);
}

.service-card .icon i {
    font-size: 1.75rem;
    color: var(--primary-blue);
    transition: var(--transition-smooth);
}

.service-card:hover .icon i {
    color: var(--accent-cyan);
}

.service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-navy);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--muted-text);
    margin-bottom: 1.5rem;
}

.service-card .learn-more {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-card .learn-more:hover {
    color: var(--accent-cyan);
    gap: 0.75rem;
}

/* ----- Industry Cards ----- */
.industry-card {
    background: var(--hero-gradient);
    border-radius: 8px;
    padding: 2rem;
    height: 100%;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(7, 27, 58, 0.4);
    border-color: var(--accent-cyan);
}

.industry-card .icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.industry-card .icon i {
    font-size: 2rem;
    color: var(--accent-cyan);
}

.industry-card h4 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.industry-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ----- Metrics Section ----- */
.metrics-section {
    background: var(--hero-gradient);
    padding: var(--section-padding);
}

.metric-item {
    text-align: center;
    padding: 2rem;
}

.metric-item .number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-item .number span {
    color: var(--accent-cyan);
}

.metric-item .label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 500;
}

/* ----- CTA Section ----- */
.cta-section {
    background: var(--hero-gradient);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ----- Page Header ----- */
.page-header {
    background: var(--hero-gradient);
    padding: 160px 0 80px;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/images/grid-pattern.svg') repeat;
    opacity: 0.03;
}

.page-header h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0;
}

.page-header.text-center p {
    margin-left: auto;
    margin-right: auto;
}

/* ----- About Section ----- */
.about-content h3 {
    color: var(--primary-navy);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-content p {
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-feature {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.about-feature .icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--light-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-feature .icon i {
    color: var(--primary-blue);
    font-size: 1.25rem;
}

.about-feature h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--primary-navy);
}

.about-feature p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ----- Experience Timeline ----- */
.experience-item {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-blue);
    box-shadow: 0 5px 20px rgba(7, 27, 58, 0.08);
}

.experience-item h4 {
    color: var(--primary-navy);
    margin-bottom: 0.75rem;
}

.experience-item p {
    margin-bottom: 0;
}

/* ----- Governance Cards ----- */
.governance-card {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem;
    height: 100%;
    text-align: center;
    border: 1px solid var(--light-gray);
    transition: var(--transition-smooth);
}

.governance-card:hover {
    box-shadow: 0 15px 40px rgba(7, 27, 58, 0.1);
}

.governance-card .icon {
    width: 70px;
    height: 70px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.governance-card .icon i {
    font-size: 1.75rem;
    color: var(--primary-blue);
}

.governance-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--primary-navy);
}

.governance-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ----- Partner Section ----- */
.partner-model {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.partner-model h4 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.partner-model ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.partner-model ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--muted-text);
}

.partner-model ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: 700;
}

/* ----- Contact Form ----- */
.contact-form {
    background: var(--white);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(7, 27, 58, 0.1);
}

.contact-form h3 {
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    padding: 0.875rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(31, 142, 212, 0.15);
    outline: none;
}

.form-select {
    padding: 0.875rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}

.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(31, 142, 212, 0.15);
    outline: none;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ----- Contact Info ----- */
.contact-info {
    background: var(--hero-gradient);
    border-radius: 12px;
    padding: 3rem;
    height: 100%;
}

.contact-info h3 {
    color: var(--white);
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-item .icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-item .icon i {
    color: var(--accent-cyan);
    font-size: 1.25rem;
}

.contact-info-item h5 {
    color: var(--white);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contact-info-item p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ----- Footer ----- */
.footer {
    background: var(--primary-navy);
    padding-top: 80px;
}

.footer-main {
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: block;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 50px;
    width: auto;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.footer h5 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent-cyan);
    padding-left: 5px;
}

.footer-bottom {
    padding: 1.5rem 0;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

/* ----- Animations ----- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: var(--transition-slow);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: var(--transition-slow);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ----- Mobile Responsive ----- */
@media (max-width: 991.98px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .section-padding {
        padding: var(--section-padding-mobile);
    }
    
    .hero {
        min-height: auto;
        padding: 140px 0 80px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .lead {
        font-size: 1.15rem;
    }
    
    .navbar-collapse {
        background: var(--primary-navy);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 8px;
    }
    
    .page-header {
        padding: 140px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2.25rem;
    }
    
    .contact-form,
    .contact-info {
        padding: 2rem;
    }
}

@media (max-width: 767.98px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .trust-item .number {
        font-size: 1.5rem;
    }
    
    .metric-item .number {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .capability-card,
    .service-card {
        padding: 1.5rem;
    }
    
    .cta-section h2 {
        font-size: 1.75rem;
    }
    
    .cta-section .btn-group {
        flex-direction: column;
    }
    
    .cta-section .btn-group .btn {
        width: 100%;
    }
}

/* ----- Sticky Mobile CTA ----- */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-navy);
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.mobile-sticky-cta .btn {
    width: 100%;
}

@media (max-width: 767.98px) {
    .mobile-sticky-cta {
        display: block;
    }
    
    body {
        padding-bottom: 80px;
    }
}

/* ----- Loading Animation ----- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-navy);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
