/* ==========================================================
   DIGITAL MARKETING SERVICE — CSS
   Theme: Blue, Green, White (Same as Software Development)
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    --dm-bg:        linear-gradient(145deg, #0a1f3d 0%, #1a4a6e 35%, #2d7a4a 65%, #0a0e17 100%);
    --dm-bg-2:      #53efe2;
    --dm-surface:   #121a2b;
    --dm-surface-2: #182238;
    --dm-border:    #24304a;
    --dm-border-hi: #3a4a6b;
    --dm-text:      #e7edf6;
    --dm-text-dim:  #8b97ad;

    --dm-green:     #7ee787;
    --dm-green-2:   #539E10;
    --dm-cyan:      #5fe6d6;
    --dm-amber:     #ffb86c;
    --dm-pink:      #ff8fc7;
}

/* ==========================================================
   SECTION 1: HERO — Terminal Window
   ========================================================== */

.dm-hero-section {
    position: relative;
    padding: 170px 0 110px 0;
    min-height: 520px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #059669, #34d399, #10b981, #059669);
    overflow: hidden;
    isolation: isolate;
}

/* Circuit / graph-paper grid backdrop */
.dm-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(60, 247, 75, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126, 231, 212, 0.055) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 25% 30%, #000 0%, transparent 75%);
            mask-image: radial-gradient(ellipse 70% 60% at 25% 30%, #000 0%, transparent 75%);
    z-index: 0;
}

/* Ambient glow */
.dm-hero-section::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 55%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(95, 230, 214, 0.10) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.dm-hero-section .container {
    position: relative;
    z-index: 1;
}

.dm-hero-content {
    max-width: 800px;
    background: linear-gradient(180deg, rgba(0, 105, 88, 0.9), rgba(11, 55, 46, 0.7));
    border: 1px solid var(--dm-border);
    border-radius: 14px;
    padding: 26px 34px 34px 34px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
}

/* Fake terminal window chrome (mac-style traffic-light dots) */
.dm-hero-content::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
    box-shadow:
        20px 0 0 #ffbd2e,
        40px 0 0 #27c93f;
    margin-bottom: 22px;
}

.dm-hero-tag {
    display: inline-flex;
    align-items: center;
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--dm-cyan);
    text-transform: none;
    margin-bottom: 22px;
    padding: 7px 16px 7px 14px;
    border: 1px solid rgba(95, 230, 214, 0.28);
    border-radius: 6px;
    background: rgba(95, 230, 214, 0.06);
}

.dm-hero-tag::before {
    content: '$';
    color: var(--dm-green);
    margin-right: 10px;
    font-weight: 700;
}

.dm-hero-title {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 50px;
    font-weight: 700;
    line-height: 1.18;
    color: var(--dm-text);
    margin-bottom: 22px;
    letter-spacing: -0.5px;
}

.dm-hero-title span {
    color: var(--dm-green);
    position: relative;
}

/* Blinking terminal cursor after the highlighted word */
.dm-hero-title span::after {
    content: '';
    display: inline-block;
    width: 3px;
    height: 0.85em;
    margin-left: 6px;
    background: var(--dm-green);
    vertical-align: -0.1em;
    animation: dmCursorBlink 1.1s steps(1) infinite;
}

@keyframes dmCursorBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.dm-hero-subtext {
    font-family: "JetBrains Mono", monospace;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--dm-text-dim);
    max-width: 700px;
    font-style: normal;
    border-left: 2px solid var(--dm-border-hi);
    padding-left: 18px;
}

.dm-hero-subtext::before {
    content: '/* ';
    color: #556077;
}

.dm-hero-subtext::after {
    content: ' */';
    color: #556077;
}

/* ==========================================================
   SECTION 2: INTRO
   ========================================================== */

.dm-intro-section {
    position: relative;
    padding: 80px 0;
    background: #ffffff;
    border-bottom: 1px solid #eef1f5;
}

.dm-intro-text {
    font-family: "Inter", sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.8;
    color: #1a2233;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: 28px;
}

/* Angle-bracket accent, nods to markup/code without altering copy */
.dm-intro-text::before {
    content: '<';
    font-family: "JetBrains Mono", monospace;
    color: var(--dm-green-2);
    font-weight: 700;
    position: absolute;
    left: 0;
    top: 0;
}

/* ========================================================== */
/* SECTION 3: PARTNERSHIP — Green/White Theme                */
/* ========================================================== */

.dm-partnership-section {
    position: relative;
    padding: 80px 0 100px 0;
    background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 30%, #bbf7d0 60%, #f0fdf4 100%);
    border-top: 1px solid rgba(5, 150, 105, 0.15);
    overflow: hidden;
}

