/* global.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
    --navy: #041E42;
    --navy-light: #0A2B5E;
    --orange: #D6681C;
    --charcoal: #2C3539;
    --grey-light: #F8F9FA;
    --grey-mid: #E0E4E8;
    --white: #FFFFFF;
    --trans: all 0.4s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background-color: var(--white); color: var(--charcoal); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4, .serif { font-family: 'Playfair Display', serif; color: var(--navy); }
a { text-decoration: none; color: inherit; transition: var(--trans); }
ul { list-style: none; }

/* Elegant Corporate Buttons */
.btn { padding: 14px 32px; font-weight: 600; cursor: pointer; transition: var(--trans); display: inline-block; text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; border: 1px solid transparent; border-radius: 2px; text-align: center; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--orange); color: var(--white); box-shadow: 0 4px 15px rgba(214, 104, 28, 0.3); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* Sleek Header */
header { display: flex; justify-content: space-between; align-items: center; padding: 0 5%; background: var(--white); border-bottom: 1px solid var(--grey-mid); position: sticky; top: 0; z-index: 1000; height: 90px; }
.logo-container { display: flex; align-items: center; gap: 15px; cursor: pointer; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text .rmi { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 700; color: var(--navy); letter-spacing: 1px; }
.logo-text .global { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; color: var(--orange); letter-spacing: 5px; margin-top: 4px; }

/* Desktop Navigation */
.desktop-nav { display: flex; align-items: center; gap: 40px; height: 100%; }
.desktop-nav ul { display: flex; gap: 30px; height: 100%; }
.desktop-nav li { height: 100%; display: flex; align-items: center; }
.desktop-nav a { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--charcoal); position: relative; height: 100%; display: flex; align-items: center; }
.desktop-nav a::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 0; height: 2px; background: var(--orange); transition: var(--trans); }
.desktop-nav a:hover::after, .desktop-nav a.active::after { width: 100%; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--navy); }

/* Refined Portal Login Button */
.login-btn { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--navy); border: 1px solid var(--grey-mid); padding: 10px 24px; border-radius: 4px; transition: var(--trans); display: flex; align-items: center; gap: 8px; background: transparent; }
.login-btn:hover { border-color: var(--orange); color: var(--orange); background: transparent; }

/* Clean Region Dropdown */
.region-dropdown { position: relative; height: 100%; display: flex; align-items: center; cursor: pointer; }
.region-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.region-menu { position: absolute; top: 90px; right: 0; background: var(--white); border: 1px solid var(--grey-mid); width: 220px; opacity: 0; visibility: hidden; transition: var(--trans); transform: translateY(10px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.region-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }
.region-menu a { display: block; padding: 15px 20px; font-size: 13px; font-weight: 400; border-bottom: 1px solid var(--grey-mid); color: var(--charcoal); }
.region-menu a:hover { background: var(--grey-light); color: var(--orange); padding-left: 25px; }

/* Mobile Menu */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 2001; }
.hamburger span { width: 28px; height: 2px; background: var(--navy); transition: var(--trans); }
.mobile-nav { position: fixed; top: 0; right: -100%; width: 400px; max-width: 100%; height: 100vh; background: var(--white); z-index: 2000; padding: 100px 5% 40px; transition: right 0.4s ease; border-left: 1px solid var(--grey-mid); overflow-y: auto; }
.mobile-nav.open { right: 0; }

.close-mobile { position: absolute; top: 25px; right: 25px; width: 45px; height: 45px; background: var(--grey-light); border: 1px solid var(--grey-mid); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--navy); cursor: pointer; transition: var(--trans); z-index: 2001; }
.close-mobile:hover { background: var(--orange); color: var(--white); border-color: var(--orange); transform: rotate(90deg); }

.mobile-nav a.menu-link { display: block; font-family: 'Playfair Display', serif; font-size: 24px; color: var(--navy); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--grey-mid); }

