/*
 * HackersDigital - Custom Theme Override
 * ========================================
 * White base theme with HackersDigital brand accent color.
 * Layered on top of the Modern template base styles (style.css).
 *
 * Brand Colors:
 * - Primary Accent:  #1a73e8 (Professional Blue)
 * - Dark:            #1a1a2e  (Deep Navy - for contrast sections)
 * - Text:            #333333
 * - Light BG:        #ffffff
 * - Gray BG:         #f6f7f8 (template default)
 */

/* ============================================
   BRAND COLOR OVERRIDE
   ============================================ */

/* The template uses .bg-primary and .text-primary for its accent.
   We override those plus add our own brand utilities. */

.bg-primary,
.wt-icon-box-sm.bg-primary,
.wt-icon-box-xs.bg-primary,
.wt-icon-box-md.bg-primary {
    background-color: #1a73e8 !important;
}

.text-primary,
.icon-cell.text-primary,
a.text-primary {
    color: #1a73e8 !important;
}

.site-button.site-btn-effect,
.site-button.btn-primary {
    background-color: #1a73e8 !important;
    color: #fff !important;
    border-color: #1a73e8 !important;
}

.site-button.site-btn-effect:hover,
.site-button.btn-primary:hover {
    background-color: #1557b0 !important;
    border-color: #1557b0 !important;
}

/* Separator / Divider override */
.wt-separator.bg-primary {
    background-color: #1a73e8 !important;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */

/* Transparent overlay navbar */
.site-header {
    position: absolute !important;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 999;
}

.main-bar {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.is-fixed .main-bar {
    background: #fff !important;
    border-bottom: 1px solid #e8e8e8 !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08) !important;
}

/* Logo swap: light logo for transparent, dark logo for sticky */
.hd-logo-dark { display: none !important; }
.hd-logo-light { display: block !important; }

.is-fixed .hd-logo-dark { display: block !important; }
.is-fixed .hd-logo-light { display: none !important; }

/* Hamburger menu bars — white on transparent, dark on sticky */
.navbar-toggle .icon-bar {
    background: #fff !important;
}
.is-fixed .navbar-toggle .icon-bar {
    background: #333 !important;
}

/* Navbar container — custom class to avoid Bootstrap .container constraints */
.hd-nav-container {
    width: 100%;
    padding: 0 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.is-fixed .hd-nav-container {
    height: 60px;
}

/* Logo area */
.logo-header {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    width: auto !important;
    height: auto !important;
    gap: 10px;
    flex-shrink: 0;
    padding: 0 !important;
    margin: 0 !important;
}

.is-fixed .logo-header {
    height: auto !important;
}

.logo-header-inner {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    height: auto !important;
}

.hd-logo-icon {
    height: 44px;
    width: auto;
    flex-shrink: 0;
    display: block;
}

.is-fixed .hd-logo-icon {
    height: 38px;
}

.hd-logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e !important;
    text-decoration: none !important;
    letter-spacing: 0.5px;
    line-height: 1 !important;
    white-space: nowrap;
}

.hd-logo-text:hover {
    color: #1a1a2e !important;
    text-decoration: none !important;
}

.hd-logo-text span {
    color: #1a73e8 !important;
}

/* Nav area — right aligned, vertically centered */
.header-nav {
    display: flex !important;
    align-items: center !important;
    float: none !important;
    padding: 0 !important;
    flex-grow: 0;
}

.header-nav .nav {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.header-nav .nav > li {
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
}

.header-nav .nav > li > a {
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    color: rgba(255,255,255,0.85) !important;
    padding: 24px 18px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    height: 70px;
    transition: color 0.25s ease !important;
    line-height: 1 !important;
}

.is-fixed .header-nav .nav > li > a {
    padding: 20px 18px !important;
    height: 60px;
    color: #555 !important;
}

.header-nav .nav > li > a:hover,
.header-nav .nav > li:hover > a {
    color: #fff !important;
    background: transparent !important;
}

.is-fixed .header-nav .nav > li > a:hover,
.is-fixed .header-nav .nav > li:hover > a {
    color: #1a73e8 !important;
}

.header-nav .nav > li.active > a {
    color: #fff !important;
    background: transparent !important;
}

.is-fixed .header-nav .nav > li.active > a {
    color: #1a73e8 !important;
}

/* Active underline indicator */
.header-nav .nav > li.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    background: rgba(255,255,255,0.8);
    border-radius: 3px 3px 0 0;
}

.is-fixed .header-nav .nav > li.active::after {
    background: #1a73e8;
}

/* Hover underline indicator */
.header-nav .nav > li::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    background: rgba(255,255,255,0.6);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.is-fixed .header-nav .nav > li::before {
    background: #1a73e8;
}

.header-nav .nav > li:hover::before {
    transform: scaleX(1);
}

.header-nav .nav > li.active::before {
    display: none;
}

/* ============================================
   TECH BACKGROUND PATTERNS
   ============================================ */
.hd-bg-hero {
    background: url(../images/stock/hero-bg.jpg) center center / cover no-repeat !important;
    position: relative;
}

.hd-bg-cta {
    background: url(../images/stock/cta-bg.jpg) center center / cover no-repeat !important;
    position: relative;
}

.hd-bg-hero::before,
.hd-bg-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 10, 30, 0.65);
    z-index: 0;
}