.dm-partnership-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
    background-size: 38px 38px;
    pointer-events: none;
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* Floating glow orbs - soft green */
.dm-partnership-section .container::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(16, 185, 129, 0.10) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: orbFloat1 10s ease-in-out infinite;
}

.dm-partnership-section .container::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -60px;
    width: 350px;
    height: 350px;
    background: radial-gradient(ellipse, rgba(34, 197, 94, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: orbFloat2 12s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, -20px) scale(1.2); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, 30px) scale(1.3); }
}

.dm-partnership-section .container {
    position: relative;
    z-index: 1;
}

/* ========================================================== */
/* SECTION 3: HEADER - Dark Text on Light Background         */
/* ========================================================== */

.dm-partnership-section .dm-section-tag {
    color: #059669;
    border-color: rgba(5, 150, 105, 0.25);
    background: rgba(5, 150, 105, 0.08);
    margin-bottom: 16px;
    font-size: 13px;
    letter-spacing: 2px;
}

.dm-partnership-section .dm-section-tag::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(5, 150, 105, 0.12), transparent);
    transform: translateX(-100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.dm-partnership-section .dm-section-title,
.dm-partnership-section .dm-section-title span {
    color: #064e3b;
    font-family: "Space Grotesk", "Inter", sans-serif;
}

.dm-partnership-section .dm-section-title span {
    color: #059669;
    background: linear-gradient(135deg, #059669, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================================== */
/* SECTION 3: GRID - CARDS                                    */
/* ========================================================== */

.dm-partnership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 30px 0 35px 0;
}

.dm-partnership-item {
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 30px 24px 26px 24px;
    border-radius: 16px;
    border: 1px solid rgba(5, 150, 105, 0.12);
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Gradient border on hover */
.dm-partnership-item::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    padding: 2px;
    background: linear-gradient(135deg, #059669, #34d399, #10b981, #059669);
    background-size: 300% 300%;
    opacity: 0;
    transition: opacity 0.5s ease;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.dm-partnership-item:hover::before {
    opacity: 1;
    animation: borderShift 3s ease infinite;
}

@keyframes borderShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Left accent bar */
.dm-partnership-item::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 0;
    width: 4px;
    height: 60%;
    background: linear-gradient(180deg, #059669, #34d399, #059669);
    background-size: 100% 200%;
    border-radius: 0 4px 4px 0;
    opacity: 0.6;
    transition: all 0.4s ease;
    animation: accentPulse 3s ease infinite;
}

@keyframes accentPulse {
    0%, 100% { background-position: 0% 0%; opacity: 0.5; }
    50% { background-position: 0% 100%; opacity: 1; }
}

.dm-partnership-item:hover {
    transform: translateY(-8px);
    border-color: rgba(5, 150, 105, 0.3);
    box-shadow: 0 16px 50px rgba(16, 185, 129, 0.12);
    background: rgba(255, 255, 255, 0.95);
}

.dm-partnership-item:hover::after {
    opacity: 1;
}

/* Item number */
.dm-partnership-item .dm-item-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-family: "JetBrains Mono", monospace;
    font-size: 16px;
    font-weight: 700;
    color: #059669;
    background: rgba(5, 150, 105, 0.10);
    border-radius: 10px;
    margin-bottom: 14px;
    transition: all 0.4s ease;
}

.dm-partnership-item:hover .dm-item-number {
    background: rgba(5, 150, 105, 0.18);
    transform: scale(1.05);
}

.dm-partnership-item h4 {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #064e3b;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.dm-partnership-item:hover h4 {
    color: #059669;
}

.dm-partnership-item p {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.65;
    color: #4b5563;
    margin: 0;
    transition: color 0.3s ease;
}

.dm-partnership-item:hover p {
    color: #374151;
}

/* ========================================================== */
/* SECTION 3: DESCRIPTION                                     */
/* ========================================================== */

.dm-partnership-desc {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 1.85;
    color: #374151;
    max-width: 900px;
    margin-top: 22px;
    padding-left: 20px;
    border-left: 3px solid #059669;
    background: rgba(255, 255, 255, 0.4);
    padding: 18px 24px;
    border-radius: 8px;
}

/* ========================================================== */
/* RESPONSIVE                                                  */
/* ========================================================== */

@media (max-width: 991px) {
    .dm-partnership-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .dm-partnership-item {
        padding: 24px 20px 22px 20px;
    }
    
    .dm-partnership-section .dm-section-title {
        font-size: 30px;
    }
}

@media (max-width: 767px) {
    .dm-partnership-section {
        padding: 50px 0 60px 0;
    }
    
    .dm-partnership-section .dm-section-title {
        font-size: 26px;
    }
    
    .dm-partnership-item {
        padding: 20px 16px 18px 16px;
    }
    
    .dm-partnership-item h4 {
        font-size: 16px;
    }
    
    .dm-partnership-item p {
        font-size: 13px;
    }
    
    .dm-partnership-desc {
        font-size: 14px;
        padding: 14px 16px;
        margin-top: 18px;
    }
}

@media (max-width: 480px) {
    .dm-partnership-item .dm-item-number {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    
    .dm-partnership-section .dm-section-title {
        font-size: 22px;
    }
    
    .dm-partnership-desc {
        font-size: 13px;
        padding: 12px 14px;
    }
}

/* ========================================================== */
/* SECTION 4: DIGITAL MARKETING - ENHANCED CARDS             */
/* ========================================================== */

.dm-expertise-section {
    padding: 85px 0 100px 0;
    background: linear-gradient(145deg, #f0fdf4 0%, #ecfdf5 30%, #d1fae5 60%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

/* Animated background grid - lighter for white theme */
.dm-expertise-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.06) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
    z-index: 0;
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* Floating glow orbs - soft green */
.dm-expertise-section .container::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: orbFloat1 10s ease-in-out infinite;
}

.dm-expertise-section .container::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(34, 197, 94, 0.10) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: orbFloat2 12s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, -30px) scale(1.2); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 40px) scale(1.3); }
}

