@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #0056B3;
    --primary-light: #3083FF;
    --secondary-color: #0A1023;
    --accent-color: #F0F5FF;
    --text-main: #555555;
    --text-heading: #0A1023;
    --white: #FFFFFF;
    --black: #000000;
    --section-padding: 120px 0;
    --transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --border-radius: 15px;
    --shadow: 0 20px 40px rgba(0, 0, 86, 0.08);
    --glass: rgba(255, 255, 255, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 800;
    line-height: 1.2;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--section-padding);
}

.bg-accent {
    background-color: var(--accent-color);
}

/* Utilities */
.btn {
    display: inline-block;
    padding: 18px 38px;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
    text-align: center;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    z-index: 1;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0%;
    height: 100%;
    background: var(--text-heading);
    transition: var(--transition);
    z-index: -1;
    transform: translate(-50%, -50%);
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-primary:hover {
    color: var(--white);
    transform: translateY(-5px);
}

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

.section-title span {
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 3px;
    display: inline-block;
    margin-bottom: 20px;
    background: rgba(0, 86, 179, 0.08);
    padding: 8px 20px;
    border-radius: 50px;
}

.section-title h2 {
    font-size: 52px;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.2;
    font-weight: 800;
    color: var(--secondary-color);
    transition: var(--transition);
    cursor: default;
}

.section-title h2:hover {
    color: var(--primary-color);
    transform: scale(1.02);
}

.section-title h2::after {
    display: none;
}

.text-left h2::after {
    display: none;
}

.page-header {
    padding: 140px 0 80px;
    background-color: var(--secondary-color);
    background-size: cover;
    background-position: center;
    position: relative;
    text-align: center;
    color: var(--white);
    margin-bottom: 0;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(10, 16, 35, 0.8), rgba(10, 16, 35, 0.8));
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 72px;
    font-weight: 900;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 20px;
}

.text-left {
    text-align: left;
}

.text-left h2 {
    margin: 0;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info, .top-social {
    display: flex;
    gap: 25px;
    align-items: center;
}

.top-info span i {
    margin-right: 8px;
    color: var(--primary-light);
}

.top-social a {
    color: var(--white);
    opacity: 0.8;
}

.top-social a:hover {
    opacity: 1;
    color: var(--primary-light);
}

/* Header */
header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    transition: var(--transition);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: 95px;
    position: relative;
    width: 100%;
}

.logo-box {
    background: var(--primary-color);
    padding: 0 60px 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    text-decoration: none;
    transition: var(--transition);
}

.logo-box img {
    width: 280px;
    max-width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.logo-box.is-compact img {
    width: 230px;
}

.logo-box::after {
    content: '';
    position: absolute;
    right: -24px;
    top: 0;
    border-top: 95px solid var(--primary-color);
    border-right: 24px solid transparent;
}

.nav-links {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 35px;
    z-index: 5;
    margin: 0;
}

.nav-links li {
    position: relative;
    padding: 35px 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 20;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--text-heading);
    transition: var(--transition);
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--white);
    min-width: 240px;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--primary-color);
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border-radius: 0 0 10px 10px;
    z-index: 100;
}

.nav-links li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown li {
    padding: 0 !important;
    display: block !important;
    width: 100%;
}

.dropdown a {
    padding: 12px 25px !important;
    display: block !important;
    font-size: 14px !important;
    text-transform: capitalize !important;
    font-weight: 600 !important;
}

.dropdown a:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    padding-left: 30px !important;
}

.nav-links a {
    font-weight: 700;
    color: var(--text-heading);
    font-size: 16px;
    text-transform: uppercase;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 35px;
    padding-right: 40px;
    z-index: 10;
}

.search-icon {
    font-size: 20px;
    cursor: pointer;
}

/* Hero */
.hero {
    min-height: 90vh;
    background: #F8FBFF;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero::before {
    display: none;
}

.hero .container {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 60px;
}

.hero-content {
    flex: 1.2;
}