.hd-bg-hero > *,
.hd-bg-cta > * {
    position: relative;
    z-index: 1;
}

/* Text legibility on background images */
.hd-bg-hero .text-white,
.hd-bg-hero h1,
.hd-bg-hero h2,
.hd-bg-hero h3,
.hd-bg-hero p,
.hd-bg-hero span,
.hd-bg-cta .text-white,
.hd-bg-cta h2,
.hd-bg-cta h3,
.hd-bg-cta p,
.hd-bg-cta span {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hd-page-banner h1,
.hd-page-banner .wt-breadcrumb li,
.hd-page-banner .wt-breadcrumb a {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Service section rows — equal height columns */
#managed-security > .container > .row,
#infrastructure > .container > .row,
#devsecops > .container > .row,
#pentesting > .container > .row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

/* Service photos */
.hd-svc-img {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    height: 100%;
    min-height: 300px;
}

.hd-svc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Carousel images (about section) */
.about-us-carousel {
    overflow: hidden;
    border-radius: 8px;
}

.about-us-carousel .ow-img {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 3 / 2;
}

.about-us-carousel .ow-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   HERO BANNER — SPLIT LAYOUT
   ============================================ */
.hd-hero-split {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

.hd-hero-split-text {
    flex: 0 0 50%;
    background: #0d1117;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 80px 40px 80px 15px;
}

.hd-hero-split-inner {
    max-width: 560px;
    width: 100%;
}

.hd-hero-split-img {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
}

.hd-hero-split-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Subtle gradient bleed from text side onto image */
.hd-hero-split-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 120px;
    background: linear-gradient(to right, #0d1117, transparent);
    z-index: 1;
}

/* Legacy hero (other pages still use this) */
.hd-hero-banner {
    position: relative;
    overflow: hidden;
}

.hd-hero-content {
    position: relative;
    z-index: 2;
}

.hd-hero-content .font-weight-300 {
    color: #1a73e8;
}

/* ============================================
   CUSTOM SECTION TITLE
   ============================================ */
.hd-section-head {
    margin-bottom: 50px;
}

.hd-section-head .hd-subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #1a73e8;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.hd-section-head h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.hd-section-head p {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    line-height: 1.7;
}

.hd-section-head.text-center p {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   ICON BOX ENHANCEMENTS
   ============================================ */
.wt-icon-box-wraper.bx-style-1 {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.wt-icon-box-wraper.bx-style-1:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

/* Equal-height card rows */
.hd-equal-row {
    display: flex;
    flex-wrap: wrap;
}

.hd-equal-row > [class*='col-'] {
    display: flex;
}

.wt-icon-box-wraper .wt-tilte {
    font-family: 'Poppins', sans-serif;
}

/* ============================================
   STATS / COUNTER SECTION
   ============================================ */
.hd-counter-section {
    position: relative;
}

.hd-counter-section .counter {
    color: #fff;
}

.hd-counter-section .wt-separator.bg-white {
    margin: 0 auto;
}

/* ============================================
   SERVICE DETAIL PAGE
   ============================================ */
.hd-service-block {
    margin-bottom: 0;
    padding: 70px 0;
}

.hd-service-block h3 {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.hd-service-block h3 i {
    color: #1a73e8;
    margin-right: 10px;
}

.hd-service-block p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
}

.hd-service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hd-service-list li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    font-size: 15px;
    color: #555;
    border-bottom: 1px solid #eee;
}

.hd-service-list li:last-child {
    border-bottom: none;
}

.hd-service-list li::before {
    content: '\f00c';
    font-family: FontAwesome;
    position: absolute;
    left: 0;
    top: 10px;
    color: #1a73e8;
    font-size: 14px;
}

/* ============================================
   ABOUT PAGE VALUES
   ============================================ */
.hd-values-box {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hd-values-box:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border-color: #1a73e8;
}

.hd-values-box .fa {
    font-size: 40px;
    color: #1a73e8;
    margin-bottom: 20px;
}

.hd-values-box h5 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.hd-values-box p {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
}

/* ============================================
   ROLE TAGS (Join Us)
   ============================================ */
.hd-role-tag {
    display: inline-block;
    background: #f0f7ff;
    border: 1px solid #d0e3ff;
    padding: 10px 20px;
    border-radius: 4px;
    margin: 5px;
    font-size: 14px;
    font-weight: 500;
    color: #1a73e8;
    transition: all 0.3s ease;
}

.hd-role-tag:hover {
    background: #1a73e8;
    color: #fff;
    border-color: #1a73e8;
}

/* ============================================
   CONTACT FORM OVERRIDES
   ============================================ */
.contact-one .form-control {
    border-radius: 0;
    border: 1px solid #ddd;
    padding: 12px 15px;
    font-size: 14px;
    height: auto;
}

.contact-one .form-control:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.contact-info.hd-info-box {
    background: #1a1a2e;
}

/* ============================================
   CTA BANNER
   ============================================ */
.hd-cta-section {
    position: relative;
}

.hd-cta-section .overlay-main {
    background-color: #1a1a2e;
}

/* ============================================
   FOOTER
   ============================================ */
.hd-footer {
    background-color: #0d1117 !important;
    color: #8b949e;
}

.hd-footer h4, .hd-footer h5 {
    color: #f0f6fc;
    font-weight: 600;
    letter-spacing: 1px;
}

.hd-footer a {
    color: #8b949e;
    transition: color 0.2s ease;
}

.hd-footer a:hover {
    color: #58a6ff;
}

.hd-footer-top {
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.hd-footer .footer-bottom {
    border-top: none;
    padding: 20px 0;
}

.hd-footer .footer-bottom .copyrights-text {
    color: #484f58;
    font-size: 13px;
}

.hd-footer .hd-logo-text {
    color: #f0f6fc !important;
}

.hd-footer .hd-logo-text span {
    color: #58a6ff !important;
}

.hd-footer-logo {
    height: 38px;
    width: auto;
}

.hd-footer .hd-footer-contact {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.hd-footer .hd-footer-contact li {
    padding: 8px 0;
    font-size: 14px;
    color: #8b949e;
}

.hd-footer .hd-footer-contact li i {
    color: #1a73e8;
    width: 20px;
    margin-right: 10px;
}

.hd-footer .hd-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hd-footer .hd-footer-links li {
    padding: 5px 0;
}

.hd-footer .hd-footer-links li a {
    font-size: 13px;
    color: #8b949e;
}

.hd-footer .hd-footer-links li a:hover {
    color: #58a6ff;
    padding-left: 3px;
}

.hd-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    color: #8b949e;
    margin-right: 8px;
    font-size: 15px;
    transition: all 0.25s ease;
}

.hd-footer-social a:hover {
    background: #1a73e8;
    color: #fff;
}

.hd-footer-tagline {
    font-size: 13px;
    color: #8b949e;
    line-height: 1.7;
    margin-top: 15px;
}

/* ============================================
   LOADER OVERRIDE
   ============================================ */
.loading-area {
    background-color: #ffffff !important;
}

.loading-pic svg polygon {
    fill: #1a73e8 !important;
    stroke: #1a73e8 !important;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
button.scroltop {
    background-color: #1a73e8 !important;
    color: #fff !important;
}

/* ============================================
   IMAGE PLACEHOLDERS (CSS-based for missing images)
   ============================================ */
.hd-img-placeholder {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a73e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.hd-img-placeholder::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(26,115,232,0.15) 0%, transparent 60%);
}

.hd-img-placeholder i {
    font-size: 60px;
    color: rgba(255,255,255,0.2);
    position: relative;
    z-index: 1;
}

/* Page banners with dark overlay */
.hd-page-banner {
    position: relative;
}

.hd-page-banner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 10, 30, 0.60);
    pointer-events: none;
}

/* ============================================
   PENTEST BOX SECTION
   ============================================ */
.hd-pentestbox-card {
    background: #fff;
    border: 1px solid #e8ecf1;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.hd-pentestbox-card:hover {
    border-color: #1a73e8;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.hd-pentestbox-card .hd-box-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a73e8, #4a9af5);
    color: #fff;
    font-size: 28px;
    margin: 0 auto 20px;
}

.hd-pentestbox-card h5 {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.hd-pentestbox-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
}

/* Feature tag inside pentest box */
.hd-feature-tag {
    display: inline-block;
    background: #f0f7ff;
    border: 1px solid #d0e3ff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #1a73e8;
    margin: 3px;
}

/* ============================================
   PROCESS STEPS (How We Work)
   ============================================ */
.hd-process-step {
    text-align: center;
    padding: 25px 15px;
    position: relative;
}

.hd-process-step .hd-step-num {
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background: #1a73e8;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 auto 15px;
}

.hd-process-step h6 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.hd-process-step p {
    font-size: 13px;
    color: #666;
}

/* ============================================
   TESTIMONIAL / TRUST BADGES
   ============================================ */
.hd-trust-badge {
    text-align: center;
    padding: 20px 10px;
}

.hd-trust-badge i {
    font-size: 36px;
    color: #1a73e8;
    margin-bottom: 10px;
    display: block;
}

.hd-trust-badge span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    font-weight: 600;
}

/* ============================================
   CASE STUDY / INSIGHTS CARDS
   ============================================ */
.hd-insight-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hd-insight-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
    transform: translateY(-4px);
}

