/* ====================================
   ROOT VARIABLES & RESET
   ==================================== */
   :root {
    --primary-blue: #081fd8;
    --primary-cyan: #60cfd0;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --bg-dark: #000000;
    --bg-card: #111111;
    --border-radius: 12px;
}

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

body {
    font-family: 'Funnel Display', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* ====================================
   CUSTOM SCROLLBAR
   ==================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

/* ====================================
   NAVIGATION SECTION
   ==================================== */
.navbar-custom {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    margin: 12px 24px;
    padding: 8px 24px;
}

.navbar-brand img {
    height: 32px;
}

.navbar-nav .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-cyan);
}

.btn-email {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 8px 20px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.btn-email:hover {
    transform: translateY(-2px);
    color: white;
}

/* Navigation Responsive */
@media (max-width: 991.98px) {
    .navbar-nav {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    .navbar-custom {
        margin: 8px 16px;
        padding: 8px 16px;
    }
}

/* ====================================
   HERO SECTION
   ==================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0 2rem;
}

.mesh-bg {
    position: absolute;
    top: 100px;
    left: 2rem;
    right: 2rem;
    bottom: 2rem;
    width: calc(100% - 4rem);
    height: calc(100vh - 140px);
    z-index: -1;
    border-radius: 24px;
}

.mesh-bg svg {
    border-radius: 24px;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.typing-cursor {
    animation: blink 1s infinite;
}

.lightning-bolt {
    color: white;
    animation: lightning-blink 2s infinite;
}

/* Hero Animations */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes lightning-blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.3; }
}

/* Hero Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 0 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

/* ====================================
   STORY SECTION
   ==================================== */
.story-section {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(8, 31, 216, 0.05) 0%, rgba(96, 207, 208, 0.05) 100%);
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.story-content p {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.story-content .highlight {
    color: var(--primary-cyan);
    font-weight: 600;
}

/* Story Responsive */
@media (max-width: 576px) {
    .story-content p {
        font-size: 1.1rem;
    }
}

/* ====================================
   SERVICES SECTION
   ==================================== */
.services-section {
    padding: 80px 0;
}

.service-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 0;
    height: 100%;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.service-card-image img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    max-width: 120px;
    max-height: 120px;
}

.service-card-content {
    padding: 2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-cyan);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Swiper for mobile services */
.swiper {
    width: 100%;
    padding: 20px 0;
}

.swiper-slide {
    height: auto;
}

.swiper-pagination {
    display: none !important;
}

/* Services Responsive */
@media (max-width: 768px) {
    .services-grid {
        display: none;
    }

    .services-swiper {
        display: block;
    }
}

@media (min-width: 769px) {
    .services-grid {
        display: block;
    }

    .services-swiper {
        display: none;
    }
}

/* ====================================
   TEAM SECTION
   ==================================== */
.team-section {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(96, 207, 208, 0.05) 0%, rgba(8, 31, 216, 0.05) 100%);
}

.team-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    height: 100%;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 500px;
}

.team-card:hover {
    transform: translateY(-8px);
    border: 1px solid;
    border-image: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan)) 1;
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 3px solid var(--primary-cyan);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-title {
    color: var(--primary-cyan);
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-description {
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 0;
}

.team-link-container {
    margin-top: auto;
    padding-top: 1.5rem;
}

.team-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.team-link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.team-link-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(8, 31, 216, 0.3);
}

.team-link-btn:hover::before {
    left: 100%;
}

.team-link-btn:focus {
    outline: 2px solid var(--primary-cyan);
    outline-offset: 2px;
}

.team-link-btn:active {
    transform: translateY(0);
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--border-radius);
    padding: 1px;
    background: linear-gradient(45deg, var(--primary-blue), var(--primary-cyan), var(--primary-blue));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover::before {
    opacity: 1;
}

/* Team Responsive */
@media (max-width: 992px) {
    .team-card {
        min-height: 450px;
    }
}

