/* ========================================
   PENFRAN Premium Redesign Layer
   Corporate technology design system
======================================== */

:root {
    --primary-color: #0F2D5C;
    --primary-light: #1a4480;
    --primary-dark: #0a1f42;
    --secondary-color: #2563EB;
    --accent-color: #F4B400;
    --accent-light: #ffc933;
    --text-color: #111827;
    --text-light: #6B7280;
    --body-text: #6B7280;
    --white: #ffffff;
    --light-bg: #F8FAFC;
    --card-bg: #FFFFFF;
    --border-color: #E5E7EB;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --gradient: linear-gradient(135deg, #0F2D5C 0%, #2563EB 100%);
    --gradient-accent: linear-gradient(135deg, #2563EB 0%, #0F2D5C 100%);
    --gradient-soft: linear-gradient(160deg, #F8FAFC 0%, #EEF4FF 50%, #F8FAFC 100%);
    --shadow-sm: 0 1px 3px rgba(15, 45, 92, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 45, 92, 0.08);
    --shadow-lg: 0 16px 48px rgba(15, 45, 92, 0.12);
    --shadow-glow: 0 8px 32px rgba(37, 99, 235, 0.25);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-pill: 50px;
    --space: 8px;
    --header-height: 72px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Base ---- */
html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

html::-webkit-scrollbar {
    display: block;
    width: 8px;
}

html::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--body-text);
    line-height: 1.7;
    font-weight: 400;
    background: var(--white);
    overflow-x: hidden;
    padding-top: 0;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h2 { font-weight: 700; }
h3, h4 { font-weight: 600; }

p {
    max-width: 650px;
}

.section-header p,
.hero-content p,
.about-content > p,
.cta-content p,
.contact-info > p,
.contact-form-wrapper > p {
    max-width: 650px;
}

a {
    color: var(--secondary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- Preloader ---- */
#preloader {
    background: var(--white);
}

.preloader-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-color);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   SITE HEADER — Sticky Premium Nav
======================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: var(--transition);
}

.header-contact-strip {
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    padding: 8px 0;
    transition: var(--transition);
}

.header-contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-contact-left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.header-contact-left a,
.header-contact-left span {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header-contact-left a:hover {
    color: var(--accent-color);
}

.header-contact-left i {
    color: var(--accent-color);
    font-size: 12px;
}

.header-contact-right {
    display: flex;
    gap: 12px;
}

.header-contact-right a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

.header-contact-right a:hover {
    color: var(--accent-color);
}

/* Hide old top/logo bars if present */
.top-bar,
.logo-bar {
    display: none !important;
}

.main-navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 10px 0 !important;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: var(--transition);
    min-height: var(--header-height);
}

.site-header.scrolled .main-navbar,
.main-navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 4px 24px rgba(15, 45, 92, 0.08);
    border-bottom-color: var(--border-color);
}

.site-header.scrolled .header-contact-strip {
    max-height: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
}

.main-navbar .logo {
    display: flex;
    align-items: center;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    text-decoration: none;
}

.main-navbar .logo::before {
    display: none;
}

.main-navbar .logo:hover {
    transform: none;
    box-shadow: none;
}

.main-navbar .logo-img {
    height: 48px;
    max-width: 160px;
    width: auto;
    object-fit: contain;
}

.main-navbar .nav-link {
    color: var(--text-color) !important;
    padding: 10px 16px !important;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    background: transparent !important;
    transition: color var(--transition);
}

.main-navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 4px;
    height: 2px;
    background: var(--secondary-color);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--secondary-color) !important;
    background: transparent !important;
}

.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after {
    transform: scaleX(1);
}

.main-navbar .dropdown-toggle::after {
    margin-left: 4px;
    vertical-align: 2px;
}

.main-navbar .dropdown-menu {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    margin-top: 8px;
    min-width: 220px;
}

.main-navbar .dropdown-item {
    padding: 10px 20px 10px 36px;
    font-size: 14px;
    color: var(--text-color);
    border-bottom: none;
    border-radius: 0;
    font-weight: 400;
}

