/* Philosophy Section */
.dev-philosophy {
    margin: 4rem auto 3rem;
    padding: 2.5rem 2rem;
    border-top: 3px solid var(--color-accent-cyan);
    background: rgba(6, 182, 212, 0.03);
    border-radius: 20px;
    text-align: center;
    max-width: 750px;
    position: relative;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 240, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.dev-philosophy::before {
    content: '</>';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-bg-primary);
    padding: 0 15px;
    color: var(--color-accent-cyan);
    font-family: monospace;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.dev-philosophy:hover {
    background: rgba(6, 182, 212, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.dev-philosophy h4 {
    margin-bottom: 0.5rem;
    color: var(--color-accent-cyan);
    font-size: 1.1rem;
    font-weight: 700;
}

.dev-philosophy p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* IoT Subsection */
.iot-subsection-title {
    text-align: left;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    border-left: 6px solid var(--color-accent-cyan);
    padding-left: 1.5rem;
}

.iot-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

.iot-card {
    border-top: 5px solid var(--color-accent-cyan);
    background: #050712;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    will-change: transform;
    /* Performance Hint */
}

.n8n-image-wrapper {
    aspect-ratio: 16/7;
    overflow: hidden;
}

.n8n-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.iot-card:hover .n8n-image {
    transform: scale(1.05);
}

.n8n-content {
    padding: 2.5rem;
}

.iot-badge-wrapper {
    margin-bottom: 1.5rem;
}

.iot-label {
    border: 1px solid var(--led-purple);
    color: var(--led-purple);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.n8n-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #fff;
    line-height: 1.2;
}

.n8n-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.iot-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.iot-feature-item {
    display: flex;
    align-items: center;
    color: #00ff88;
    font-weight: 500;
    font-size: 0.95rem;
}

.iot-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    margin-right: 12px;
    box-shadow: 0 0 10px #00ff88;
    flex-shrink: 0;
}

.n8n-tech-stack {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* RESPONSIVE OPTIMIZATIONS */
@media (max-width: 968px) {
    .iot-subsection-title {
        font-size: 1.8rem;
        padding-left: 1rem;
        border-left-width: 4px;
    }

    .n8n-content {
        padding: 1.5rem;
    }

    .n8n-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {

    /* Mobile General */
    .section-title {
        font-size: 2rem;
        /* Reduce main titles */
    }

    /* Philosophy */
    .dev-philosophy {
        padding: 1.5rem;
        border-top-width: 3px;
        margin-left: 1rem;
        margin-right: 1rem;
    }

    /* IoT */
    .n8n-title {
        font-size: 1.5rem;
    }

    .n8n-description {
        font-size: 1rem;
    }

    .iot-features {
        grid-template-columns: 1fr;
    }

    .n8n-image-wrapper {
        aspect-ratio: 16/9;
        /* Taller on mobile */
    }
}