.dm-expertise-section .container {
    position: relative;
    z-index: 1;
}

/* ========================================================== */
/* HEADER                                                      */
/* ========================================================== */

.dm-expertise-header {
    text-align: center;
    margin-bottom: 50px;
}

.dm-expertise-header .dm-section-tag {
    color: #059669;
    border-color: rgba(5, 150, 105, 0.25);
    background: rgba(5, 150, 105, 0.08);
    margin-bottom: 12px;
    font-size: 12px;
    letter-spacing: 3px;
    position: relative;
    overflow: hidden;
}

.dm-expertise-header .dm-section-tag::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(5, 150, 105, 0.15), transparent);
    transform: translateX(-100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.dm-expertise-header .dm-section-title {
    color: #064e3b;
    margin-bottom: 0;
    font-size: 38px;
    position: relative;
    display: inline-block;
}

.dm-expertise-header .dm-section-title span {
    color: #059669;
    background: linear-gradient(135deg, #059669, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.dm-expertise-header .dm-section-title span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #059669, #34d399);
    border-radius: 2px;
    transform: scaleX(0);
    animation: titleUnderline 2s ease-in-out infinite;
}

@keyframes titleUnderline {
    0%, 100% { transform: scaleX(0); transform-origin: left; }
    50% { transform: scaleX(1); transform-origin: left; }
}

.dm-expertise-subtitle {
    font-family: "Inter", sans-serif;
    font-size: 18px;
    color: #4b5563;
    margin-top: 10px;
    font-weight: 400;
    opacity: 0.85;
}

/* ========================================================== */
/* GRID - INCREASED CARD SIZE                                 */
/* ========================================================== */

.dm-expertise-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.dm-expertise-grid .col-lg-4 {
    padding: 0 15px;
    margin-bottom: 30px;
}

/* ========================================================== */
/* ADVANCED FLIP CARD - INCREASED SIZE                        */
/* ========================================================== */

.flip-card-advanced {
    perspective: 1000px;
    cursor: pointer;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    height: 100%;
}

.flip-card-inner-advanced {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 340px;  /* Increased from 280px */
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: 20px; /* Increased from 16px */
}

.flip-card-advanced:hover .flip-card-inner-advanced {
    transform: rotateY(180deg);
}

/* ========================================================== */
/* FRONT SIDE - TRANSPARENT WITH INCREASED SIZE              */
/* ========================================================== */

.flip-card-front-advanced {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    transform: rotateY(0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid rgba(5, 150, 105, 0.25);
    transition: all 0.5s ease;
}

/* Soft glass effect */
.flip-card-front-advanced::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        transparent 50%, 
        rgba(16, 185, 129, 0.08) 100%
    );
    pointer-events: none;
}

/* Glow effect on hover */
.card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, 
        rgba(16, 185, 129, 0.15) 0%, 
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.8s ease;
}

.flip-card-advanced:hover .card-glow {
    opacity: 1;
}

/* Border glow on hover */
.flip-card-advanced:hover .flip-card-front-advanced {
    border-color: rgba(5, 150, 105, 0.55);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.15), 
                inset 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Remove old gradient border */