.hero-label {
    background: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: 72px;
    margin-bottom: 30px;
    line-height: 1.1;
    font-weight: 900;
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-image-wrap {
    flex: 0.8;
    position: relative;
}

.hero-main-img {
    position: relative;
    z-index: 2;
    animation: floating 4s ease-in-out infinite;
}

.hero-circle-bg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 500px; height: 500px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.15;
    animation: pulseCircle 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulseCircle {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.15; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.25; }
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

/* Brand Slider Infinite */
.brand-slider {
    padding: 60px 0;
    background: var(--white);
    border-bottom: 1px solid #eee;
    overflow: hidden;
}

.brand-track {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
    gap: 80px;
    align-items: center;
}

.brand-track img {
    height: 65px;
    width: auto;
    filter: grayscale(1);
    opacity: 0.5;
    transition: var(--transition);
}

.brand-track img:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(0, 86, 179, 0.2));
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 40px)); }
}

/* About */
.about {
    background: linear-gradient(135deg, #f8faff 0%, #eef2ff 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(0, 86, 179, 0.05) 0%, transparent 70%);
    filter: blur(80px);
}

.about-wrapper {
    display: flex;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-images {
    flex: 1;
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
}

.overlap-1 {
    width: 75%;
    position: relative;
    z-index: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.1);
}

.overlap-2 {
    position: absolute;
    bottom: 40px;
    right: 0;
    width: 60%;
    z-index: 2;
    border-radius: 20px;
    border: 12px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.about-content {
    flex: 1;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.stat-item .count {
    font-size: 42px;
    font-weight: 900;
    color: var(--primary-color);
    display: block;
}

.stat-item div:last-child {
    font-weight: 700;
    color: var(--text-heading);
}

/* Services Grid */
.services-grid-new {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.service-card-new {
    flex: 0 1 380px; /* Base size 380px, but can shrink */
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 50px 40px;
    border-radius: 20px;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.service-card-new::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 0%;
    background: var(--primary-color);
    transition: var(--transition);
    z-index: -1;
}

.service-card-new:hover::before {
    height: 100%;
}

.service-card-new:hover h3, .service-card-new:hover p {
    color: var(--white);
}

.service-card-new:hover .s-icon {
    background: var(--white);
    color: var(--primary-color);
}

.s-icon {
    width: 80px; height: 80px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary-color);
    margin: 0 auto 30px;
    transition: var(--transition);
}

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

/* Why Us */
.why-wrapper {
    display: flex;
    gap: 80px;
    align-items: center;
}

.why-content {
    flex: 1;
}

.why-list {
    margin-top: 40px;
}

.why-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.w-icon {
    width: 50px; height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.why-image {
    flex: 1;
}

.why-image img {
    border-radius: 10px;
}

/* Counter */
.counter-section {
    padding: 100px 0;
    background: var(--secondary-color);
    color: var(--white);
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.counter-item .count {
    font-size: 60px;
    font-weight: 900;
    color: var(--primary-light);
}

.counter-item div:last-child {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 10px;
}

/* Portfolio */
.portfolio-grid-new {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.portfolio-card {
    flex: 0 1 380px;
    position: relative;
    border-radius: 10px;
}

.portfolio-card img {
    width: 100%;
    border-radius: 10px;
}

.p-info {
    position: absolute;
    bottom: 30px; left: 30px; right: 30px;
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.portfolio-card:hover .p-info {
    transform: translateY(0);
    opacity: 1;
}

/* Team */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.team-card {
    flex: 0 1 380px;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: var(--shadow);
}

.team-img {
    height: 350px;
    overflow: hidden;
}

.team-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: var(--transition);
}

.team-card:hover .team-img img {
    transform: scale(1.1);
}

.team-info {
    padding: 30px;
}

.team-info p {
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 5px;
}

/* FAQ */
.faq-wrapper {
    display: flex;
    gap: 80px;
    align-items: center;
}

.faq-content {
    flex: 1.2;
}

.faq-side {
    flex: 0.8;
}

.accordion-item {
    background: var(--accent-color);
    margin-bottom: 15px;
    border-radius: 5px;
}

.accordion-header {
    padding: 20px 30px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-heading);
}

.accordion-body {
    padding: 0 30px 20px;
    display: none;
    color: var(--text-main);
}

/* Video Section */
.video-section {
    padding: 150px 0;
    text-align: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.video-play-btn {
    width: 100px; height: 100px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 40px;
    cursor: pointer;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 86, 179, 0.7); }
    70% { box-shadow: 0 0 0 30px rgba(0, 86, 179, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 86, 179, 0); }
}

.video-section h2 {
    color: var(--white);
    font-size: 48px;
    margin-bottom: 50px;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 20px 30px;
    border: none;
    border-radius: 5px 0 0 5px;
}

.newsletter-form .btn {
    border-radius: 0 5px 5px 0;
}

/* Testimonials */
.testi-card {
    background: var(--white);
    padding: 60px;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    box-shadow: var(--shadow);
}

.stars {
    color: #FFB400;
    margin-bottom: 25px;
    font-size: 20px;
}

.testi-card p {
    font-size: 22px;
    font-style: italic;
    margin-bottom: 35px;
}

.client-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.client-info img {
    width: 70px; height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.client-info h4 {
    margin-bottom: 5px;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: rgba(255,255,255,0.7);
    padding: 100px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 80px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 30px;
    font-size: 22px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 25px;
    max-width: 320px;
}

.footer-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.footer-social a {
    width: 45px; height: 45px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.footer-social a:hover {
    background: var(--primary-color);
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-form {
    display: flex;
    margin-top: 25px;
}

.footer-form input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: none;
    padding: 15px 20px;
    color: var(--white);
    border-radius: 5px 0 0 5px;
}

.footer-form button {
    background: var(--primary-color);
    border: none;
    padding: 0 25px;
    color: var(--white);
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Animation Utilities */
.text-reveal {
    overflow: visible;
}

.img-reveal-wrap {
    position: relative;
    overflow: hidden;
}

.img-reveal-mask {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--primary-color);
    z-index: 2;
}

/* Responsive Improvements */
@media (max-width: 1200px) {
    .hero h1 { font-size: 56px; }
    .about-wrapper, .why-wrapper, .faq-wrapper { gap: 40px; }
    .logo-box { padding: 0 30px; }
    .logo-box img { width: 240px; }
    .logo-box::after { display: none; }
    .nav-wrapper { padding-left: 30px; }
}

@media (max-width: 991px) {
    .top-bar { display: none; }
    
    nav {
        display: flex;
        justify-content: space-between;
        padding-right: 20px;
    }

    .hamburger { display: flex; }
    
    .nav-links {
        position: fixed;
        top: 95px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 95px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: 0.5s;
        z-index: 999;
        box-shadow: var(--shadow);
        gap: 0;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 0;
    }

    .nav-links a {
        display: block;
        padding: 20px;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Allow dropdown logic on mobile */
    .nav-links li a i.fa-chevron-down {
        padding: 10px 15px;
        margin-left: 10px;
        border-left: 1px solid rgba(0,0,0,0.1);
        cursor: pointer;
        transition: var(--transition);
    }
    
    .nav-links li a i.fa-chevron-up {
        transform: rotate(180deg);
    }

    .nav-right {
        display: none;
    }

    .hero { height: auto; padding: 180px 0 100px; }
    .hero .container { flex-direction: column; text-align: center; }
    .hero h1 { font-size: 48px; }
    .hero p { margin: 0 auto 30px; }
    
    .about-wrapper, .why-wrapper, .faq-wrapper { flex-direction: column; text-align: center; }
    .about-images { height: 400px; width: 100%; }
    .overlap-1 { width: 70%; position: static; margin: 0 auto; }
    .overlap-2 { width: 50%; right: 10%; bottom: -10%; }
    
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .section-title h2 { font-size: 32px; }
    .hero h1 { font-size: 38px; }
    
    .counter-grid, .services-grid-new, .team-grid, .portfolio-grid-new {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form { flex-direction: column; gap: 15px; }
    .newsletter-form input { border-radius: 5px; }
    .newsletter-form .btn { border-radius: 5px; }
    
    .footer-grid { grid-template-columns: 1fr; }
    
    .testi-card { padding: 30px; }
    .testi-card p { font-size: 18px; }
}

/* Custom Cursor */
.cursor-dot, .cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    transition: all 0.15s ease-out;
}

body:hover .cursor-dot, body:hover .cursor-outline {
    opacity: 1;
}

/* Mouse Hover States */
.cursor-outline.hover {
    transform: translate(-50%, -50%) scale(1.5);
    background: rgba(0, 86, 179, 0.1);
    border-color: transparent;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: none;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    bottom: 40px;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    color: var(--white);
}

.back-to-top::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    animation: pulseBtn 2s infinite;
}

@keyframes pulseBtn {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Service Details Page */
.service-details {
    padding: var(--section-padding);
}
.service-item-large {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}
.service-item-large:nth-child(even) {
    flex-direction: row-reverse;
}
.service-item-large img {
    flex: 1;
    border-radius: var(--border-radius);
    max-width: 500px;
}
.service-item-content {
    flex: 1;
}

/* Blog Page */
.blog-page-section {
    padding: var(--section-padding);
}
.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

@media (max-width: 991px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
}

.blog-post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}
.blog-post-card:hover img {
    transform: scale(1.1) !important;
}
.blog-post-card h2 a:hover {
    color: var(--primary-color) !important;
}

.sidebar-categories a:hover {
    color: var(--primary-color) !important;
    padding-left: 10px;
}
.tags-wrapper a:hover {
    background: var(--primary-color) !important;
    color: var(--white) !important;
}
.pagination a:hover {
    background: var(--primary-color) !important;
    color: var(--white) !important;
}

.blog-card {
    flex: 0 1 380px;
}
.pricing-card {
    flex: 0 1 380px;
}
.blog-grid, .pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* Contact Page Modern Styles */
.contact-section {
    padding: var(--section-padding);
    background: var(--white);
    position: relative;
}
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.contact-info-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 25px;
    transition: var(--transition);
    border-left: 5px solid transparent;
}
.contact-info-card:hover {
    transform: translateY(-5px);
    border-left-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.contact-icon {
    width: 70px;
    height: 70px;
    background: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    transition: var(--transition);
}
.contact-info-card:hover .contact-icon {
    background: var(--primary-color);
    color: var(--white);
}

.modern-contact-form {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}
.modern-contact-form::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}
.modern-form-group {
    position: relative;
    margin-bottom: 30px;
}
.modern-form-group input, .modern-form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #eee;
    border-radius: 10px;
    background: #f9f9f9;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}
.modern-form-group input:focus, .modern-form-group textarea:focus {
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.1);
}
.modern-form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    padding: 100px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.cta-banner h2 {
    font-size: 48px;
    margin-bottom: 30px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--white);
}

/* --- Print/PDF Mode Styles --- */
@media print {
    body.print-mode .top-bar,
    body.print-mode header,
    body.print-mode footer,
    body.print-mode .service-sidebar,
    body.print-mode .page-header,
    body.print-mode .back-to-top,
    body.print-mode .cursor-dot,
    body.print-mode .cursor-outline,
    body.print-mode .cta-section {
        display: none !important;
    }

    body.print-mode .service-main-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        grid-column: 1 / -1 !important;
    }

    body.print-mode .service-details-section > .container > div {
        display: block !important; /* override grid */
    }

    body.print-mode .service-details-section {
        padding: 0 !important;
        margin: 0 !important;
    }

    body.print-mode .accordion-body {
        display: block !important;
        height: auto !important;
    }
    
    body.print-mode .accordion-item {
        page-break-inside: avoid;
    }
}

/* =========================================
   RESPONSIVE MEDIA QUERIES
========================================= */

/* Tablet & Smaller Desktop (Max 991px) */
@media (max-width: 991px) {
    /* Top bar and header */
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        visibility: hidden;
        opacity: 0;
        transform: none !important; /* Fix for base translate(-50%, -50%) */
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }
    
    .nav-links.active {
        max-height: calc(100vh - 95px);
        padding: 0;
        visibility: visible;
        opacity: 1;
    }
    
    .nav-links > li {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin: 0;
        text-align: center;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .nav-links > li > a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 20px;
    }
    
    .nav-links.active > li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-links.active > li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active > li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.active > li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active > li:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.active > li:nth-child(5) { transition-delay: 0.3s; }
    
    .nav-links .dropdown {
        position: relative;
        top: auto !important;
        left: 0 !important;
        right: auto !important;
        width: 100% !important;
        min-width: 100% !important;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        transform: none !important;
        display: block;
        padding: 0;
        margin: 0;
        transition: all 0.4s ease;
    }

    .nav-links > li {
        overflow: visible;
    }
    
    .nav-links li:hover .dropdown,
    .nav-links li:focus-within .dropdown {
        /* On mobile, we only toggle via JS click, not hover */
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        padding: 0;
        margin-top: 0;
        left: 0 !important;
        transform: none !important;
    }

    .nav-links .dropdown.show-mobile-dropdown {
        max-height: 500px !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 10px 0 !important;
        margin-top: 0 !important;
        background: #f8faff !important;
        border-radius: 0 0 10px 10px !important;
        display: block !important;
        border-top: 2px solid var(--primary-color) !important;
        left: 0 !important;
        transform: none !important;
    }
    
    /* Ensure dropdown links are visible and styled on mobile */
    .nav-links .dropdown li {
        opacity: 1 !important;
        transform: none !important;
        margin: 0 !important;
    }
    
    .nav-links .dropdown li a {
        color: var(--secondary-color) !important;
        width: 100% !important;
        padding: 14px 24px !important;
        font-size: 16px !important;
        display: block !important;
        text-align: left !important;
        border-bottom: 1px solid rgba(0,0,0,0.05) !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-sizing: border-box !important;
    }
    
    .hamburger {
        display: flex;
        align-self: center;
        margin-right: 20px;
    }
    
    .logo-box {
        padding: 0 15px !important;
    }

    .logo-box img {
        width: 210px;
    }
    
    .logo-box::after {
        border-top-width: 95px; /* Match base nav height */
        border-right-width: 15px;
        right: -15px;
    }
    
    .nav-right {
        display: none;
    }

    /* Typography */
    h1 { font-size: 40px; }
    h2 { font-size: 32px; }
    
    /* Layouts */
    .hero-content h1 { font-size: 45px; }
    
    .about-wrapper, .service-item-large {
        flex-direction: column !important;
        gap: 40px;
    }
    
    .about-images {
        height: 400px;
    }
    
    .img-front {
        width: 80%;
        right: 0;
        bottom: -20px;
    }
    
    .why-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    
    /* Service Pages Detail Grid */
    .service-details-section .container > div {
        grid-template-columns: 1fr !important;
    }

    /* Contact & CTA Mobile */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .cta-banner h2 {
        font-size: 36px;
    }
}

/* Mobile Devices (Max 768px) */
@media (max-width: 768px) {
    /* Padding */
    .section-padding { padding: 60px 0; }
    .page-header { padding: 120px 0 60px; }
    
    /* Typography */
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    .hero-content h1 { font-size: 36px; }
    
    /* Stats Box in About */
    .stats-box {
        bottom: 10px;
        left: 10px;
        padding: 15px;
    }
    
    .stats-box h2 { font-size: 30px; }
    
    /* Grids */
    .footer-grid {
        gap: 30px;
    }
    
    /* Brand Track */
    .brand-track img {
        height: 40px;
        margin: 0 20px;
    }
    
    .counter-grid, .team-grid {
        grid-template-columns: 1fr;
    }
    
    /* Blog & Contact Responsive Adjustments */
    .modern-contact-form {
        padding: 30px;
    }
    .contact-info-card {
        padding: 25px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .blog-post-card .blog-img {
        height: 250px !important;
    }
    .blog-content {
        padding: 25px !important;
    }
    .blog-content h2 {
        font-size: 24px !important;
    }
    .sidebar-widget {
        padding: 25px !important;
    }
    .cta-banner {
        padding: 60px 0;
    }
    .cta-banner h2 {
        font-size: 30px;
    }
}

/* Small Mobile (Max 480px) */
@media (max-width: 480px) {
    .hero-content h1 { font-size: 28px; }
    .hero-content p { font-size: 16px; }
    
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    
    .about-images {
        height: 300px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .top-info span {
        font-size: 12px;
        display: block;
        margin-bottom: 5px;
    }
    
    .logo-box {
        padding: 0 10px !important;
    }

    .logo-box img {
        width: 180px;
    }

    /* Small Mobile Blog & Contact Adjustments */
    .modern-contact-form {
        padding: 20px;
    }
    .modern-contact-form h2 {
        font-size: 24px !important;
    }
    .cta-banner h2 {
        font-size: 24px;
    }
    .blog-content h2 {
        font-size: 20px !important;
    }
}

/* =====================================================
   GLOBAL RESPONSIVE OVERRIDES (handles inline styles)
   ===================================================== */
img { max-width: 100%; height: auto; }

/* Tablet & below */
@media (max-width: 991px) {
    /* About page hero grid */
    .about-wrapper[style*="grid-template-columns"] { grid-template-columns: 1fr !important; gap: 40px !important; }
    /* Service detail page grid */
    .service-details-section .container > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; gap: 30px !important; }
    /* Service row in about page */
    .service-row[style*="grid-template-columns"] { grid-template-columns: 80px 1fr !important; gap: 20px !important; }
    .service-row > div:last-child { grid-column: 1 / -1; text-align: left !important; }
    /* Contact wrapper */
    .contact-wrapper { grid-template-columns: 1fr !important; gap: 30px !important; }
    /* Section padding */
    .section-padding { padding: 60px 0 !important; }
    /* Headings */
    h1[style*="font-size: 72px"] { font-size: 42px !important; letter-spacing: -1px !important; }
    h2[style*="font-size: 36px"] { font-size: 28px !important; }
    /* Footer grid */
    .footer-grid { gap: 40px !important; margin-bottom: 50px !important; }
}

/* Mobile */
@media (max-width: 768px) {
    /* Top bar — stack contents */
    .top-bar .container { flex-direction: column; gap: 8px; padding-top: 6px; padding-bottom: 6px; }
    .top-info { display: flex; flex-direction: column; gap: 4px; text-align: center; }
    .top-info span { font-size: 12px; }
    /* Nav stays via hamburger */
    /* Page headers */
    .page-header { padding: 100px 0 60px !important; }
    .page-header h1 { font-size: 32px !important; }
    /* Service detail content */
    .service-main-content h2 { font-size: 24px !important; }
    .service-main-content p { font-size: 15px !important; }
    /* Hero */
    .hero { padding: 100px 0 60px; }
    .hero .container { grid-template-columns: 1fr; gap: 30px; }
    .hero-content h1 { font-size: 32px; }
    /* About wrapper inline grid */
    div.about-wrapper > div[style*="position: absolute"] { position: static !important; margin-top: 20px !important; }
    /* Service row */
    .service-row[style*="grid-template-columns"] { grid-template-columns: 1fr !important; padding: 25px !important; text-align: center; }
    .service-row > div:first-child { margin: 0 auto; }
    /* Team grid */
    .team-grid, .team-profiles { gap: 25px !important; }
    /* Counter grid */
    .counter-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 30px !important; }
    /* Contact info cards */
    .contact-info-cards { gap: 15px !important; }
    /* CTA banner */
    .cta-banner h2 { font-size: 24px !important; }
    /* Testimonials grid */
    .testi-grid { grid-template-columns: 1fr !important; }
    /* Modern contact form */
    .modern-contact-form { padding: 25px !important; }
    .modern-contact-form h2 { font-size: 22px !important; }
    /* Footer grid */
    .footer-grid { grid-template-columns: 1fr !important; gap: 30px !important; margin-bottom: 40px !important; }
    /* Service sidebar */
    .service-sidebar > div { padding: 25px !important; }
    /* Brochures download */
    /* Page headers in about */
    section.page-header h1 { font-size: 36px !important; letter-spacing: -1px !important; }
}

/* Small Mobile */
@media (max-width: 480px) {
    .page-header h1 { font-size: 26px !important; }
    .hero-content h1 { font-size: 26px !important; }
    h1[style*="font-size: 72px"] { font-size: 30px !important; }
    h2[style*="font-size: 36px"], h2[style*="font-size: 32px"] { font-size: 22px !important; }
    .counter-grid { grid-template-columns: 1fr !important; }
    .counter-item .count { font-size: 36px !important; }
    .top-info span { font-size: 11px !important; }
    .btn { padding: 10px 20px !important; font-size: 13px !important; }
    .team-card, .profile-card { width: 100% !important; max-width: 280px !important; }
    .nav-right .btn { padding: 8px 14px !important; font-size: 12px !important; }
    .service-row { padding: 20px !important; }
}

/* =====================================================
   MODERN TEAM SECTION — HOME PAGE
   ===================================================== */
.team-modern-section {
    position: relative;
    overflow: hidden;
}
.team-modern-section::before {
    content: "";
    position: absolute;
    top: -120px; right: -120px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(0,86,179,0.10) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.team-modern-section::after {
    content: "";
    position: absolute;
    bottom: -120px; left: -120px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(0,86,179,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.team-modern-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px;
    margin-top: 60px;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.team-modern-card {
    flex: 0 0 calc(33.333% - 24px);
    max-width: 320px;
    min-width: 260px;
}
.team-modern-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    isolation: isolate;
    padding: 14px 14px 0;
}
/* gradient border halo */
.team-modern-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), #4aa8ff, transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}
.team-modern-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 60% at 50% 0%, rgba(0,86,179,0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}
.team-modern-card:hover {
    transform: translateY(-14px);
    box-shadow: 0 38px 72px rgba(0, 86, 179, 0.22);
}
.team-modern-card:hover::before,
.team-modern-card:hover::after { opacity: 1; }

.team-modern-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1.05;
    background: linear-gradient(135deg, #eef4ff 0%, #f7faff 100%);
    border-radius: 18px;
    z-index: 2;
}
.team-modern-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.6s ease;
    display: block;
}
.team-modern-card:hover .team-modern-img-wrap img {
    transform: scale(1.08);
    filter: saturate(1.1);
}

.team-modern-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 16, 35, 0) 40%, rgba(10, 16, 35, 0.78) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.team-modern-card:hover .team-modern-overlay { opacity: 1; }

