/* ==========================================================
   SOFTWARE DEVELOPMENT SERVICE — CSS
   Direction: "Code Editor / Terminal" technical aesthetic
   Fonts:  Space Grotesk (display) · Inter (body) · JetBrains Mono (code accents)
   Content unchanged — visual system only
   ========================================================== */

@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 {
    --sd-bg:        linear-gradient(145deg, #0a1f3d 0%, #1a4a6e 35%, #2d7a4a 65%, #0a0e17 100%);
    --sd-bg-2:      #53efe2;
    --sd-surface:   #121a2b;
    --sd-surface-2: #182238;
    --sd-border:    #24304a;
    --sd-border-hi: #3a4a6b;
    --sd-text:      #e7edf6;
    --sd-text-dim:  #8b97ad;

    --sd-green:     #7ee787;   /* brand green, brightened for dark bg */
    --sd-green-2:   #539E10;   /* brand green, light-bg version */
    --sd-cyan:      #5fe6d6;
    --sd-amber:     #ffb86c;
    --sd-pink:      #ff8fc7;
}


/* ==========================================================
   SECTION 1: HERO — Terminal Window
   ========================================================== */

.sd-hero-section {
    position: relative;
    padding: 170px 0 110px 0;
    min-height: 520px;
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, #0a1f3d 0%, #1a4a6e 35%, #2d7a4a 65%, #0a0e17 100%);
    overflow: hidden;
    isolation: isolate;
}

/* Circuit / graph-paper grid backdrop */
.sd-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 */
.sd-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;
}

.sd-hero-section .container {
    position: relative;
    z-index: 1;
}

.sd-hero-content {
    max-width: 800px;
    background: linear-gradient(180deg, rgba(18, 26, 43, 0.9), rgba(13, 19, 32, 0.7));
    border: 1px solid var(--sd-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) */
.sd-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;
}

.sd-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(--sd-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);
}

.sd-hero-tag::before {
    content: '$';
    color: var(--sd-green);
    margin-right: 10px;
    font-weight: 700;
}

.sd-hero-title {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 50px;
    font-weight: 700;
    line-height: 1.18;
    color: var(--sd-text);
    margin-bottom: 22px;
    letter-spacing: -0.5px;
}

.sd-hero-title span {
    color: var(--sd-green);
    position: relative;
}

/* Blinking terminal cursor after the highlighted word */
.sd-hero-title span::after {
    content: '';
    display: inline-block;
    width: 3px;
    height: 0.85em;
    margin-left: 6px;
    background: var(--sd-green);
    vertical-align: -0.1em;
    animation: sdCursorBlink 1.1s steps(1) infinite;
}

@keyframes sdCursorBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.sd-hero-subtext {
    font-family: "JetBrains Mono", monospace;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--sd-text-dim);
    max-width: 700px;
    font-style: normal;
    border-left: 2px solid var(--sd-border-hi);
    padding-left: 18px;
}

.sd-hero-subtext::before {
    content: '/* ';
    color: #556077;
}

.sd-hero-subtext::after {
    content: ' */';
    color: #556077;
}

/* ==========================================================
   SECTION 2: INTRO
   ========================================================== */

.sd-intro-section {
    position: relative;
    padding: 80px 0;
    background: #ffffff;
    border-bottom: 1px solid #eef1f5;
}

.sd-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 */
.sd-intro-text::before {
    content: '<';
    font-family: "JetBrains Mono", monospace;
    color: var(--sd-green-2);
    font-weight: 700;
    position: absolute;
    left: 0;
    top: 0;
}

/* ==========================================================
   SECTION 3: PARTNERSHIP — Lifecycle
   ========================================================== */

.sd-partnership-section {
    position: relative;
    padding: 80px 0 100px 0;
    background: #0d1320;
    border-top: 1px solid rgba(126, 231, 135, 0.08);
    overflow: hidden;
}

.sd-partnership-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(126, 231, 135, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126, 231, 135, 0.04) 1px, transparent 1px);
    background-size: 38px 38px;
    pointer-events: none;
}

.sd-partnership-section .container {
    position: relative;
    z-index: 1;
}

.sd-section-tag {
    display: inline-flex;
    align-items: center;
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--sd-green);
    text-transform: uppercase;
    margin-bottom: 16px;
    padding: 6px 16px;
    border: 1px solid rgba(126, 231, 135, 0.25);
    border-radius: 6px;
    background: rgba(126, 231, 135, 0.06);
}

.sd-partnership-section .sd-section-title,
.sd-partnership-section .sd-section-title span {
    color: var(--sd-text);
    font-family: "Space Grotesk", "Inter", sans-serif;
}

.sd-section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.sd-section-title span {
    color: var(--sd-green);
}

.sd-partnership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 30px 0 35px 0;
}