.hd-insight-card .hd-insight-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.hd-insight-card .hd-insight-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hd-insight-card:hover .hd-insight-img img {
    transform: scale(1.05);
}

.hd-insight-card .hd-insight-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hd-insight-card .hd-insight-tag {
    display: inline-block;
    background: #f0f7ff;
    border: 1px solid #d0e3ff;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #1a73e8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.hd-insight-card .hd-insight-tag.tag-blog {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #15803d;
}

.hd-insight-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.4;
    margin-bottom: 12px;
}

.hd-insight-card h4 a {
    color: #1a1a2e;
    text-decoration: none;
}

.hd-insight-card h4 a:hover {
    color: #1a73e8;
}

.hd-insight-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    flex: 1;
}

.hd-insight-card .hd-insight-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.hd-insight-card .hd-insight-meta span {
    font-size: 12px;
    color: #999;
}

.hd-insight-card .hd-insight-meta a {
    font-size: 12px;
    font-weight: 600;
    color: #1a73e8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hd-insight-card .hd-insight-meta a:hover {
    color: #1557b0;
}

/* Featured insight (large card) */
.hd-insight-featured {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
}

.hd-insight-featured .hd-insight-img {
    aspect-ratio: 21 / 9;
    overflow: hidden;
}

.hd-insight-featured .hd-insight-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hd-insight-featured .hd-insight-body {
    padding: 35px;
}