.mobile-nav a.mobile-login-btn { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 100%; 
    margin-top: 30px; 
    font-family: 'Inter', sans-serif; 
    font-size: 13px; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    color: var(--navy) !important; 
    border: 2px solid var(--navy) !important; 
    padding: 15px; 
    border-radius: 4px; 
    transition: var(--trans); 
    background: transparent !important; 
}
.mobile-nav a.mobile-login-btn:hover { 
    border-color: var(--orange) !important; 
    color: var(--orange) !important; 
}

/* Layout Utilities */
.section-pad { padding: 100px 5%; }
.container { max-width: 1400px; margin: 0 auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.section-header { margin-bottom: 60px; }
.section-header h2 { font-size: 42px; margin-bottom: 20px; line-height: 1.2; }
.section-header p { font-size: 16px; color: #666; max-width: 600px; line-height: 1.8; }
.gold-line { width: 40px; height: 2px; background: var(--orange); margin-bottom: 20px; }

/* Multi-Image Hero Slider */
.hero-slider { position: relative; height: 90vh; overflow: hidden; background: var(--navy); display: flex; align-items: center; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease-in-out; z-index: 1; }
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slider::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(4,30,66,0.95) 0%, rgba(4,30,66,0.4) 100%); z-index: 3; }
.hero-content { position: relative; z-index: 4; padding: 0 5%; max-width: 1000px; color: var(--white); }
.hero-content h1 { font-size: clamp(40px, 5vw, 64px); color: var(--white); line-height: 1.1; margin-bottom: 25px; }
.hero-content p { font-size: 18px; font-weight: 300; margin-bottom: 40px; line-height: 1.8; opacity: 0.9; max-width: 700px; }

/* Front Page Index Styles */
.service-card { padding: 50px; border: 1px solid var(--grey-mid); transition: var(--trans); background: var(--white); }
.service-card:hover { border-color: var(--navy); box-shadow: 0 15px 40px rgba(4,30,66,0.05); }
.service-card i { font-size: 32px; color: var(--navy); margin-bottom: 30px; }
.service-card h3 { font-size: 24px; margin-bottom: 20px; }
.service-card p { color: #666; font-size: 15px; margin-bottom: 30px; }
.service-link { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--orange); display: flex; align-items: center; gap: 10px; }
.service-link:hover { gap: 15px; color: var(--navy); }

.about-image { height: 100%; min-height: 500px; background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1200') center/cover; }

.software-section { background: var(--navy-light); color: var(--white); border-top: 4px solid var(--orange); }
.software-section h2 { color: var(--white); }
.software-card { border-left: 2px solid var(--orange); padding-left: 40px; margin-bottom: 50px; }
.software-card h3 { color: var(--white); font-size: 32px; margin-bottom: 15px; }
.software-card p { color: #A0AABF; font-size: 16px; margin-bottom: 25px; max-width: 500px; }

/* 3-Blog Section */
.blog-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--grey-mid); transition: var(--trans); }
.blog-card:hover { border-color: var(--navy); transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.05); }
.blog-img { height: 220px; background-size: cover; background-position: center; border-bottom: 1px solid var(--grey-mid); }
.blog-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.blog-cat { color: var(--orange); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 15px; }
.blog-content h3 { font-size: 22px; margin-bottom: 15px; line-height: 1.4; }
.blog-content p { color: #666; font-size: 15px; line-height: 1.7; margin-bottom: 25px; flex-grow: 1; }
.read-more { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--navy); display: inline-flex; align-items: center; gap: 8px; transition: var(--trans); }
.read-more:hover { color: var(--orange); gap: 12px; }