.sd-partnership-item {
    position: relative;
    background: var(--sd-surface);
    padding: 30px 24px 26px 24px;
    border-radius: 10px;
    border: 1px solid var(--sd-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.sd-partnership-item:hover {
    transform: translateY(-6px);
    border-color: var(--sd-green);
    box-shadow: 0 16px 40px rgba(126, 231, 135, 0.12);
}

.sd-partnership-item h4 {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--sd-text);
    margin-bottom: 8px;
}

.sd-partnership-item p {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.65;
    color: var(--sd-text-dim);
    margin: 0;
}

.sd-partnership-desc {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 1.85;
    color: #a6b0c3;
    max-width: 900px;
    margin-top: 22px;
}

/* ==========================================================
   SECTION 4: DEVELOPERS — Gradient Background Theme
   ========================================================== */

.sd-developers-section {
    padding: 85px 0 100px 0;
    background: linear-gradient(145deg, #0a1f3d 0%, #1a4a6e 25%, #2d7a4a 55%, #0a0e17 85%, #000000 100%);
    position: relative;
    overflow: hidden;
}

/* Grid pattern overlay */
.sd-developers-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(126, 231, 135, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126, 231, 212, 0.04) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
    z-index: 0;
}

.sd-developers-section .container {
    position: relative;
    z-index: 1;
}

/* ==========================================================
   SECTION 4 HEADER - Light Text on Dark Background
   ========================================================== */

.sd-developers-header {
    text-align: center;
    margin-bottom: 50px;
}

.sd-developers-header .sd-section-tag {
    color: var(--sd-cyan);
    border-color: rgba(95, 230, 214, 0.25);
    background: rgba(95, 230, 214, 0.08);
    margin-bottom: 12px;
}

.sd-developers-header .sd-section-tag::before {
    color: var(--sd-green);
}

.sd-developers-header .sd-section-title {
    color: var(--sd-text);
    margin-bottom: 0;
}

.sd-developers-header .sd-section-title span {
    color: var(--sd-green);
}

.sd-developers-subtitle {
    font-family: "Inter", sans-serif;
    font-size: 18px;
    color: var(--sd-text-dim);
    margin-top: 10px;
    font-weight: 400;
}

/* ==========================================================
   GRID WITH GAPS - Same as before
   ========================================================== */

.sd-developers-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.sd-developers-grid .col-lg-3 {
    padding: 0 12px;
    margin-bottom: 24px;
}

/* ==========================================================
   FLIP CARD — SAME AS BEFORE (No Changes)
   ========================================================== */

.flip-card {
    perspective: 1000px;
    cursor: pointer;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    height: 100%;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 280px;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* Front & Back - Common Styles */
.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e6ebf1;
}

/* Front - Image Side */
.flip-card-front {
    transform: rotateY(0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #040405;
}

.flip-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.5s ease;
}

.flip-card:hover .flip-card-img {
    transform: scale(1.05);
}

/* Back - Content Side */
.flip-card-back {
    transform: rotateY(180deg);
    padding: 30px 24px 26px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    border-left: 3px solid var(--sd-green-2);
}

.flip-card-back .sd-dev-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    font-size: 22px;
    margin-bottom: 14px;
    border-radius: 8px;
    background: rgba(83, 158, 16, 0.08);
}

.flip-card-back h4 {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #0a1f3d;
    margin-bottom: 8px;
}

.flip-card-back p {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #4a5a6a;
    margin: 0;
}

/* Flip Card - Hover Shadow Effect */
.flip-card:hover .flip-card-back {
    box-shadow: 0 16px 40px rgba(83, 158, 16, 0.12);
    border-color: var(--sd-green-2);
}

/* ==========================================================
   RESPONSIVE — TABLET
   ========================================================== */

@media (max-width: 991px) {
    .sd-hero-section {
        padding: 130px 0 80px 0;
        min-height: 420px;
    }
    .sd-hero-content {
        padding: 22px 24px 28px 24px;
    }
    .sd-hero-title {
        font-size: 36px;
    }
    .sd-hero-subtext {
        font-size: 14px;
    }
    .sd-intro-text {
        font-size: 19px;
    }
    .sd-section-title {
        font-size: 30px;
    }
    .sd-partnership-grid {
        grid-template-columns: 1fr;
    }
    
    .flip-card-inner {
        min-height: 250px;
    }
}

/* ==========================================================
   RESPONSIVE — MOBILE
   ========================================================== */

@media (max-width: 767px) {
    .sd-hero-section {
        padding: 110px 0 60px 0;
        min-height: auto;
    }
    .sd-hero-content {
        padding: 20px 18px 24px 18px;
        border-radius: 10px;
    }
    .sd-hero-content::before {
        width: 10px;
        height: 10px;
        box-shadow:
            16px 0 0 #ffbd2e,
            32px 0 0 #27c93f;
        margin-bottom: 16px;
    }
    .sd-hero-tag {
        font-size: 11px;
        padding: 6px 12px;
    }
    .sd-hero-title {
        font-size: 26px;
        line-height: 1.3;
    }
    .sd-hero-subtext {
        font-size: 13px;
        padding-left: 14px;
    }
    .sd-intro-section {
        padding: 50px 0;
    }
    .sd-intro-text {
        font-size: 16px;
        padding-left: 20px;
    }
    .sd-partnership-section,
    .sd-developers-section {
        padding: 50px 0 60px 0;
    }
    .sd-section-title {
        font-size: 24px;
    }
    .sd-partnership-item {
        padding: 22px 18px;
    }
    .sd-dev-card {
        padding: 22px 18px;
    }
    .sd-dev-card h4 {
        min-height: auto;
    }

    .flip-card-inner {
        min-height: 220px;
    }
    .flip-card-back {
        padding: 22px 18px;
    }
    .flip-card-back h4 {
        font-size: 16px;
    }
    .flip-card-back p {
        font-size: 13px;
    }
    .flip-card-img {
        padding: 15px;
    }
    
    .sd-developers-grid .col-md-6 {
        padding: 0 10px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .sd-hero-title {
        font-size: 22px;
    }
    .sd-section-title {
        font-size: 21px;
    }

    .flip-card-inner {
        min-height: 180px;
    }
    .flip-card-back {
        padding: 18px 14px;
    }
    .flip-card-back h4 {
        font-size: 15px;
    }
    .flip-card-back p {
        font-size: 12px;
    }
    .flip-card-img {
        padding: 10px;
    }
    
    .sd-developers-grid .col-12 {
        padding: 0 8px;
        margin-bottom: 16px;
    }
}