.hd-insight-featured h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
    margin-bottom: 15px;
}

.hd-insight-featured p {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}

/* ============================================
   CASE STUDY DETAIL PAGE
   ============================================ */
.hd-case-study-article {
    max-width: 820px;
    margin: 0 auto;
}

.hd-case-study-article h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-top: 40px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a73e8;
    display: inline-block;
}

.hd-case-study-article h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin-top: 25px;
    margin-bottom: 10px;
}

.hd-case-study-article p {
    font-size: 15px;
    color: #444;
    line-height: 1.9;
    margin-bottom: 18px;
}

.hd-case-study-article ul,
.hd-case-study-article ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.hd-case-study-article li {
    font-size: 14px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 8px;
}

.hd-case-study-article li strong {
    color: #1a1a2e;
}

.hd-case-study-hero {
    aspect-ratio: 21 / 9;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 35px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
}

.hd-case-study-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hd-case-study-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px 25px;
    background: #f6f7f8;
    border-radius: 8px;
    border-left: 4px solid #1a73e8;
}

.hd-case-study-meta-item {
    flex: 1;
    min-width: 140px;
}

.hd-case-study-meta-item label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    font-weight: 600;
    margin-bottom: 4px;
}

.hd-case-study-meta-item span {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}

.hd-stat-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 25px 0 30px;
}

.hd-stat-box {
    flex: 1;
    min-width: 120px;
    background: #f0f7ff;
    border: 1px solid #d0e3ff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.hd-stat-box .stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #1a73e8;
    line-height: 1;
}

.hd-stat-box .stat-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-top: 6px;
}

.hd-case-study-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e8ecf1;
}

.hd-case-study-nav a {
    font-size: 13px;
    font-weight: 600;
    color: #1a73e8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hd-case-study-nav a:hover {
    color: #1557b0;
}

/* ============================================
   CASE STUDY — ALTERNATING SECTIONS
   ============================================ */
.hd-case-study-article.hd-cs-layout {
    max-width: none;
}

.hd-cs-header {
    max-width: 820px;
    margin: 0 auto 10px;
}

.hd-cs-row {
    display: flex;
    align-items: flex-start;
    gap: 45px;
    padding: 50px 30px;
    border-radius: 10px;
    margin-bottom: 8px;
}

.hd-cs-row-reverse {
    flex-direction: row-reverse;
}

.hd-cs-row.hd-cs-shaded {
    background: #f8f9fa;
}

.hd-cs-content {
    flex: 1 1 62%;
    min-width: 0;
}

.hd-cs-content h2:first-child {
    margin-top: 0;
}

.hd-cs-accent {
    flex: 0 0 32%;
    position: sticky;
    top: 90px;
}

.hd-cs-accent-inner {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fe 100%);
    border: 1px solid #d0e3ff;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
}