@media (max-width: 768px) {
    .team-card {
        min-height: auto;
        margin-bottom: 2rem;
    }
    
    .team-link-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .team-avatar {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }
    
    .team-name {
        font-size: 1.3rem;
    }
    
    .team-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .team-section {
        padding: 60px 0;
    }
    
    .team-card {
        padding: 1.5rem;
    }
    
    .team-avatar {
        width: 90px;
        height: 90px;
    }
    
    .team-name {
        font-size: 1.2rem;
    }
    
    .team-link-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
}

/* ====================================
   TRUSTED BY SECTION
   ==================================== */
.trusted-section {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(8, 31, 216, 0.05) 0%, rgba(96, 207, 208, 0.05) 100%);
}

.partner-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2.5rem 1.5rem;
    height: 100%;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.partner-card:hover {
    transform: translateY(-8px);
    border: 1px solid;
    border-image: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan)) 1;
}

.partner-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.partner-card:hover .partner-logo {
    transform: scale(1.05);
}

.partner-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Trusted By Responsive */
@media (max-width: 768px) {
    .partner-logo {
        height: 80px;
        margin-bottom: 1rem;
    }
    
    .partner-name {
        font-size: 1.1rem;
    }
    
    .partner-card {
        padding: 2rem 1rem;
    }
}

/* ====================================
   SHOWCASE SECTION
   ==================================== */
.showcase-section {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(96, 207, 208, 0.05) 0%, rgba(8, 31, 216, 0.05) 100%);
}

.project-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(96, 207, 208, 0.5);
    box-shadow: 0 20px 50px -20px rgba(8, 31, 216, 0.6);
}

.project-visual {
    position: relative;
    height: 230px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 20% 0%, rgba(96, 207, 208, 0.25), transparent 55%),
        radial-gradient(circle at 90% 100%, rgba(8, 31, 216, 0.45), transparent 60%),
        #050814;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* faint grid behind every visual */
.project-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
}

