/* =========================================
   1. THEME VARIABLES & RESET
   ========================================= */
:root {
    --primary: #0056b3;
    --primary-rgb: 0, 86, 179;
    --dark-navy: #001f3f;
    --dark-navy-rgb: 0, 31, 63;

    --primary-hover: color-mix(in srgb, var(--primary), black 15%);
    --primary-light: color-mix(in srgb, var(--primary), white 45%);
    --primary-light-rgb: 77, 166, 255;
    --primary-bg: color-mix(in srgb, var(--primary), white 95%);
    --primary-bg-soft: color-mix(in srgb, var(--primary), white 93%);
    --dark-navy-light: color-mix(in srgb, var(--dark-navy), white 12%);

    --text-main: #1a1a1a;
    --text-muted: #555555;
    --bg-body: #f8f9fa;
    --bg-card: #ffffff;
    --border-color: #eeeeee;
    --font-main: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--bg-body);
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* =========================================
   2. GLOBAL UTILITIES
   ========================================= */
.sub-heading {
    color: var(--primary);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    color: var(--dark-navy);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 400px;
    font-size: 15px;
}

.link-arrow {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-smooth);
    display: inline-block;
}

.link-arrow:hover { transform: translateX(5px); }

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    background-color: #011126;
    color: #ffffff;
    padding: 150px 0 60px; 
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-bg-grid {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px; z-index: 1;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}