.team-modern-socials {
    display: flex;
    gap: 12px;
    transform: translateY(20px);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.05s;
}
.team-modern-card:hover .team-modern-socials { transform: translateY(0); }

.team-modern-socials a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}
.team-modern-socials a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px) scale(1.05);
}

.team-modern-info {
    text-align: center;
    padding: 28px 22px 30px;
    position: relative;
    z-index: 2;
}
.team-modern-info::before {
    content: "";
    position: absolute;
    top: 14px; left: 50%;
    transform: translateX(-50%) scaleX(0.3);
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #4aa8ff);
    border-radius: 3px;
    transform-origin: center;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0.6;
}
.team-modern-card:hover .team-modern-info::before {
    transform: translateX(-50%) scaleX(1.4);
    opacity: 1;
}
.team-modern-info h3 {
    margin: 16px 0 8px;
    font-size: 21px;
    color: var(--secondary-color);
    letter-spacing: 0.2px;
    font-weight: 800;
}
.team-modern-info span {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: inline-block;
}

/* Responsive — team modern */
@media (max-width: 991px) {
    .team-modern-card { flex: 0 0 calc(50% - 18px); max-width: 320px; }
}
@media (max-width: 768px) {
    .team-modern-grid { gap: 22px; }
    .team-modern-card { flex: 0 0 calc(50% - 11px); min-width: 0; padding: 10px 10px 0; }
    .team-modern-info { padding: 22px 14px 24px; }
    .team-modern-info h3 { font-size: 17px; margin-top: 12px; }
    .team-modern-info span { font-size: 11px; letter-spacing: 0.8px; }
    .team-modern-socials a { width: 36px; height: 36px; font-size: 13px; }
}
@media (max-width: 480px) {
    .team-modern-card { flex: 0 0 100%; max-width: 340px; margin: 0 auto; }
}


