/* ==========================================================================
   GLOBAL STYLES & RESET
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #fcfdfe;
    color: #333;
    overflow-x: hidden; /* Prevents horizontal scrolling issues */
}

/* ==========================================================================
   TOP BAR HEADER AREA
   ========================================================================== */
.top-bar {
    background-color: #020d20;
    color: #b0c4de;
    display: flex;
    justify-content: space-between;
    padding: 10px 8%;
    font-size: 13px;
    border-bottom: 1px solid #102542;
}

.top-bar-left span {
    margin-right: 20px;
}

.top-bar-left i {
    color: #3b82f6;
    margin-right: 5px;
}

.top-bar-right a {
    color: #b0c4de;
    margin-left: 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar-right a:hover {
    color: #fff;
}

/* ==========================================================================
   MAIN NAVBAR SYSTEM
   ========================================================================== */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 32px;
    color: #851329; /* Burgundy color from image */
    margin-right: 10px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.company-name {
    font-weight: 800;
    font-size: 20px;
    color: #020d20;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.company-sub {
    font-size: 10px;
    font-weight: 600;
    color: #666;
    letter-spacing: 1px;
}

.navbar {
    display: flex;
    align-items: center;
}

.navbar a {
    text-decoration: none;
    color: #444;
    font-weight: 500;
    margin: 0 12px;
    font-size: 14px;
    transition: color 0.3s;
    white-space: nowrap;
}

.navbar a:hover, .navbar a.active {
    color: #3b82f6;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    color: #020d20;
    cursor: pointer;
}

.btn-cta {
    background-color: #851329;
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
    font-size: 14px;
}

.btn-cta:hover {
    background-color: #610d1e;
}

/* HERO SECTION SYSTEM */
.hero-section {
    background-color: #03142c; /* Deep blue background */
    color: #ffffff;
    min-height: 620px; /* Adjusted height to match image scale */
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.hero-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 8%;
    position: relative;
    z-index: 10;
    height: 100%;
}

/* Left Content Column */
.hero-content {
    position: relative; /* Ensure it respects z-index */
    z-index: 5; /* Keep text above the background elements */
    flex: 0 0 60%; /* Increased width to allow for single-line headings */
    max-width: 800px; /* Increased max-width */
    padding: 100px 0;
}

.hero-content h1 {
    font-size: 52px; /* Slightly adjusted for better fit */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #ffffff;
    white-space: nowrap; /* Prevents text from wrapping on PC */
}

.hero-content .highlight {
    color: #c8193d;
}

.hero-content p {
    color: #a5bcf2;
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 480px;
}

/* Interaction Controls */
.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
}

.btn-primary {
    background: #851329;
    color: #ffffff;
    border: none;
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

/* Features Row */
.hero-features {
    display: flex;
    gap: 35px;
    font-size: 14px;
    color: #a5bcf2;
}

.hero-features span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-features i {
    color: #3b82f6;
}

/* Right Image Layout Column with Gradient Blend */
.hero-image-container {
    position: absolute;
    right: 0;
    bottom: 0; /* Pushes the image container to the absolute bottom of the hero section */
    width: 100%; /* Spans full width to allow seamless gradient from the left */
    height: 100%;
    z-index: 1;
}

.hero-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Master gradient blend: Solid blue on the left (0-40%), then smooth fade into the image */
    background: linear-gradient(to right, 
        #03142c 0%, 
        #03142c 40%, 
        rgba(3, 20, 44, 0.9) 50%, 
        rgba(3, 20, 44, 0.4) 70%, 
        transparent 100%
    );
    z-index: 2;
}

.hero-image-container img {
    width: 60%; /* Image only takes up the right portion */
    height: 100%;
    float: right; /* Aligns image to the right */
    object-fit: cover;
    object-position: center right; /* Focuses on the man/laptop workspace */
    opacity: 0.9;
}

/* ==========================================================================
   FLOATING SERVICES CARDS GRID
   ========================================================================== */
.services-container {
    padding: 0 8%;
    margin-top: -80px; /* Pulls cards cleanly up into the dark blue backdrop block */
    position: relative;
    z-index: 10;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.service-card {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid #f1f5f9;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 26px;
    color: #3b82f6;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #020d20;
}

.service-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-link {
    text-decoration: none;
    color: #3b82f6;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================================================
   ABOUT & STATS SECTION (SIDE-BY-SIDE THREE COLUMN SYSTEM)
   ========================================================================== */
.about-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 100px 8%;
    background-color: #fcfdfe;
}

.col-about-text {
    flex: 1.2;
    min-width: 300px;
}

.col-about-text h2 {
    font-size: 34px;
    color: #020d20;
    line-height: 1.3;
    margin-bottom: 18px;
    font-weight: 700;
}

.text-blue {
    color: #3b82f6;
}

.col-about-text p {
    color: #666;
    font-size: 14.5px;
    line-height: 1.65;
}

.col-about-video {
    flex: 1.1;
    display: flex;
    justify-content: center;
}

.video-thumbnail {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 6px 25px rgba(0,0,0,0.07);
}

.video-thumbnail img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.play-btn-overlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: white;
    color: #3b82f6;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    padding-left: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.col-about-stats-card {
    flex: 1.3;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.02);
    border: 1px solid #f1f5f9;
}

.stats-inner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px 20px;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    background: #851329;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #020d20;
    line-height: 1.1;
}

.stat-label {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}

/* ==========================================================================
   VIDEO INTERACTIVE POPUP MODAL
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 80%;
    max-width: 800px;
    background: #000;
}

.close-modal {
    position: absolute;
    top: -40px; right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* ==========================================================================
   MAIN FOOTER SYSTEM
   ========================================================================== */