.hd-cs-accent-inner > i {
    font-size: 44px;
    color: #1a73e8;
    display: block;
    margin-bottom: 15px;
    opacity: 0.85;
}

.hd-cs-accent-inner h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.hd-cs-accent-inner > p {
    font-size: 13px !important;
    color: #666 !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
}

.hd-cs-accent-stats {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #d0e3ff;
}

.hd-cs-accent-stats > div {
    flex: 1;
    text-align: center;
}

.hd-cs-stat-val {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #1a73e8;
    line-height: 1.2;
}

.hd-cs-stat-lbl {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-top: 3px;
}

.hd-cs-full {
    padding: 50px 30px;
    border-radius: 10px;
    margin-bottom: 8px;
}

.hd-cs-full h2:first-child {
    margin-top: 0;
}

.hd-cs-full.hd-cs-shaded {
    background: #f8f9fa;
}

/* ============================================
   RESPONSIVE — TABLET (≤991px)
   ============================================ */
@media (max-width: 991px) {
    /* Service rows — stack on tablet */
    #managed-security > .container > .row,
    #infrastructure > .container > .row,
    #devsecops > .container > .row,
    #pentesting > .container > .row {
        display: block;
    }

    .hd-svc-img {
        height: auto;
        min-height: auto;
        aspect-ratio: 16 / 9;
        margin-bottom: 30px;
    }

    /* Section heads */
    .hd-section-head h2 {
        font-size: 28px;
    }

    /* Nav — tablet collapses to mobile menu */
    .hd-nav-container {
        height: auto !important;
        flex-wrap: wrap !important;
        padding: 0 20px !important;
    }

    .navbar-toggle {
        display: block !important;
        float: none !important;
        margin: 0 !important;
        padding: 8px 10px !important;
        border: 1px solid rgba(255,255,255,0.3) !important;
        border-radius: 4px !important;
    }

    .is-fixed .navbar-toggle {
        border-color: #ccc !important;
    }

    .header-nav {
        flex-basis: 100% !important;
        width: 100% !important;
        background: #fff;
        border-top: 1px solid #eee;
    }

    .header-nav.collapse {
        display: none !important;
    }

    .header-nav.collapse.in {
        display: block !important;
    }

    .header-nav .nav {
        flex-direction: column !important;
    }

    .header-nav .nav > li > a {
        padding: 14px 20px !important;
        color: #333 !important;
        height: auto !important;
    }

    .header-nav .nav > li::before,
    .header-nav .nav > li.active::after {
        display: none;
    }

    .header-nav .nav > li.active > a {
        color: #1a73e8 !important;
        border-left: 3px solid #1a73e8;
        padding-left: 17px !important;
    }

    /* Hero split tablet */
    .hd-hero-split {
        min-height: 480px;
    }

    .hd-hero-split-text {
        padding: 60px 30px 60px 15px;
    }

    /* Hero (legacy) */
    .hd-hero-content {
        padding: 100px 0 80px !important;
    }

    .hd-hero-content h1,
    .font-50 {
        font-size: 36px !important;
    }

    .font-40 {
        font-size: 30px !important;
    }

    /* Counter section */
    .some-facts {
        text-align: center;
        margin-bottom: 30px;
    }

    .some-facts-counter {
        text-align: center;
    }

    /* Services page  - reverse order fix for alternating layout */
    .section-full .row .col-md-5,
    .section-full .row .col-md-7 {
        float: none;
    }

    /* About page carousel */
    .m-about {
        margin-bottom: 30px;
    }

    /* Contact sidebar */
    .col-md-4 .p-a30[style*="background:#1a1a2e"] {
        margin-top: 30px;
    }

    /* General spacing */
    .p-tb90 {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .p-tb80 {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    /* Insight cards tablet */
    .hd-insight-featured .hd-insight-body {
        padding: 25px;
    }

    .hd-insight-featured h3 {
        font-size: 20px;
    }

    /* Case study tablet */
    .hd-case-study-meta {
        gap: 15px;
    }

    .hd-stat-grid {
        gap: 10px;
    }

    .hd-stat-box .stat-number {
        font-size: 24px;
    }
}

/* ============================================
   RESPONSIVE — MOBILE (≤767px)
   ============================================ */
@media (max-width: 767px) {
    /* Typography scale-down */
    .hd-section-head h2 {
        font-size: 22px;
    }

    /* Case study mobile */
    .hd-case-study-article h2 {
        font-size: 18px;
        margin-top: 30px;
    }

    .hd-cs-row,
    .hd-cs-row-reverse {
        flex-direction: column;
        gap: 25px;
        padding: 30px 20px;
    }

    .hd-cs-accent {
        position: static;
        flex: none;
        width: 100%;
    }

    .hd-cs-full {
        padding: 30px 20px;
    }

    .hd-case-study-meta {
        padding: 15px 18px;
        gap: 12px;
    }

    .hd-case-study-meta-item {
        min-width: 100%;
    }

    .hd-case-study-hero {
        aspect-ratio: 16 / 9;
        border-radius: 6px;
    }

    .hd-stat-grid {
        flex-direction: column;
    }

    .hd-stat-box {
        min-width: 100%;
    }

    .hd-case-study-nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hd-section-head p {
        font-size: 14px;
    }

    .hd-section-head .hd-subtitle {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .font-50 {
        font-size: 28px !important;
    }

    .font-40 {
        font-size: 24px !important;
    }

    .font-36 {
        font-size: 22px !important;
    }

    .font-30 {
        font-size: 20px !important;
    }

    .font-18 {
        font-size: 15px !important;
    }

    /* Hero split mobile — stack vertically */
    .hd-hero-split {
        flex-direction: column-reverse;
        min-height: auto;
    }

    .hd-hero-split-text {
        flex: none;
        padding: 50px 20px;
        justify-content: center;
    }

    .hd-hero-split-img {
        flex: none;
        height: 260px;
    }

    .hd-hero-split-img::before {
        display: none;
    }

    /* Gradient from bottom on mobile image */
    .hd-hero-split-img::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: linear-gradient(to bottom, transparent, #0d1117);
        z-index: 1;
    }

    .hd-hero-split-inner .site-button {
        padding: 12px 25px !important;
        display: block;
        text-align: center;
        margin-right: 0 !important;
    }

    .hd-hero-split-inner .site-button + .site-button {
        margin-top: 10px;
    }

    /* Hero banner mobile (legacy) */
    .hd-hero-content {
        padding: 80px 0 60px !important;
    }

    .hd-hero-content .site-button {
        padding: 12px 25px !important;
        display: block;
        text-align: center;
        margin-right: 0 !important;
    }

    .hd-hero-content .site-button + .site-button {
        margin-top: 10px;
    }

    /* Page banner mobile */
    .wt-bnr-inr-entry {
        padding: 60px 0 40px !important;
    }

    .wt-bnr-inr-entry h1 {
        font-size: 26px !important;
    }

    /* Sections padding */
    .p-tb90 {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    .p-tb80 {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .p-tb50 {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }

    .m-b50 {
        margin-bottom: 30px !important;
    }

    /* Icon boxes */
    .wt-icon-box-wraper.bx-style-1 {
        margin-bottom: 20px;
    }

    .wt-icon-box-wraper.bx-style-1 p {
        font-size: 13px;
    }

    /* Collapse equal-height rows on mobile */
    .hd-equal-row {
        display: block;
    }

    /* Service boxes - stack to single column */
    .col-md-3.col-sm-6 {
        width: 100%;
    }

    /* Counter section mobile */
    .some-facts {
        text-align: center;
        margin-bottom: 25px;
    }

    .some-facts h2 {
        font-size: 28px !important;
    }

    .some-facts-counter .col-md-4 {
        width: 33.33%;
        float: left;
    }

    /* Footer mobile */
    .hd-footer .col-md-4,
    .hd-footer .col-md-2,
    .hd-footer .col-md-3 {
        margin-bottom: 25px;
    }

    .hd-footer .hd-logo-text {
        font-size: 20px;
    }

    /* About section text  */
    .m-about-containt {
        padding-top: 20px !important;
    }

    .m-about-containt h2 {
        font-size: 22px !important;
    }

    /* Values boxes */
    .hd-values-box {
        margin-bottom: 15px;
    }

    .hd-values-box .p-a30 {
        min-height: auto !important;
    }

    /* Contact form */
    .contact-one .form-group {
        margin-bottom: 12px;
    }

    /* General spacing helpers */
    .p-lr80 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .p-a30 {
        padding: 20px !important;
    }

    /* Breadcrumb */
    .wt-breadcrumb li {
        font-size: 13px;
    }

    /* CTA section */
    .col-md-8.col-md-offset-2 {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Pentest box cards mobile */
    .hd-pentestbox-card {
        padding: 20px;
        margin-bottom: 20px;
    }

    /* Process steps */
    .hd-process-step {
        margin-bottom: 20px;
    }

    /* Logo mobile */
    .hd-logo-icon {
        height: 36px;
    }

    /* hamburger menu fix */
    .navbar-toggle {
        margin-top: 15px;
        margin-bottom: 15px;
    }

    /* Insight cards mobile */
    .hd-insight-card .hd-insight-body {
        padding: 18px;
    }

    .hd-insight-card h4 {
        font-size: 15px;
    }

    .hd-insight-featured .hd-insight-img {
        aspect-ratio: 16 / 9;
    }

    .hd-insight-featured h3 {
        font-size: 18px;
    }

    .hd-insight-featured .hd-insight-body {
        padding: 20px;
    }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================ */
@media (max-width: 480px) {
    .font-50 {
        font-size: 24px !important;
    }

    .font-40 {
        font-size: 20px !important;
    }

    .font-36 {
        font-size: 19px !important;
    }

    .hd-hero-content {
        padding: 60px 0 50px !important;
    }

    .hd-section-head h2 {
        font-size: 19px;
    }

    /* Counter section — stack on very small */
    .some-facts-counter .col-md-4,
    .some-facts-counter .col-sm-4 {
        width: 100%;
        float: none;
        margin-bottom: 15px;
    }

    /* Service icon size */
    .wt-icon-box-sm[style*="width:80px"] {
        width: 60px !important;
        height: 60px !important;
        line-height: 60px !important;
    }

    .wt-icon-box-sm[style*="width:80px"] span {
        font-size: 28px !important;
    }

    .hd-pentestbox-card .hd-box-icon {
        width: 55px;
        height: 55px;
        line-height: 55px;
        font-size: 22px;
    }
}

/* ============================================
   SCROLL-DOWN CTA INDICATOR
   ============================================ */
.hd-scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
}

.hd-scroll-down span {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 10px;
}

.hd-scroll-down .hd-scroll-arrow {
    display: block;
    width: 24px;
    height: 24px;
    margin: 0 auto;
    border-right: 2px solid rgba(255,255,255,0.5);
    border-bottom: 2px solid rgba(255,255,255,0.5);
    transform: rotate(45deg);
    animation: hd-scroll-bounce 2s infinite;
}

@keyframes hd-scroll-bounce {
    0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
    40% { transform: rotate(45deg) translateY(8px); }
    60% { transform: rotate(45deg) translateY(4px); }
}

/* ============================================
   HACKER / CYBER CURSOR EFFECT
   ============================================ */

/* Custom crosshair cursor site-wide */
body {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='11' fill='none' stroke='%23e53935' stroke-width='2' opacity='0.85'/%3E%3Ccircle cx='14' cy='14' r='3' fill='none' stroke='%23e53935' stroke-width='2' opacity='1'/%3E%3Cline x1='14' y1='0' x2='14' y2='7' stroke='%23e53935' stroke-width='2' opacity='0.8'/%3E%3Cline x1='14' y1='21' x2='14' y2='28' stroke='%23e53935' stroke-width='2' opacity='0.8'/%3E%3Cline x1='0' y1='14' x2='7' y2='14' stroke='%23e53935' stroke-width='2' opacity='0.8'/%3E%3Cline x1='21' y1='14' x2='28' y2='14' stroke='%23e53935' stroke-width='2' opacity='0.8'/%3E%3C/svg%3E") 14 14, crosshair;
}

/* Pointer cursor for interactive elements */
a, button, .site-button, input[type="submit"], .navbar-toggle,
.hd-scroll-down, [role="button"] {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='11' fill='none' stroke='%23e53935' stroke-width='2.5' opacity='1'/%3E%3Ccircle cx='14' cy='14' r='3' fill='%23e53935' opacity='1'/%3E%3Cline x1='14' y1='0' x2='14' y2='7' stroke='%23e53935' stroke-width='2.5' opacity='0.9'/%3E%3Cline x1='14' y1='21' x2='14' y2='28' stroke='%23e53935' stroke-width='2.5' opacity='0.9'/%3E%3Cline x1='0' y1='14' x2='7' y2='14' stroke='%23e53935' stroke-width='2.5' opacity='0.9'/%3E%3Cline x1='21' y1='14' x2='28' y2='14' stroke='%23e53935' stroke-width='2.5' opacity='0.9'/%3E%3C/svg%3E") 14 14, pointer;
}

/* Cyber glow trail — follows cursor on hover over hero */
.hd-hero-split::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26,115,232,0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hd-hero-split:hover::after {
    opacity: 1;
}

/* Scan-line overlay on hero for subtle CRT/hacker feel */
.hd-hero-split::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.02) 2px,
        rgba(0, 0, 0, 0.02) 4px
    );
    pointer-events: none;
    z-index: 4;
}

/* Hover glow on cards and interactive sections */
.wt-icon-box-wraper,
.hd-insight-card,
.hd-pentestbox-card {
    position: relative;
    overflow: hidden;
}

.wt-icon-box-wraper::before,
.hd-insight-card::before,
.hd-pentestbox-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(26,115,232,0.06) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.wt-icon-box-wraper:hover::before,
.hd-insight-card:hover::before,
.hd-pentestbox-card:hover::before {
    opacity: 1;
}

/* Subtle border glow on card hover */
.wt-icon-box-wraper {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.wt-icon-box-wraper:hover {
    box-shadow: 0 0 20px rgba(26,115,232,0.12), 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* ============================================
   SMOOTH SCROLL + GLOBAL TRANSITIONS
   ============================================ */
html {
    scroll-behavior: smooth;
}

/* Smooth transitions on main-bar for sticky state */
.main-bar {
    transition: background 0.4s ease, box-shadow 0.4s ease !important;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

/* Base: elements hidden until revealed */
.hd-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hd-reveal.hd-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide from left */
.hd-reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hd-reveal-left.hd-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide from right */
.hd-reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hd-reveal-right.hd-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale up reveal */
.hd-reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hd-reveal-scale.hd-visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays for child elements */
.hd-stagger > *:nth-child(1) { transition-delay: 0s; }
.hd-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.hd-stagger > *:nth-child(3) { transition-delay: 0.2s; }
.hd-stagger > *:nth-child(4) { transition-delay: 0.3s; }
.hd-stagger > *:nth-child(5) { transition-delay: 0.4s; }
.hd-stagger > *:nth-child(6) { transition-delay: 0.5s; }

/* ============================================
   BUTTON MICRO-INTERACTIONS
   ============================================ */

/* Sweep fill effect on primary buttons */
.site-button {
    position: relative;
    overflow: hidden;
    transition: color 0.35s ease, transform 0.2s ease, box-shadow 0.3s ease !important;
    z-index: 1;
}

.site-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.15);
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.site-button:hover::before {
    left: 100%;
}

.site-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26,115,232,0.25);
}

.site-button:active {
    transform: translateY(0) scale(0.98);
}

/* ============================================
   CARD HOVER INTERACTIONS
   ============================================ */

/* Service icon cards */
.wt-icon-box-wraper.bx-style-1 {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s ease;
}

.wt-icon-box-wraper.bx-style-1:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1), 0 0 0 1px rgba(26,115,232,0.08);
}