.flip-card-front-advanced::after {
    display: none;
}

/* IMAGE - REDUCED PADDING (margin kam kiya) */
.flip-card-img-advanced {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px 15px;  /* Reduced from 25px */
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.95) contrast(1.05) drop-shadow(0 4px 12px rgba(5, 150, 105, 0.1));
    position: relative;
    z-index: 1;
}

.flip-card-advanced:hover .flip-card-img-advanced {
    transform: scale(1.08) rotate(-3deg);
    filter: brightness(1) contrast(1.1) drop-shadow(0 8px 25px rgba(16, 185, 129, 0.2));
}

/* ========================================================== */
/* BACK SIDE - INCREASED SIZE                                 */
/* ========================================================== */

.flip-card-back-advanced {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    transform: rotateY(180deg);
    padding: 35px 28px 30px 30px;  /* Increased padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(145deg, #ffffff, #f0fdf4);
    border: 2px solid rgba(16, 185, 129, 0.2);
    position: relative;
}

/* Animated gradient border */
.flip-card-back-advanced::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    padding: 2px;
    background: linear-gradient(135deg, 
        #059669, #34d399, #10b981, #059669
    );
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: borderShift 4s ease infinite;
}

@keyframes borderShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Left accent bar */
.flip-card-back-advanced::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 0;
    width: 5px;  /* Increased from 4px */
    height: 60%;
    background: linear-gradient(180deg, #059669, #34d399, #059669);
    background-size: 100% 200%;
    border-radius: 0 4px 4px 0;
    animation: accentPulse 3s ease infinite;
}

@keyframes accentPulse {
    0%, 100% { background-position: 0% 0%; opacity: 0.6; }
    50% { background-position: 0% 100%; opacity: 1; }
}

/* ICON - INCREASED SIZE */
.dm-exp-icon-advanced {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;  /* Increased from 52px */
    height: 60px; /* Increased from 52px */
    font-size: 30px; /* Increased from 26px */
    margin-bottom: 16px; /* Increased from 14px */
    border-radius: 16px; /* Increased from 14px */
    background: linear-gradient(135deg, 
        rgba(5, 150, 105, 0.12), 
        rgba(16, 185, 129, 0.08)
    );
    transition: all 0.5s ease;
    position: relative;
}

.dm-exp-icon-advanced::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 19px;
    border: 2px solid rgba(5, 150, 105, 0.15);
    animation: ringPulse 2.5s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.6; }
}

.flip-card-advanced:hover .dm-exp-icon-advanced {
    transform: scale(1.05);
    background: linear-gradient(135deg, 
        rgba(5, 150, 105, 0.2), 
        rgba(16, 185, 129, 0.15)
    );
}

/* TITLE - INCREASED SIZE */
.flip-card-back-advanced h4 {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 20px;  /* Increased from 17px */
    font-weight: 700;
    color: #064e3b;
    margin-bottom: 10px; /* Increased from 8px */
    line-height: 1.3;
    position: relative;
}

/* DESCRIPTION - INCREASED SIZE */
.flip-card-back-advanced p {
    font-family: "Inter", sans-serif;
    font-size: 15px;  /* Increased from 14px */
    line-height: 1.8; /* Increased from 1.7 */
    color: #4b5563;
    margin: 0;
}

/* ========================================================== */
/* STAGGER ANIMATION                                          */
/* ========================================================== */

.dm-expertise-grid .col-lg-4 {
    opacity: 0;
    transform: translateY(40px);
    animation: cardFadeInUp 0.7s ease forwards;
}

.dm-expertise-grid .col-lg-4:nth-child(1) { animation-delay: 0.05s; }
.dm-expertise-grid .col-lg-4:nth-child(2) { animation-delay: 0.10s; }
.dm-expertise-grid .col-lg-4:nth-child(3) { animation-delay: 0.15s; }
.dm-expertise-grid .col-lg-4:nth-child(4) { animation-delay: 0.20s; }
.dm-expertise-grid .col-lg-4:nth-child(5) { animation-delay: 0.25s; }
.dm-expertise-grid .col-lg-4:nth-child(6) { animation-delay: 0.30s; }

@keyframes cardFadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================================== */
/* RESPONSIVE                                                  */
/* ========================================================== */

@media (max-width: 991px) {
    .dm-expertise-grid .col-lg-4 {
        opacity: 1;
        transform: none;
        animation: none;
    }
    
    .flip-card-inner-advanced {
        min-height: 300px;  /* Increased from 250px */
    }
    
    .flip-card-img-advanced {
        padding: 12px;  /* Reduced padding */
    }
    
    .flip-card-back-advanced {
        padding: 28px 22px 24px 24px;
    }
    
    .flip-card-back-advanced h4 {
        font-size: 18px;
    }
    
    .flip-card-back-advanced p {
        font-size: 14px;
    }
    
    .dm-exp-icon-advanced {
        width: 52px;
        height: 52px;
        font-size: 26px;
    }
    
    .dm-expertise-header .dm-section-title {
        font-size: 30px;
    }
}