.main-navbar .dropdown-item::before {
    color: var(--secondary-color);
}

.main-navbar .dropdown-item:hover {
    background: rgba(37, 99, 235, 0.06);
    color: var(--secondary-color);
    padding-left: 40px;
}

.dropdown-submenu .dropdown-menu .dropdown-item:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--secondary-color);
}

.header-cta {
    margin-left: 16px;
}

.btn-quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gradient);
    color: var(--white) !important;
    border: none;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-quote:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: var(--white) !important;
}

.btn-quote:active {
    transform: translateY(0);
}

.navbar-toggler {
    border: 1px solid var(--border-color);
    padding: 8px 10px;
    border-radius: 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230F2D5C' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    .main-navbar .navbar-collapse {
        background: var(--white);
        border-radius: var(--radius);
        padding: 16px;
        margin-top: 12px;
        box-shadow: var(--shadow-md);
        border: 1px solid var(--border-color);
    }

    .main-navbar .nav-link::after {
        display: none;
    }

    .header-cta {
        margin: 16px 0 0;
    }

    .header-cta .btn-quote {
        width: 100%;
    }

    .dropdown-submenu .dropdown-menu {
        position: static !important;
        box-shadow: none;
        border: none;
        padding-left: 12px;
    }
}

/* ========================================
   BUTTONS
======================================== */
.btn-gradient,
.btn-primary {
    background: var(--gradient) !important;
    border: none !important;
    color: var(--white) !important;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 16px rgba(15, 45, 92, 0.2);
    transition: var(--transition);
    text-transform: none;
    letter-spacing: 0;
    position: relative;
    overflow: hidden;
}

.btn-gradient:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: var(--white) !important;
    background: var(--gradient-accent) !important;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: var(--white);
    border-radius: var(--radius-pill);
    font-weight: 600;
    padding: 12px 28px;
    background: transparent;
    transition: var(--transition);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: var(--radius-pill);
    font-weight: 600;
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--gradient);
    border-color: transparent;
    color: var(--white);
}

.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: ripple-anim 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-anim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ========================================
   SECTIONS
======================================== */
.section-padding {
    padding: 96px 0;
}

.bg-light {
    background: var(--light-bg) !important;
}

.section-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.08);
    color: var(--secondary-color);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-badge.light {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.section-header {
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 17px;
    color: var(--body-text);
    margin: 0 auto;
    line-height: 1.7;
}

/* ========================================
   HERO — Premium Split
======================================== */
.hero-premium {
    position: relative;
    min-height: calc(100vh - 100px);
    background: var(--gradient-soft);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 64px 0 80px;
}

.hero-premium .hero-bg {
    background: none;
}

.hero-premium .hero-overlay {
    background: radial-gradient(ellipse at 20% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(15, 45, 92, 0.06) 0%, transparent 40%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 45, 92, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 45, 92, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-premium .hero-content {
    color: var(--text-color);
    padding: 40px 0;
    z-index: 2;
    position: relative;
}

.hero-premium .hero-badge {
    background: rgba(37, 99, 235, 0.1);
    color: var(--secondary-color);
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.hero-premium .hero-content h1 {
    font-size: 72px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-premium .hero-content h1 span {
    color: var(--secondary-color);
    background: none;
}

.hero-premium .hero-content p {
    font-size: 18px;
    color: var(--body-text);
    opacity: 1;
    margin-bottom: 32px;
    line-height: 1.75;
    max-width: 540px;
}

.hero-premium .hero-buttons {
    gap: 16px;
    margin-bottom: 40px;
}

.hero-premium .btn-outline-light {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.hero-premium .btn-outline-light:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.hero-trust-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
}

.hero-trust-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.hero-trust-list i {
    color: var(--secondary-color);
    font-size: 16px;
    flex-shrink: 0;
}

/* Hero visual */
.hero-visual {
    position: relative;
    z-index: 2;
    padding: 32px 24px;
}

.hero-visual-main {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    background: var(--primary-color);
}

.hero-visual-main::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(15, 45, 92, 0.4) 100%);
    pointer-events: none;
}

.hero-main-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.glass-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
    animation: floatCard 4s ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);
    z-index: 3;
}

.glass-card i {
    font-size: 18px;
    color: var(--secondary-color);
}

.glass-card-1 { top: 8%; left: -4%; }
.glass-card-2 { top: 28%; right: -6%; }
.glass-card-3 { bottom: 32%; left: -8%; }
.glass-card-4 { bottom: 12%; right: 4%; }
.glass-card-5 { top: 55%; right: -2%; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero-premium .hero-shape {
    display: none;
}

@media (max-width: 1199.98px) {
    .hero-premium .hero-content h1 {
        font-size: 54px;
    }

    .hero-main-img {
        height: 400px;
    }
}

@media (max-width: 991.98px) {
    .hero-premium {
        min-height: auto;
        padding: 48px 0 64px;
    }

    .hero-premium .hero-content h1 {
        font-size: 42px;
    }

    .hero-trust-list {
        grid-template-columns: 1fr;
    }

    .glass-card-1,
    .glass-card-3 {
        left: 8px;
    }

    .glass-card-2,
    .glass-card-5 {
        right: 8px;
    }
}

@media (max-width: 575.98px) {
    .hero-premium .hero-content h1 {
        font-size: 40px;
    }

    .hero-main-img {
        height: 280px;
    }

    .glass-card {
        padding: 8px 12px;
        font-size: 11px;
    }

    .glass-card i {
        font-size: 14px;
    }

    .glass-card-5 {
        display: none;
    }
}

/* ========================================
   STATISTICS
======================================== */
.stats-premium {
    padding: 64px 0;
    background: var(--white);
    margin-top: -40px;
    position: relative;
    z-index: 5;
}

.stats-premium .stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px 28px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
}

.stats-premium .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.3);
}