/* Icon bounce on card hover */
.wt-icon-box-wraper.bx-style-1:hover .wt-icon-box-sm,
.wt-icon-box-wraper.bx-style-1:hover .wt-icon-box-md {
    transform: scale(1.1);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Pentest box cards */
.hd-pentestbox-card {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
}

.hd-pentestbox-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
    border-color: rgba(26,115,232,0.3);
}

/* Feature tags slide in on card hover */
.hd-pentestbox-card .hd-feature-tag {
    transition: transform 0.3s ease, background 0.3s ease;
}

.hd-pentestbox-card:hover .hd-feature-tag {
    background: rgba(26,115,232,0.12);
}

/* Insight cards */
.hd-insight-card {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s ease;
}

.hd-insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

/* Image zoom on card hover */
.hd-insight-card:hover .hd-insight-img img,
.hd-svc-img:hover img {
    transform: scale(1.05);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hd-insight-img img,
.hd-svc-img img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   SECTION SEPARATOR ANIMATIONS
   ============================================ */
.wt-separator {
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    width: 40px;
}

.hd-visible .wt-separator,
.hd-section-head .wt-separator {
    width: 50px;
}

/* ============================================
   LINK UNDERLINE ANIMATION
   ============================================ */
.hd-footer a:not(.hd-footer-logo):not([class*="social"]) {
    position: relative;
    display: inline-block;
}

.hd-footer a:not(.hd-footer-logo):not([class*="social"])::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: #58a6ff;
    transition: width 0.3s ease;
}