.hero-glow { position: absolute; border-radius: 50%; filter: blur(100px); z-index: 1; opacity: 0.3; }
.glow-left { top: 20%; left: -10%; width: 600px; height: 600px; background: var(--primary); }
.glow-right { top: -10%; right: -10%; width: 500px; height: 500px; background: #2563eb; }

.hero-container { display: flex; align-items: center; justify-content: space-between; gap: 40px; position: relative; z-index: 2; }
.hero-text { flex: 1.1; max-width: 600px; }

.badge {
    background: rgba(255, 255, 255, 0.05); padding: 6px 16px; border-radius: 30px;
    font-size: 11px; font-weight: 600; letter-spacing: 1.5px; display: inline-block;
    margin-bottom: 24px; border: 1px solid rgba(255, 255, 255, 0.1); color: #94a3b8;
}

.hero h1 { font-size: 52px; line-height: 1.15; margin-bottom: 20px; font-weight: 700; color: #ffffff; }
.hero .highlight { color: #3b82f6; }
.hero p { font-size: 16px; margin-bottom: 35px; opacity: 0.85; line-height: 1.7; color: #cbd5e1; }
.hero-buttons { display: flex; gap: 16px; }

.hero-visuals { flex: 1; position: relative; height: 500px; perspective: 1000px; }

.globe-effect {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 500px; height: 500px;
    background: url('https://cdn.pixabay.com/photo/2018/05/30/22/22/globe-3441959_1280.png') center/contain no-repeat;
    opacity: 0.25; z-index: 1; filter: drop-shadow(0 0 40px rgba(59, 130, 246, 0.6)); 
    animation: pulseGlobe 6s ease-in-out infinite alternate;
}

@keyframes pulseGlobe {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.2; }
    100% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.35; }
}

.location-card {
    position: absolute; background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 16px; border-radius: 12px; display: flex; align-items: center; gap: 12px;
    z-index: 3; box-shadow: 0 10px 30px rgba(0,0,0,0.4); transition: var(--transition-smooth);
    animation: floatCard 6s ease-in-out infinite;
}

.location-card:hover { background: rgba(30, 41, 59, 0.9); border-color: rgba(59, 130, 246, 0.5); transform: translateY(-5px) scale(1.05); }
.location-card .flag { font-size: 24px; }
.location-card .loc-text { display: flex; flex-direction: column; }
.location-card strong { color: #fff; font-size: 14px; }
.location-card span { color: #94a3b8; font-size: 11px; white-space: nowrap; }

.card-usa { top: 5%; right: 10%; animation-delay: 0s; }
.card-uk { top: 30%; left: -5%; animation-delay: 1s; }
.card-pakistan { top: 55%; left: 5%; animation-delay: 2s; }
.card-canada { top: 70%; right: 0%; animation-delay: 3s; }

@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.devices-wrapper { position: absolute; bottom: -5%; left: 50%; transform: translateX(-50%); width: 100%; z-index: 2; transition: transform 0.5s ease; }
.devices-wrapper:hover { transform: translateX(-50%) translateY(-10px); }
.main-device-img { width: 100%; max-height: 400px; object-fit: contain; border-radius: 12px; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6)); }

.hero-bottom-features {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative;
    z-index: 3; margin-top: 60px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1);
}
.feature-box { display: flex; align-items: center; gap: 15px; color: #cbd5e1; transition: var(--transition-smooth); }
.feature-box:hover { color: #fff; transform: translateY(-3px); }
.feature-box i { font-size: 28px; color: #3b82f6; }
.feature-box span { font-size: 13px; font-weight: 500; line-height: 1.4; }

/* =========================================
   4. BUTTONS
   ========================================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: 6px; font-weight: 600; font-size: 14px;
    cursor: pointer; border: none; transition: var(--transition-smooth);
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.4); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.5); }
.btn-outline:hover { background: #fff; color: var(--primary); border-color: #fff; transform: translateY(-3px); }

/* =========================================
   OUR SOLUTIONS SECTION (Complete Business Software)
   ========================================= */
.solutions-section { 
    padding: 80px 0; 
    background: var(--bg-card); 
}

.solutions-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
}

.solution-card { 
    background: var(--bg-card); 
    border: 1px solid var(--border-color); 
    padding: 30px 25px; 
    border-radius: 12px; 
    transition: var(--transition-smooth); 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02); 
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.solution-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08); 
    border-color: rgba(var(--primary-rgb), 0.3); 
}

.solution-card i { 
    font-size: 38px; 
    margin-bottom: 20px; 
    transition: var(--transition-smooth); 
}

.solution-card:hover i { 
    transform: scale(1.1) rotate(5deg); 
}

.solution-card h3 { 
    font-size: 18px; 
    margin-bottom: 10px; 
    color: var(--dark-navy); 
    font-weight: 700;
}

.solution-card p { 
    font-size: 13px; 
    color: var(--text-muted); 
    margin-bottom: 20px; 
    line-height: 1.5; 
    flex-grow: 1;
}

.learn-more { 
    font-size: 13px; 
    font-weight: 600; 
    color: var(--primary); 
    display: inline-flex; 
    align-items: center; 
    gap: 5px; 
    transition: var(--transition-smooth); 
    margin-top: auto;
}

.solution-card:hover .learn-more { 
    gap: 10px; 
}

/* Icons Colors */
.icon-blue { color: var(--primary); }
.icon-orange { color: #f39c12; }
.icon-green { color: #27ae60; }
.icon-red { color: #e74c3c; }

/* Responsive adjustments for Solutions Grid */
@media (max-width: 1024px) {
    .solutions-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .solutions-grid { grid-template-columns: 1fr; }
}

/* =========================================
   5. AI SOLUTIONS SECTION
   ========================================= */
.ai-solutions-section { background: #f0f7ff; padding: 80px 0; }
.ai-layout { display: flex; gap: 50px; align-items: flex-start; }
.ai-text { flex: 0.8; max-width: 400px; }
.ai-text h2 { font-size: 34px; color: var(--dark-navy); margin-bottom: 15px; }
.ai-text p { color: var(--text-muted); margin-bottom: 25px; font-size: 15px; }

.ai-grid { flex: 1.2; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ai-card {
    background: var(--bg-card); padding: 20px; border-radius: 12px; display: flex; gap: 15px;
    align-items: flex-start; box-shadow: 0 4px 15px rgba(0,0,0,0.03); transition: var(--transition-smooth);
    border: 1px solid transparent;
}
.ai-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); border-color: rgba(var(--primary-rgb), 0.2); }
.ai-card i { font-size: 24px; margin-top: 5px; }
.ai-card h4 { font-size: 15px; color: var(--dark-navy); margin-bottom: 5px; }
.ai-card p { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.icon-green { color: #27ae60; }
.icon-blue { color: var(--primary); }
.icon-orange { color: #f39c12; }

/* =========================================
   6. INDUSTRIES SECTION
   ========================================= */
.industries-section { padding: 80px 0; background: var(--bg-card); }
.industries-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.industry-card {
    position: relative; border-radius: 12px; overflow: hidden; height: 200px;
    cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.industry-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.industry-card:hover img { transform: scale(1.1); }
.industry-card span {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px 15px 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: #fff;
    font-size: 13px; font-weight: 600; text-align: center;
}

/* =========================================
   7. IT SERVICES SECTION
   ========================================= */
.it-services-section { background: var(--dark-navy); padding: 80px 0; color: #fff; }
.it-layout { display: flex; gap: 50px; align-items: center; }
.it-text { flex: 0.8; max-width: 450px; }
.it-text h2 { font-size: 34px; margin-bottom: 15px; color: #fff; }
.it-text p { color: #cbd5e1; margin-bottom: 25px; font-size: 15px; }

.it-grid { flex: 1.2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.it-card {
    background: var(--bg-card); padding: 25px 15px; border-radius: 10px; text-align: center;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px;
    transition: var(--transition-smooth); cursor: pointer;
}
.it-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.it-card i { font-size: 40px; color: var(--primary); }
.it-card span { font-size: 13px; font-weight: 600; color: var(--dark-navy); }

/* =========================================
   8. WHY CHOOSE US SECTION
   ========================================= */
.why-choose-section { padding: 80px 0; background: var(--bg-body); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat-item {
    display: flex; align-items: center; gap: 20px; padding: 20px;
    background: transparent; box-shadow: none;
}
.stat-item i { font-size: 45px; color: var(--primary); }
.stat-item h2 { font-size: 38px; color: var(--dark-navy); margin-bottom: 0; line-height: 1; }
.stat-item p { font-weight: 600; color: var(--text-muted); font-size: 14px; }

/* =========================================
   9. CASE STUDIES SECTION
   ========================================= */
.case-studies-section { padding: 80px 0; background: var(--bg-card); }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.case-card {
    background: var(--bg-card); border-radius: 12px; overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}
.case-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.case-img { position: relative; height: 200px; }
.case-img img { width: 100%; height: 100%; object-fit: cover; }
.case-img .tag {
    position: absolute; top: 15px; left: 15px; background: var(--primary); color: #fff;
    padding: 4px 10px; border-radius: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase;
}
.case-content { padding: 25px 20px; }
.case-content h4 { font-size: 18px; color: var(--dark-navy); margin-bottom: 10px; }
.case-content p { font-size: 14px; color: var(--text-muted); margin-bottom: 15px; }
.read-more { font-size: 13px; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 5px; }
.read-more:hover { gap: 10px; }

/* =========================================
   10. TRUSTED BY SECTION
   ========================================= */
.trusted-by-section { padding: 40px 0 60px; background: var(--bg-card); border-top: 1px solid var(--border-color); }
.trusted-by-section .sub-heading { text-align: center; margin-bottom: 30px; font-size: 11px; color: var(--text-muted); }
.logo-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.client-logo {
    font-size: 18px; font-weight: 800; color: #94a3b8; display: flex; align-items: center; gap: 8px;
    transition: var(--transition-smooth); filter: grayscale(100%); opacity: 0.7;
}
.client-logo:hover { filter: grayscale(0%); opacity: 1; color: var(--dark-navy); }
.client-logo i { font-size: 24px; }

/* =========================================
   11. SCROLL REVEAL ANIMATIONS
   ========================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); will-change: transform, opacity; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* =========================================
   12. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 1024px) {
    .hero h1 { font-size: 42px; }
    .ai-layout, .it-layout { flex-direction: column; }
    .ai-text, .it-text { max-width: 100%; text-align: center; margin-bottom: 30px; }
    .industries-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .logo-grid { justify-content: center; }
}

@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; gap: 60px; }
    .hero-text { max-width: 100%; }
    .hero-buttons { justify-content: center; }
    .hero-visuals { width: 100%; height: 400px; }
    .globe-effect { width: 350px; height: 350px; }
    .card-usa { top: 0; right: 10%; }
    .card-uk { top: 20%; left: 10%; }
    .card-pakistan { top: 60%; left: 10%; }
    .card-canada { top: 80%; right: 10%; }
    .hero-bottom-features { grid-template-columns: repeat(2, 1fr); text-align: left; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .ai-grid { grid-template-columns: 1fr; }
    .it-grid { grid-template-columns: repeat(2, 1fr); }
    .case-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero { padding-top: 120px; }
    .hero h1 { font-size: 32px; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }
    .location-card { display: none; }
    .hero-visuals { height: 300px; }
    .hero-bottom-features { grid-template-columns: 1fr; gap: 15px; }
    .industries-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-item { justify-content: center; text-align: center; flex-direction: column; gap: 10px; }
    .case-grid { grid-template-columns: 1fr; }
    .it-grid { grid-template-columns: 1fr; }
    .logo-grid { flex-direction: column; }
}