.stats-premium .stat-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.stats-premium .stat-icon i {
    font-size: 26px;
    color: var(--white);
}

.stats-premium .stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.1;
}

.stats-premium .stat-label {
    font-size: 14px;
    color: var(--body-text);
    font-weight: 500;
}

/* ========================================
   SERVICE CARDS
======================================== */
.service-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: left;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(37, 99, 235, 0.35);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 72px;
    height: 72px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 24px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.service-icon i {
    font-size: 30px;
    color: var(--white);
}

.service-icon.has-logo {
    background: var(--white);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.service-icon.has-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.service-card h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.service-card p {
    font-size: 15px;
    color: var(--body-text);
    margin-bottom: 24px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.service-link {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.service-link:hover {
    color: var(--primary-color);
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(4px);
}

.service-card-large {
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.service-card-large:hover {
    box-shadow: var(--shadow-glow);
    border-color: rgba(37, 99, 235, 0.3);
}

/* ========================================
   ABOUT
======================================== */
.about-premium .about-image {
    position: relative;
}

.about-premium .about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    object-fit: cover;
}

.about-premium .experience-badge {
    background: var(--gradient);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-glow);
}

.about-premium .about-content h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-premium .about-content > p {
    font-size: 16px;
    color: var(--body-text);
    margin-bottom: 32px;
    line-height: 1.75;
}

.about-mvv-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 8px;
}

.about-mvv-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.about-mvv-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.about-mvv-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-mvv-icon i {
    font-size: 20px;
    color: var(--white);
}

.about-mvv-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.about-mvv-card p {
    font-size: 14px;
    color: var(--body-text);
    margin: 0;
    line-height: 1.5;
}

/* ========================================
   WHY CHOOSE US
======================================== */
.why-premium {
    background: var(--gradient-soft);
}

.why-premium .section-header h2 {
    color: var(--primary-color);
}

.why-premium .section-header p {
    color: var(--body-text);
}

.why-premium .why-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: left;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.why-premium .why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(37, 99, 235, 0.3);
    background: var(--card-bg);
}

.why-premium .why-icon {
    width: 56px;
    height: 56px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 20px;
    transition: var(--transition);
}

.why-premium .why-card:hover .why-icon {
    background: var(--gradient);
}