.project-body {
    padding: 1.75rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-client {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

.project-sector {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-cyan);
    border: 1px solid rgba(96, 207, 208, 0.4);
    border-radius: 999px;
    padding: 2px 10px;
    margin-right: 6px;
}

.project-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(90deg, #ffffff, var(--primary-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-card p {
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.project-points {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.project-points li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.45rem;
    color: #d4d4d8;
    font-size: 0.95rem;
    line-height: 1.5;
}

.project-points li::before {
    content: "\f0e7"; /* Font Awesome bolt */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 0.8rem;
    color: var(--primary-cyan);
}

.project-tags {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(8, 31, 216, 0.25);
    color: #c7d2fe;
}

/* --- RAG chat visual --- */
.rag-window {
    position: relative;
    width: 82%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rag-bubble {
    font-size: 0.8rem;
    line-height: 1.4;
    padding: 10px 14px;
    border-radius: 14px;
}

.rag-user {
    align-self: flex-end;
    max-width: 85%;
    background: linear-gradient(135deg, var(--primary-blue), #3b5bff);
    border-bottom-right-radius: 4px;
}

.rag-sources {
    display: flex;
    gap: 6px;
}

.rag-doc {
    font-size: 0.68rem;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(96, 207, 208, 0.12);
    border: 1px solid rgba(96, 207, 208, 0.35);
    color: var(--primary-cyan);
}

.rag-ai {
    align-self: flex-start;
    width: 78%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rag-ai > i {
    color: var(--primary-cyan);
    font-size: 0.75rem;
}

.rag-line {
    display: block;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.35);
}

.rag-line.short {
    width: 55%;
}

/* --- OCR answer-sheet visual --- */
.viz-ocr {
    gap: 24px;
}

.ocr-sheet {
    position: relative;
    width: 190px;
    padding: 14px 16px;
    background: #f4f4f5;
    border-radius: 8px;
    transform: rotate(-3deg);
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.ocr-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
}

.ocr-n {
    width: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #52525b;
}

.ocr-row > i {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1.5px solid #a1a1aa;
}

.ocr-row > i.on {
    background: #18181b;
    border-color: #18181b;
}

.ocr-mark {
    margin-left: auto;
    font-size: 0.75rem;
    color: #16a34a;
}

.ocr-mark.bad {
    color: #dc2626;
}

.ocr-written span {
    display: block;
    height: 4px;
    margin-top: 7px;
    border-radius: 2px;
    background: #a1a1aa;
}

.ocr-written span.short {
    width: 60%;
}

.ocr-scan {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 28px;
    background: linear-gradient(180deg, transparent, rgba(96, 207, 208, 0.55), transparent);
    border-bottom: 2px solid var(--primary-cyan);
}

.ocr-score {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(96, 207, 208, 0.12);
    border: 1px solid rgba(96, 207, 208, 0.4);
    color: var(--primary-cyan);
    text-align: center;
}

.ocr-score small {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* --- Pre/post dashboard visual --- */
.viz-dash {
    flex-direction: column;
    gap: 12px;
}

.dash-legend {
    position: relative;
    display: flex;
    gap: 16px;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.dash-legend span::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: -1px;
}

.dash-legend .pre::before { background: rgba(255, 255, 255, 0.3); }
.dash-legend .post::before { background: var(--primary-cyan); }

.dash-bars {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 18px;
    height: 120px;
    padding: 0 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.dash-group {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 100%;
}

.dash-group i {
    width: 16px;
    height: var(--h);
    border-radius: 4px 4px 0 0;
    transform-origin: bottom;
}

.dash-group i.pre { background: rgba(255, 255, 255, 0.3); }
.dash-group i.post { background: linear-gradient(180deg, var(--primary-cyan), var(--primary-blue)); }

.dash-file {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(22, 163, 74, 0.15);
    border: 1px solid rgba(22, 163, 74, 0.5);
    color: #4ade80;
}

/* --- Effect-size curves visual --- */
.stats-curves {
    position: relative;
    width: 80%;
    height: 150px;
    overflow: visible;
}

.stats-curves path {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 400;
    stroke-dashoffset: 0;
}

.curve-pre { stroke: rgba(255, 255, 255, 0.45); }
.curve-post { stroke: var(--primary-cyan); }

.stats-axis {
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 1;
}

.stats-d {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 1.1rem;
    font-weight: 800;
    font-style: italic;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(8, 31, 216, 0.35);
    border: 1px solid rgba(96, 207, 208, 0.4);
}

/* --- Animations: play once the card scrolls into view --- */
@media (prefers-reduced-motion: no-preference) {
    .project-card .rag-user,
    .project-card .rag-doc,
    .project-card .rag-ai,
    .project-card .ocr-mark,
    .project-card .ocr-score,
    .project-card .dash-group i,
    .project-card .stats-d {
        opacity: 0;
    }

    .project-card .stats-curves path {
        stroke-dashoffset: 400;
    }

    .project-card.in-view .rag-user { animation: pop-in 0.5s ease forwards 0.1s; }
    .project-card.in-view .rag-doc { animation: pop-in 0.4s ease forwards; }
    .project-card.in-view .rag-doc:nth-child(1) { animation-delay: 0.7s; }
    .project-card.in-view .rag-doc:nth-child(2) { animation-delay: 0.85s; }
    .project-card.in-view .rag-doc:nth-child(3) { animation-delay: 1s; }
    .project-card.in-view .rag-ai { animation: pop-in 0.5s ease forwards 1.4s; }
    .project-card.in-view .rag-line { animation: rag-pulse 1.6s ease-in-out infinite 2s; }

    .project-card.in-view .ocr-scan { animation: scan 2.4s ease-in-out infinite; }
    .project-card.in-view .ocr-mark { animation: pop-in 0.3s ease forwards; }
    .project-card.in-view .ocr-row:nth-child(1) .ocr-mark { animation-delay: 0.4s; }
    .project-card.in-view .ocr-row:nth-child(2) .ocr-mark { animation-delay: 0.7s; }
    .project-card.in-view .ocr-row:nth-child(3) .ocr-mark { animation-delay: 1s; }
    .project-card.in-view .ocr-row:nth-child(4) .ocr-mark { animation-delay: 1.3s; }
    .project-card.in-view .ocr-score { animation: pop-in 0.5s ease forwards 1.7s; }

    .project-card.in-view .dash-group i { animation: grow 0.8s cubic-bezier(.2,.8,.2,1) forwards; }
    .project-card.in-view .dash-group i.post { animation-delay: 0.5s; }
    .project-card.in-view .dash-group:nth-child(2) i { animation-delay: 0.1s; }
    .project-card.in-view .dash-group:nth-child(2) i.post { animation-delay: 0.6s; }
    .project-card.in-view .dash-group:nth-child(3) i { animation-delay: 0.2s; }
    .project-card.in-view .dash-group:nth-child(3) i.post { animation-delay: 0.7s; }
    .project-card.in-view .dash-group:nth-child(4) i { animation-delay: 0.3s; }
    .project-card.in-view .dash-group:nth-child(4) i.post { animation-delay: 0.8s; }
    .project-card.in-view .dash-group:nth-child(5) i { animation-delay: 0.4s; }
    .project-card.in-view .dash-group:nth-child(5) i.post { animation-delay: 0.9s; }

    .project-card.in-view .curve-pre { animation: draw 1.2s ease forwards 0.2s; }
    .project-card.in-view .curve-post { animation: draw 1.2s ease forwards 0.8s; }
    .project-card.in-view .stats-d { animation: pop-in 0.5s ease forwards 1.8s; }
}

@keyframes pop-in {
    from { opacity: 0; transform: translateY(8px) scale(0.96); }
    to { opacity: 1; transform: none; }
}

@keyframes rag-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes scan {
    0% { top: -28px; }
    100% { top: 100%; }
}

@keyframes grow {
    from { opacity: 1; transform: scaleY(0); }
    to { opacity: 1; transform: scaleY(1); }
}

@keyframes draw {
    to { stroke-dashoffset: 0; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Showcase Responsive */
@media (max-width: 576px) {
    .showcase-section {
        padding: 60px 0;
    }

    .project-visual {
        height: 200px;
    }

    .project-body {
        padding: 1.5rem;
    }

    .project-card h3 {
        font-size: 1.3rem;
    }

    .ocr-sheet {
        width: 160px;
    }

    .dash-bars {
        gap: 12px;
    }

    .dash-group i {
        width: 12px;
    }
}

/* ====================================
   ARTICLES SECTION
   ==================================== */
.articles-section {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(8, 31, 216, 0.05) 0%, rgba(96, 207, 208, 0.05) 100%);
}

.article-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-8px);
    border: 1px solid;
    border-image: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan)) 1;
    box-shadow: 0 20px 40px rgba(8, 31, 216, 0.15);
}

.article-thumbnail {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-thumbnail img {
    transform: scale(1.05);
}

.article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(8, 31, 216, 0.8) 0%, 
        rgba(96, 207, 208, 0.8) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-card:hover .article-overlay {
    opacity: 1;
}

.read-more-btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-blue);
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.read-more-btn:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.article-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 300px);
}

.article-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.article-platform {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-link-icon {
    color: var(--primary-cyan);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.article-card:hover .article-link-icon {
    transform: translateX(4px);
}

.article-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 1.5s infinite;
    z-index: 1;
}

.article-thumbnail img {
    position: relative;
    z-index: 2;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--border-radius);
    padding: 1px;
    background: linear-gradient(45deg, var(--primary-blue), var(--primary-cyan), var(--primary-blue));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card:hover::before {
    opacity: 1;
}

/* Articles Animations */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Articles Responsive */
@media (max-width: 768px) {
    .article-thumbnail {
        height: 250px;
    }
    
    .article-content {
        padding: 1.5rem;
        height: calc(100% - 250px);
    }
    
    .article-title {
        font-size: 1.2rem;
    }
    
    .articles-section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .article-thumbnail {
        height: 200px;
    }
    
    .article-content {
        padding: 1.25rem;
        height: calc(100% - 200px);
    }
    
    .article-title {
        font-size: 1.1rem;
    }
    
    .article-excerpt {
        font-size: 0.9rem;
    }
}

/* ====================================
   CONTACT SECTION
   ==================================== */
.contact-section {
    padding: 80px 0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: var(--border-radius);
    padding: 12px 16px;
    margin-bottom: 1.5rem;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 0.2rem rgba(96, 207, 208, 0.25);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-secondary);
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    border: none;
    color: white;
   padding: 12px 32px;
   border-radius: var(--border-radius);
   font-weight: 600;
   width: 100%;
   transition: transform 0.3s ease;
}

.btn-submit:hover {
   transform: translateY(-2px);
}

/* Contact Responsive */
@media (max-width: 576px) {
   .contact-form {
       margin: 0 1rem;
       padding: 2rem 1.5rem;
   }
}

/* ====================================
  FOOTER SECTION
  ==================================== */
.footer {
   background: linear-gradient(135deg, var(--bg-card) 0%, rgba(26, 35, 47, 0.95) 100%);
   padding: 4rem 0 2rem;
   border-top: 1px solid rgba(255, 255, 255, 0.1);
   position: relative;
   overflow: hidden;
}

.footer::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   height: 2px;
   background: linear-gradient(90deg, transparent, var(--primary-cyan), var(--primary-purple), transparent);
   animation: pulse 2s ease-in-out infinite;
}