/* Client Logo Slider */
.logo-slider { overflow: hidden; padding: 50px 0; background: var(--grey-light); border-top: 1px solid var(--grey-mid); border-bottom: 1px solid var(--grey-mid); white-space: nowrap; position: relative; }
.logo-track { display: inline-block; animation: marquee 30s linear infinite; }
.logo-track i { font-size: 45px; color: #A0AABF; margin: 0 50px; transition: var(--trans); }
.logo-track i:hover { color: var(--navy); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Floating AI Button */
.floating-ai-btn { position: fixed; bottom: 40px; right: 40px; width: 60px; height: 60px; background: var(--navy); color: var(--white); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 24px; cursor: pointer; box-shadow: 0 10px 25px rgba(4, 30, 66, 0.3); transition: var(--trans); z-index: 1500; border: 2px solid var(--white); }
.floating-ai-btn:hover { background: var(--orange); transform: translateY(-5px); box-shadow: 0 15px 30px rgba(214, 104, 28, 0.4); }

/* AI Co-Pilot Slide-Out Overlay */
.ai-overlay { position: fixed; top: 0; right: -450px; width: 400px; max-width: 100%; height: 100vh; background: var(--white); box-shadow: -10px 0 40px rgba(0,0,0,0.1); z-index: 3000; transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); display: flex; flex-direction: column; border-left: 1px solid var(--grey-mid); }
.ai-overlay.active { right: 0; }
.ai-header { background: var(--navy); color: var(--white); padding: 25px; display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--orange); }
.ai-header h3 { color: var(--white); font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 600; letter-spacing: 1px; margin: 0; }
.ai-close { cursor: pointer; transition: var(--trans); font-size: 20px; }
.ai-close:hover { color: var(--orange); }
.ai-chat { flex-grow: 1; padding: 25px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; background: var(--grey-light); }
.msg { padding: 15px 20px; border-radius: 4px; max-width: 90%; font-size: 14px; line-height: 1.6; }
.msg.bot { background: var(--white); color: var(--charcoal); align-self: flex-start; border: 1px solid var(--grey-mid); border-top-left-radius: 0; }
.msg.user { background: var(--navy); color: var(--white); align-self: flex-end; border-top-right-radius: 0; }
.ai-input { display: flex; padding: 20px; background: var(--white); border-top: 1px solid var(--grey-mid); }
.ai-input input { flex-grow: 1; padding: 15px; border: 1px solid var(--grey-mid); border-radius: 2px 0 0 2px; outline: none; font-size: 14px; font-family: 'Inter', sans-serif; }
.ai-input input:focus { border-color: var(--navy); }
.ai-input button { background: var(--orange); color: var(--white); border: none; padding: 0 20px; border-radius: 0 2px 2px 0; cursor: pointer; transition: var(--trans); }
.ai-input button:hover { background: var(--navy); }
.typing-indicator { font-style: italic; color: #888; font-size: 12px; display: none; padding-left: 10px; }

/* AI Assistant Smart Links */
.ai-smart-links { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; border-top: 1px solid var(--grey-mid); padding-top: 15px; }
.ai-smart-btn { background: var(--grey-light); border: 1px solid var(--grey-mid); padding: 12px 15px; border-radius: 4px; font-size: 13px; font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 12px; transition: var(--trans); cursor: pointer; text-decoration: none; }
.ai-smart-btn i { color: var(--orange); font-size: 16px; width: 20px; text-align: center; }
.ai-smart-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); transform: translateX(5px); box-shadow: 0 5px 15px rgba(4, 30, 66, 0.1); }

/* 4-Column Corporate Footer */
footer { background: var(--navy); color: var(--white); padding: 80px 5% 40px; border-top: 4px solid var(--orange); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 50px; margin-bottom: 60px; }
.footer-grid h4 { color: var(--white); font-family: 'Inter', sans-serif; font-size: 14px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 25px; opacity: 0.5; }
.footer-grid ul li { margin-bottom: 15px; }
.footer-grid a { color: #A0AABF; font-size: 14px; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #A0AABF; }

@media (max-width: 1024px) {
    .desktop-nav { display: none; }
    .hamburger { display: flex; }
    .grid-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}