.why-premium .why-icon i {
    font-size: 24px;
    color: var(--secondary-color);
    transition: var(--transition);
}

.why-premium .why-card:hover .why-icon i {
    color: var(--white);
}

.why-premium .why-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.why-premium .why-card p {
    font-size: 14px;
    color: var(--body-text);
    opacity: 1;
    margin: 0;
    line-height: 1.7;
}

/* Keep legacy why section on dark gradient if used elsewhere */
.bg-primary-gradient.why-choose-section:not(.why-premium) .why-card {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

/* ========================================
   PROJECT CARDS
======================================== */
.project-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.25);
}

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(15, 45, 92, 0.85) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 24px;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay .btn {
    border-radius: var(--radius-pill);
    font-weight: 600;
}

.project-content {
    padding: 20px 22px 24px;
}

.project-category {
    background: rgba(37, 99, 235, 0.08);
    color: var(--secondary-color);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.project-content h4 {
    font-size: 17px;
    font-weight: 600;
    margin: 10px 0 8px;
}

.project-content h4 a {
    color: var(--primary-color);
}

.project-content h4 a:hover {
    color: var(--secondary-color);
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--body-text);
}

.project-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.project-meta i {
    color: var(--secondary-color);
    font-size: 12px;
}

/* ========================================
   CLIENTS MARQUEE
======================================== */
.clients-section {
    overflow: hidden;
    background: var(--white);
}

.clients-section .section-header {
    margin-bottom: 40px;
}

.clients-marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.clients-track {
    display: flex;
    gap: 48px;
    width: max-content;
    animation: marqueeScroll 40s linear infinite;
    padding: 16px 0;
}

.clients-track:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 72px;
    flex-shrink: 0;
    padding: 12px;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.client-logo img {
    max-width: 100%;
    max-height: 48px;
    object-fit: contain;
    opacity: 1;
    transition: var(--transition);
}

.client-logo:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: var(--shadow-sm);
    transform: scale(1.04);
}

.client-logo:hover img {
    opacity: 1;
}

/* ========================================
   TESTIMONIALS
======================================== */
.testimonial-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    height: 100%;
    position: relative;
    transition: var(--transition);
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 72px;
    font-family: Georgia, serif;
    color: rgba(37, 99, 235, 0.1);
    line-height: 1;
    pointer-events: none;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.25);
    transform: translateY(-4px);
}

.testimonial-rating {
    margin-bottom: 16px;
}

.testimonial-rating i {
    color: var(--accent-color);
    font-size: 14px;
}

.testimonial-content {
    font-size: 15px;
    color: var(--body-text);
    line-height: 1.75;
    margin-bottom: 24px;
    font-style: normal;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-author img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.testimonial-author h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 2px;
}

.testimonial-author span {
    font-size: 13px;
    color: var(--body-text);
}

.testimonials-carousel .carousel-control-prev,
.testimonials-carousel .carousel-control-next {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.testimonials-carousel .carousel-control-prev {
    left: -24px;
}

.testimonials-carousel .carousel-control-next {
    right: -24px;
}

@media (max-width: 991.98px) {
    .testimonials-carousel .carousel-control-prev,
    .testimonials-carousel .carousel-control-next {
        display: none;
    }
}

/* ========================================
   CONTACT
======================================== */
.contact-home-section {
    background: var(--white);
}

.contact-info-premium,
.contact-form-premium {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    height: 100%;
}

.contact-info-premium h3,
.contact-form-premium h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-item .icon {
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-item .icon i {
    font-size: 20px;
    color: var(--secondary-color);
}

.contact-info-item .content h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.contact-info-item .content p,
.contact-info-item .content a {
    font-size: 14px;
    color: var(--body-text);
    margin: 0;
    text-decoration: none;
}

.contact-info-item .content a:hover {
    color: var(--secondary-color);
}

.contact-social .social-icons {
    display: flex;
    gap: 10px;
}

.contact-social .social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    transition: var(--transition);
}

.contact-social .social-icons a:hover {
    background: var(--gradient);
    color: var(--white);
}

/* Floating labels */
.form-floating-group {
    position: relative;
}

.form-floating-group .form-control {
    height: auto;
    padding: 18px 16px 10px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-color);
    background: var(--light-bg);
    transition: var(--transition);
}