.footer-logo {
   height: 40px;
   margin-bottom: 1rem;
   transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-logo:hover {
   transform: scale(1.05);
   filter: brightness(1.2);
}

.footer-slogan {
   color: var(--text-secondary);
   margin-bottom: 2rem;
   font-style: italic;
   font-weight: 300;
   letter-spacing: 0.5px;
}

.lightning-divider {
   position: relative;
   padding: 2rem 0;
}

.lightning-icon {
   font-size: 2rem;
   color: var(--primary-cyan);
   animation: lightning-glow 2s ease-in-out infinite alternate;
   filter: drop-shadow(0 0 10px var(--primary-cyan));
}

.social-links {
   display: flex;
   justify-content: flex-end;
   align-items: center;
   gap: 1rem;
}

.social-link {
   color: var(--text-secondary);
   font-size: 1.5rem;
   width: 45px;
   height: 45px;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: 50%;
   background: rgba(255, 255, 255, 0.05);
   transition: all 0.3s ease;
   position: relative;
   overflow: hidden;
}

.social-link::before {
   content: '';
   position: absolute;
   top: 0;
   left: -100%;
   width: 100%;
   height: 100%;
   background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
   transition: left 0.5s ease;
}

.social-link:hover {
   color: var(--primary-cyan);
   background: rgba(0, 255, 255, 0.1);
   transform: translateY(-3px);
   box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

.social-link:hover::before {
   left: 100%;
}

.footer-bottom {
   margin-top: 3rem;
   padding-top: 2rem;
   border-top: 1px solid rgba(255, 255, 255, 0.1);
   position: relative;
}

.copyright-text {
   color: var(--text-secondary);
   margin: 0;
   font-size: 0.9rem;
   opacity: 0.8;
}

.built-with {
   color: var(--text-secondary);
   margin: 0;
   font-size: 0.9rem;
   opacity: 0.8;
}

.lightning-bolt {
   color: var(--primary-cyan);
   display: inline-block;
   animation: lightning-pulse 1.5s ease-in-out infinite;
   margin: 0 5px;
   font-size: 1.1em;
}

/* Footer Animations */
@keyframes lightning-glow {
   0% {
       color: var(--primary-cyan);
       filter: drop-shadow(0 0 5px var(--primary-cyan));
       transform: scale(1);
   }
   100% {
       color: var(--primary-purple);
       filter: drop-shadow(0 0 15px var(--primary-purple));
       transform: scale(1.1);
   }
}

@keyframes lightning-pulse {
   0%, 100% {
       opacity: 1;
       transform: scale(1);
   }
   50% {
       opacity: 0.7;
       transform: scale(1.2);
   }
}

@keyframes pulse {
   0%, 100% {
       opacity: 0.5;
   }
   50% {
       opacity: 1;
   }
}

/* Footer Responsive */
@media (max-width: 768px) {
   .footer {
       padding: 3rem 0 1.5rem;
       text-align: center;
   }
   
   .footer .col-md-4 {
       margin-bottom: 2rem;
   }
   
   .footer .text-end {
       text-align: center !important;
   }
   
   .social-links {
       justify-content: center;
   }
   
   .lightning-divider {
       padding: 1rem 0;
   }
   
   .footer-bottom .text-end {
       text-align: center !important;
       margin-top: 1rem;
   }
}

@media (max-width: 576px) {
   .social-link {
       width: 40px;
       height: 40px;
       font-size: 1.3rem;
   }
   
   .footer-logo {
       height: 35px;
   }
   
   .lightning-icon {
       font-size: 1.5rem;
   }
}

/* ====================================
  SHARED ELEMENTS & UTILITIES
  ==================================== */
.section-title {
   font-size: 3.5rem;
   font-weight: 700;
   text-align: center;
   margin-bottom: 4rem;
}

.section-subtitle {
   font-size: 1.3rem;
   font-weight: 400;
   color: var(--text-secondary);
   text-align: center;
   max-width: 900px;
   margin: 0 auto 4rem;
   line-height: 1.6;
}

/* Shared Utilities Responsive */
@media (max-width: 768px) {
   .section-title {
       font-size: 2.5rem;
   }
   
   .section-subtitle {
       font-size: 1.1rem;
       margin: 0 auto 3rem;
       padding: 0 1rem;
   }
}

@media (max-width: 576px) {
   .section-subtitle {
       font-size: 1rem;
       margin: 0 auto 2.5rem;
   }
}

/* ====================================
  ACCESSIBILITY & ADDITIONAL STYLES
  ==================================== */
.service-card:focus,
.team-card:focus,
.btn-email:focus,
.btn-submit:focus {
   outline: 2px solid var(--primary-cyan);
   outline-offset: 2px;
}

.loading {
   display: inline-block;
   width: 20px;
   height: 20px;
   border: 3px solid rgba(255,255,255,.3);
   border-radius: 50%;
   border-top-color: #fff;
   animation: spin 1s ease-in-out infinite;
}

.service-card-content::-webkit-scrollbar {
   width: 4px;
}

.service-card-content::-webkit-scrollbar-track {
   background: transparent;
}

.service-card-content::-webkit-scrollbar-thumb {
   background: var(--primary-cyan);
   border-radius: 2px;
}

/* ====================================
  PRINT STYLES
  ==================================== */
@media print {
   .navbar-custom,
   .footer {
       display: none;
   }
   
   .hero-section {
       min-height: auto;
       padding: 2rem 0;
   }
   
   body {
       color: #000;
       background: #fff;
   }
}

/* ====================================
   CAREERS SECTION
   ==================================== */
   .careers-section {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(96, 207, 208, 0.05) 0%, rgba(8, 31, 216, 0.05) 100%);
}

.career-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.career-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    cursor: pointer;
}

