/* ============================================================
   IoT Applications Page Stylesheet - VSM Global Technologies
   ============================================================ */

/* ===== Typography & Utilities ===== */
.gradient-text {
    background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 50%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* ===== HERO SECTION ===== */
.iot-hero-section {
    position: relative;
    padding: 180px 0 80px;
    background: linear-gradient(135deg, #ffffff 0%, #f4f9ff 40%, #e0f2fe 75%, #bae6fd 100%) !important;
    overflow: hidden;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: heroBlobFloat ease-in-out infinite;
}

@keyframes heroBlobFloat {
    0%   { transform: translate(0px, 0px); }
    25%  { transform: translate(25px, -20px); }
    50%  { transform: translate(-15px, 25px); }
    75%  { transform: translate(20px, 15px); }
    100% { transform: translate(0px, 0px); }
}

.iot-hero-container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
}

.iot-hero-content {
    flex: 1.1;
    animation: iotFadeUp 0.8s ease both;
}

.iot-hero-visual {
    flex: 0.9;
    display: flex;
    justify-content: center;
    position: relative;
    animation: iotFadeUp 1s ease 0.2s both;
}

@keyframes iotFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.iot-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e0edff;
    border: 1px solid #bfdbfe;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1d4ed8;
    margin-bottom: 20px;
}

.iot-badge-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #2563eb;
    box-shadow: 0 0 10px #3b82f6;
    animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.iot-hero-title {
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.iot-hero-subtitle {
    color: #031024;
    font-weight: 400;
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    margin-bottom: 16px;
    line-height: 1.4;
}

.iot-hero-description {
    color: #334155;
    font-size: 1.125rem;
    line-height: 1.85;
    margin-bottom: 24px;
}

.iot-hero-highlight {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #c7d9fe;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 1.05rem;
    color: #1e3a8a;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.08);
    margin-bottom: 28px;
}

.iot-hero-highlight i {
    font-size: 22px;
    color: #2563eb;
}

.iot-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.btn-iot-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(29, 78, 216, 0.28);
    transition: all 0.3s ease;
}

.btn-iot-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(29, 78, 216, 0.4);
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
}

.btn-iot-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: #1e293b !important;
    border: 1.5px solid #cbd5e1;
    font-weight: 600;
    font-size: 1rem;
    padding: 13px 26px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-iot-outline:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    transform: translateY(-2px);
}

/* ===== HERO VISUAL / IOT DASHBOARD MOCKUP ===== */
.iot-hub-card {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #dbeafe;
    box-shadow: 0 24px 60px rgba(30, 58, 138, 0.16);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.iot-hub-card::after {
    content: "";
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 4px;
    background: linear-gradient(90deg, #2D5BFF, #9B3FD8, #F0468A);
}

.iot-hub-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 20px;
}

.iot-hub-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #10b981;
}

.iot-live-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.iot-hub-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.iot-hub-pill {
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.iot-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.iot-metric-tile {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    transition: all 0.3s ease;
}

.iot-metric-tile:hover {
    background: #f0f7ff;
    border-color: #bfdbfe;
    transform: translateY(-2px);
}

.iot-metric-tile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.iot-metric-tile-header i {
    font-size: 18px;
    color: #2563eb;
}

.iot-metric-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.iot-metric-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
}

.iot-metric-sub {
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 500;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.iot-live-feed {
    background: #0f172a;
    border-radius: 14px;
    padding: 14px 16px;
    color: #f8fafc;
}

.iot-live-feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.78rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.iot-feed-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
}

.iot-feed-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.iot-feed-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.iot-feed-left i {
    color: #38bdf8;
    font-size: 14px;
}

.iot-feed-tag {
    font-size: 0.7rem;
    background: rgba(37, 99, 235, 0.3);
    color: #93c5fd;
    padding: 2px 8px;
    border-radius: 6px;
}

/* ===== GENERAL SECTIONS ===== */
.iot-section {
    padding: 85px 0;
    background: #ffffff;
    position: relative;
}

.iot-alt-bg {
    background: #f8fbff;
}

.iot-container {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
}

.iot-section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 50px;
}

.iot-section-tag {
    display: inline-block;
    background: #e0edff;
    color: #1d4ed8;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.iot-section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 16px;
}

.iot-section-description {
    font-size: 1.15rem;
    color: #475569;
    line-height: 1.8;
}