.form-floating-group textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.form-floating-group .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: var(--white);
    outline: none;
}

.form-floating-group label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: var(--body-text);
    pointer-events: none;
    transition: 0.2s ease;
    background: transparent;
    padding: 0 4px;
    margin: 0;
}

.form-floating-group textarea ~ label {
    top: 20px;
    transform: none;
}

.form-floating-group .form-control:focus ~ label,
.form-floating-group .form-control:not(:placeholder-shown) ~ label {
    top: 6px;
    transform: none;
    font-size: 11px;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-floating-group textarea.form-control:focus ~ label,
.form-floating-group textarea.form-control:not(:placeholder-shown) ~ label {
    top: 6px;
}

/* Standard contact form polish */
.contact-form-wrapper {
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 40px;
    background: var(--card-bg);
}

.contact-form .form-control,
.contact-form .form-select {
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 16px;
    background: var(--light-bg);
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: var(--white);
}

.contact-form label,
.contact-form .form-label {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 8px;
}

.map-section iframe {
    border: none;
    width: 100%;
    height: 400px;
    display: block;
    filter: grayscale(20%);
}

/* ========================================
   CTA
======================================== */
.cta-section {
    background: var(--gradient);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: var(--white);
    font-size: 40px;
    margin-bottom: 16px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    margin: 0 auto 32px;
}

/* ========================================
   PAGE HEADER
======================================== */
.page-header {
    background: var(--gradient);
    padding: 80px 0 64px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

.page-header h1 {
    color: var(--white);
    font-size: 42px;
    font-weight: 700;
    position: relative;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.75);
}

.page-header .breadcrumb-item.active {
    color: var(--accent-color);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background: #0a1a33;
    color: rgba(255, 255, 255, 0.75);
}

.footer-top {
    padding: 80px 0 48px;
}

.footer-logo {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-logo::before,
.footer-logo::after {
    display: none;
}

.footer-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.footer-widget p {
    font-size: 14px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 24px;
    max-width: 320px;
}

.footer-widget h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 4px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.footer-contact i {
    color: var(--accent-color);
    margin-top: 3px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--accent-color);
}

.footer-partners {
    background: rgba(0, 0, 0, 0.2);
    padding: 40px 0;
}

.partners-title {
    text-align: center;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-newsletter {
    background: rgba(37, 99, 235, 0.08);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-newsletter h4 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 8px;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

.newsletter-form {
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    font-size: 14px;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.1);
}

.newsletter-form .btn {
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.footer-visitor-counter {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.visitor-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.7);
}

.visitor-stat-item i {
    color: var(--accent-color);
    font-size: 18px;
}

.visitor-count {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}

.visitor-stat-item .stat-label {
    font-size: 12px;
    opacity: 0.7;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.25);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

.footer-legal {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--accent-color);
}

.footer-legal .sep {
    margin: 0 8px;
    opacity: 0.4;
}

/* ========================================
   MVV / TEAM / TIMELINE (About page)
======================================== */
.mvv-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 36px 28px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: var(--transition);
}

.mvv-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.25);
}

.mvv-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.mvv-icon i {
    font-size: 24px;
    color: var(--white);
}