.main-footer {
    background-color: #020d20;
    color: #ffffff;
    padding: 80px 0 0 0;
    font-size: 14px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 8% 60px 8%;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-column h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #851329;
}

.footer-about .footer-logo {
    width: 140px;
    margin-bottom: 20px;
}

.footer-about p {
    color: #b0c4de;
    line-height: 1.7;
    margin-bottom: 25px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-socials a:hover {
    background: #851329;
    border-color: #851329;
    transform: translateY(-3px);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #b0c4de;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: #851329;
    padding-left: 5px;
}

.footer-contact .contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.footer-contact .contact-item i {
    color: #851329;
    font-size: 18px;
    margin-top: 3px;
}

.footer-contact .contact-item span {
    color: #b0c4de;
    line-height: 1.5;
}

.footer-bottom {
    background-color: #010814;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #667c99;
    font-size: 13px;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    color: #667c99;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS (MOBILE & TABLET OPTIMIZATION)
   ========================================================================== */
@media(max-width: 1400px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .services-container { margin-top: -50px; }
}

/* Responsive Overrides */
@media(max-width: 992px) {
    .main-header {
        padding: 15px 5%;
    }

    .navbar {
        display: none; /* Hidden by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .navbar.active {
        display: flex;
    }

    .navbar a {
        margin: 15px 0;
        font-size: 16px;
    }

    .mobile-toggle {
        display: block;
    }

    .btn-cta {
        padding: 8px 18px;
        font-size: 13px;
    }

    /* Hero Section Mobile Fix */
    .hero-section {
        min-height: 500px;
        padding: 0;
    }

    .hero-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 60px 5%;
        height: 100%;
        min-height: 500px;
    }

    .hero-content {
        flex: 1;
        max-width: 100%;
        padding: 40px 0;
        z-index: 5;
        background: rgba(3, 20, 44, 0.7); /* Overlay to make text readable */
        border-radius: 15px;
        backdrop-filter: blur(5px);
        margin: 20px 0;
    }

    .hero-content h1 {
        font-size: 36px;
        white-space: normal; /* Allow wrapping on mobile */
    }

    .hero-content p {
        font-size: 15px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-features {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .hero-image-container {
        width: 100%;
        height: 100%;
        position: absolute; /* Keep it as background */
        top: 0;
        right: 0;
        z-index: 1;
        opacity: 0.6; /* Dim the image on mobile */
    }

    .hero-image-container img {
        object-position: center right; /* Focus on the man and chair */
    }

    .hero-image-container::before {
        /* Full overlay on mobile */
        background: rgba(3, 20, 44, 0.5);
    }

    .services-container {
        margin-top: -50px;
        padding: 0 5%;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tech-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .about-stats-row {
        flex-direction: column;
        gap: 45px;
    }
    .col-about-text, .col-about-video, .col-about-stats-card {
        width: 100%;
    }

    /* Footer Mobile Fix */
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px 20px;
        padding: 0 5% 40px 5%;
    }

    .footer-column.footer-about {
        grid-column: span 2;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Tech circles positioned specifically around the laptop/man area for PC */
.tech-circle {
    position: absolute;
    background: rgba(3, 20, 44, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #ffffff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 10;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
    animation: float 4s ease-in-out infinite;
}

/* Perfect replica positioning for PC */
@media(min-width: 993px) {
    .circle-1 { top: 15%; right: 38%; animation-delay: 0s; }    /* Cloud - Above/Left of laptop */
    .circle-2 { top: 42%; right: 45%; animation-delay: 1s; }    /* Shield - Middle Left */
    .circle-3 { top: 32%; right: 8%; animation-delay: 2s; }     /* Database - Far Right behind head */
    .circle-4 { bottom: 22%; right: 40%; animation-delay: 1.5s; } /* User gear - Bottom Left */
}

@media(max-width: 576px) {
    .hero-content h1 {
        font-size: 30px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    
    .hero-features {
        font-size: 12px;
    }

    .top-bar {
        display: none;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-column.footer-about {
        grid-column: span 1;
    }
}

/* ==========================================================================
   INNER PAGE HERO BANNER
   ========================================================================== */
.inner-hero {
    background-color: #03142c;
    color: #ffffff;
    padding: 100px 8%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.inner-hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: #a5bcf2;
}

.breadcrumb a {
    color: #a5bcf2;
    text-decoration: none;
}

.breadcrumb span {
    color: #c8193d;
}

.page-section {
    padding: 80px 8%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    color: #020d20;
    margin-bottom: 15px;
}

.section-title p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.service-detail-card {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    margin-bottom: 40px;
    display: flex;
    gap: 40px;
    align-items: center;
}

.service-detail-card:nth-child(even) {
    flex-direction: row-reverse;
}

.service-detail-img {
    flex: 1;
}

.service-detail-img img {
    width: 100%;
    border-radius: 12px;
}

.service-detail-info {
    flex: 1.2;
}

.service-detail-info h3 {
    font-size: 26px;
    color: #020d20;
    margin-bottom: 20px;
}

.service-detail-info p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
}

.service-features-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.service-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #444;
    font-size: 14px;
}

.service-features-list li i {
    color: #3b82f6;
}

@media (max-width: 768px) {
    .service-detail-card, .service-detail-card:nth-child(even) {
        flex-direction: column;
        padding: 25px;
    }
    
    .inner-hero h1 {
        font-size: 32px;
    }
    
    .service-features-list {
        grid-template-columns: 1fr;
    }
}