.hd-footer a:not(.hd-footer-logo):not([class*="social"]):hover::after {
    width: 100%;
}

/* ============================================
   HERO TEXT ENTRANCE ANIMATION
   ============================================ */
@keyframes hd-hero-fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hd-hero-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hd-hero-split-inner > *:nth-child(1) {
    animation: hd-hero-fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hd-hero-split-inner > *:nth-child(2) {
    animation: hd-hero-fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hd-hero-split-inner > *:nth-child(3) {
    animation: hd-hero-fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.hd-hero-split-inner > *:nth-child(4),
.hd-hero-split-inner > *:nth-child(5) {
    animation: hd-hero-fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

/* Hero image Ken Burns slow zoom */
.hd-hero-split-img img {
    animation: hd-ken-burns 20s ease-in-out infinite alternate;
}

@keyframes hd-ken-burns {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

/* ============================================
   PAGE BANNER ENTRANCE (Inner pages)
   ============================================ */
.hd-page-banner .banner-title-name h1 {
    animation: hd-hero-fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hd-page-banner .wt-breadcrumb {
    animation: hd-hero-fadeIn 0.6s ease 0.6s both;
}

/* ============================================
   REDUCE MOTION — Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hd-reveal,
    .hd-reveal-left,
    .hd-reveal-right,
    .hd-reveal-scale {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}