.mvv-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.team-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.timeline-content {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* ========================================
   SCROLL / FLOAT BUTTONS
======================================== */
.scroll-to-top {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient);
    border: none;
    color: var(--white);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.chat-button {
    background: var(--gradient) !important;
    box-shadow: var(--shadow-glow) !important;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 991.98px) {
    .section-padding {
        padding: 72px 0;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .cta-content h2 {
        font-size: 32px;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 56px 0;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .contact-info-premium,
    .contact-form-premium,
    .contact-form-wrapper {
        padding: 28px 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .stats-premium {
        margin-top: 0;
        padding: 48px 0;
    }

    .stats-premium .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .stats-premium .stat-icon {
        margin-right: 0;
        margin-bottom: 16px;
    }
}

/* Icon spacing — support leading icons */
.btn i.bi-send,
.btn i.bi-send-fill,
.btn i.bi-telephone {
    margin-left: 0;
    margin-right: 8px;
}

.btn i.bi-arrow-right {
    margin-left: 8px;
    margin-right: 0;
}

/* Footer partner logos — full color */
.partner-logo img {
    opacity: 1;
    transition: var(--transition);
}

.partner-logo:hover img {
    opacity: 1;
    transform: scale(1.05);
}

/* Dark blue frame utility (about page) */
.dark-blue-frame {
    border: 3px solid var(--primary-color);
    border-radius: var(--radius) !important;
}

/* Focus visible for a11y */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .clients-track {
        animation: none;
    }
}

/* ========================================
   Language switcher
======================================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-inline-start: 16px;
}

.language-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid rgba(15, 45, 92, 0.12);
    border-radius: 999px;
    background: #fff;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
}

.language-toggle:hover,
.language-toggle:focus,
.language-toggle.show {
    background: #EEF4FF;
    border-color: rgba(37, 99, 235, 0.35);
    color: var(--secondary-color);
}

.language-toggle .lang-code {
    letter-spacing: 0.04em;
}

.language-menu {
    min-width: 200px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.language-menu .dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 500;
}

.language-menu .dropdown-item .lang-label {
    color: var(--text-light);
    font-size: 0.8rem;
}

.language-menu .dropdown-item.active,
.language-menu .dropdown-item:hover {
    background: #EEF4FF;
    color: var(--primary-color);
}

@media (max-width: 991.98px) {
    .header-actions {
        width: 100%;
        margin: 16px 0 0;
        flex-direction: column;
        align-items: stretch;
    }

    .language-switcher,
    .language-toggle,
    .header-cta,
    .header-cta .btn-quote {
        width: 100%;
    }

    .language-toggle {
        justify-content: center;
    }
}

/* ========================================
   RTL support (Arabic)
======================================== */
[dir="rtl"] body,
body.is-rtl {
    font-family: 'Noto Sans Arabic', 'Inter', sans-serif;
}

[dir="rtl"] .navbar-nav {
    padding-right: 0;
}

[dir="rtl"] .dropdown-menu {
    text-align: right;
}

[dir="rtl"] .dropdown-submenu > .dropdown-menu {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 0.1rem;
}

[dir="rtl"] .hero-trust-list li,
[dir="rtl"] .feature-list li,
[dir="rtl"] .values-list li {
    text-align: right;
}

[dir="rtl"] .hero-buttons .bi-arrow-right,
[dir="rtl"] .btn .bi-arrow-right,
[dir="rtl"] .service-link .bi-arrow-right {
    transform: scaleX(-1);
}

[dir="rtl"] .glass-card-1 { left: auto; right: -4%; }
[dir="rtl"] .glass-card-2 { right: auto; left: -6%; }
[dir="rtl"] .glass-card-3 { left: auto; right: -8%; }
[dir="rtl"] .glass-card-4 { right: auto; left: 4%; }
[dir="rtl"] .glass-card-5 { right: auto; left: -2%; }

[dir="rtl"] .scroll-to-top {
    right: auto;
    left: 24px;
}

[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 24px;
}

[dir="rtl"] .chat-widget {
    right: auto;
    left: 24px;
}

[dir="rtl"] .chat-widget .chat-box {
    right: auto;
    left: 0;
}

[dir="rtl"] .form-floating-group label {
    left: auto;
    right: 16px;
}

[dir="rtl"] .footer-contact li,
[dir="rtl"] .contact-info-item {
    text-align: right;
}

[dir="rtl"] .text-md-end {
    text-align: left !important;
}

[dir="rtl"] .carousel-control-prev {
    left: auto;
    right: -24px;
}

[dir="rtl"] .carousel-control-next {
    right: auto;
    left: -24px;
}

body.locale-zh {
    font-family: 'Noto Sans SC', 'Inter', sans-serif;
}