/* ===== WORKFLOWS & CUSTOMIZATION SECTION ===== */
.iot-workflows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.iot-workflow-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 26px 22px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.iot-workflow-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2D5BFF, #9B3FD8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.iot-workflow-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.12);
    border-color: #bfdbfe;
}

.iot-workflow-card:hover::before {
    transform: scaleX(1);
}

.iot-workflow-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.iot-workflow-card:hover .iot-workflow-icon {
    background: linear-gradient(135deg, #2D5BFF, #9B3FD8);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(45, 91, 255, 0.3);
}

.iot-workflow-card h3 {
    font-size: 1.18rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 10px;
    line-height: 1.35;
}

.iot-workflow-card p {
    font-size: 0.98rem;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 0;
}

/* ===== TECHNOLOGIES WE USE SECTION ===== */
.iot-tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.iot-tech-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}

.iot-tech-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2D5BFF, #9B3FD8, #F0468A);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.iot-tech-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.12);
    border-color: #cbd5e1;
}

.iot-tech-card:hover::before {
    opacity: 1;
}

.iot-tech-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.iot-tech-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2D5BFF, #9B3FD8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    box-shadow: 0 8px 18px rgba(45, 91, 255, 0.25);
    flex-shrink: 0;
}

.iot-tech-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.iot-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.iot-tech-tags span {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.25s ease;
}

.iot-tech-card:hover .iot-tech-tags span {
    background: #eef4ff;
    color: #1d4ed8;
    border-color: #c7d9fe;
}

/* ===== KEY FEATURES SECTION ===== */
.iot-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.iot-feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 22px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.iot-feature-card::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 4px;
    background: linear-gradient(180deg, #2D5BFF, #9B3FD8, #F0468A);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.iot-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.iot-feature-card:hover::before {
    transform: scaleY(1);
}

.iot-feature-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.iot-feature-icon-box i {
    font-size: 22px;
    background: linear-gradient(135deg, #2D5BFF, #9B3FD8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.iot-feature-card:hover .iot-feature-icon-box {
    background: linear-gradient(135deg, #2D5BFF, #9B3FD8);
    box-shadow: 0 6px 18px rgba(45, 91, 255, 0.25);
}

.iot-feature-card:hover .iot-feature-icon-box i {
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
}

.iot-feature-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.35;
}

.iot-feature-content p {
    font-size: 0.98rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===== ARCHITECTURE / PROCESS PIPELINE ===== */
.iot-process-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    margin-top: 20px;
}

.iot-process-step {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 30px 22px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.iot-process-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.1);
    border-color: #bfdbfe;
}

.iot-step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2D5BFF, #9B3FD8);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 6px 16px rgba(45, 91, 255, 0.25);
}

.iot-process-step h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.iot-process-step p {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===== CTA SECTION ===== */
.iot-cta-section {
    padding: 90px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.iot-cta-card {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.iot-cta-card h2 {
    font-size: clamp(2.1rem, 4vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 18px;
}

.iot-cta-card p {
    font-size: 1.18rem;
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 34px;
}

.iot-cta-btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-iot-cta-white {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: #0f172a !important;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.btn-iot-cta-white:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.btn-iot-cta-glow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
}

.btn-iot-cta-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.55);
    opacity: 0.95;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1080px) {
    .iot-hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .iot-hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .iot-hero-highlight {
        text-align: left;
    }

    .iot-hero-cta {
        justify-content: center;
    }

    .iot-tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .iot-process-track {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .iot-hero-section {
        padding: 140px 0 60px;
    }

    .iot-section {
        padding: 60px 0;
    }

    .iot-tech-grid {
        grid-template-columns: 1fr;
    }

    .iot-features-grid {
        grid-template-columns: 1fr;
    }

    .iot-process-track {
        grid-template-columns: 1fr;
    }

    .iot-hero-highlight {
        font-size: 0.95rem;
        padding: 10px 16px;
    }

    .iot-hub-card {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .iot-metric-grid {
        grid-template-columns: 1fr;
    }

    .btn-iot-primary, .btn-iot-outline, .btn-iot-cta-white, .btn-iot-cta-glow {
        width: 100%;
        justify-content: center;
    }

    .iot-hero-cta, .iot-cta-btns {
        width: 100%;
        flex-direction: column;
    }
}