@media (max-width: 767px) {
    .dm-expertise-section {
        padding: 50px 0 60px 0;
    }
    
    .dm-expertise-subtitle {
        font-size: 15px;
    }
    
    .dm-expertise-header .dm-section-title {
        font-size: 26px;
    }
    
    .flip-card-inner-advanced {
        min-height: 260px;  /* Increased from 220px */
    }
    
    .flip-card-img-advanced {
        padding: 10px;  /* Reduced padding */
    }
    
    .flip-card-back-advanced {
        padding: 22px 18px 20px 20px;
    }
    
    .flip-card-back-advanced h4 {
        font-size: 17px;
    }
    
    .flip-card-back-advanced p {
        font-size: 14px;
        line-height: 1.7;
    }
    
    .dm-exp-icon-advanced {
        width: 46px;
        height: 46px;
        font-size: 22px;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .flip-card-inner-advanced {
        min-height: 220px;  /* Increased from 180px */
    }
    
    .flip-card-img-advanced {
        padding: 8px;  /* Reduced padding */
    }
    
    .flip-card-back-advanced {
        padding: 18px 14px 16px 16px;
    }
    
    .flip-card-back-advanced h4 {
        font-size: 15px;
    }
    
    .flip-card-back-advanced p {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .dm-exp-icon-advanced {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
}/* ==========================================================
   HEADER SERVICES DROPDOWN STYLING
   ========================================================== */

/* Dropdown container customization */
.navbar-nav .dropdown-menu {
    background: var(--dm-surface, #121a2b);
    border: 1px solid var(--dm-border, #24304a);
    border-radius: 12px;
    padding: 10px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    margin-top: 10px;
}

/* Dropdown item links */
.navbar-nav .dropdown-menu .dropdown-item {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    color: var(--dm-text, #e7edf6);
    padding: 10px 20px;
    transition: all 0.3s ease;
}

/* Hover and active states for dropdown items */
.navbar-nav .dropdown-menu .dropdown-item:hover,
.navbar-nav .dropdown-menu .dropdown-item:focus {
    background: rgba(5, 150, 105, 0.15);
    color: var(--dm-green, #7ee787);
    padding-left: 24px; /* Smooth slide effect on hover */
}

/* ==========================================================
   SPLIT SERVICES DROPDOWN (TEXT + ARROW BUTTON)
   ========================================================== */

.service-split-dropdown {
    display: flex;
    align-items: center;
}

/* Style for the main "Services" text link */
.service-split-dropdown .service-main-link {
    padding-right: 4px !important;
}

/* Style for the separate dropdown arrow button */
.service-split-dropdown .dropdown-split-btn {
    padding-left: 2px !important;
    padding-right: 12px !important;
}

/* Hide Bootstrap's default dropdown arrow pseudo-element if present */
.service-split-dropdown .dropdown-toggle::after {
    display: none !important;
}

/* Style for the custom ▾ sign */
.service-split-dropdown .dropdown-caret {
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Rotate arrow when open */
.service-split-dropdown .show .dropdown-caret {
    transform: rotate(180deg);
}

/* ==========================================================
   CLICK-BASED RIGHT-SIDE FLYOUT SUB-DROPDOWN
   ========================================================== */

.dropdown-submenu-click {
    position: relative; /* Anchor container for absolute positioning */
}

/* Make sub-menu pop out directly to the right side */
.sub-dropdown-menu {
    display: none;
    list-style: none;
    padding: 8px 0;
    background: var(--dm-surface, #121a2b);
    border: 1px solid var(--dm-border, #24304a);
    border-radius: 10px;
    
    /* Absolute Positioning */
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 200px;
    margin-left: 5px; 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

/* When active/clicked, show the sub-menu */
.sub-dropdown-menu.show-sub {
    display: block;
}

/* Style for sub-menu items */
.sub-dropdown-menu .dropdown-item {
    font-size: 13px;
    padding: 8px 18px;
}

.sub-dropdown-menu .dropdown-item:hover {
    background: rgba(5, 150, 105, 0.15);
    color: var(--dm-green, #7ee787);
}

/* Rotate arrow when open */
.dropdown-submenu-click.open .sub-arrow {
    transform: rotate(180deg);
    display: inline-block;
}/* ==========================================================
   NESTED SUB-DROPDOWN (RIGHT-SIDE FLYOUT)
   ========================================================== */

/* Position the parent relative so the child can absolute-position relative to it */
.dropdown-menu .dropdown-submenu {
    position: relative;
}

/* Hide the sub-menu by default */
.dropdown-menu .dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: 0px;
    display: none;
    position: absolute;
}

/* Show the sub-menu when hovering over the parent item */
.dropdown-menu .dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

/* Add a small arrow indicator to show it has a sub-menu */
.dropdown-submenu > a::after {
    content: " ›";
    float: right;
    font-weight: bold;
    margin-left: 10px;
}
/* ==========================================
   CIRCULAR SCROLL CARDS
========================================== */

.circular-cards-section {
    height: 500vh;
    position: relative;
}

.circular-cards-sticky {
    position: sticky;
    top: 0;

    height: 100vh;
    width: 100%;

    overflow: hidden;

    display: flex;
    align-items: center;

    padding: 60px 7vw;

    background: #f5f5f2;
}


/* LEFT CONTENT */

.circular-cards-content {
    width: 42%;
    position: relative;
    z-index: 20;
}

.circular-cards-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 25px;
}

.circular-cards-content h2 {
    font-size: clamp(40px, 5vw, 75px);
    line-height: 1.02;
    font-weight: 500;
    margin-bottom: 30px;
}

.circular-cards-content p {
    max-width: 500px;
    font-size: 18px;
    line-height: 1.6;
    color: #555;
}

.circular-cards-scroll {
    margin-top: 45px;

    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.circular-cards-scroll span {
    width: 35px;
    height: 1px;
    background: #222;
}


/* CARD AREA */

.circular-cards-wrapper {
    width: 58%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
}


/* ORBIT */

.circular-cards-orbit {
    width: 600px;
    height: 600px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* CARD */

.circular-card {
    position: absolute;

    width: 420px;
    height: 500px;

    left: 50%;
    top: 50%;

    transform-origin: center center;

    padding: 45px;

    border-radius: 30px;

    color: white;

    background:
        linear-gradient(
            180deg,
            #d9ef00 0%,
            #91a900 40%,
            #172a35 100%
        );

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.16);

    display: flex;
    flex-direction: column;

    will-change: transform, opacity;
}


/* CARD COLORS */

.circular-card:nth-child(2) {
    background:
        linear-gradient(
            180deg,
            #e5f400,
            #8ca700 40%,
            #243943
        );
}

.circular-card:nth-child(3) {
    background:
        linear-gradient(
            180deg,
            #c8e600,
            #789100 40%,
            #172a35
        );
}

.circular-card:nth-child(4) {
    background:
        linear-gradient(
            180deg,
            #dff000,
            #718900 40%,
            #1c313b
        );
}

.circular-card:nth-child(5) {
    background:
        linear-gradient(
            180deg,
            #cfe900,
            #859c00 40%,
            #203640
        );
}

.circular-card:nth-child(6) {
    background:
        linear-gradient(
            180deg,
            #e2f100,
            #8ca500 40%,
            #162b35
        );
}


/* CARD CONTENT */

.circular-card-icon {
    width: 55px;
    height: 55px;

    border: 1px solid rgba(255,255,255,.6);

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;

    margin-bottom: auto;
}

.circular-card-number {
    position: absolute;

    top: 35px;
    right: 35px;

    font-size: 14px;

    opacity: .7;
}

.circular-card h3 {
    font-size: clamp(30px, 3vw, 45px);

    line-height: 1.08;

    font-weight: 500;

    margin-bottom: 25px;
}

.circular-card p {
    font-size: 16px;

    line-height: 1.6;

    color: rgba(255,255,255,.85);

    margin-bottom: 25px;
}

.circular-card a {
    margin-top: auto;

    color: white;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 900px) {

    .circular-cards-sticky {
        padding: 40px;
    }

    .circular-cards-content {
        width: 35%;
    }

    .circular-cards-wrapper {
        width: 65%;
    }

    .circular-cards-orbit {
        width: 500px;
        height: 500px;
    }

    .circular-card {
        width: 350px;
        height: 440px;
        padding: 35px;
    }
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 700px) {

    .circular-cards-section {
        height: 450vh;
    }

    .circular-cards-sticky {
        display: block;
        padding: 35px 20px;
    }

    .circular-cards-content {
        width: 100%;
        height: 32%;
        padding-top: 15px;
    }

    .circular-cards-content h2 {
        font-size: 40px;
        margin-bottom: 15px;
    }

    .circular-cards-content p {
        font-size: 15px;
    }

    .circular-cards-scroll {
        margin-top: 20px;
    }

    .circular-cards-wrapper {
        width: 100%;
        height: 68%;
    }

    .circular-cards-orbit {
        width: 100%;
        height: 100%;
    }

    .circular-card {
        width: min(330px, 85vw);
        height: 420px;

        padding: 30px;

        border-radius: 24px;
    }

    .circular-card h3 {
        font-size: 30px;
    }

    .circular-card p {
        font-size: 14px;
    }
}/* =========================================
   QUICK REFERENCE TABLE — COMPACT VERSION
========================================= */

.service-reference {
  width: 100%;
  padding: 65px 4%;
  background: #f7f8f7;
  font-family: "Inter", sans-serif;
  color: #151a17;
  box-sizing: border-box;
}

.service-reference *,
.service-reference *::before,
.service-reference *::after {
  box-sizing: border-box;
}


/* =========================================
   SECTION HEADER
========================================= */

.reference-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 32px;
}

.reference-label {
  display: inline-block;
  margin-bottom: 8px;

  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;

  color: #4f9a12;
}

.reference-header h2 {
  margin: 0;

  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 600;
  letter-spacing: -1px;

  color: #111812;
}

.reference-header p {
  margin: 8px 0 0;

  color: #626a65;
  font-size: 14px;
}


/* =========================================
   TABLE WRAPPER
========================================= */

.reference-table-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;

  overflow-x: auto;
  overflow-y: visible;

  border: 1px solid #dfe3df;
  border-radius: 16px;

  background: #ffffff;

  box-shadow: 0 10px 30px rgba(20, 30, 20, 0.06);

  /* Important:
     Prevent sticky positioning from
     affecting this table */
  position: relative;
}


/* =========================================
   TABLE
========================================= */

.reference-table {
  width: 100%;
  min-width: 820px;

  border-collapse: separate;
  border-spacing: 0;

  font-size: 12.5px;
}


/* =========================================
   TABLE HEADER
   NO STICKY HEADER
========================================= */

.service-reference .reference-table thead {
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  z-index: auto !important;

  transform: none !important;
}

.service-reference .reference-table thead tr {
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  z-index: auto !important;

  transform: none !important;
}

.service-reference .reference-table thead th {
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  z-index: auto !important;

  transform: none !important;

  padding: 17px 14px;

  background: #172018;
  color: #ffffff;

  text-align: center;

  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 600;

  white-space: nowrap;
}


/* First Header Cell */

.reference-table thead th:first-child {
  text-align: left;
  padding-left: 22px;

  border-radius: 15px 0 0 0;
}


/* Last Header Cell */

.reference-table thead th:last-child {
  border-radius: 0 15px 0 0;
}


/* Service Column */

.service-col {
  width: 39%;
}


/* =========================================
   GROWTH / FEATURED COLUMN
========================================= */

.reference-table thead th.featured-col {
  background: #4f9a12 !important;
  color: #ffffff !important;
}

.reference-table tbody td.featured-col {
  background: #fbfdfb !important;
  color: #222822 !important;

  box-shadow:
    inset 1px 0 0 #e2e9df,
    inset -1px 0 0 #e2e9df;
}


/* =========================================
   MOST POPULAR BADGE
========================================= */

.popular-badge {
  display: block;
  width: fit-content;

  margin: 0 auto 5px;
  padding: 3px 8px;

  border-radius: 20px;

  background: #ffffff;
  color: #356d0d;

  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
  font-weight: 700;

  letter-spacing: 0.6px;
}


/* =========================================
   CATEGORY ROW
========================================= */

.reference-table .category-row td {
  padding: 12px 22px;

  background: #f1f3f1;
  color: #273029;

  border-top: 1px solid #dfe3df;
  border-bottom: 1px solid #dfe3df;

  font-family: "IBM Plex Mono", monospace;
  font-size: 9.5px;
  font-weight: 700;

  letter-spacing: 1.2px;
  text-transform: uppercase;
}


/* =========================================
   NORMAL ROWS
========================================= */

.reference-table tbody tr:not(.category-row) td {
  padding: 13px 14px;

  background: #ffffff;

  border-bottom: 1px solid #edf0ed;

  text-align: center;
  vertical-align: middle;

  color: #303832;

  transition: background 0.2s ease;
}


/* First Column */

.reference-table tbody tr:not(.category-row) td:first-child {
  padding-left: 22px;

  text-align: left;

  color: #202720;
  font-weight: 500;
}


/* =========================================
   HOVER
========================================= */

.reference-table tbody tr:not(.category-row):hover td {
  background: #f8faf8;
}

.reference-table tbody tr:not(.category-row):hover td.featured-col {
  background: #f7faf6 !important;
}


/* =========================================
   CHECK MARK
========================================= */

.check {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: 23px;
  height: 23px;

  border-radius: 50%;

  background: #e8f3e3;
  color: #3f850b;

  font-size: 13px;
  font-weight: 800;
}


/* =========================================
   NOT INCLUDED
========================================= */

.cross {
  color: #a3aaa5;
  font-size: 16px;
}


/* =========================================
   NUMBER PILL
========================================= */

.number-pill {
  display: inline-block;

  padding: 5px 9px;

  border: 1px solid #d9e1d6;
  border-radius: 20px;

  background: #f7f9f7;

  color: #344032;

  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
}


/* =========================================
   TEXT PILL
========================================= */

.text-pill {
  display: inline-block;

  max-width: 175px;

  padding: 5px 9px;

  border-radius: 6px;

  background: #f1f3f1;
  color: #3c453e;

  font-size: 10px;
  line-height: 1.3;
}

.reference-table .featured-col .text-pill {
  background: #edf4ea;
  color: #30402d;
}


/* =========================================
   EXTRA DESCRIPTION
========================================= */

.feature-note {
  display: block;

  max-width: 170px;

  margin: 4px auto 0;

  color: #687169;

  font-size: 9px;
  line-height: 1.3;
}


/* =========================================
   SCROLLBAR
========================================= */

.reference-table-wrap::-webkit-scrollbar {
  height: 6px;
}

.reference-table-wrap::-webkit-scrollbar-track {
  background: #f1f3f1;
}

.reference-table-wrap::-webkit-scrollbar-thumb {
  background: #b9c2b8;
  border-radius: 20px;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

  .service-reference {
    padding: 45px 12px;
  }

  .reference-header {
    margin-bottom: 24px;
  }

  .reference-header h2 {
    font-size: 30px;
  }

  .reference-header p {
    font-size: 13px;
  }

  .reference-table-wrap {
    border-radius: 13px;
  }

  .reference-table {
    min-width: 780px;
    font-size: 11.5px;
  }

  /* Header remains NORMAL on mobile too */

  .service-reference .reference-table thead,
  .service-reference .reference-table thead tr,
  .service-reference .reference-table thead th {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    z-index: auto !important;
    transform: none !important;
  }

  .reference-table thead th {
    padding: 14px 10px;
    font-size: 12px;
  }

  .reference-table tbody tr:not(.category-row) td {
    padding: 11px 10px;
  }

  .reference-table tbody tr:not(.category-row) td:first-child {
    padding-left: 16px;
  }

  .reference-table .category-row td {
    padding: 10px 16px;
  }

  .check {
    width: 21px;
    height: 21px;

    font-size: 12px;
  }

  .number-pill,
  .text-pill {
    font-size: 9px;
  }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

  .service-reference {
    padding: 40px 10px;
  }

  .reference-header h2 {
    font-size: 27px;
  }

  .reference-header p {
    font-size: 12px;
  }

  .reference-table {
    min-width: 760px;
  }

  .reference-table thead th {
    padding: 13px 9px;
    font-size: 11px;
  }

  .reference-table tbody tr:not(.category-row) td {
    padding: 10px 9px;
  }

  .reference-table tbody tr:not(.category-row) td:first-child {
    padding-left: 14px;
  }
}
/* =========================================
   INDUSTRY MARQUEE
========================================= */

.industry-marquee {
  width: 100%;
  overflow: hidden;
  padding: 22px 0;

  background: #111812;

  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.industry-marquee-track {
  display: flex;
  width: max-content;

  align-items: center;

  animation: industryScroll 32s linear infinite;

  will-change: transform;
}

.industry-marquee:hover .industry-marquee-track {
  animation-play-state: paused;
}

.industry-item {
  display: flex;
  align-items: center;

  flex-shrink: 0;

  padding: 0 32px;

  color: #ffffff;

  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  font-weight: 500;

  white-space: nowrap;
}


/* Green separator */

.industry-item::after {
  content: "✦";

  margin-left: 32px;

  color: #4f9a12;

  font-size: 12px;
}


/* =========================================
   INFINITE ANIMATION
========================================= */

@keyframes industryScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

  .industry-marquee {
    padding: 18px 0;
  }

  .industry-item {
    padding: 0 22px;
    font-size: 14px;
  }

  .industry-item::after {
    margin-left: 22px;
    font-size: 10px;
  }

  .industry-marquee-track {
    animation-duration: 25s;
  }
}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

  .industry-marquee-track {
    animation: none;
  }
}