.career-card:hover {
    transform: translateY(-8px);
    border: 1px solid;
    border-image: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan)) 1;
    box-shadow: 0 20px 40px rgba(8, 31, 216, 0.15);
}

.career-card-image {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.career-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.career-card:hover .career-card-image img {
    transform: scale(1.05);
}

.career-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 300px);
}

.career-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.career-location {
    color: var(--primary-cyan);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.career-location::before {
    content: '📍';
}

.career-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.career-tags {
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.career-tag {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: white;
    padding: 1px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.career-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--border-radius);
    padding: 1px;
    background: linear-gradient(45deg, var(--primary-blue), var(--primary-cyan), var(--primary-blue));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.career-card:hover::before {
    opacity: 1;
}

/* Careers Responsive */
@media (max-width: 768px) {
    .career-card-image {
        height: 250px;
    }
    
    .career-card-content {
        padding: 1.5rem;
        height: calc(100% - 250px);
    }
    
    .career-title {
        font-size: 1.2rem;
    }
    
    .careers-section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .career-card-image {
        height: 200px;
    }
    
    .career-card-content {
        padding: 1.25rem;
        height: calc(100% - 200px);
    }
    
    .career-title {
        font-size: 1.1rem;
    }
    
    .career-description {
        font-size: 0.9rem;
    }
}